@types/k6 0.37.1 → 0.38.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 (5) hide show
  1. k6/README.md +1 -1
  2. k6/execution.d.ts +4 -0
  3. k6/index.d.ts +1 -1
  4. k6/options.d.ts +4 -1
  5. 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: Fri, 22 Jul 2022 09:02:19 GMT
11
+ * Last updated: Wed, 31 Aug 2022 14:02:39 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
k6/execution.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { Options } from './options';
2
+
1
3
  /*
2
4
  * The execution module provides information about the current test execution state.
3
5
  * https://k6.io/docs/javascript-api/k6-execution/
@@ -73,6 +75,8 @@ declare namespace execution {
73
75
  * exec.test.abort('this is the reason');
74
76
  */
75
77
  abort(input?: string): void;
78
+
79
+ options: Options;
76
80
  };
77
81
 
78
82
  /**
k6/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for k6 0.37
1
+ // Type definitions for k6 0.38
2
2
  // Project: https://k6.io/docs/
3
3
  // Definitions by: na-- <https://github.com/na-->
4
4
  // Mihail Stoykov <https://github.com/MStoykov>
k6/options.d.ts CHANGED
@@ -179,10 +179,13 @@ export interface Certificate {
179
179
  cert: string;
180
180
 
181
181
  /** Domains certificate is valid for. */
182
- domains: string[];
182
+ domains?: string[];
183
183
 
184
184
  /** PEM encoded certificate key. */
185
185
  key: string;
186
+
187
+ /** PEM passphrase. */
188
+ password?: string;
186
189
  }
187
190
 
188
191
  export type ExecutorOptions = "shared-iterations" | "per-vu-iterations" | "constant-vus" | "ramping-vus" | "constant-arrival-rate" | "ramping-arrival-rate" | "externally-controlled";
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "0.37.1",
3
+ "version": "0.38.0",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "7b9fbae379b6ad283cac5f73c4d4efb4fa8e17ae9fef780558147c2eb006f880",
49
- "typeScriptVersion": "4.0"
48
+ "typesPublisherContentHash": "9e87ca39f1c353c08783f7f964cea69fc889f6a0281b14f45e0a6dc313424ffc",
49
+ "typeScriptVersion": "4.1"
50
50
  }