Previously there was nothing for the @typedef to attach to, so the comment was never parsed. Now these comments attach to the EOF token.
11 lines
245 B
TypeScript
11 lines
245 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
// @Filename: dtsEquivalent.js
|
|
/** @typedef {{[k: string]: any}} AnyEffect */
|
|
/** @typedef {number} Third */
|
|
// @Filename: index.js
|
|
/** @type {AnyEffect} */
|
|
let b;
|
|
/** @type {Third} */
|
|
let c;
|