2015-03-24 01:58:53 +01:00
|
|
|
=== tests/cases/compiler/declarationEmitDestructuring3.ts ===
|
2015-03-23 19:30:51 +01:00
|
|
|
function bar([x, z, ...w]) { }
|
|
|
|
>bar : ([x, z, ...w]: any[]) => void
|
|
|
|
>x : any
|
|
|
|
>z : any
|
|
|
|
>w : any[]
|
|
|
|
|
|
|
|
function foo([x, ...y] = [1, "string", true]) { }
|
|
|
|
>foo : ([x, ...y]?: (string | number | boolean)[]) => void
|
|
|
|
>x : string | number | boolean
|
|
|
|
>y : (string | number | boolean)[]
|
|
|
|
>[1, "string", true] : (string | number | boolean)[]
|
|
|
|
|
2015-03-24 01:58:53 +01:00
|
|
|
|