mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
325 B
TypeScript
20 lines
325 B
TypeScript
//// [tests/cases/conformance/jsdoc/jsdocDestructuringParameterDeclaration.ts] ////
|
|
|
|
//// [a.js]
|
|
/**
|
|
* @param {{ a: number; b: string }} args
|
|
*/
|
|
function f({ a, b }) {}
|
|
|
|
|
|
|
|
|
|
//// [a.d.ts]
|
|
/**
|
|
* @param {{ a: number; b: string }} args
|
|
*/
|
|
declare function f({ a, b }: {
|
|
a: number;
|
|
b: string;
|
|
}): void;
|