diff options
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 9 |
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 |