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 NativeResultType = NativeResultType, NonBlocking extends boolean = boolean> {
callback?: boolean;
name?: string;
nonblocking?: NonBlocking;
parameters: Parameters;
result: Result;
}

§Type Parameters

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

§Properties

§
callback?: boolean
[src]

When true, function calls can safely callback into JS or trigger a GC event. Default is false.

§
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]