Skip to content

Latest commit

 

History

History
232 lines (101 loc) · 2.6 KB

kit.webextensionmessage.md

File metadata and controls

232 lines (101 loc) · 2.6 KB

Home > @holoflows/kit > WebExtensionMessage

WebExtensionMessage class

Signature:

export declare class WebExtensionMessage<Message> extends EventTarget implements WebExtensionEventTarget<Message> 

Extends: EventTarget

Implements: WebExtensionEventTarget<Message>

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the WebExtensionMessage class

Properties

Property

Modifiers

Type

Description

addEventListener

WebExtensionEventTarget<Message>['addEventListener']

dispatchEvent

WebExtensionEventTarget<Message>['dispatchEvent']

domain

readonly

string

enableLog

boolean

events

readonly

{ readonly [K in keyof Message]: WebExtensionEventTargetUnbound<Message[K]>; }

Event listeners

log

(...args: unknown[]) => void

logFormatter

(instance: this, key: string, data: unknown) => unknown[]

removeEventListener

WebExtensionEventTarget<Message>['addEventListener']

serialization

Encoder | undefined