@types/k6 0.51.0 → 0.52.0

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 (6) hide show
  1. k6/README.md +1 -1
  2. k6/browser.d.ts +3913 -0
  3. k6/experimental/browser.d.ts +991 -11
  4. k6/http.d.ts +2 -2
  5. k6/index.d.ts +1 -0
  6. k6/package.json +3 -3
k6/http.d.ts CHANGED
@@ -620,7 +620,7 @@ export interface RefinedResponse<RT extends ResponseType | undefined> extends Re
620
620
  /**
621
621
  * Response body.
622
622
  */
623
- export type ResponseBody = string | bytes | null;
623
+ export type ResponseBody = string | ArrayBuffer | null;
624
624
 
625
625
  /**
626
626
  * Refined response body.
@@ -628,7 +628,7 @@ export type ResponseBody = string | bytes | null;
628
628
  * @template RT - `Params.responseType` value.
629
629
  * @privateRemarks Default type is a union due to depending on program options.
630
630
  */
631
- export type RefinedResponseBody<RT extends ResponseType | undefined> = RT extends "binary" ? bytes
631
+ export type RefinedResponseBody<RT extends ResponseType | undefined> = RT extends "binary" ? ArrayBuffer
632
632
  : RT extends "none" ? null
633
633
  : RT extends "text" ? string
634
634
  : RT extends undefined ? string | null
k6/index.d.ts CHANGED
@@ -20,6 +20,7 @@
20
20
  import "./global"; // Type global environment
21
21
 
22
22
  // Expose everything to autoimport
23
+ import "./browser";
23
24
  import "./crypto";
24
25
  import "./data";
25
26
  import "./encoding";
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -60,6 +60,6 @@
60
60
  },
61
61
  "scripts": {},
62
62
  "dependencies": {},
63
- "typesPublisherContentHash": "fd17fedc4161ea6cdb1d78db41100cc597d5c251769b71a824af1faaabbe4ff1",
64
- "typeScriptVersion": "4.7"
63
+ "typesPublisherContentHash": "c77eb5d37a165f06102b569ae717ea8b899b5197a284ee88298683ce3ae51dd4",
64
+ "typeScriptVersion": "4.8"
65
65
  }