2 * Utilities to build responses
9 export type StoreState<Type> = {
12 error: AnyError | void;
15 export function initialResponse<T> (initialState: T): StoreState<T> {
23 export function errorResponse<T> (error: AnyError): StoreState<T> {
31 export function response<T> (data: T): StoreState<T> {