Interface IAccountDataClient

Typed Event Emitter class which can act as a Base Model for all our model and communication events. This makes it much easier for us to distinguish between events, as we now need to properly type this, so that our events are not stringly-based and prone to silly typos.

Hierarchy

Properties

getAccountData: ((eventType: string) => null | IContent)

Type declaration

    • (eventType: string): null | IContent
    • Parameters

      • eventType: string

      Returns null | IContent

getAccountDataFromServer: (<T>(eventType: string) => Promise<T>)

Type declaration

    • <T>(eventType: string): Promise<T>
    • Type Parameters

      • T extends {
            [k: string]: any;
        }

      Parameters

      • eventType: string

      Returns Promise<T>

setAccountData: ((eventType: string, content: any) => Promise<{}>)

Type declaration

    • (eventType: string, content: any): Promise<{}>
    • Parameters

      • eventType: string
      • content: any

      Returns Promise<{}>

Methods

Generated using TypeDoc