Type aliases
NonTabMessageType
NonTabMessageType: "owntab_background" | "excmd_background" | "controller_background" | "browser_proxy_background" | "download_background" | "performance_background"
StripPromise
StripPromise<T>: T extends Promise<infer U> ? U : T
Type parameters
TabMessageType
TabMessageType: "editorfn_content" | "excmd_content" | "controller_content" | "commandline_content" | "finding_content" | "commandline_cmd" | "commandline_frame"
listener
listener: function
Type declaration
-
- (message: Message, sender?: any, sendResponse?: any): void | Promise<any>
-
Parameters
-
-
Optional sender: any
-
Optional sendResponse: any
Returns void
|
Promise<any>
Register a listener to be called for each message with type