Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use this instead of @types/firefox-webext-browser? #106

Open
olfek opened this issue Oct 17, 2024 · 0 comments
Open

Can I use this instead of @types/firefox-webext-browser? #106

olfek opened this issue Oct 17, 2024 · 0 comments

Comments

@olfek
Copy link

olfek commented Oct 17, 2024

Can I use this instead of @types/firefox-webext-browser?

Asking because in the README of this project, it says:

This project supplies the TypeScript types for the WebExtension browser API Polyfill by Mozilla.

I've decided to use this instead of @types/firefox-webext-browser because it the has world property I need:

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/84b056bb595bb5e9aa86e5ff2cb6e29b5a36abdc/types/webextension-polyfill/namespaces/contentScripts.d.ts#L74-L78

... which is missing in:

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/84b056bb595bb5e9aa86e5ff2cb6e29b5a36abdc/types/firefox-webext-browser/index.d.ts#L1720-L1741

My intention is to use this without webextension-polyfill as a replacement for @types/firefox-webext-browser, if this is OK to do, then let this issue serve as a use case for you to keep in mind when working on this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant