Skip to main content
Module

x/ts_morph/mod.ts>Type#getDefault

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method Type.prototype.getDefault
import { Type } from "https://deno.land/x/ts_morph@22.0.0/mod.ts";

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

Returns

Type<ts.Type> | undefined