-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump @types/webextension-polyfill from 0.10.7 to 0.12.1 (#259)
* Bump @types/webextension-polyfill from 0.10.7 to 0.12.1 Bumps [@types/webextension-polyfill](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/webextension-polyfill) from 0.10.7 to 0.12.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/webextension-polyfill) --- updated-dependencies: - dependency-name: "@types/webextension-polyfill" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * update nvmrc; fix typing --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Graham Langford <[email protected]>
- Loading branch information
1 parent
9d616fb
commit 40bf143
Showing
5 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18 | ||
20.12.0 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
source/test/contentscript/fixtures/unrelatedMessageListener.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
browser.runtime.onMessage.addListener( | ||
(message: unknown): Promise<string> | void => { | ||
(message: unknown): Promise<string> | undefined => { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
if ((message as any)?.type === "sleep") { | ||
console.log( | ||
"I’m an unrelated message listener, but I'm replying anyway to", | ||
{ message } | ||
{ message }, | ||
); | ||
return Promise.resolve("/r/nosleep"); | ||
} | ||
|
||
console.log("I’m an unrelated message listener. I’ve seen", { message }); | ||
} | ||
return undefined; | ||
}, | ||
); |