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

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

Compile your Deno project to run on Node.js.
Go to Latest
interface QuestionTokenableNode
import { type QuestionTokenableNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Methods

hasQuestionToken(): boolean

If it has a question token.

getQuestionTokenNode(): Node<ts.QuestionToken> | undefined

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

getQuestionTokenNodeOrThrow(message?: string | (() => string)): Node<ts.QuestionToken>

Gets the question token node or throws.

setHasQuestionToken(value: boolean): this

Sets if this node has a question token.

function QuestionTokenableNode
import { QuestionTokenableNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Type Parameters

T extends Constructor<QuestionTokenableNodeExtensionType>