memory-orm
Version:
client side ORM + map reduce
38 lines (37 loc) • 907 B
TypeScript
/// <reference types="lodash" />
import { Cache } from './type'
export { Rule } from './rule'
export declare function PureObject(): any
export declare class Metadata {
write_at: number
depth: number
pack: {
[key: string]: Cache
}
static bless(o: any): any
json(): string
}
export declare function step(): number
declare class StateManager {
mixin: {
data(): {
$step: {
[key: string]: number
}
}
}
journal: (list: string) => Cache
base: (list: string) => Cache
meta(): Metadata
step: any
$journal: Metadata
$base: Metadata
transaction(cb: (pack: Metadata) => void, meta: Metadata): Metadata
store(meta: any): boolean
join({ react }: { react: any }): void
bye({ react }: { react: any }): void
notify(list: any): void
notify_for_react: import('lodash').DebouncedFunc<() => void>
constructor()
}
export declare const State: StateManager