40ec8392a1
* Fixes #44386 * Add test * Move test from fourslash to conformance
19 lines
496 B
Plaintext
19 lines
496 B
Plaintext
=== tests/cases/conformance/jsdoc/a.js ===
|
|
/**
|
|
* @type {function(boolean, string, ...*):void}
|
|
*/
|
|
const foo = function (a, b, ...r) { };
|
|
>foo : (arg0: boolean, arg1: string, ...arg2: any[]) => void
|
|
>function (a, b, ...r) { } : (a: boolean, b: string, ...r: any[]) => void
|
|
>a : boolean
|
|
>b : string
|
|
>r : any[]
|
|
|
|
=== tests/cases/conformance/jsdoc/b.ts ===
|
|
foo(false, '');
|
|
>foo(false, '') : void
|
|
>foo : (arg0: boolean, arg1: string, ...arg2: any[]) => void
|
|
>false : false
|
|
>'' : ""
|
|
|