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

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

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

A utility type that infers a foreign library interface.

definition: [K in keyof T]: T[K]["optional"] extends true ? StaticForeignSymbol<T[K]> | null : StaticForeignSymbol<T[K]>