@types/k6 0.43.1 → 0.43.3

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/crypto.d.ts +1 -1
  3. k6/html.d.ts +3 -3
  4. k6/http.d.ts +1 -1
  5. k6/index.d.ts +4 -4
  6. k6/package.json +3 -3
k6/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for k6 (https://k6.io/docs/).
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, 06 Mar 2023 08:32:30 GMT
11
+ * Last updated: Thu, 13 Apr 2023 08:32:47 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
k6/crypto.d.ts CHANGED
@@ -205,7 +205,7 @@ export type OutputEncoding = StringEncoding | BinaryEncoding;
205
205
 
206
206
  /**
207
207
  * Output type. Varies with output encoding.
208
- * @typeParam OE - Output encoding.
208
+ * @template OE - Output encoding.
209
209
  */
210
210
  export type Output<OE extends OutputEncoding> = OE extends StringEncoding
211
211
  ? string
k6/html.d.ts CHANGED
@@ -393,10 +393,10 @@ export interface Handler {
393
393
  export interface Mapper {
394
394
  /**
395
395
  * @param index - Current index.
396
- * @param element - Current element.
397
- * @returns Value element maps to.
396
+ * @param selection - Current selection.
397
+ * @returns Value selection maps to.
398
398
  */
399
- (index: number, element: Element): unknown;
399
+ (index: number, selection: Selection): unknown;
400
400
  }
401
401
 
402
402
  // === Attribute ===
k6/http.d.ts CHANGED
@@ -625,7 +625,7 @@ export type ResponseBody = string | bytes | null;
625
625
  /**
626
626
  * Refined response body.
627
627
  * Best possible type given `responseType` from request parameters.
628
- * @typeParam RT - `Params.responseType` value.
628
+ * @template RT - `Params.responseType` value.
629
629
  * @privateRemarks Default type is a union due to depending on program options.
630
630
  */
631
631
  export type RefinedResponseBody<RT extends ResponseType | undefined> = RT extends 'binary'
k6/index.d.ts CHANGED
@@ -54,7 +54,7 @@ import './net/grpc';
54
54
  /**
55
55
  * Run checks on a value.
56
56
  * https://k6.io/docs/javascript-api/k6/check-val-sets-tags/
57
- * @typeParam VT - Value type.
57
+ * @template VT - Value type.
58
58
  * @param val - Value to test.
59
59
  * @param sets - Tests (checks) to run on the value.
60
60
  * @param tags - Extra tags to attach to metrics emitted.
@@ -79,7 +79,7 @@ export function fail(err?: string): never;
79
79
  /**
80
80
  * Run code inside a group.
81
81
  * https://k6.io/docs/javascript-api/k6/group-name-fn/
82
- * @typeParam RT - Return type.
82
+ * @template RT - Return type.
83
83
  * @param name - Name of the group.
84
84
  * @param fn - Group body. Code to be executed in the group context.
85
85
  * @returns The return value of `fn`.
@@ -101,7 +101,7 @@ export function sleep(t: number): void;
101
101
 
102
102
  /**
103
103
  * Check procedure.
104
- * @typeParam VT - Value type.
104
+ * @template VT - Value type.
105
105
  */
106
106
  export interface Checker<VT> {
107
107
  /**
@@ -114,7 +114,7 @@ export interface Checker<VT> {
114
114
 
115
115
  /**
116
116
  * Named check procedures.
117
- * @typeParam VT - Value type.
117
+ * @template VT - Value type.
118
118
  */
119
119
  export interface Checkers<VT> {
120
120
  [description: string]: Checker<VT>;
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "0.43.1",
3
+ "version": "0.43.3",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -55,6 +55,6 @@
55
55
  },
56
56
  "scripts": {},
57
57
  "dependencies": {},
58
- "typesPublisherContentHash": "f70eecac5092144abe4576a222261e4596c7d6a912ab5e46c8413fdde6a0a7d4",
59
- "typeScriptVersion": "4.2"
58
+ "typesPublisherContentHash": "2cbfa702b37e2f3d5238d3b1b9b10788b402594bf74c75209901da48c302472c",
59
+ "typeScriptVersion": "4.3"
60
60
  }