import { type TypeParameteredNode } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";
Methods
getTypeParameter(name: string): TypeParameterDeclaration | undefined
Gets a type parameter or undefined if it doesn't exist.
getTypeParameter(findFunction: (declaration: TypeParameterDeclaration) => boolean): TypeParameterDeclaration | undefined
Gets a type parameter or undefined if it doesn't exist.
getTypeParameterOrThrow(name: string): TypeParameterDeclaration
Gets a type parameter or throws if it doesn't exist.
getTypeParameterOrThrow(findFunction: (declaration: TypeParameterDeclaration) => boolean): TypeParameterDeclaration
Gets a type parameter or throws if it doesn't exist.
addTypeParameter(structure: OptionalKind<TypeParameterDeclarationStructure> | string): TypeParameterDeclaration
Adds a type parameter.
addTypeParameters(structures: ReadonlyArray<OptionalKind<TypeParameterDeclarationStructure> | string>): TypeParameterDeclaration[]
Adds type parameters.
insertTypeParameter(index: number, structure: OptionalKind<TypeParameterDeclarationStructure> | string): TypeParameterDeclaration
Inserts a type parameter.
insertTypeParameters(index: number, structures: ReadonlyArray<OptionalKind<TypeParameterDeclarationStructure> | string>): TypeParameterDeclaration[]
Inserts type parameters.
import { TypeParameteredNode } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";
Type Parameters
T extends Constructor<TypeParameteredNodeExtensionType>
Parameters
Base: T