@types/k6 0.46.2 → 0.47.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.
@@ -13,16 +13,11 @@ export type EvaluationArgument = object;
13
13
 
14
14
  export type PageFunction<Arg, R> = string | ((arg: Unboxed<Arg>) => R);
15
15
 
16
- export type Unboxed<Arg> = Arg extends [infer A0, infer A1]
17
- ? [Unboxed<A0>, Unboxed<A1>]
18
- : Arg extends [infer A0, infer A1, infer A2]
19
- ? [Unboxed<A0>, Unboxed<A1>, Unboxed<A2>]
20
- : Arg extends [infer A0, infer A1, infer A2, infer A3]
21
- ? [Unboxed<A0>, Unboxed<A1>, Unboxed<A2>, Unboxed<A3>]
22
- : Arg extends Array<infer T>
23
- ? Array<Unboxed<T>>
24
- : Arg extends object
25
- ? { [Key in keyof Arg]: Unboxed<Arg[Key]> }
16
+ export type Unboxed<Arg> = Arg extends [infer A0, infer A1] ? [Unboxed<A0>, Unboxed<A1>]
17
+ : Arg extends [infer A0, infer A1, infer A2] ? [Unboxed<A0>, Unboxed<A1>, Unboxed<A2>]
18
+ : Arg extends [infer A0, infer A1, infer A2, infer A3] ? [Unboxed<A0>, Unboxed<A1>, Unboxed<A2>, Unboxed<A3>]
19
+ : Arg extends Array<infer T> ? Array<Unboxed<T>>
20
+ : Arg extends object ? { [Key in keyof Arg]: Unboxed<Arg[Key]> }
26
21
  : Arg;
27
22
 
