Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/ts_morph.d.ts>AmbientableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface AmbientableNode
import { type AmbientableNode } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";

Methods

hasDeclareKeyword(): boolean

If the node has the declare keyword.

getDeclareKeyword(): Node | undefined

Gets the declare keyword or undefined if none exists.

getDeclareKeywordOrThrow(): 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/ts_morph@16.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<AmbientableNodeExtensionType>