import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { ForeignFunction } = Deno;
The interface for a foreign function as defined by its parameter and result types.
Type Parameters
optional
Parameters extends readonly NativeType[] = readonly NativeType[]optional
Result extends NativeResultType = NativeResultTypeProperties
parameters: Parameters
The parameters of the foreign function.
result: Result
The result (return value) of the foreign function.
optional
nonblocking: NonBlockingWhen true
, function calls will run on a dedicated blocking thread and
will return a Promise
resolving to the result
.