Skip to content

Commit

Permalink
change default return type to unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Jul 11, 2023
1 parent 258ded9 commit d097a06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useEnhancedEffect from '../useEnhancedEffect';
/**
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
*/
function useEventCallback<Fn extends (...args: any[]) => any = (...args: unknown[]) => any>(
function useEventCallback<Fn extends (...args: any[]) => any = (...args: unknown[]) => unknown>(
fn: Fn,
): Fn;
function useEventCallback<Args extends unknown[], Return>(
Expand Down

0 comments on commit d097a06

Please sign in to comment.