Type Parameters
-
T extends Record<string, unknown>
Constructors
constructor
- new GlobalStore<T>(initialData): GlobalStore<T>
-
Type Parameters
-
T extends Record<string, unknown>
Methods
dispatch
- dispatch(key, dispatcher): void
-
Parameters
-
key: keyof T
-
dispatcher: ((store) => void)
-
- (store): void
-
Returns void
Returns void
getValue
- getValue(key): Readonly<T[keyof T]>
-
Returns Readonly<T[keyof T]>
Private
loadData
- loadData(initialData): void
Private
Returns void
グローバルストアのデータを更新