add types in client
This commit is contained in:
parent
9542eefc3e
commit
4e4735c49a
12
packages/playwright-client/types/types.d.ts
vendored
12
packages/playwright-client/types/types.d.ts
vendored
|
|
@ -19,6 +19,7 @@ import { Readable } from 'stream';
|
|||
import { ReadStream } from 'fs';
|
||||
import { Protocol } from './protocol';
|
||||
import { Serializable, EvaluationArgument, PageFunction, PageFunctionOn, SmartHandle, ElementHandleForTag, BindingSource } from './structs';
|
||||
import {APIRequestEvent, APIRequestFinishedEvent} from "playwright-core/lib/server/fetch";
|
||||
|
||||
type PageWaitForSelectorOptionsNotHidden = PageWaitForSelectorOptions & {
|
||||
state?: 'visible'|'attached';
|
||||
|
|
@ -18665,6 +18666,17 @@ export interface APIRequestContext {
|
|||
}>;
|
||||
|
||||
[Symbol.asyncDispose](): Promise<void>;
|
||||
|
||||
/**
|
||||
* Emitted when a request is issued from API request context. The event will be emitted after the request is issued
|
||||
*/
|
||||
on(event: 'apiRequest', listener: (request: APIRequestEvent) => any): this;
|
||||
|
||||
/**
|
||||
* Emitted when a request finishes successfully after downloading the response body. For a successful response, the
|
||||
* sequence of events is `request`, `response` and `requestfinished`.
|
||||
*/
|
||||
on(event: 'apiRequestfinished', listener: (request: APIRequestFinishedEvent) => any): this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
1
packages/playwright-core/types/types.d.ts
vendored
1
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -18667,7 +18667,6 @@ export interface APIRequestContext {
|
|||
|
||||
[Symbol.asyncDispose](): Promise<void>;
|
||||
|
||||
|
||||
/**
|
||||
* Emitted when a request is issued from API request context. The event will be emitted after the request is issued
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue