Skip to content

Commit

Permalink
refactor(cdp): matchNetworkEvents method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk committed Sep 10, 2024
1 parent f67f955 commit 32791cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cdp/DefaultNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ export class DefaultNetwork implements Network {
action: 'continue'
});

private matchNetworkEvents(message: EventMessage): message is NetworkEvent {
private matchNetworkEvents(
message: Pick<EventMessage, 'method'>
): message is NetworkEvent {
const [domain]: string[] = message.method.split('.');

return domain === this.DOMAIN;
Expand Down

0 comments on commit 32791cb

Please sign in to comment.