diff options
author | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2022-09-01 20:31:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 23:01:05 +0530 |
commit | 778eb1da24ac77635ffbc24e05e826bca973199b (patch) | |
tree | 5b141a85161b58389aabc24e6894739ad77ab2b2 /cli | |
parent | 3a601e56f4401fefb235b01e1405f697397b9790 (diff) |
fix(ext/ffi): Fix pointer types (#15730)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 1ef3508a5..09380387b 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -421,7 +421,7 @@ declare namespace Deno { & Record<NativeBigIntType, PointerValue> & Record<NativePointerType, PointerValue | null> & Record<NativeFunctionType, PointerValue | null> - & Record<NativeBufferType, TypedArray>; + & Record<NativeBufferType, TypedArray | null>; /** Type conversion for foreign symbol parameters and unsafe callback return * types. @@ -633,12 +633,12 @@ declare namespace Deno { /** Gets a C string (null terminated string) at the specified byte offset from the pointer. */ getCString(offset?: number): string; /** Gets a C string (null terminated string) at the specified byte offset from the specified pointer. */ - static getCString(pointer: BigInt, offset?: number): string; + static getCString(pointer: PointerValue, offset?: number): string; /** Gets an ArrayBuffer of length `byteLength` at the specified byte offset from the pointer. */ getArrayBuffer(byteLength: number, offset?: number): ArrayBuffer; /** Gets an ArrayBuffer of length `byteLength` at the specified byte offset from the specified pointer. */ static getArrayBuffer( - pointer: BigInt, + pointer: PointerValue, byteLength: number, offset?: number, ): ArrayBuffer; @@ -646,7 +646,7 @@ declare namespace Deno { copyInto(destination: TypedArray, offset?: number): void; /** Copies the memory of the specified pointer into a typed array. Length is determined from the typed array's `byteLength`. Also takes optional byte offset from the pointer. */ static copyInto( - pointer: BigInt, + pointer: PointerValue, destination: TypedArray, offset?: number, ): void; |