chore: fix Locator type issues (#34705)
This commit is contained in:
parent
4c8af0128f
commit
967c4f5e3b
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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[],
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue