chore: fix Locator type issues (#34705)

This commit is contained in:
Max Schmitt 2025-02-10 13:05:17 +01:00 committed by GitHub
parent 4c8af0128f
commit 967c4f5e3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 10 additions and 10 deletions

View File

@ -81,7 +81,7 @@ Methods like [`method: APIRequestContext.get`] take the base URL into considerat
- `records` <[Array]<[Object]>>
- `key` ?<[Object]>
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
- `value` <[Object]>
- `value` ?<[Object]>
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
Populates context with given storage state. This option can be used to initialize context with logged-in information

View File

@ -897,7 +897,7 @@ context cookies from the response. The method will automatically follow redirect
- `records` <[Array]<[Object]>>
- `key` ?<[Object]>
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
- `value` <[Object]>
- `value` ?<[Object]>
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to the constructor.

View File

@ -1528,7 +1528,7 @@ Whether to emulate network being offline for the browser context.
- `records` <[Array]<[Object]>>
- `key` ?<[Object]>
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
- `value` <[Object]>
- `value` ?<[Object]>
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB snapshot.

View File

@ -281,7 +281,7 @@ Specify environment variables that will be visible to the browser. Defaults to `
- `records` <[Array]<[Object]>>
- `key` ?<[Object]>
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
- `value` <[Object]>
- `value` ?<[Object]>
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
Learn more about [storage state and auth](../auth.md).

View File

@ -37,7 +37,7 @@ export type SelectOptionOptions = { force?: boolean, timeout?: number };
export type FilePayload = { name: string, mimeType: string, buffer: Buffer };
export type StorageState = {
cookies: channels.NetworkCookie[],
origins: channels.OriginStorage[]
origins: channels.OriginStorage[],
};
export type SetStorageState = {
cookies?: channels.SetNetworkCookie[],

View File

@ -9351,7 +9351,7 @@ export interface BrowserContext {
*/
keyEncoded?: Object;
value: Object;
value?: Object;
/**
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
@ -10170,7 +10170,7 @@ export interface Browser {
*/
keyEncoded?: Object;
value: Object;
value?: Object;
/**
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
@ -17758,7 +17758,7 @@ export interface APIRequest {
*/
keyEncoded?: Object;
value: Object;
value?: Object;
/**
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
@ -18616,7 +18616,7 @@ export interface APIRequestContext {
*/
keyEncoded?: Object;
value: Object;
value?: Object;
/**
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
@ -22512,7 +22512,7 @@ export interface BrowserContextOptions {
*/
keyEncoded?: Object;
value: Object;
value?: Object;
/**
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.