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

10 lines
225 B
TypeScript

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