Skip to main content
Module

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

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

Methods

getReturnType(): Type

Gets the return type.

getReturnTypeNode(): TypeNode | undefined

Gets the return type node or undefined if none exists.

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

Gets the return type node or throws if none exists.

setReturnType(textOrWriterFunction: string | WriterFunction): this

Sets the return type of the node.

removeReturnType(): this

Removes the return type.

getSignature(): Signature

Gets the signature of the node from the type checker.

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

Type Parameters

T extends Constructor<ReturnTypedNodeExtensionType>