Skip to content

Commit 967c4f5

Browse files
authored
chore: fix Locator type issues (#34705)
1 parent 4c8af01 commit 967c4f5

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/src/api/class-apirequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Methods like [`method: APIRequestContext.get`] take the base URL into considerat
8181
- `records` <[Array]<[Object]>>
8282
- `key` ?<[Object]>
8383
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
84-
- `value` <[Object]>
84+
- `value` ?<[Object]>
8585
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
8686

8787
Populates context with given storage state. This option can be used to initialize context with logged-in information

docs/src/api/class-apirequestcontext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ context cookies from the response. The method will automatically follow redirect
897897
- `records` <[Array]<[Object]>>
898898
- `key` ?<[Object]>
899899
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
900-
- `value` <[Object]>
900+
- `value` ?<[Object]>
901901
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
902902

903903
Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to the constructor.

docs/src/api/class-browsercontext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ Whether to emulate network being offline for the browser context.
15281528
- `records` <[Array]<[Object]>>
15291529
- `key` ?<[Object]>
15301530
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
1531-
- `value` <[Object]>
1531+
- `value` ?<[Object]>
15321532
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
15331533

15341534
Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB snapshot.

docs/src/api/params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Specify environment variables that will be visible to the browser. Defaults to `
281281
- `records` <[Array]<[Object]>>
282282
- `key` ?<[Object]>
283283
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
284-
- `value` <[Object]>
284+
- `value` ?<[Object]>
285285
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
286286

287287
Learn more about [storage state and auth](../auth.md).

packages/playwright-core/src/client/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type SelectOptionOptions = { force?: boolean, timeout?: number };
3737
export type FilePayload = { name: string, mimeType: string, buffer: Buffer };
3838
export type StorageState = {
3939
cookies: channels.NetworkCookie[],
40-
origins: channels.OriginStorage[]
40+
origins: channels.OriginStorage[],
4141
};
4242
export type SetStorageState = {
4343
cookies?: channels.SetNetworkCookie[],

packages/playwright-core/types/types.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9351,7 +9351,7 @@ export interface BrowserContext {
93519351
*/
93529352
keyEncoded?: Object;
93539353

9354-
value: Object;
9354+
value?: Object;
93559355

93569356
/**
93579357
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
@@ -10170,7 +10170,7 @@ export interface Browser {
1017010170
*/
1017110171
keyEncoded?: Object;
1017210172

10173-
value: Object;
10173+
value?: Object;
1017410174

1017510175
/**
1017610176
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
@@ -17758,7 +17758,7 @@ export interface APIRequest {
1775817758
*/
1775917759
keyEncoded?: Object;
1776017760

17761-
value: Object;
17761+
value?: Object;
1776217762

1776317763
/**
1776417764
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
@@ -18616,7 +18616,7 @@ export interface APIRequestContext {
1861618616
*/
1861718617
keyEncoded?: Object;
1861818618

18619-
value: Object;
18619+
value?: Object;
1862018620

1862118621
/**
1862218622
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
@@ -22512,7 +22512,7 @@ export interface BrowserContextOptions {
2251222512
*/
2251322513
keyEncoded?: Object;
2251422514

22515-
value: Object;
22515+
value?: Object;
2251622516

2251722517
/**
2251822518
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.

0 commit comments

Comments
 (0)