Skip to content

Commit ac78b3c

Browse files
committed
fix(ts-definition): add autoEffect and clearEffect
1 parent a0600a0 commit ac78b3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

types/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ declare module '@risingstack/react-easy-state' {
1111
ctx?: any,
1212
args?: any[],
1313
): T;
14+
function autoEffect(
15+
effect: () => void,
16+
deps?: DependencyList,
17+
): () => void | undefined;
18+
function clearEffect(effect: () => void): void;
1419
}

0 commit comments

Comments
 (0)