Skip to main content
Module

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

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

Methods

getTypeNode(): TypeNode | undefined

Gets the type node or undefined if none exists.

getTypeNodeOrThrow(message?: string | (() => string)): TypeNode

Gets the type node or throws if none exists.

setType(textOrWriterFunction: string | WriterFunction): this

Sets the type.

removeType(): this

Removes the type.

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

Type Parameters

T extends Constructor<TypedNodeExtensionType>