@alphanova/builder
Version:
A fully fledged facade that facilitates object manipulation
13 lines (12 loc) • 458 B
TypeScript
import { AnyAction } from 'redux';
export declare function keyify<T>([key, value]: [string, T]): KeyValue<string, T>;
export declare function unkey<T>(object: KeyValue<string, T>): [string, T];
export interface KeyValue<K, V> {
key: K;
value: V;
}
export interface StoreAction<T> extends AnyAction {
type: string;
payload?: KeyValue<string, T> | KeyValue<string, T>[] | undefined | KeyValue<string, string>;
error?: string | undefined;
}