1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 13:40:06 +00:00

add documentation to remove listener

This commit is contained in:
Daniel Riera
2026-01-15 10:52:54 -05:00
parent 1da346de89
commit 3d67c468cc

View File

@@ -560,6 +560,7 @@ export class BrowserApi {
* @param event - The event in which to remove the listener from.
* @param callback - The callback you want removed from the event.
*/
// Chrome's Event.removeListener expects callback args as `any[]` to align with its internal event typings.
static removeListener<T extends (...args: readonly any[]) => any>(
event: chrome.events.Event<T>,
callback: T,