Module

x/ts_morph/mod.ts>GeneratorableNode

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

Methods

isGenerator(): boolean

If it's a generator function.

getAsteriskToken(): Node<ts.AsteriskToken> | undefined

Gets the asterisk token or undefined if none exists.

getAsteriskTokenOrThrow(message?: string | (() => string)): Node<ts.AsteriskToken>

Gets the asterisk token or throws if none exists.

setIsGenerator(value: boolean): this

Sets if the node is a generator.

function GeneratorableNode
import { GeneratorableNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts";

Type Parameters

T extends Constructor<GeneratorableNodeExtensionType>