Skip to content

Commit

Permalink
chore: update code for chromium-bidi update (#10467)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Jun 28, 2023
1 parent 919f0e8 commit 1175fe9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/puppeteer-core/src/common/bidi/Browser.ts
Expand Up @@ -41,7 +41,7 @@ export class Browser extends BrowserBase {
'network',
'log',
];
static readonly subscribeCdpEvents: Bidi.CDP.EventNames[] = [
static readonly subscribeCdpEvents: Bidi.Cdp.EventNames[] = [
// Coverage
'cdp.Debugger.scriptParsed',
'cdp.CSS.styleSheetAdded',
Expand Down
10 changes: 5 additions & 5 deletions packages/puppeteer-core/src/common/bidi/Connection.ts
Expand Up @@ -136,12 +136,12 @@ interface Commands {
returnType: Bidi.Message.EmptyResult;
};
'cdp.sendCommand': {
params: Bidi.CDP.SendCommandParams;
returnType: Bidi.CDP.SendCommandResult;
params: Bidi.Cdp.SendCommandParams;
returnType: Bidi.Cdp.SendCommandResult;
};
'cdp.getSession': {
params: Bidi.CDP.GetSessionParams;
returnType: Bidi.CDP.GetSessionResult;
params: Bidi.Cdp.GetSessionParams;
returnType: Bidi.Cdp.GetSessionResult;
};
}

Expand Down Expand Up @@ -285,6 +285,6 @@ function createProtocolError(object: Bidi.Message.ErrorResult): string {

function isCDPEvent(
event: Bidi.Message.EventMessage
): event is Bidi.CDP.EventReceivedEvent {
): event is Bidi.Cdp.EventReceivedEvent {
return event.method.startsWith('cdp.');
}

0 comments on commit 1175fe9

Please sign in to comment.