mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
317 B
TypeScript
22 lines
317 B
TypeScript
//// [tests/cases/compiler/jsDocCallbackExport1.ts] ////
|
|
|
|
//// [x.js]
|
|
/**
|
|
* @callback Foo
|
|
* @param {string} x
|
|
* @returns {number}
|
|
*/
|
|
function f1() {}
|
|
|
|
|
|
|
|
|
|
//// [x.d.ts]
|
|
type Foo = (x: string) => number;
|
|
/**
|
|
* @callback Foo
|
|
* @param {string} x
|
|
* @returns {number}
|
|
*/
|
|
declare function f1(): void;
|