Skip to content

Commit

Permalink
fix(ts-definition): add autoEffect and clearEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
peteyycz committed Apr 14, 2020
1 parent a0600a0 commit ac78b3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ declare module '@risingstack/react-easy-state' {
ctx?: any,
args?: any[],
): T;
function autoEffect(
effect: () => void,
deps?: DependencyList,
): () => void | undefined;
function clearEffect(effect: () => void): void;
}

0 comments on commit ac78b3c

Please sign in to comment.