Skip to content

Commit

Permalink
fix(useUserIdle): fix TS type definition error
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Sep 29, 2024
1 parent d32e21f commit 1af1476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-use/src/use-user-idle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface UseUserIdleReturns extends Pausable<[reset?: boolean], [reset?:
*
* @param restart - Whether to restart the idle timer,`true` by default.
*/
reset: (restart?: boolean) => void
reset: (restart?: boolean, updateTimestamp?: boolean) => void
}

const defaultEvents: WindowEventName[] = ['mousemove', 'mousedown', 'resize', 'keydown', 'touchstart', 'wheel']
Expand Down

0 comments on commit 1af1476

Please sign in to comment.