TypeScript/tests/cases/compiler/jsdocTypedefNoCrash.ts
Wesley Wigham c1f2afd645 Add typedef declaration space, unify typedef name gathering (#18172)
* Add typedef declaration space, unify typedef name gathering, strengthen errorUnusedLocal

* Bonus round: make jsdoc presence way mroe typesafe

* Be exhaustive in nameForNamelessJSDocTypedef

* Remove nonrequired casts

* Replace more casts with guards

* Cannot be internal

* Debug.fail returns never, assert never no longer needs unreachable throw to satisfy checker

* Rename type

* Add replacement message as in 18287
2017-09-07 10:28:58 -07:00

9 lines
135 B
TypeScript

// @target: es6
// @allowJs: true
// @outDir: ./dist
// @filename: export.js
/**
* @typedef {{
* }}
*/
export const foo = 5;