bun-types 1.1.28-canary.20240919T140511 → 1.1.29-canary.20240920T140517

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 +6 -2
  2. package/package.json +1 -1
package/ffi.d.ts CHANGED
@@ -340,6 +340,7 @@ declare module "bun:ffi" {
340
340
 
341
341
  napi_env = 18,
342
342
  napi_value = 19,
343
+ buffer = 20,
343
344
  }
344
345
 
345
346
  type Pointer = number & { __pointer__: null };
@@ -377,6 +378,7 @@ declare module "bun:ffi" {
377
378
  [FFIType.function]: Pointer | JSCallback; // cannot be null
378
379
  [FFIType.napi_env]: unknown;
379
380
  [FFIType.napi_value]: unknown;
381
+ [FFIType.buffer]: NodeJS.TypedArray | DataView;
380
382
  }
381
383
  interface FFITypeToReturnsType {
382
384
  [FFIType.char]: number;
@@ -411,6 +413,7 @@ declare module "bun:ffi" {
411
413
  [FFIType.function]: Pointer | null;
412
414
  [FFIType.napi_env]: unknown;
413
415
  [FFIType.napi_value]: unknown;
416
+ [FFIType.buffer]: NodeJS.TypedArray | DataView;
414
417
  }
415
418
  interface FFITypeStringToType {
416
419
  ["char"]: FFIType.char;
@@ -443,8 +446,9 @@ declare module "bun:ffi" {
443
446
  ["function"]: FFIType.pointer; // for now
444
447
  ["usize"]: FFIType.uint64_t; // for now
445
448
  ["callback"]: FFIType.pointer; // for now
446
- ["napi_env"]: never;
447
- ["napi_value"]: unknown;
449
+ ["napi_env"]: FFIType.napi_env;
450
+ ["napi_value"]: FFIType.napi_value;
451
+ ["buffer"]: FFIType.buffer;
448
452
  }
449
453
 
450
454
  type FFITypeOrString = FFIType | keyof FFITypeStringToType;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.28-canary.20240919T140511",
2
+ "version": "1.1.29-canary.20240920T140517",
3
3
  "name": "bun-types",
4
4
  "license": "MIT",
5
5
  "main": "",