mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
576 B
TypeScript
20 lines
576 B
TypeScript
//// [tests/cases/compiler/declarationEmitDuplicateParameterDestructuring.ts] ////
|
|
|
|
//// [declarationEmitDuplicateParameterDestructuring.ts]
|
|
export const fn1 = ({ prop: a, prop: b }: { prop: number }) => a + b;
|
|
|
|
export const fn2 = ({ prop: a }: { prop: number }, { prop: b }: { prop: number }) => a + b;
|
|
|
|
|
|
|
|
|
|
//// [declarationEmitDuplicateParameterDestructuring.d.ts]
|
|
export declare const fn1: ({ prop: a, prop: b }: {
|
|
prop: number;
|
|
}) => number;
|
|
export declare const fn2: ({ prop: a }: {
|
|
prop: number;
|
|
}, { prop: b }: {
|
|
prop: number;
|
|
}) => number;
|