Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>AwaitableNode

Compile your Deno project to run on Node.js.
Go to Latest
interface AwaitableNode
import { type AwaitableNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.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://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Type Parameters

T extends Constructor<AwaitableNodeExtensionType>