chore: update code for chromium-bidi update (#10467)

This commit is contained in:
jrandolf 2023-06-28 13:52:50 +02:00 committed by GitHub
parent 919f0e8e7f
commit 1175fe98c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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',

View File

@ -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;
};
}
@ -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.');
}