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> {
name?: string;
nonblocking?: NonBlocking;
parameters: Parameters;
result: Result;
}

§Type Parameters

§
Parameters extends readonly NativeType[] = readonly 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]