Skip to main content
Module

x/deno2node/src/deps.deno.ts>AmbientableNode

Compile your Deno project to run on Node.js.
Go to Latest
interface AmbientableNode
import { type AmbientableNode } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

hasDeclareKeyword(): boolean

If the node has the declare keyword.

getDeclareKeyword(): Node | undefined

Gets the declare keyword or undefined if none exists.

getDeclareKeywordOrThrow(message?: string | (() => string)): Node

Gets the declare keyword or throws if it doesn't exist.

isAmbient(): boolean

Gets if the node is ambient.

setHasDeclareKeyword(value?: boolean): this

Sets if this node has a declare keyword.

function AmbientableNode
import { AmbientableNode } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Type Parameters

T extends Constructor<AmbientableNodeExtensionType>