TypeScript/tests/baselines/reference/declarationEmitDestructuring3.types

15 lines
404 B
Text
Raw Normal View History

2015-03-24 01:58:53 +01:00
=== tests/cases/compiler/declarationEmitDestructuring3.ts ===
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