@types/k6 0.54.0 → 0.54.1

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 (3) hide show
  1. k6/README.md +1 -1
  2. k6/browser/index.d.ts +12 -13
  3. k6/package.json +2 -2
k6/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for k6 (https://grafana.com/docs/k6/lates
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 30 Sep 2024 10:08:47 GMT
11
+ * Last updated: Wed, 02 Oct 2024 08:39:47 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
k6/browser/index.d.ts CHANGED
@@ -393,19 +393,17 @@ export interface ScreenshotOptions {
393
393
  * - `mutation` - use a mutation observer
394
394
  * - `interval` - use a polling interval
395
395
  */
396
- export type PollingMethod = "raf" | "mutation" | "interval";
396
+ export type PollingMethod = number | "raf" | "mutation";
397
397
 
398
398
  export interface PollingOptions {
399
399
  /**
400
- * Polling method to use.
401
- * @default 'raf'
400
+ * If `polling` is `'raf'`, then `pageFunction` is constantly executed in
401
+ * `requestAnimationFrame` callback. If the `polling` is `'mutation'` it
402
+ * will be called when a change is made to the DOM tree. If `polling` is
403
+ * a number, then it is treated as an interval in milliseconds at which
404
+ * the function would be executed. Defaults to `raf`.
402
405
  */
403
- polling?: "raf" | "mutation" | "interval";
404
-
405
- /**
406
- * Polling interval in milliseconds if `polling` is set to `interval`.
407
- */
408
- interval?: number;
406
+ polling?: PollingMethod;
409
407
  }
410
408
 
411
409
  export interface ElementStateFilter {
@@ -3552,11 +3550,12 @@ export interface Page {
3552
3550
  options?: {
3553
3551
  /**
3554
3552
  * If `polling` is `'raf'`, then `pageFunction` is constantly executed in
3555
- * `requestAnimationFrame` callback. If `polling` is a number, then it is
3556
- * treated as an interval in milliseconds at which the function would be
3557
- * executed. Defaults to `raf`.
3553
+ * `requestAnimationFrame` callback. If the `polling` is `'mutation'` it
3554
+ * will be called when a change is made to the DOM tree. If `polling` is
3555
+ * a number, then it is treated as an interval in milliseconds at which
3556
+ * the function would be executed. Defaults to `raf`.
3558
3557
  */
3559
- polling?: number | "raf";
3558
+ polling?: PollingMethod;
3560
3559
 
3561
3560
  /**
3562
3561
  * Maximum time in milliseconds. Defaults to `30` seconds. Default is
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "0.54.0",
3
+ "version": "0.54.1",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -61,6 +61,6 @@
61
61
  },
62
62
  "scripts": {},
63
63
  "dependencies": {},
64
- "typesPublisherContentHash": "117f96c1bd174240bb9f518388a69fc69bbb14dd874730e2db3ea53c0513b9c6",
64
+ "typesPublisherContentHash": "16df1d4804829cafe4d54bc250f82dc44d94a5df3a0b67262eaf6ffa33f024c7",
65
65
  "typeScriptVersion": "4.8"
66
66
  }