Deno.StaticForeignLibraryInterface
UNSTABLE: New API, yet to be vetted.
A utility type that infers a foreign library interface.
type StaticForeignLibraryInterface<T extends ForeignLibraryInterface> = [K in keyof T]: T[K]["optional"] extends true ? StaticForeignSymbol<T[K]> | null : StaticForeignSymbol<T[K]>;
§Type Parameters
§
T extends ForeignLibraryInterface
[src]§Type
§
[K in keyof T]: T[K]["optional"] extends true ? StaticForeignSymbol<T[K]> | null : StaticForeignSymbol<T[K]>
[src]