UNPKG

@alphanova/builder

Version:

A fully fledged facade that facilitates object manipulation

17 lines (16 loc) 489 B
export function keyify([key, value]) { return { key, value }; } export function unkey(object) { return [object.key, object.value]; } // export interface GeneralState<T extends Structure> { // data: Record<string, T> // loading: boolean // error: string | undefined // } // export interface ReduxBox<Model extends Structure, Container extends Builder<Model, Container>> { // data: Map<string, Container> // loading: boolean // error: string | undefined // }