@types/k6 0.45.1 → 0.45.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.
- k6/README.md +1 -1
- k6/experimental/grpc.d.ts +4 -5
- k6/index.d.ts +9 -0
- 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:
|
|
11
|
+
* Last updated: Fri, 11 Aug 2023 14:02:47 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
k6/experimental/grpc.d.ts
CHANGED
|
@@ -81,22 +81,21 @@ declare namespace grpc {
|
|
|
81
81
|
* StreamEvent describes the possible events that can be emitted
|
|
82
82
|
* by a gRPC stream.
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
type StreamEvent =
|
|
85
85
|
/**
|
|
86
86
|
* Event fired when data has been received from the server.
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
| 'data'
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Event fired when a stream has been closed due to an error.
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
| 'error'
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* Event fired when the stream closes.
|
|
97
97
|
*/
|
|
98
|
-
|
|
99
|
-
}
|
|
98
|
+
| 'end';
|
|
100
99
|
|
|
101
100
|
/**
|
|
102
101
|
* Stream allows you to use streaming RPCs.
|
k6/index.d.ts
CHANGED
|
@@ -94,6 +94,15 @@ export function fail(err?: string): never;
|
|
|
94
94
|
*/
|
|
95
95
|
export function group<RT>(name: string, fn: () => RT): RT;
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Set seed to get a reproducible pseudo-random number using Math.random.
|
|
99
|
+
* https://k6.io/docs/javascript-api/k6/randomseed/
|
|
100
|
+
* @param int - The seed value.
|
|
101
|
+
* @example
|
|
102
|
+
* randomSeed(123456789);
|
|
103
|
+
*/
|
|
104
|
+
export function randomseed(int: number): void;
|
|
105
|
+
|
|
97
106
|
/**
|
|
98
107
|
* Suspend VU execution for the specified duration.
|
|
99
108
|
* https://k6.io/docs/javascript-api/k6/sleep-t/
|
k6/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/k6",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.3",
|
|
4
4
|
"description": "TypeScript definitions for k6",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
},
|
|
61
61
|
"scripts": {},
|
|
62
62
|
"dependencies": {},
|
|
63
|
-
"typesPublisherContentHash": "
|
|
63
|
+
"typesPublisherContentHash": "b3b59581a7308fe9704f1cce58b5d7860ca71b2ba3f39fb1d4c9c1b04a69ae73",
|
|
64
64
|
"typeScriptVersion": "4.3"
|
|
65
65
|
}
|