28
23
  export interface SelectOptionsObject {
@@ -43,24 +38,24 @@ export interface SelectOptionsObject {
43
38
  }
44
39
 
45
40
  export type ResourceType =
46
- | 'document'
47
- | 'stylesheet'
48
- | 'image'
49
- | 'media'
50
- | 'font'
51
- | 'script'
52
- | 'texttrack'
53
- | 'xhr'
54
- | 'fetch'
55
- | 'eventsource'
56
- | 'websocket'
57
- | 'manifest'
58
- | 'other';
59
- export type MouseButton = 'left' | 'right' | 'middle';
60
- export type KeyboardModifier = 'Alt' | 'Control' | 'Meta' | 'Shift';
61
- export type ElementState = 'attached' | 'detached' | 'visible' | 'hidden';
62
- export type InputElementState = ElementState | 'enabled' | 'disabled' | 'editable';
63
- export type LifecycleEvent = 'load' | 'domcontentloaded' | 'networkidle';
41
+ | "document"
42
+ | "stylesheet"
43
+ | "image"
44
+ | "media"
45
+ | "font"
46
+ | "script"
47
+ | "texttrack"
48
+ | "xhr"
49
+ | "fetch"
50
+ | "eventsource"
51
+ | "websocket"
52
+ | "manifest"
53
+ | "other";
54
+ export type MouseButton = "left" | "right" | "middle";
55
+ export type KeyboardModifier = "Alt" | "Control" | "Meta" | "Shift";
56
+ export type ElementState = "attached" | "detached" | "visible" | "hidden";
57
+ export type InputElementState = ElementState | "enabled" | "disabled" | "editable";
58
+ export type LifecycleEvent = "load" | "domcontentloaded" | "networkidle";
64
59
 
65
60
  export interface TimeoutOptions {
66
61
  /**
@@ -125,14 +120,16 @@ export interface KeyboardModifierOptions {
125
120
  modifiers?: KeyboardModifier[];
126
121
  }
127
122
 
128
- export type KeyboardPressOptions = {
129
- /**
130
- * If set to `true` and a navigation occurs from performing this action, it
131
- * will not wait for it to complete. Defaults to `false`.
132
- */
133
- noWaitAfter?: boolean;
134
- } & EventSequenceOptions &
135
- TimeoutOptions;
123
+ export type KeyboardPressOptions =
124
+ & {
125
+ /**
126
+ * If set to `true` and a navigation occurs from performing this action, it
127
+ * will not wait for it to complete. Defaults to `false`.
128
+ */
129
+ noWaitAfter?: boolean;
130
+ }
131
+ & EventSequenceOptions
132
+ & TimeoutOptions;
136
133
 
137
134
  export type MouseMoveOptions = ElementClickOptions & KeyboardModifierOptions;
138
135
 
@@ -309,7 +306,7 @@ export interface Rect {
309
306
  height: number;
310
307
  }
311
308
 
312
- export type ImageFormat = 'jpeg' | 'png';
309
+ export type ImageFormat = "jpeg" | "png";
313
310
 
314
311
  export interface ScreenshotOptions {
315
312
  /**
@@ -343,14 +340,14 @@ export interface ScreenshotOptions {
343
340
  * - `mutation` - use a mutation observer
344
341
  * - `interval` - use a polling interval
345
342
  */
346
- export type PollingMethod = 'raf' | 'mutation' | 'interval';
343
+ export type PollingMethod = "raf" | "mutation" | "interval";
347
344
 
348
345
  export interface PollingOptions {
349
346
  /**
350
347
  * Polling method to use.
351
348
  * @default 'raf'
352
349
  */
353
- polling?: 'raf' | 'mutation' | 'interval';
350
+ polling?: "raf" | "mutation" | "interval";
354
351
 
355
352
  /**
356
353
  * Polling interval in milliseconds if `polling` is set to `interval`.
@@ -370,13 +367,22 @@ export interface ElementStateFilter {
370
367
  * BrowserPermissions defines all the possible permissions that can be granted
371
368
  * to the browser application.
372
369
  */
373
- export type BrowserPermissions = 'geolocation' | 'midi' | 'midi-sysex' |
374
- 'notifications' | 'camera' |
375
- 'microphone' | 'background-sync' |
376
- 'ambient-light-sensor' | 'accelerometer' |
377
- 'gyroscope' | 'magnetometer' |
378
- 'accessibility-events' | 'clipboard-read' |
379
- 'clipboard-write' | 'payment-handler';
370
+ export type BrowserPermissions =
371
+ | "geolocation"
372
+ | "midi"
373
+ | "midi-sysex"
374
+ | "notifications"
375
+ | "camera"
376
+ | "microphone"
377
+ | "background-sync"
378
+ | "ambient-light-sensor"
379
+ | "accelerometer"
380
+ | "gyroscope"
381
+ | "magnetometer"
382
+ | "accessibility-events"
383
+ | "clipboard-read"
384
+ | "clipboard-write"
385
+ | "payment-handler";
380
386
 
381
387
  export interface NewBrowserContextOptions {
382
388
  /**
@@ -390,7 +396,7 @@ export interface NewBrowserContextOptions {
390
396
  * are `'light'`, `'dark'`, and `'no-preference'`. Default to
391
397
  * `'light'`.
392
398
  */
393
- colorScheme?: 'light' | 'dark' | 'no-preference';
399
+ colorScheme?: "light" | "dark" | "no-preference";
394
400
 
395
401
  /**
396
402
  * Sets the resolution ratio in physical pixels to the resolution in
@@ -480,7 +486,7 @@ export interface NewBrowserContextOptions {
480
486
  * 'prefers-reduced-motion' media feature. Defaults to
481
487
  * `'no-preference'`.
482
488
  */
483
- reducedMotion?: 'reduce' | 'no-preference';
489
+ reducedMotion?: "reduce" | "no-preference";
484
490
 
485
491
  /**
486
492
  * Sets a window screen size for all pages in the context. It can
@@ -597,45 +603,52 @@ export interface BrowserContext {
597
603
  browser(): Browser;
598
604
 
599
605
  /**
600
- * Adds cookies into the `BrowserContext`.
606
+ * Adds {@link Cookie | cookies} into this {@link BrowserContext}.
607
+ *
608
+ * @param cookies The {@link Cookie | cookies} to add to this {@link BrowserContext}.
609
+ * @example
610
+ * ```js
611
+ * context.addCookies([
612
+ * { name: 'foo', value: 'foovalue', sameSite: 'Lax', url: 'https://k6.io' },
613
+ * { name: 'bar', value: 'barvalue', sameSite: 'Strict', domain: 'test.k6.io', path: '/bar' },
614
+ * ]);
615
+ * ```
601
616
  */
602
- addCookies(cookies: Array<{
603
- name: string,
604
-
605
- value: string,
606
-
607
- /**
608
- * either url or domain / path are required.
609
- */
610
- url?: string,
611
-
612
- /**
613
- * either url or domain / path are required.
614
- */
615
- domain?: string,
616
-
617
- /**
618
- * either url or domain / path are required.
619
- */
620
- path?: string,
621
-
622
- /**
623
- * Unix time in seconds.
624
- */
625
- expires?: number,
626
-
627
- httpOnly?: boolean,
628
-
629
- secure?: boolean,
630
-
631
- sameSite?: 'Strict' | 'Lax' | 'None',
632
- }>): void;
617
+ addCookies(cookies: Cookie[]): void;
633
618
 
634
619
  /**
635
- * Clear the `BrowserContext`'s cookies.
620
+ * Clears the {@link Cookie | cookies} in this {@link BrowserContext}.
621
+ *
622
+ * @example
623
+ * ```js
624
+ * context.addCookies([{ name: 'foo', value: 'bar', url: 'https://k6.io' }]);
625
+ * context.cookies().length; // 1
626
+ * context.clearCookies();
627
+ * context.cookies().length; // 0
628
+ * ```
636
629
  */
637
630
  clearCookies(): void;
638
631
 
632
+ /**
633
+ * Retrieves the {@link Cookie | cookies} in this {@link BrowserContext} filtered by provided URLs,
634
+ * or all {@link Cookie | cookies} if no URLs are provided.
635
+ *
636
+ * @param urls URLs to filter {@link Cookie | cookies} by.
637
+ * @returns An array of {@link Cookie | cookies}.
638
+ * @example
639
+ * ```js
640
+ * // Get all cookies in the browser context
641
+ * const cookies = context.cookies();
642
+ *
643
+ * // Get all cookies for the specified URLs
644
+ * const cookies = context.cookies('https://k6.io', 'https://test.k6.io');
645
+ *
646
+ * // Get all cookies for the specified URLs and filter by name
647
+ * const cookies = context.cookies('https://k6.io', 'https://test.k6.io').filter(c => c.name === 'foo');
648
+ * ```
649
+ */
650
+ cookies(...urls: string[]): Cookie[];
651
+
639
652
  /**
640
653
  * Clears all permission overrides for the `BrowserContext`.
641
654
  */
@@ -658,7 +671,7 @@ export interface BrowserContext {
658
671
  /**
659
672
  * The origin to grant permissions to, e.g. 'https://test.k6.com'.
660
673
  */
661
- origin: string,
674
+ origin: string;
662
675
  },
663
676
  ): void;
664
677
 
@@ -738,7 +751,6 @@ export interface BrowserContext {
738
751
  * always wait for 'close' or 'page' events.
739
752
  */
740
753
  event: string,
741
-
742
754
  /**
743
755
  * The `Page` or null event data will be passed to it and it must
744
756
  * return true to continue.
@@ -754,17 +766,156 @@ export interface BrowserContext {
754
766
  * If null is passed to predicate, this signals that the page is
755
767
  * closing.
756
768
  */
757
- predicate: (page: Page | null) => boolean,
769
+ predicate: (page: Page | null) => boolean;
758
770
 
759
771
  /**
760
772
  * Maximum time to wait in milliseconds. Pass 0 to disable timeout.
761
773
  * Defaults to 30000 milliseconds.
762
774
  */
763
- timeout?: number,
775
+ timeout?: number;
764
776
  },
765
777
  ): Page | null;
766
778
  }
767
779
 
780
+ /**
781
+ * {@link ConsoleMessage} objects are dispatched by page via the
782
+ * `page.on('console')` event. For each console message logged in the page,
783
+ * k6 browser delivers it to the registered handlers.
784
+ *
785
+ * ```js
786
+ * // Listen for all console log messages in the browser page and output them
787
+ * // in the test logs
788
+ * page.on('console', msg => console.log(msg.text()));
789
+ *
790
+ * // Listen for all console events and handle errors
791
+ * page.on('console', msg => {
792
+ * if (msg.type() === 'error')
793
+ * console.log(`Error text: "${msg.text()}"`);
794
+ * });
795
+ *
796
+ * // Deconstruct console log arguments
797
+ * await msg.args()[0].jsonValue(); // hello
798
+ * await msg.args()[1].jsonValue(); // 42
799
+ * ```
800
+ */
801
+ export interface ConsoleMessage {
802
+ /**
803
+ * List of arguments passed to a `console` function call. See also
804
+ * `page.on('console')`.
805
+ */
806
+ args(): JSHandle[];
807
+
808
+ /**
809
+ * The page that produced this console message, if any.
810
+ */
811
+ page(): null | Page;
812
+
813
+ /**
814
+ * The text of the console message.
815
+ */
816
+ text(): string;
817
+
818
+ /**
819
+ * One of the following values: `'log'`, `'debug'`, `'info'`, `'error'`,
820
+ * `'warning'`, `'dir'`, `'dirxml'`, `'table'`, `'trace'`, `'clear'`,
821
+ * `'startGroup'`, `'startGroupCollapsed'`, `'endGroup'`, `'assert'`,
822
+ * `'profile'`, `'profileEnd'`, `'count'`, `'timeEnd'`.
823
+ */
824
+ type(): string;
825
+ }
826
+
827
+ /**
828
+ * {@link Cookie} represents a cookie in a {@link BrowserContext}.
829
+ *
830
+ * @see
831
+ * {@link BrowserContext} has methods to {@link BrowserContext.addCookies | add}, {@link BrowserContext.cookies | query} and {@link BrowserContext.clearCookies | clear} cookies.
832
+ */
833
+ export interface Cookie {
834
+ /**
835
+ * The {@link Cookie | cookie}'s name.
836
+ *
837
+ * @defaultValue
838
+ * The default is `''`.
839
+ */
840
+ name: string;
841
+
842
+ /**
843
+ * The {@link Cookie | cookie}'s value.
844
+ *
845
+ * @defaultValue
846
+ * The default is `''`.
847
+ */
848
+ value: string;
849
+
850
+ /**
851
+ * The {@link Cookie | cookie}'s URL.
852
+ *
853
+ * Required unless one of {@link Cookie.domain | domain} or {@link Cookie.path | path} are specified.
854
+ */
855
+ url?: string;
856
+
857
+ /**
858
+ * The {@link Cookie | cookie}'s domain.
859
+ *
860
+ * Required unless one of {@link Cookie.url | url} or {@link Cookie.path | path} are specified.
861
+ */
862
+ domain?: string;
863
+
864
+ /**
865
+ * The {@link Cookie | cookie}'s path.
866
+ *
867
+ * Required unless one of {@link Cookie.url | url} or {@link Cookie.domain | domain} are specified.
868
+ *
869
+ * @defaultValue
870
+ * The default is `'/'`.
871
+ */
872
+ path?: string;
873
+
874
+ /**
875
+ * The {@link Cookie | cookie}'s expiration date as the number of seconds since the UNIX epoch.
876
+ *
877
+ * If omitted, the {@link Cookie | cookie} becomes a session cookie.
878
+ *
879
+ * @defaultValue
880
+ * The default is `-1`, meaning a session cookie.
881
+ */
882
+ expires?: number;
883
+
884
+ /**
885
+ * Whether the {@link Cookie | cookie} is http-only.
886
+ *
887
+ * @defaultValue
888
+ * The default is `false`.
889
+ */
890
+ httpOnly?: boolean;
891
+
892
+ /**
893
+ * Whether the {@link Cookie | cookie} is secure.
894
+ *
895
+ * @defaultValue
896
+ * The default is `false`.
897
+ */
898
+ secure?: boolean;
899
+
900
+ /**
901
+ * The {@link Cookie | cookie}'s same-site status.
902
+ *
903
+ * It can be one of `'Strict'`, `'Lax'`, or `'None'`.
904
+ *
905
+ * @defaultValue
906
+ * The default is `'Lax'`.
907
+ */
908
+ sameSite?: CookieSameSite;
909
+ }
910
+
911
+ /**
912
+ * CookieSameSite represents the same-site status of a {@link Cookie | cookie}.
913
+ *
914
+ * @defaultValue
915
+ * The default is `'Lax'`.
916
+ */
917
+ export type CookieSameSite = "Strict" | "Lax" | "None";
918
+
768
919
  /**
769
920
  * ElementHandle represents an in-page DOM element.
770
921
  */
@@ -1908,19 +2059,19 @@ export interface Page {
1908
2059
  * Emulates `'prefers-colors-scheme'` media feature, supported values are
1909
2060
  * `'light'`, `'dark'`, and `'no-preference'`.
1910
2061
  */
1911
- colorScheme?: 'light' | 'dark' | 'no-preference';
2062
+ colorScheme?: "light" | "dark" | "no-preference";
1912
2063
 
1913
2064
  /**
1914
2065
  * Changes the CSS media type of the page. The only allowed values are
1915
2066
  * `'screen'`, and `'print'`.
1916
2067
  */
1917
- media?: 'screen' | 'print';
2068
+ media?: "screen" | "print";
1918
2069
 
1919
2070
  /**
1920
2071
  * Emulates `'prefers-reduced-motion'` media feature, supported values are
1921
2072
  * `'reduce'`, `'no-preference'`.
1922
2073
  */
1923
- reducedMotion?: 'reduce' | 'no-preference';
2074
+ reducedMotion?: "reduce" | "no-preference";
1924
2075
  }): void;
