Functions
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 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 duplicate
- duplicate(path: string, fromStore: Store, toStore: Store): Store
Parameters
path: string
fromStore: Store
toStore: 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 getExtra
- getExtra(name: string, store: Store): Object
Const touchAll
- touchAll(path: string, store: Store): Store
Const countValidationErrors
- countValidationErrors(path: string, store: Store): number
Const validationErrors
- validationErrors(path: string, store: Store): string[]
Parameters
Returns string[]
Const foldValidity
- foldValidity(path: string, store: Store): Validity
Const sleep
- sleep(ms: number, store: Store): [Promise<null>, Store]
Parameters
Returns [Promise<null>, Store]
Const startReordering
- startReordering<T>(name: string, itemPath: string, group: string, store: Store): [Promise<T>, Store]
Type parameters
Parameters
name: string
itemPath: string
group: string
store: Store
Returns [Promise<T>, Store]
Const endReordering
- endReordering(name: string, store: Store): Store
Const getReordering
- getReordering(name: string, store: Store): string
Const openDialog
- openDialog(name: string, data: any, store: Store): [Promise<boolean>, Store]
Parameters
name: string
data: any
store: Store
Returns [Promise<boolean>, Store]
Const closeDialog
- closeDialog(name: string, store: Store): Store
Const getDialog
- getDialog(name: string, store: Store): any
Const openFeedback
- openFeedback(name: string, data: any, store: Store): Store
Parameters
name: string
data: any
store: Store
Returns Store
Const closeFeedback
- closeFeedback(name: string, store: Store): Store
Const getFeedback
- getFeedback(name: string, store: Store): any
Const setPage
- setPage(name: string, current: number, store: Store): Store
Parameters
name: string
current: number
store: Store
Returns Store
Const getPage
- getPage(name: string, store: Store): number
Const nextPage
- nextPage(name: string, store: Store): Store
Const prevPage
- prevPage(name: string, store: Store): Store
Const setSwitch
- setSwitch(name: string, shown: boolean, store: Store): Store
Parameters
name: string
shown: boolean
store: Store
Returns Store
Const getSwitch
- getSwitch(name: string, store: Store): boolean
Parameters
Returns boolean
Const toggleSwitch
- toggleSwitch(name: string, store: Store): Store
Const openProgress
- openProgress(name: string, unknown: any, store: Store): Store
Parameters
name: string
unknown: any
store: Store
Returns Store
Const closeProgress
- closeProgress(name: string, store: Store): Store
Const getProgress
- getProgress(name: string, store: Store): number
Const reorder
- reorder(name: string, fromPath: string, group: string, store: Store): Store | Promise<{ path: string }>
Parameters
name: string
fromPath: string
group: string
store: Store
Returns Store | Promise<{ path: string }>
Const makePortal
- makePortal(store: Store): { enter: (handler: XThenHandler) => ThenHandler; leave: <T>(x: T | [T, Store], y?: Store) => T }
Parameters
Returns { enter: (handler: XThenHandler) => ThenHandler; leave: <T>(x: T | [T, Store], y?: Store) => T }
enter: (handler: XThenHandler) => ThenHandler
- (handler: XThenHandler): ThenHandler
Parameters
Returns ThenHandler
leave: <T>(x: T | [T, Store], y?: Store) => T
- <T>(x: T | [T, Store], y?: Store): T
Type parameters
Parameters
x: T | [T, Store]
Optional y: Store
Returns T