PluginParentWorker
Extends
Constructors
new PluginParentWorker()
new PluginParentWorker(
opts
:PluginParentWorkerOptions
):PluginParentWorker
Parameters
• opts: PluginParentWorkerOptions
Returns
Overrides
Methods
destroy()
destroy():
void
Returns
void
Overrides
getIframe()
getIframe():
HTMLIFrameElement
Returns
HTMLIFrameElement
getInstanceType()
getInstanceType():
InstanceType
Returns
onError()
onError(
handler
: (err
:unknown
) =>void
):void
Parameters
• handler
Returns
void
Overrides
onMessage()
onMessage<
T
,P
>(handler
: (e
:EventData
<T
,P
>) =>void
):void
Type parameters
• T extends string
• P = unknown
Parameters
• handler
Returns
void
Overrides
request()
request<
T
,R
>(type
:T
, ...args
:unknown
[]):Promise
<undefined
|R
>
Type parameters
• T extends string
• R = unknown
Parameters
• type: T
• ...args: unknown
[]
Returns
Promise
<undefined
| R
>
Inherited from
respond()
respond<
T
,R
>(type
:T
,handler
: (...args
:unknown
[]) =>Promise
<R
>):void
Type parameters
• T extends string
• R = unknown
Parameters
• type: T
• handler
Returns
void
Inherited from
send()
send<
T
>(type
:T
,payload
?:unknown
):void
Type parameters
• T extends string
Parameters
• type: T
• payload?: unknown
Returns
void
Overrides
subscribe()
subscribe<
T
,P
>(type
:T
,handler
: (type
:T
,e
:EventData
<T
,P
>) =>void
):void
Type parameters
• T extends string
• P = unknown
Parameters
• type: T
• handler
Returns
void