Module

x/ts_morph/mod.ts>QuestionTokenableNode

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

Type Parameters

T extends Constructor<QuestionTokenableNodeExtensionType>