@types/k6 0.35.2 → 0.36.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 (4) hide show
  1. k6/README.md +1 -1
  2. k6/execution.d.ts +16 -0
  3. k6/index.d.ts +1 -1
  4. k6/package.json +2 -2
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, 29 Nov 2021 09:01:06 GMT
11
+ * Last updated: Mon, 24 Jan 2022 13:31:30 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
k6/execution.d.ts CHANGED
@@ -59,6 +59,22 @@ declare namespace execution {
59
59
  currentTestRunDuration: number;
60
60
  };
61
61
 
62
+ /**
63
+ * Control the test execution.
64
+ */
65
+ const test: {
66
+ /**
67
+ * Aborts the test run with the exit code 108.
68
+ * https://k6.io/docs/javascript-api/k6-execution/#test
69
+ * @param input - Aborted message.
70
+ * @example
71
+ * import exec from "k6/execution";
72
+ * exec.test.abort();
73
+ * exec.test.abort('this is the reason');
74
+ */
75
+ abort(input?: string): void;
76
+ };
77
+
62
78
  /**
63
79
  * Information about the current virtual user.
64
80
  */
k6/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for k6 0.35
1
+ // Type definitions for k6 0.36
2
2
  // Project: https://k6.io/docs/
3
3
  // Definitions by: na-- <https://github.com/na-->
4
4
  // Ivan Mirić <https://github.com/imiric>
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "0.35.2",
3
+ "version": "0.36.0",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -50,6 +50,6 @@
50
50
  },
51
51
  "scripts": {},
52
52
  "dependencies": {},
53
- "typesPublisherContentHash": "ca7d040146a9286e432dcc648e2f7666b684edc2c55a2d9bd1df0e9c99154716",
53
+ "typesPublisherContentHash": "010e15b4ef6fd0057dab81bd5cefb66c8fb4febb9183a0a6fa44c6842e878eb1",
54
54
  "typeScriptVersion": "3.8"
55
55
  }