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

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

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

Type Parameters

T extends Constructor<GeneratorableNodeExtensionType>