mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 05:37:21 +00:00
fix(react): replace any with unknown in isRenderProp type guard (#1500)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user