TargetObject

Icon LinkInterface: 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.

Icon LinkProperties

Icon LinkaddEventListener

Optional addEventListener: (event: string, callback: any) => void

Icon LinkType declaration

▸ (event, callback): void

Icon LinkParameters

NameType
eventstring
callbackany

Icon LinkReturns

void

Icon LinkDefined in

packages/account/src/connectors/types/target-object.ts:12 Icon Link


Icon Linkemit

Optional emit: (event: string, data: any) => void

Icon LinkType declaration

▸ (event, data): void

Icon LinkParameters

NameType
eventstring
dataany

Icon LinkReturns

void

Icon LinkDefined in

packages/account/src/connectors/types/target-object.ts:11 Icon Link


Icon Linkoff

Optional off: (event: string, callback: any) => void

Icon LinkType declaration

▸ (event, callback): void

Icon LinkParameters

NameType
eventstring
callbackany

Icon LinkReturns

void

Icon LinkDefined in

packages/account/src/connectors/types/target-object.ts:10 Icon Link


Icon Linkon

Optional on: (event: string, callback: any) => void

Icon LinkType declaration

▸ (event, callback): void

Icon LinkParameters

NameType
eventstring
callbackany

Icon LinkReturns

void

Icon LinkDefined in

packages/account/src/connectors/types/target-object.ts:9 Icon Link


Icon LinkpostMessage

Optional postMessage: (message: string) => void

Icon LinkType declaration

▸ (message): void

Icon LinkParameters

NameType
messagestring

Icon LinkReturns

void

Icon LinkDefined in

packages/account/src/connectors/types/target-object.ts:14 Icon Link


Icon LinkremoveEventListener

Optional removeEventListener: (event: string, callback: any) => void

Icon LinkType declaration

▸ (event, callback): void

Icon LinkParameters

NameType
eventstring
callbackany

Icon LinkReturns

void

Icon LinkDefined in

packages/account/src/connectors/types/target-object.ts:13 Icon Link