mozilla / webextension-polyfill

A lightweight polyfill library for Promise-based WebExtension APIs in Chrome
Mozilla Public License 2.0
2.61k stars 210 forks source link

Wrong Types: sendResponse #627

Closed ArthurLobopro closed 1 month ago

ArthurLobopro commented 1 month ago

I am migrating a chrome extension to webextension but this snippet of my code gives me a error saying 0 arguments are expected.

image

And the typing of sendResponse shows:

image

Please, can someone correct this type?

Rob--W commented 1 month ago

We (the maintainers of webextension-polyfill) are not responsible for this type definition. You should contact the source of your type and request a fix there.

ArthurLobopro commented 1 month ago

Ok