interface Deno.ForeignFunction
The interface for a foreign function as defined by its parameter and result types.
Type Parameters Jump to heading
Jump to headingParameters extends readonly NativeType[] = readonly NativeType[]
Jump to headingResult extends NativeResultType = NativeResultType
Jump to headingNonBlocking extends boolean = boolean
Properties Jump to heading
optional
Jump to headingname: string
Name of the symbol.
Defaults to the key name in symbols object.
The parameters of the foreign function.
The result (return value) of the foreign function.
optional
Jump to headingnonblocking: NonBlocking
When true
, function calls will run on a dedicated blocking thread and
will return a Promise
resolving to the result
.
optional
Jump to headingoptional: boolean = false
When true
, dlopen will not fail if the symbol is not found.
Instead, the symbol will be set to null
.