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

5 lines
153 B
TypeScript

// @declaration: true
function foo([x,y,z]?: [string, number, boolean]) {
}
function foo1( { x, y, z }?: { x: string; y: number; z: boolean }) {
}