Emit destructuring in parameter

This commit is contained in:
Yui T
2015-03-19 14:36:30 -07:00
parent 79272d7cef
commit 36ea7c8d77
7 changed files with 84 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
// @declaration: true
function foo([a, b, c]: [string, string, string]): void { }
function far([a, [b], [[c]]]: [number, boolean[], string[][]]): void { }
function bar({a1, b1, c1}: { a1: number, b1: boolean, c1: string }): void { }
function baz({a2, b2: {b1, c1}}: { a2: number, b2: { b1: boolean, c1: string } }): void { }