Module

x/ts_morph/ts_morph.d.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://dotland.deno.dev/x/ts_morph@21.0.0/ts_morph.d.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://dotland.deno.dev/x/ts_morph@21.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<AsyncableNodeExtensionType>