summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-08-23 09:16:43 +0530
committerGitHub <noreply@github.com>2022-08-23 09:16:43 +0530
commite34260c5b05f2a93f695d807b7cb54a50605885e (patch)
tree3dac23f50bcc9bc86e85497e707a0a5c07b73df7 /cli/dts/lib.deno.unstable.d.ts
parentd0c54777311d2cc30b824f397b7541dca80875fa (diff)
BREAKING(ext/ffi): specialized `buffer` type (#15518)
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index d88d86cd3..29e64379e 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -395,6 +395,8 @@ declare namespace Deno {
type NativePointerType = "pointer";
+ type NativeBufferType = "buffer";
+
type NativeFunctionType = "function";
type NativeVoidType = "void";
@@ -407,6 +409,7 @@ declare namespace Deno {
| NativeNumberType
| NativeBigIntType
| NativePointerType
+ | NativeBufferType
| NativeFunctionType;
/** @category FFI */
@@ -416,8 +419,9 @@ declare namespace Deno {
type ToNativeTypeMap =
& Record<NativeNumberType, number>
& Record<NativeBigIntType, PointerValue>
- & Record<NativePointerType, TypedArray | PointerValue | null>
- & Record<NativeFunctionType, PointerValue | null>;
+ & Record<NativePointerType, PointerValue | null>
+ & Record<NativeFunctionType, PointerValue | null>
+ & Record<NativeBufferType, TypedArray>;
/** Type conversion for foreign symbol parameters and unsafe callback return
* types.
@@ -452,6 +456,7 @@ declare namespace Deno {
& Record<NativeNumberType, number>
& Record<NativeBigIntType, PointerValue>
& Record<NativePointerType, PointerValue>
+ & Record<NativeBufferType, PointerValue>
& Record<NativeFunctionType, PointerValue>;
/** Type conversion for foreign symbol return types and unsafe callback