getEffectiveTypeParameterDeclarations

Gets the effective type parameters. If the node was parsed in a JavaScript file, gets the type parameters from the @template tag from JSDoc.

This does not return type parameters from a jsdoc reference to a generic type, eg

type Id = (x: T) => T /** @type {Id} / function id(x) { return x }