Skip to main content
Module

x/deno2node/src/deps.deno.ts>TypeParameter

Compile your Deno project to run on Node.js.
Go to Latest
class TypeParameter
extends Type<ts.TypeParameter>
import { TypeParameter } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

getConstraint(): Type | undefined

Gets the constraint type.

getConstraintOrThrow(message?: string | (() => string)): 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.

getDefaultOrThrow(message?: string | (() => string)): Type

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