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