TypeScript/tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts
2015-02-12 13:23:49 -08:00

17 lines
338 B
TypeScript

// @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) {
}
}