File tree 4 files changed +46
-0
lines changed
packages/playwright-core/types 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,9 @@ Methods like [`method: APIRequestContext.get`] take the base URL into considerat
80
80
- ` multiEntry ` <[ boolean] >
81
81
- ` records ` <[ Array] <[ Object] >>
82
82
- ` key ` ?<[ Object] >
83
+ - ` keyEncoded ` ?<[ Object] > if ` key ` is not JSON-serializable, this contains an encoded version that preserves types.
83
84
- ` value ` <[ Object] >
85
+ - ` valueEncoded ` ?<[ Object] > if ` value ` is not JSON-serializable, this contains an encoded version that preserves types.
84
86
85
87
Populates context with given storage state. This option can be used to initialize context with logged-in information
86
88
obtained via [ ` method: BrowserContext.storageState ` ] or [ ` method: APIRequestContext.storageState ` ] . Either a path to the
Original file line number Diff line number Diff line change @@ -896,7 +896,9 @@ context cookies from the response. The method will automatically follow redirect
896
896
- ` multiEntry ` <[ boolean] >
897
897
- ` records ` <[ Array] <[ Object] >>
898
898
- ` key ` ?<[ Object] >
899
+ - ` keyEncoded ` ?<[ Object] > if ` key ` is not JSON-serializable, this contains an encoded version that preserves types.
899
900
- ` value ` <[ Object] >
901
+ - ` valueEncoded ` ?<[ Object] > if ` value ` is not JSON-serializable, this contains an encoded version that preserves types.
900
902
901
903
Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to the constructor.
902
904
Original file line number Diff line number Diff line change @@ -280,7 +280,9 @@ Specify environment variables that will be visible to the browser. Defaults to `
280
280
- ` multiEntry ` <[ boolean] >
281
281
- ` records ` <[ Array] <[ Object] >>
282
282
- ` key ` ?<[ Object] >
283
+ - ` keyEncoded ` ?<[ Object] > if ` key ` is not JSON-serializable, this contains an encoded version that preserves types.
283
284
- ` value ` <[ Object] >
285
+ - ` valueEncoded ` ?<[ Object] > if ` value ` is not JSON-serializable, this contains an encoded version that preserves types.
284
286
285
287
Learn more about [ storage state and auth] ( ../auth.md ) .
286
288
Original file line number Diff line number Diff line change @@ -10157,7 +10157,17 @@ export interface Browser {
10157
10157
records: Array<{
10158
10158
key?: Object;
10159
10159
10160
+ /**
10161
+ * if `key` is not JSON-serializable, this contains an encoded version that preserves types.
10162
+ */
10163
+ keyEncoded?: Object;
10164
+
10160
10165
value: Object;
10166
+
10167
+ /**
10168
+ * if `value` is not JSON-serializable, this contains an encoded version that preserves types.
10169
+ */
10170
+ valueEncoded?: Object;
10161
10171
}>;
10162
10172
}>;
10163
10173
}>;
@@ -17735,7 +17745,17 @@ export interface APIRequest {
17735
17745
records: Array<{
17736
17746
key?: Object;
17737
17747
17748
+ /**
17749
+ * if `key` is not JSON-serializable, this contains an encoded version that preserves types.
17750
+ */
17751
+ keyEncoded?: Object;
17752
+
17738
17753
value: Object;
17754
+
17755
+ /**
17756
+ * if `value` is not JSON-serializable, this contains an encoded version that preserves types.
17757
+ */
17758
+ valueEncoded?: Object;
17739
17759
}>;
17740
17760
}>;
17741
17761
}>;
@@ -18578,7 +18598,17 @@ export interface APIRequestContext {
18578
18598
records: Array<{
18579
18599
key?: Object;
18580
18600
18601
+ /**
18602
+ * if `key` is not JSON-serializable, this contains an encoded version that preserves types.
18603
+ */
18604
+ keyEncoded?: Object;
18605
+
18581
18606
value: Object;
18607
+
18608
+ /**
18609
+ * if `value` is not JSON-serializable, this contains an encoded version that preserves types.
18610
+ */
18611
+ valueEncoded?: Object;
18582
18612
}>;
18583
18613
}>;
18584
18614
}>;
@@ -22464,7 +22494,17 @@ export interface BrowserContextOptions {
22464
22494
records: Array<{
22465
22495
key?: Object;
22466
22496
22497
+ /**
22498
+ * if `key` is not JSON-serializable, this contains an encoded version that preserves types.
22499
+ */
22500
+ keyEncoded?: Object;
22501
+
22467
22502
value: Object;
22503
+
22504
+ /**
22505
+ * if `value` is not JSON-serializable, this contains an encoded version that preserves types.
22506
+ */
22507
+ valueEncoded?: Object;
22468
22508
}>;
22469
22509
}>;
22470
22510
}>;
You can’t perform that action at this time.
0 commit comments