* Mark @typedef as a type declaration This is only important right now for marking uses of deprecated tags due to the way that deprecated type references are computed. But I'm surprised it hasn't caused problems elsewhere. Fixes #39466 * Also mark @callback and @enum Requires making name lookup in isTypeDeclarationName smarter, but this is only used by services, so shouldn't be too performance sensitive.
24 lines
544 B
TypeScript
24 lines
544 B
TypeScript
///<reference path="fourslash.ts" />
|
|
|
|
// @checkJs: true
|
|
// @allowJs: true
|
|
// @Filename: jsdocDeprecated_suggestion5.js
|
|
//// /** @typedef {{ email: string, nickName?: string }} U2 */
|
|
//// /** @type {U2} */
|
|
//// const u2 = { email: "" }
|
|
|
|
//// /**
|
|
//// * @callback K
|
|
//// * @param {any} ctx
|
|
//// * @return {void}
|
|
//// */
|
|
//// /** @type {K} */
|
|
//// const cc = _k => {}
|
|
|
|
//// /** @enum {number} */
|
|
//// const DOOM = { e: 1, m: 1 }
|
|
//// /** @type {DOOM} */
|
|
//// const kneeDeep = DOOM.e
|
|
|
|
verify.getSuggestionDiagnostics([])
|