Interface: TargetObject
@fuel-ts/account.TargetObject
Target Object that represents the global event bus used by Fuel Connector Manager. On browser the default target is the window or document. For other environments the event bus should be provided.
Properties
addEventListener
• Optional
addEventListener: (event
: string
, callback
: any
) => void
Type declaration
▸ (event
, callback
): void
Parameters
Name | Type |
---|---|
event | string |
callback | any |
Returns
void
Defined in
packages/account/src/connectors/types/target-object.ts:12
emit
• Optional
emit: (event
: string
, data
: any
) => void
Type declaration
▸ (event
, data
): void
Parameters
Name | Type |
---|---|
event | string |
data | any |
Returns
void
Defined in
packages/account/src/connectors/types/target-object.ts:11
off
• Optional
off: (event
: string
, callback
: any
) => void
Type declaration
▸ (event
, callback
): void
Parameters
Name | Type |
---|---|
event | string |
callback | any |
Returns
void
Defined in
packages/account/src/connectors/types/target-object.ts:10
on
• Optional
on: (event
: string
, callback
: any
) => void
Type declaration
▸ (event
, callback
): void
Parameters
Name | Type |
---|---|
event | string |
callback | any |
Returns
void
Defined in
packages/account/src/connectors/types/target-object.ts:9
postMessage
• Optional
postMessage: (message
: string
) => void
Type declaration
▸ (message
): void
Parameters
Name | Type |
---|---|
message | string |
Returns
void
Defined in
packages/account/src/connectors/types/target-object.ts:14
removeEventListener
• Optional
removeEventListener: (event
: string
, callback
: any
) => void
Type declaration
▸ (event
, callback
): void
Parameters
Name | Type |
---|---|
event | string |
callback | any |
Returns
void