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