mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
545 B
Plaintext
25 lines
545 B
Plaintext
//// [tests/cases/compiler/jsDeclarationEmitFunction.ts] ////
|
|
|
|
=== types.d.ts ===
|
|
type Foo = () => void;
|
|
>Foo : Symbol(Foo, Decl(types.d.ts, 0, 0))
|
|
|
|
=== a.js ===
|
|
/** @type {Foo} */
|
|
const f1 = function test() {};
|
|
>f1 : Symbol(f1, Decl(a.js, 1, 5))
|
|
>test : Symbol(test, Decl(a.js, 1, 10))
|
|
|
|
/** @type {Foo} */
|
|
const f2 = function () {};
|
|
>f2 : Symbol(f2, Decl(a.js, 4, 5))
|
|
|
|
/** @type {Foo} */
|
|
const f3 = () => {};
|
|
>f3 : Symbol(f3, Decl(a.js, 7, 5))
|
|
|
|
/** @type {Foo} */
|
|
function f4 () {};
|
|
>f4 : Symbol(f4, Decl(a.js, 7, 20))
|
|
|