1925
2076
 
1926
2077
  /**
@@ -1936,7 +2087,7 @@ export interface Page {
1936
2087
  * @param type
1937
2088
  */
1938
2089
  emulateVisionDeficiency(
1939
- type: 'none' | 'blurredVision' | 'deuteranopia' | 'protanopia' | 'tritanopia' | 'achromatopsia',
2090
+ type: "none" | "blurredVision" | "deuteranopia" | "protanopia" | "tritanopia" | "achromatopsia",
1940
2091
  ): void;
1941
2092
 
1942
2093
  /**
@@ -2454,6 +2605,28 @@ export interface Page {
2454
2605
  */
2455
2606
  mouse: Mouse;
2456
2607
 
2608
+ /**
2609
+ * Emitted when JavaScript within the page calls one of console API methods
2610
+ * , e.g. `console.log` or `console.dir`. Also emitted if the page throws
2611
+ * an error or a warning.
2612
+ *
2613
+ * The arguments passed into `console.log` are available on the
2614
+ * {@link ConsoleMessage} event handler argument.
2615
+ *
2616
+ * **Usage**
2617
+ *
2618
+ * ```js
2619
+ * page.on('console', msg => {
2620
+ * const values = [];
2621
+ * for (const arg of msg.args())
2622
+ * values.push(arg.jsonValue());
2623
+ * console.log(...values);
2624
+ * });
2625
+ * page.evaluate(() => console.log('hello', 5, { foo: 'bar' }));
2626
+ * ```
2627
+ */
2628
+ on(event: "console", listener: (consoleMessage: ConsoleMessage) => void): void;
2629
+
2457
2630
  /**
2458
2631
  * Returns the page that opened the current page. The first page that is
2459
2632
  * navigated to will have a null opener.
@@ -2535,7 +2708,6 @@ export interface Page {
2535
2708
  * page.setDefaultTimeout(timeout) methods.
2536
2709
  *
2537
2710
  * Setting the value to `0` will disable the timeout.
2538
- *
2539
2711
  */
