From 778eb1da24ac77635ffbc24e05e826bca973199b Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Thu, 1 Sep 2022 20:31:05 +0300 Subject: fix(ext/ffi): Fix pointer types (#15730) --- cli/dts/lib.deno.unstable.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/dts/lib.deno.unstable.d.ts') 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 & Record & Record - & Record; + & Record; /** 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; -- cgit v1.2.3