denoland / deno_bindgen

Write high-level Deno FFI libraries in Rust.
MIT License
274 stars 28 forks source link

Argument of type 'bigint' is not assignable to parameter of type 'PointerObject'.deno-ts(2345) #119

Closed denizdogan closed 1 year ago

denizdogan commented 1 year ago
$ deno --version
deno 1.31.1 (release, aarch64-apple-darwin)
v8 11.0.226.13
typescript 4.9.4

Error appears here:

function readPointer(v: any): Uint8Array {
  const ptr = new Deno.UnsafePointerView(v as bigint) // <-- here

I'm just assuming it's because of this change:

https://deno.com/blog/v1.31#breaking-change-in-ffi-api

denizdogan commented 1 year ago

Looks like PR's #117 and #118 address this issue. I'll leave the issue up until one of them gets merged.

lino-levan commented 1 year ago

118 was merged (in favor of #117), I believe this should be closed as well