Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ExclamationTokenableNode

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

Methods

hasExclamationToken(): boolean

If it has a exclamation token.

getExclamationTokenNode(): Node<ts.ExclamationToken> | undefined

Gets the exclamation token node or returns undefined if it doesn't exist.

getExclamationTokenNodeOrThrow(message?: string | (() => string)): Node<ts.ExclamationToken>

Gets the exclamation token node or throws.

setHasExclamationToken(value: boolean): this

Sets if this node has a exclamation token.

function ExclamationTokenableNode
import { ExclamationTokenableNode } from "https://deno.land/x/ts_morph@22.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<ExclamationTokenableNodeExtensionType>