Skip to content

Commit

Permalink
feat: expose ReactLib interface
Browse files Browse the repository at this point in the history
  • Loading branch information
nmccready committed Sep 12, 2019
1 parent 67974ea commit bae5caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import baseActions, { InnerBaseActions, OuterBaseActions } from './actions';

export type UseEffect = (effect: EffectCallback, deps?: DependencyList) => void;
export type UseState = <S>(initialState?: S | (() => S)) => [S, Dispatch<SetStateAction<S>>];
interface ReactLib {
export interface ReactLib {
useEffect: UseEffect;
useState: UseState;
}
Expand Down

0 comments on commit bae5caf

Please sign in to comment.