mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix(ext/ffi): types for nonblocking FFI (#12345)
This commit is contained in:
parent
a7baf5f2bb
commit
423b02d889
1 changed files with 2 additions and 0 deletions
2
cli/dts/lib.deno.unstable.d.ts
vendored
2
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -123,6 +123,8 @@ declare namespace Deno {
|
||||||
export interface ForeignFunction {
|
export interface ForeignFunction {
|
||||||
parameters: (NativeType | "buffer")[];
|
parameters: (NativeType | "buffer")[];
|
||||||
result: NativeType;
|
result: NativeType;
|
||||||
|
/** When true, function calls will run on a dedicated blocking thread and will return a Promise resolving to the `result`. */
|
||||||
|
nonblocking?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** A dynamic library resource */
|
/** A dynamic library resource */
|
||||||
|
|
Loading…
Add table
Reference in a new issue