Skip to main content
Module

x/ts_morph/ts_morph.d.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://deno.land/x/ts_morph@15.1.0/ts_morph.d.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(): 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/ts_morph@15.1.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<QuestionTokenableNodeExtensionType>