mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
551 B
TypeScript
24 lines
551 B
TypeScript
//// [tests/cases/compiler/declarationEmitBindingPatterns.ts] ////
|
|
|
|
//// [declarationEmitBindingPatterns.ts]
|
|
const k = ({x: z = 'y'}) => { }
|
|
|
|
var a;
|
|
function f({} = a, [] = a, { p: {} = a} = a) {
|
|
}
|
|
|
|
//// [declarationEmitBindingPatterns.js]
|
|
"use strict";
|
|
const k = ({ x: z = 'y' }) => { };
|
|
var a;
|
|
function f({} = a, [] = a, { p: {} = a } = a) {
|
|
}
|
|
|
|
|
|
//// [declarationEmitBindingPatterns.d.ts]
|
|
declare const k: ({ x: z }: {
|
|
x?: string;
|
|
}) => void;
|
|
declare var a: any;
|
|
declare function f({}?: any, []?: any, { p: {} }?: any): void;
|