Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
method Project.prototype.getAmbientModuleOrThrow
import { Project } from "https://deno.land/x/fresh@1.7.1/tests/deps.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)

Returns

Symbol