TypeScript/tests/cases/conformance/jsdoc/jsdocTypeDefAtStartOfFile.ts
Nathan Shively-Sanders b967bbb722 Test @typedef in @typedef-only JS files
Previously there was nothing for the @typedef to attach to, so the
comment was never parsed. Now these comments attach to the EOF token.
2017-06-13 10:37:04 -07:00

12 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;