Entries
Const makeStore
Parameters
Returns Store
en
newly created store
ja
新しく作成されたstore
Const isSame
- isSame(store0: Store, store1: Store): boolean
Parameters
store0: Store
store1: Store
Returns boolean
Const beginUpdateTracking
- beginUpdateTracking(store: Store): Store
Const endUpdateTracking
- endUpdateTracking(store: Store): [string, Store]
Parameters
Returns [string, Store]
Const test
- test(path: string, store: Store): boolean
Parameters
Returns boolean
Const get
- get(path: string, store: Store): Json
Const getMdr
- getMdr(path: string, store: Store): Mdr
Const setMdr
- setMdr(path: string, mdr: Mdr, store: Store): Store
Const add
- add(path: string, value: Json, store: Store): Store
Const remove
- remove(path: string, store: Store): Store
Const replace
- replace(path: string, value: Json, store: Store): Store
Const move
- move(from: string, path: string, store: Store): Store
Parameters
from: string
path: string
store: Store
Returns Store
Const copy
- copy(from: string, path: string, store: Store): Store
Parameters
from: string
path: string
store: Store
Returns Store
Const validate
- validate(path: string, store: Store): Store
Const mapDeep
- mapDeep(f: (mdr: Mdr, path: string) => Mdr, path: string, store: Store): Store
Parameters
f: (mdr: Mdr, path: string) => Mdr
path: string
store: Store
Returns Store
Const reduceDeep
- reduceDeep<T>(f: (cur: T, mdr: Mdr, path: string) => T, cur: T, path: string, store: Store): T
Type parameters
Parameters
f: (cur: T, mdr: Mdr, path: string) => T
- (cur: T, mdr: Mdr, path: string): T
cur: T
path: string
store: Store
Returns T
Const duplicate
- duplicate(path: string, fromStore: Store, toStore: Store): Store
Parameters
path: string
fromStore: Store
toStore: Store
Returns Store
Const setExtra
- setExtra(name: string, info: Object, store: Store): Store
Parameters
name: string
info: Object
store: Store
Returns Store
Const getExtra
- getExtra(name: string, store: Store): Object
Const setPortal
- setPortal(ret: any, onPromiseThen: any, store: Store): Store
Parameters
ret: any
onPromiseThen: any
store: Store
Returns Store
Const doReturn
- doReturn(store: Store): void
Const isStore
Parameters
Returns boolean
This is the core data store object in Unmagical, and it is an abstract data type.