TypeScript/tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts

17 lines
338 B
TypeScript
Raw Normal View History

// @declaration: true
class C1 {
constructor(public [x, y, z]: string[]) {
}
}
type TupleType1 =[string, number, boolean];
class C2 {
constructor(public [x, y, z]: TupleType1) {
}
}
type ObjType1 = { x: number; y: string; z: boolean }
class C3 {
constructor(public { x, y, z }: ObjType1) {
}
}