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

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.UnsafeFnPointer

A modern runtime for JavaScript and TypeScript.
Latest
class Deno.UnsafeFnPointer
import { Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { UnsafeFnPointer } = Deno;

An unsafe pointer to a function, for calling functions that are not present as symbols.

Constructors

new
UnsafeFnPointer(pointer: PointerObject<NoInfer<Omit<Fn, "nonblocking">>>, definition: Fn)

Properties

Call the foreign function.

definition: Fn

The definition of the function.

pointer: PointerObject<Fn>

The pointer to the function.