Module

x/ts_morph/mod.ts>QuestionDotTokenableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface QuestionDotTokenableNode
import { type QuestionDotTokenableNode } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";

Methods

hasQuestionDotToken(): boolean

If it has a question dot token.

getQuestionDotTokenNode(): Node<ts.QuestionDotToken> | undefined

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

getQuestionDotTokenNodeOrThrow(message?: string | (() => string)): Node<ts.QuestionDotToken>

Gets the question dot token node or throws.

setHasQuestionDotToken(value: boolean): this

Sets if this node has a question dot token.

function QuestionDotTokenableNode
import { QuestionDotTokenableNode } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";

Type Parameters

T extends Constructor<QuestionDotTokenableNodeExtensionType>