Skip to main content
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://deno.land/x/ts_morph@15.1.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.