Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ImportDeclaration#getDefaultImportOrThrow

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method ImportDeclaration.prototype.getDefaultImportOrThrow
import { ImportDeclaration } from "https://deno.land/x/ts_morph@21.0.1/ts_morph.d.ts";

Gets the default import or throws if it doesn't exit.

Parameters

optional
message: string | (() => string)