Skip to main content
Module

x/ts_morph/mod.ts>ImportDeclaration#getDefaultImportOrThrow

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

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

Parameters

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