Skip to main content
Module

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

Compile your Deno project to run on Node.js.
Latest
interface AsyncableNode
import { type AsyncableNode } from "https://deno.land/x/deno2node@v1.12.0/src/deps.deno.ts";

Methods

isAsync(): boolean

If it's async.

getAsyncKeyword(): Node<ts.AsyncKeyword> | undefined

Gets the async keyword or undefined if none exists.

getAsyncKeywordOrThrow(message?: string | (() => string)): Node<ts.AsyncKeyword>

Gets the async keyword or throws if none exists.

setIsAsync(value: boolean): this

Sets if the node is async.

function AsyncableNode
import { AsyncableNode } from "https://deno.land/x/deno2node@v1.12.0/src/deps.deno.ts";

Type Parameters

T extends Constructor<AsyncableNodeExtensionType>