mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Emit destructuring in parameter
This commit is contained in:
@@ -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 { }
|
||||
Reference in New Issue
Block a user