bun-types 1.1.28-canary.20240918T140535 → 1.1.28-canary.20240919T140511

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/ffi.d.ts +9 -0
  2. package/package.json +1 -1
package/ffi.d.ts CHANGED
@@ -337,6 +337,9 @@ declare module "bun:ffi" {
337
337
  */
338
338
  u64_fast = 16,
339
339
  function = 17,
340
+
341
+ napi_env = 18,
342
+ napi_value = 19,
340
343
  }
341
344
 
342
345
  type Pointer = number & { __pointer__: null };
@@ -372,6 +375,8 @@ declare module "bun:ffi" {
372
375
  [FFIType.i64_fast]: number | bigint;
373
376
  [FFIType.u64_fast]: number | bigint;
374
377
  [FFIType.function]: Pointer | JSCallback; // cannot be null
378
+ [FFIType.napi_env]: unknown;
379
+ [FFIType.napi_value]: unknown;
375
380
  }
376
381
  interface FFITypeToReturnsType {
377
382
  [FFIType.char]: number;
@@ -404,6 +409,8 @@ declare module "bun:ffi" {
404
409
  [FFIType.i64_fast]: number | bigint;
405
410
  [FFIType.u64_fast]: number | bigint;
406
411
  [FFIType.function]: Pointer | null;
412
+ [FFIType.napi_env]: unknown;
413
+ [FFIType.napi_value]: unknown;
407
414
  }
408
415
  interface FFITypeStringToType {
409
416
  ["char"]: FFIType.char;
@@ -436,6 +443,8 @@ declare module "bun:ffi" {
436
443
  ["function"]: FFIType.pointer; // for now
437
444
  ["usize"]: FFIType.uint64_t; // for now
438
445
  ["callback"]: FFIType.pointer; // for now
446
+ ["napi_env"]: never;
447
+ ["napi_value"]: unknown;
439
448
  }
440
449
 
441
450
  type FFITypeOrString = FFIType | keyof FFITypeStringToType;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.28-canary.20240918T140535",
2
+ "version": "1.1.28-canary.20240919T140511",
3
3
  "name": "bun-types",
4
4
  "license": "MIT",
5
5
  "main": "",