-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
๐ Search Terms
compiler api, template tag, jsdoc constraint
๐ Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about the compiler API
โฏ Playground Link
๐ป Code
/**
* @template {number} T
* @typedef {T} Typed
*/๐ Actual behavior
templateTag.typeParameters[0].constraint is undefined
๐ Expected behavior
templateTag.typeParameters[0].constraint should be a number type, the equivalent TS type parameter works as expected:
type Typed<T extends number> = TAdditional information about the issue
I mentioned this in the TS Discord, @jakebailey confirmed it looks like a likely bug
Originally reported in: TypeStrong/typedoc#2384
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug