TypeScript/tests/cases/conformance/jsdoc/checkJsdocTypeTag4.ts

17 lines
292 B
TypeScript
Raw Normal View History

// @checkJs: true
// @allowJs: true
// @noEmit: true
// @Filename: t.d.ts
type A<T extends string> = { a: T }
// @Filename: test.js
/** Also should error for jsdoc typedefs
* @template {string} U
* @typedef {{ b: U }} B
*/
/** @type {A<number>} */
var a;
/** @type {B<number>} */
var b;