We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
runtime.onMessage.addListener
void
Previously, listeners for runtime.onMessage.addListener could return Promise<unknown> | true | void:
Promise<unknown> | true | void
webextension-polyfill-ts/out/namespaces/runtime.d.ts
Line 584 in b6e8bd1
Currently, they require a return value of Promise<unknown> | true | undefined:
Promise<unknown> | true | undefined
Line 583 in 75f8b24
Commit where change was made: 85437fc
I believe the correct type should be void rather than undefined so that listeners can return without having to specify undefined.
undefined
The text was updated successfully, but these errors were encountered:
browser.runtime.sendMessage
No branches or pull requests
Previously, listeners for
runtime.onMessage.addListener
could returnPromise<unknown> | true | void
:webextension-polyfill-ts/out/namespaces/runtime.d.ts
Line 584 in b6e8bd1
Currently, they require a return value of
Promise<unknown> | true | undefined
:webextension-polyfill-ts/out/namespaces/runtime.d.ts
Line 583 in 75f8b24
Commit where change was made: 85437fc
I believe the correct type should be
void
rather thanundefined
so that listeners can return without having to specifyundefined
.The text was updated successfully, but these errors were encountered: