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

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.DynamicLibrary

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.DynamicLibrary
import { type Deno } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.unstable.d.ts";
const { DynamicLibrary } = Deno;

UNSTABLE: New API, yet to be vetted.

A dynamic library resource. Use Deno.dlopen to load a dynamic library and return this interface.

Properties

symbols: StaticForeignLibraryInterface<S>

All of the registered library along with functions for calling them.

Methods

close(): void

Removes the pointers associated with the library symbols.

Continuing to use symbols that are part of the library will lead to errors and crashes.

Calling this method will also immediately set any references to zero and will no longer keep Deno's process from exiting.