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

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

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

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

Properties

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.