fix(react): replace any with unknown in isRenderProp type guard (#1500)

This commit is contained in:
Ronald Urbina
2026-05-18 13:37:44 -03:00
committed by GitHub
parent ac37259803
commit cc22f9fa81
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import type { HTMLProps, RenderProp } from './types';
import { composeRefs } from './use-composed-refs';
/** Check if a value is a render prop (function or React element). */
export function isRenderProp(value: unknown): value is RenderProp<any> {
export function isRenderProp(value: unknown): value is RenderProp<unknown> {
return isFunction(value) || isValidElement(value);
}