bun-types 0.1.3 → 0.1.4

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/package.json +1 -1
  2. package/types.d.ts +12 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Type definitions for bun.js",
5
5
  "types": "types.d.ts",
6
6
  "files": [
package/types.d.ts CHANGED
@@ -3311,7 +3311,7 @@ declare module "bun:ffi" {
3311
3311
  *
3312
3312
  * Must be a value between -127 and 127
3313
3313
  *
3314
- * When passing to a FFI function (C ABI), type coercsion is not performed.
3314
+ * When passing to a FFI function (C ABI), type coercion is not performed.
3315
3315
  *
3316
3316
  * In C:
3317
3317
  * ```c
@@ -3330,7 +3330,7 @@ declare module "bun:ffi" {
3330
3330
  *
3331
3331
  * Must be a value between -127 and 127
3332
3332
  *
3333
- * When passing to a FFI function (C ABI), type coercsion is not performed.
3333
+ * When passing to a FFI function (C ABI), type coercion is not performed.
3334
3334
  *
3335
3335
  * In C:
3336
3336
  * ```c
@@ -3350,7 +3350,7 @@ declare module "bun:ffi" {
3350
3350
  *
3351
3351
  * Must be a value between 0 and 255
3352
3352
  *
3353
- * When passing to a FFI function (C ABI), type coercsion is not performed.
3353
+ * When passing to a FFI function (C ABI), type coercion is not performed.
3354
3354
  *
3355
3355
  * In C:
3356
3356
  * ```c
@@ -3368,7 +3368,7 @@ declare module "bun:ffi" {
3368
3368
  *
3369
3369
  * Must be a value between 0 and 255
3370
3370
  *
3371
- * When passing to a FFI function (C ABI), type coercsion is not performed.
3371
+ * When passing to a FFI function (C ABI), type coercion is not performed.
3372
3372
  *
3373
3373
  * In C:
3374
3374
  * ```c
@@ -3387,7 +3387,7 @@ declare module "bun:ffi" {
3387
3387
  *
3388
3388
  * Must be a value between -32768 and 32767
3389
3389
  *
3390
- * When passing to a FFI function (C ABI), type coercsion is not performed.
3390
+ * When passing to a FFI function (C ABI), type coercion is not performed.
3391
3391
  *
3392
3392
  * In C:
3393
3393
  * ```c
@@ -3406,7 +3406,7 @@ declare module "bun:ffi" {
3406
3406
  *
3407
3407
  * Must be a value between -32768 and 32767
3408
3408
  *
3409
- * When passing to a FFI function (C ABI), type coercsion is not performed.
3409
+ * When passing to a FFI function (C ABI), type coercion is not performed.
3410
3410
  *
3411
3411
  * In C:
3412
3412
  * ```c
@@ -3426,7 +3426,7 @@ declare module "bun:ffi" {
3426
3426
  *
3427
3427
  * Must be a value between 0 and 65535, inclusive.
3428
3428
  *
3429
- * When passing to a FFI function (C ABI), type coercsion is not performed.
3429
+ * When passing to a FFI function (C ABI), type coercion is not performed.
3430
3430
  *
3431
3431
  * In C:
3432
3432
  * ```c
@@ -3445,7 +3445,7 @@ declare module "bun:ffi" {
3445
3445
  *
3446
3446
  * Must be a value between 0 and 65535, inclusive.
3447
3447
  *
3448
- * When passing to a FFI function (C ABI), type coercsion is not performed.
3448
+ * When passing to a FFI function (C ABI), type coercion is not performed.
3449
3449
  *
3450
3450
  * In C:
3451
3451
  * ```c
@@ -8740,7 +8740,7 @@ declare module "node:process" {
8740
8740
  interface BlobInterface {
8741
8741
  text(): Promise<string>;
8742
8742
  arrayBuffer(): Promise<ArrayBuffer>;
8743
- json(): Promise<JSON>;
8743
+ json<TJSONReturnType = unknown>(): Promise<TJSONReturnType>;
8744
8744
  }
8745
8745
 
8746
8746
  type BlobPart = string | Blob | ArrayBufferView | ArrayBuffer;
@@ -8835,7 +8835,7 @@ declare class Blob implements BlobInterface {
8835
8835
  * This first decodes the data from UTF-8, then parses it as JSON.
8836
8836
  *
8837
8837
  */
8838
- json(): Promise<JSON>;
8838
+ json<TJSONReturnType = unknown>(): Promise<TJSONReturnType>;
8839
8839
 
8840
8840
  type: string;
8841
8841
  size: number;
@@ -8954,7 +8954,7 @@ declare class Response implements BlobInterface {
8954
8954
  * This first decodes the data from UTF-8, then parses it as JSON.
8955
8955
  *
8956
8956
  */
8957
- json(): Promise<JSON>;
8957
+ json<TJSONReturnType = unknown>(): Promise<TJSONReturnType>;
8958
8958
 
8959
8959
  /**
8960
8960
  * Read the data from the Response as a Blob.
@@ -9161,7 +9161,7 @@ declare class Request implements BlobInterface {
9161
9161
  * This first decodes the data from UTF-8, then parses it as JSON.
9162
9162
  *
9163
9163
  */
9164
- json(): Promise<JSON>;
9164
+ json<TJSONReturnType = unknown>(): Promise<TJSONReturnType>;
9165
9165
 
9166
9166
  /**
9167
9167
  * Consume the [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) body as a `Blob`.