UNPKG

chromogen-zustand

Version:

simple, interaction-driven Jest test generator for Recoil and React Hooks apps

9 lines (8 loc) 373 B
import React, { Reducer } from 'react'; import { Store } from 'redux'; declare type UnsubscribeFn = () => void; export declare type EnhancedStore = Store & { registerHookedReducer: (reducer: Reducer<any, any>, initialState: any, reducerId: string | number) => UnsubscribeFn; }; export declare const ObserverContext: React.Context<EnhancedStore | undefined>; export {};