TypeScript/tests/baselines/reference/typedefScope1.types
Anders Hejlsberg a4f9bf0fce
Create type aliases for unresolved type symbols (#45976)
* Create type aliases for unresolved type symbols

* Accept new baselines

* Update fourslash tests

* Unresolved import aliases create tagged unresolved symbols

* Add comments

* Accept new baselines

* Add fourslash tests
2021-09-23 13:21:27 -07:00

27 lines
395 B
Plaintext

=== tests/cases/conformance/jsdoc/typedefScope1.js ===
function B1() {
>B1 : () => void
/** @typedef {number} B */
/** @type {B} */
var ok1 = 0;
>ok1 : number
>0 : 0
}
function B2() {
>B2 : () => void
/** @typedef {string} B */
/** @type {B} */
var ok2 = 'hi';
>ok2 : string
>'hi' : "hi"
}
/** @type {B} */
var notOK = 0;
>notOK : B
>0 : 0