Module

x/ts_morph/mod.ts>TypeParameter

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class TypeParameter
extends Type<ts.TypeParameter>
import { TypeParameter } from "https://dotland.deno.dev/x/ts_morph@16.0.0/mod.ts";

Methods

getConstraint(): Type | undefined

Gets the constraint type.

Gets the constraint or throws if it doesn't exist.

getDefault(): Type | undefined

Gets the default type or undefined if it doesn't exist.

Gets the default type or throws if it doesn't exist.