TypeScript/tests/baselines/reference/callbackTag1.types
Andy 13bc46d970
getTokenAtPosition: default includeJsDocComment to true (#25015)
* getTokenAtPosition: default includeJsDocComment to true

* Update API (#24966)

* Flip meaning of parameter

* Update API (#24966)

* Remove all `ignoreJsDocComment` uses (fixes #25162)
2018-06-26 16:20:44 -07:00

34 lines
784 B
Text

=== tests/cases/conformance/jsdoc/cb.js ===
/** @callback Sid
* @param {string} s
* @returns {string} What were you expecting
*/
var x = 1
>x : number
>1 : 1
/** @type {Sid} smallId */
var sid = s => s + "!";
>sid : Sid
>s => s + "!" : (s: string) => string
>s : string
>s + "!" : string
>s : string
>"!" : "!"
/** @type {NoReturn} */
var noreturn = obj => void obj.title
>noreturn : NoReturn
>obj => void obj.title : (obj: { e: number; m: number; title: string; }) => any
>obj : { e: number; m: number; title: string; }
>void obj.title : undefined
>obj.title : string
>obj : { e: number; m: number; title: string; }
>title : string
/**
* @callback NoReturn
* @param {{ e: number, m: number, title: string }} s - Knee deep, shores, etc
*/