diff --git a/packages/mui-utils/src/useEventCallback/useEventCallback.ts b/packages/mui-utils/src/useEventCallback/useEventCallback.ts index 73573b46299d27..babd9a5efccfd4 100644 --- a/packages/mui-utils/src/useEventCallback/useEventCallback.ts +++ b/packages/mui-utils/src/useEventCallback/useEventCallback.ts @@ -5,7 +5,7 @@ import useEnhancedEffect from '../useEnhancedEffect'; /** * https://github.com/facebook/react/issues/14099#issuecomment-440013892 */ -function useEventCallback any = (...args: unknown[]) => any>( +function useEventCallback any = (...args: unknown[]) => unknown>( fn: Fn, ): Fn; function useEventCallback(