add indexedDB to apirequestcontext types
This commit is contained in:
parent
25816c1c50
commit
9b165d6904
|
|
@ -64,6 +64,23 @@ Methods like [`method: APIRequestContext.get`] take the base URL into considerat
|
||||||
- `localStorage` <[Array]<[Object]>>
|
- `localStorage` <[Array]<[Object]>>
|
||||||
- `name` <[string]>
|
- `name` <[string]>
|
||||||
- `value` <[string]>
|
- `value` <[string]>
|
||||||
|
- `indexedDB` ?<[Array]<[Object]>> indexedDB to set for context
|
||||||
|
- `name` <[string]> database name
|
||||||
|
- `version` <[int]> database version
|
||||||
|
- `stores` <[Array]<[Object]>>
|
||||||
|
- `name` <[string]>
|
||||||
|
- `keyPath` ?<[string]>
|
||||||
|
- `keyPathArray` ?<[Array]<[string]>>
|
||||||
|
- `autoIncrement` <[boolean]>
|
||||||
|
- `indexes` <[Array]<[Object]>>
|
||||||
|
- `name` <[string]>
|
||||||
|
- `keyPath` ?<[string]>
|
||||||
|
- `keyPathArray` ?<[Array]<[string]>>
|
||||||
|
- `unique` <[boolean]>
|
||||||
|
- `multiEntry` <[boolean]>
|
||||||
|
- `records` <[Array]<[Object]>>
|
||||||
|
- `key` ?<[Object]>
|
||||||
|
- `value` <[Object]>
|
||||||
|
|
||||||
Populates context with given storage state. This option can be used to initialize context with logged-in information
|
Populates context with given storage state. This option can be used to initialize context with logged-in information
|
||||||
obtained via [`method: BrowserContext.storageState`] or [`method: APIRequestContext.storageState`]. Either a path to the
|
obtained via [`method: BrowserContext.storageState`] or [`method: APIRequestContext.storageState`]. Either a path to the
|
||||||
|
|
|
||||||
43
packages/playwright-core/types/types.d.ts
vendored
43
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -17663,6 +17663,49 @@ export interface APIRequest {
|
||||||
|
|
||||||
value: string;
|
value: string;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* indexedDB to set for context
|
||||||
|
*/
|
||||||
|
indexedDB?: Array<{
|
||||||
|
/**
|
||||||
|
* database name
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* database version
|
||||||
|
*/
|
||||||
|
version: number;
|
||||||
|
|
||||||
|
stores: Array<{
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
keyPath?: string;
|
||||||
|
|
||||||
|
keyPathArray?: Array<string>;
|
||||||
|
|
||||||
|
autoIncrement: boolean;
|
||||||
|
|
||||||
|
indexes: Array<{
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
keyPath?: string;
|
||||||
|
|
||||||
|
keyPathArray?: Array<string>;
|
||||||
|
|
||||||
|
unique: boolean;
|
||||||
|
|
||||||
|
multiEntry: boolean;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
records: Array<{
|
||||||
|
key?: Object;
|
||||||
|
|
||||||
|
value: Object;
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue