Skip to main content
Module

x/ts_morph/mod.ts>AsyncableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface AsyncableNode
import { type AsyncableNode } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Methods

isAsync(): boolean

If it's async.

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

Gets the async keyword or undefined if none exists.

getAsyncKeywordOrThrow(): 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/ts_morph@15.1.0/mod.ts";

Type Parameters

T extends Constructor<AsyncableNodeExtensionType>