Module

x/ts_morph/ts_morph.d.ts>AwaitableNode

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

Methods

isAwaited(): boolean

If it's an awaited node.

getAwaitKeyword(): Node<ts.AwaitKeyword> | undefined

Gets the await token or undefined if none exists.

getAwaitKeywordOrThrow(message?: string | (() => string)): Node<ts.AwaitKeyword>

Gets the await token or throws if none exists.

setIsAwaited(value: boolean): this

Sets if the node is awaited.

function AwaitableNode
import { AwaitableNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<AwaitableNodeExtensionType>