Skip to main content
Module

x/ts_morph/mod.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@15.1.0/mod.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@15.1.0/mod.ts";

Type Parameters

T extends Constructor<AmbientableNodeExtensionType>