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

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

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

Type Parameters

optional
Type extends NativeType = NativeType

Properties

optional
name: string

Name of the symbol, defaults to the key name in symbols object.

type: Type

The type of the foreign static value.

optional
optional: boolean = false

When true, dlopen will not fail if the symbol is not found. Instead, the symbol will be set to null.