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

x/deno2node/src/deps.deno.ts>ExclamationTokenableNode

Compile your Deno project to run on Node.js.
Go to Latest
interface ExclamationTokenableNode
import { type ExclamationTokenableNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.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/deno2node@v1.10.0/src/deps.deno.ts";

Type Parameters

T extends Constructor<ExclamationTokenableNodeExtensionType>