2540
2712
  timeout?: number;
2541
2713
 
@@ -2551,7 +2723,7 @@ export interface Page {
2551
2723
  * this method for testing especially with chatty websites where the event
2552
2724
  * may never fire, rely on web assertions to assess readiness instead.
2553
2725
  */
2554
- waitUntil?: 'load' | 'domcontentloaded' | 'networkidle';
2726
+ waitUntil?: "load" | "domcontentloaded" | "networkidle";
2555
2727
  }): null | Response;
2556
2728
 
2557
2729
  /**
@@ -2660,7 +2832,6 @@ export interface Page {
2660
2832
  * page.setDefaultTimeout(timeout) methods.
2661
2833
  *
2662
2834
  * Setting the value to `0` will disable the timeout.
2663
- *
2664
2835
  */
2665
2836
  timeout?: number;
2666
2837
 
@@ -2676,7 +2847,7 @@ export interface Page {
2676
2847
  * this method for testing especially with chatty websites where the event
2677
2848
  * may never fire, rely on web assertions to assess readiness instead.
2678
2849
  */
2679
- waitUntil?: 'load' | 'domcontentloaded' | 'networkidle';
2850
+ waitUntil?: "load" | "domcontentloaded" | "networkidle";
2680
2851
  },
2681
2852
  ): void;
