Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.ForeignFunction

A foreign function as defined by its parameter and result types

interface ForeignFunction <Parameters extends readonly NativeType[] = readonly NativeType[], Result extends NativeType = NativeType, NonBlocking extends boolean = boolean> {
name?: string;
nonblocking?: NonBlocking;
parameters: Parameters;
result: Result;
}

§Type Parameters

§
Parameters extends readonly NativeType[] = readonly NativeType[]
[src]
§
Result extends NativeType = NativeType
[src]
§
NonBlocking extends boolean = boolean
[src]

§Properties

§
name?: string
[src]

Name of the symbol, defaults to the key name in symbols object.

§
nonblocking?: NonBlocking
[src]

When true, function calls will run on a dedicated blocking thread and will return a Promise resolving to the result.

§
parameters: Parameters
[src]
§
result: Result
[src]