Skip to main content
Deno 2 is finally here 🎉️
Learn more
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://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";

Methods

isAwaited(): boolean

If it's an awaited node.

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

Gets the await token or undefined if none exists.

getAwaitKeywordOrThrow(): Node<ts.AwaitKeywordToken>

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

Type Parameters

T extends Constructor<AwaitableNodeExtensionType>