Skip to main content
interface Deno.ForeignFunction
Unstable

A foreign function as defined by its parameter and result types

Type Parameters

optional
Parameters extends readonly NativeType[] = readonly NativeType[]
optional
Result extends NativeType = NativeType
optional
NonBlocking extends boolean = boolean

Properties

optional
name: string

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

parameters: Parameters
result: Result
optional
nonblocking: NonBlocking

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