Skip to main content
Module

x/ts_morph/mod.ts>Project#getAmbientModuleOrThrow

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

Gets the specified ambient module symbol or throws if not found.

Parameters

moduleName: string
  • The ambient module name with or without quotes.
optional
message: string | (() => string)