@types/k6 0.49.0 → 0.49.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/experimental/browser.d.ts +5 -2
  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, 29 Jan 2024 10:07:04 GMT
11
+ * Last updated: Wed, 06 Mar 2024 10:07:13 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -1170,7 +1170,10 @@ export interface ElementHandle extends JSHandle {
1170
1170
  * @param selector A selector to query for.
1171
1171
  * @param options Wait options.
1172
1172
  */
1173
- waitForSelector(selector: string, options?: { state?: ElementState } & StrictnessOptions & TimeoutOptions): void;
1173
+ waitForSelector(
1174
+ selector: string,
1175
+ options?: { state?: ElementState } & StrictnessOptions & TimeoutOptions,
1176
+ ): ElementHandle;
1174
1177
  }
1175
1178
 
1176
1179
  /**
@@ -3370,7 +3373,7 @@ export interface Page {
3370
3373
  * To wait for an element on the page, use locator.waitFor([options]).
3371
3374
  * @param selector A selector to query for.
3372
3375
  */
3373
- $(selector: string): ElementHandle;
3376
+ $(selector: string): ElementHandle | null;
3374
3377
 
3375
3378
  /**
3376
3379
  * **NOTE** Use locator-based page.locator(selector[, options]) instead.
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "0.49.0",
3
+ "version": "0.49.1",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -65,6 +65,6 @@
65
65
  },
66
66
  "scripts": {},
67
67
  "dependencies": {},
68
- "typesPublisherContentHash": "0d8d2b1f53185323eb5e05154ba6e59b216bf4cb81d3074f93b14aa093219244",
68
+ "typesPublisherContentHash": "38576bcdabaade63e1720f376727b3741430e6ab2b18f161782b50417e5b295f",
69
69
  "typeScriptVersion": "4.6"
70
70
  }