Skip to content

Commit

Permalink
Update the types
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Dec 16, 2022
1 parent 6c90d76 commit eb3158d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/adblocker-webextension/adblocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class BlockingContext {
private readonly onRuntimeMessage: (
msg: IBackgroundCallback & { action?: string },
sender: Runtime.MessageSender,
) => Promise<Partial<IMessageFromBackground> | undefined>;
) => Promise<IMessageFromBackground | undefined>;

private readonly onCommittedHandler:
| ((details: WebNavigation.OnCommittedDetailsType) => void)
Expand Down Expand Up @@ -560,7 +560,7 @@ export class WebExtensionBlocker extends FiltersEngine {
browser: Browser,
msg: IBackgroundCallback & { action?: string },
sender: Runtime.MessageSender,
): Promise<Partial<IMessageFromBackground> | undefined> => {
): Promise<IMessageFromBackground | {}> => {
return new Promise((resolve, reject) => {
this.handleRuntimeMessage(browser, msg, sender, resolve).catch(reject).finally(() => resolve({}));
});
Expand Down

0 comments on commit eb3158d

Please sign in to comment.