mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: make CDPSessionEvent.SessionAttached
public (#10941)
This commit is contained in:
parent
88e0997b39
commit
cfed7b93ec
@ -134,6 +134,12 @@ sidebar_label: API
|
||||
| [WaitForTargetOptions](./puppeteer.waitfortargetoptions.md) | |
|
||||
| [WaitTimeoutOptions](./puppeteer.waittimeoutoptions.md) | |
|
||||
|
||||
## Namespaces
|
||||
|
||||
| Namespace | Description |
|
||||
| ------------------------------------------------- | --------------------------------------- |
|
||||
| [CDPSessionEvent](./puppeteer.cdpsessionevent.md) | Events that the CDPSession class emits. |
|
||||
|
||||
## Variables
|
||||
|
||||
| Variable | Description |
|
||||
|
20
docs/api/puppeteer.cdpsessionevent.md
Normal file
20
docs/api/puppeteer.cdpsessionevent.md
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
sidebar_label: CDPSessionEvent
|
||||
---
|
||||
|
||||
# CDPSessionEvent namespace
|
||||
|
||||
Events that the CDPSession class emits.
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
export declare namespace CDPSessionEvent
|
||||
```
|
||||
|
||||
## Variables
|
||||
|
||||
| Variable | Description |
|
||||
| ----------------------------------------------------------------- | ----------- |
|
||||
| [SessionAttached](./puppeteer.cdpsessionevent.sessionattached.md) | |
|
||||
| [SessionDetached](./puppeteer.cdpsessionevent.sessiondetached.md) | |
|
11
docs/api/puppeteer.cdpsessionevent.sessionattached.md
Normal file
11
docs/api/puppeteer.cdpsessionevent.sessionattached.md
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
sidebar_label: CDPSessionEvent.SessionAttached
|
||||
---
|
||||
|
||||
# CDPSessionEvent.SessionAttached variable
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
SessionAttached: 'sessionattached';
|
||||
```
|
11
docs/api/puppeteer.cdpsessionevent.sessiondetached.md
Normal file
11
docs/api/puppeteer.cdpsessionevent.sessiondetached.md
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
sidebar_label: CDPSessionEvent.SessionDetached
|
||||
---
|
||||
|
||||
# CDPSessionEvent.SessionDetached variable
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
SessionDetached: 'sessiondetached';
|
||||
```
|
@ -11,3 +11,10 @@ export interface CDPSessionEvents extends CDPEvents, Record<EventType, unknown>
|
||||
```
|
||||
|
||||
**Extends:** [CDPEvents](./puppeteer.cdpevents.md), Record<EventType, unknown>
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description | Default |
|
||||
| --------------- | --------- | --------------------------------------- | ----------- | ------- |
|
||||
| sessionattached | | [CDPSession](./puppeteer.cdpsession.md) | | |
|
||||
| sessiondetached | | [CDPSession](./puppeteer.cdpsession.md) | | |
|
||||
|
@ -11,21 +11,25 @@ export type CDPEvents = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Internal events that the CDPSession class emits.
|
||||
* Events that the CDPSession class emits.
|
||||
*
|
||||
* @internal
|
||||
* @public
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||
export namespace CDPSessionEvent {
|
||||
/** @internal */
|
||||
export const Disconnected = Symbol('CDPSession.Disconnected');
|
||||
/** @internal */
|
||||
export const Swapped = Symbol('CDPSession.Swapped');
|
||||
/**
|
||||
* Emitted when the session is ready to be configured during the auto-attach
|
||||
* process. Right after the event is handled, the session will be resumed.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export const Ready = Symbol('CDPSession.Ready');
|
||||
export const SessionAttached = Symbol('CDPSession.SessionAttached');
|
||||
export const SessionDetached = Symbol('CDPSession.SessionDetached');
|
||||
export const SessionAttached = 'sessionattached' as const;
|
||||
export const SessionDetached = 'sessiondetached' as const;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -40,9 +44,7 @@ export interface CDPSessionEvents
|
||||
[CDPSessionEvent.Swapped]: CDPSession;
|
||||
/** @internal */
|
||||
[CDPSessionEvent.Ready]: CDPSession;
|
||||
/** @internal */
|
||||
[CDPSessionEvent.SessionAttached]: CDPSession;
|
||||
/** @internal */
|
||||
[CDPSessionEvent.SessionDetached]: CDPSession;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user