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.
Type Parameters
T extends ForeignLibraryInterface
definition: [K in keyof T]: T[K]["optional"] extends true ? StaticForeignSymbol<T[K]> | null : StaticForeignSymbol<T[K]>