Interface AccountSubscriber<T>
Methods
fetch
- fetch(): Promise<void>
-
Returns Promise<void>
setData
- setData(userAccount: T, slot?: number): void
-
Parameters
-
userAccount: T
-
Optional
slot: number
Returns void
subscribe
- subscribe(onChange: ((data: T) => void)): Promise<void>
-
Parameters
-
onChange: ((data: T) => void)
-
- (data: T): void
-
Returns void
Returns Promise<void>
unsubscribe
- unsubscribe(): Promise<void>
-
Returns Promise<void>