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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user