TypeScript/tests/cases/compiler/jsdocTypedefMissingType.ts
Andy b4018a2ef1 Handle @typedef tag with missing type (#18662)
* Handle @typedef tag with missing type

* Add single quotes to diagnostic

* Remove redundant jsdoc checking (now done on every source element)

* Update baselines
2017-09-25 12:11:33 -07:00

19 lines
281 B
TypeScript

// @allowJs: true
// @checkJs: true
// @noEmit: true
// @Filename: /a.js
// Bad: missing a type
/** @typedef T */
const t = 0;
// OK: missing a type, but have property tags.
/**
* @typedef Person
* @property {string} name
*/
/** @type Person */
const person = { name: "" };