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://dotland.deno.dev/x/ts_morph@21.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(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://dotland.deno.dev/x/ts_morph@21.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<AmbientableNodeExtensionType>