* Handle @typedef tag with missing type * Add single quotes to diagnostic * Remove redundant jsdoc checking (now done on every source element) * Update baselines
19 lines
281 B
TypeScript
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: "" };
|