Module

x/ts_morph/mod.ts>ExclamationTokenableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface ExclamationTokenableNode
import { type ExclamationTokenableNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.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://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";

Type Parameters

T extends Constructor<ExclamationTokenableNodeExtensionType>