Skip to content

Commit

Permalink
chore: revert event type
Browse files Browse the repository at this point in the history
  • Loading branch information
yunsii committed Jul 2, 2023
1 parent f555d30 commit 135f281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/useClickAway/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import useEffectWithTarget from '../utils/useEffectWithTarget';

type DocumentEventKey = keyof DocumentEventMap;

export default function useClickAway<T extends Event = MouseEvent>(
export default function useClickAway<T extends Event = Event>(
onClickAway: (event: T) => void,
target: BasicTarget | BasicTarget[],
eventName: DocumentEventKey | DocumentEventKey[] = 'click',
Expand Down

0 comments on commit 135f281

Please sign in to comment.