mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
462 B
TypeScript
27 lines
462 B
TypeScript
//// [tests/cases/compiler/declarationEmitClassSetAccessorParamNameInJs3.ts] ////
|
|
|
|
//// [foo.js]
|
|
export class Foo {
|
|
/**
|
|
* Bar.
|
|
*
|
|
* @param {{ prop: string | undefined }} baz Baz.
|
|
*/
|
|
set bar({ prop = 'foo' }) {}
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [foo.d.ts]
|
|
export declare class Foo {
|
|
/**
|
|
* Bar.
|
|
*
|
|
* @param {{ prop: string | undefined }} baz Baz.
|
|
*/
|
|
set bar({ prop }: {
|
|
prop: string | undefined;
|
|
});
|
|
}
|