2682
2853
 
@@ -2970,7 +3141,7 @@ export interface Page {
2970
3141
  * treated as an interval in milliseconds at which the function would be
2971
3142
  * executed. Defaults to `raf`.
2972
3143
  */
2973
- polling?: number | 'raf';
3144
+ polling?: number | "raf";
2974
3145
 
2975
3146
  /**
2976
3147
  * Maximum time in milliseconds. Defaults to `30` seconds. Default is
@@ -3000,7 +3171,7 @@ export interface Page {
3000
3171
  * @param options
3001
3172
  */
3002
3173
  waitForLoadState(
3003
- state?: 'load' | 'domcontentloaded' | 'networkidle',
3174
+ state?: "load" | "domcontentloaded" | "networkidle",
3004
3175
  options?: {
3005
3176
  /**
3006
3177
  * Maximum operation time in milliseconds. Defaults to `30` seconds. The
@@ -3011,7 +3182,6 @@ export interface Page {
3011
3182
  * page.setDefaultTimeout(timeout) methods.
3012
3183
  *
3013
3184
  * Setting the value to `0` will disable the timeout.
3014
- *
3015
3185
  */
3016
3186
  timeout?: number;
3017
3187
  },
@@ -3033,7 +3203,6 @@ export interface Page {
3033
3203
  * page.setDefaultTimeout(timeout) methods.
3034
3204
  *
3035
3205
  * Setting the value to `0` will disable the timeout.
3036
- *
3037
3206
  */
3038
3207
  timeout?: number;
3039
3208
 
@@ -3049,7 +3218,7 @@ export interface Page {
3049
3218
  * this method for testing especially with chatty websites where the event
3050
3219
  * may never fire, rely on web assertions to assess readiness instead.
3051
3220
  */
3052
- waitUntil?: 'load' | 'domcontentloaded' | 'networkidle';
3221
+ waitUntil?: "load" | "domcontentloaded" | "networkidle";
3053
3222
  }): Promise<null | Response>;
3054
3223
 
3055
3224
  /**
@@ -3073,7 +3242,7 @@ export interface Page {
3073
3242
  * - `'hidden'` - wait for element to be either detached from DOM, or have
3074
3243
  * an empty bounding box or `visibility:hidden`.
3075
3244
  */
3076
- state?: 'attached' | 'detached' | 'visible' | 'hidden';
3245
+ state?: "attached" | "detached" | "visible" | "hidden";
3077
3246
 
3078
3247
  /**
3079
3248
  * When `true`, the call requires selector to resolve to a single element.
k6/experimental/grpc.d.ts CHANGED
@@ -28,6 +28,11 @@ export interface ConnectParams {
28
28
  */
29
29
  reflect?: boolean;
30
30
 
31
+ /**
32
+ * Metadata to send with reflection request.
33
+ */
34
+ reflectMetadata?: object;
35
+
31
36
  /**
32
37
  * Connection timeout to use.
33
38
  */
@@ -128,17 +133,15 @@ declare namespace grpc {
128
133
  /**
129
134
  * Event fired when data has been received from the server.
130
135
  */
131
- | 'data'
132
-
136
+ | "data"
133
137
  /**
134
138
  * Event fired when a stream has been closed due to an error.
135
139
  */
136
- | 'error'
137
-
140
+ | "error"
138
141
  /**
139
142
  * Event fired when the stream closes.
140
143
  */
141
- | 'end';
144
+ | "end";
142
145
 
143
146
  /**
144
147
  * Stream allows you to use streaming RPCs.
@@ -347,7 +347,6 @@ export class Client {
347
347
  hsetnx(key: string, field: string, value: string): Promise<boolean>;
348
348
 
349
349
  /**
350
- *
351
350
  * Returns the value of the specified hash field.
352
351
  *
353
352
  * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hget
File without changes
@@ -8,7 +8,7 @@
8
8
  * https://k6.io/docs/javascript-api/k6-experimental/tracing/
9
9
  */
10
10
 
11
- import { RefinedParams, RefinedResponse, RequestBody, ResponseType } from '../http';
11
+ import { RefinedParams, RefinedResponse, RequestBody, ResponseType } from "../http";
12
12
 
13
13
  /**
14
14
  * The instrumentHTTP function instruments the k6 http module
@@ -186,7 +186,7 @@ export interface Options {
186
186
  *
187
187
  * Defaults to `w3c`.
188
188
  */
189
- propagator: 'w3c' | 'jaeger';
189
+ propagator: "w3c" | "jaeger";
190
190
 
191
191
  /**
192
192
  * The probability of each request having
@@ -202,5 +202,5 @@ export interface Options {
202
202
  * Returned value from http.url method.
203
203
  */
204
204
  export interface HttpURL {
205
- __brand: 'http-url';
205
+ __brand: "http-url";
206
206
  }