Skip to content

Commit

Permalink
Fix hook types
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarkelov committed Dec 11, 2019
1 parent dd0200f commit 8c315d7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ type countUpHook = (
useCountUpProps,
) => {
countUp: number | string;
onReset: () => void;
nUpdate: () => void;
onPauseResume: () => void;
onStart: ({ pauseResume }) => void;
onEnd: ({ pauseResume }) => void;
start: () => void;
pauseResume: () => void;
reset: () => void;
update: () => void;
};

export const useCountUp: countUpHook;
Expand Down

0 comments on commit 8c315d7

Please sign in to comment.