From 659a918f39c516fe90cab25facb02325e5e72371 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Fri, 21 Oct 2022 14:54:01 +0300 Subject: fix(ext/ffi): Use PointerValue in UnsafePointerView and UnsafeFnPointer types (#16354) There were still remaining bigint usages for pointers. This now finally fixes all of them, there is only the one `type PointerValue = number | bigint;` line that references `bigint` in the unstable type definition file. --- cli/dts/lib.deno.unstable.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 466e72c8f..72f5fc058 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -696,9 +696,9 @@ declare namespace Deno { * @category FFI */ export class UnsafePointerView { - constructor(pointer: bigint); + constructor(pointer: PointerValue); - pointer: bigint; + pointer: PointerValue; /** Gets a boolean at the specified byte offset from the pointer. */ getBool(offset?: number): boolean; @@ -752,10 +752,10 @@ declare namespace Deno { * @category FFI */ export class UnsafeFnPointer { - pointer: bigint; + pointer: PointerValue; definition: Fn; - constructor(pointer: bigint, definition: Fn); + constructor(pointer: PointerValue, definition: Fn); call: FromForeignFunction; } @@ -806,7 +806,7 @@ declare namespace Deno { >, ); - pointer: bigint; + pointer: PointerValue; definition: Definition; callback: UnsafeCallbackFunction< Definition["parameters"], -- cgit v1.2.3