import { TypeParameterDeclaration } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts";
Methods
getConstraintOrThrow(message?: string | (() => string)): TypeNode<ts.TypeNode>
Gets the constraint of the type parameter or throws if it doesn't exist.
getDefaultOrThrow(message?: string | (() => string)): TypeNode<ts.TypeNode>
Gets the default node of the type parameter or throws if it doesn't exist.
getParent(): NodeParentType<ts.TypeParameterDeclaration>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.TypeParameterDeclaration>>