Assert that the values match with the type specs. Error messages are memorized and will only be shown once.
@param — Map of name to a ReactPropType
@param — Runtime values that need to be type-checked
@param — e.g. "prop", "context", "child context"
@param — Name of the component for error messages
@param — Returns the component stack
Only available if NODE_ENV=production
export function resetWarningCache(): void@internal — Use Awaited<ReactNodeLike>
instead
Like ValidationMap but treats undefined
, null
and optional properties the same.
This type is only added as a migration path in React 19 where this type was removed from React.
Runtime and compile time types would mismatch since you could see undefined
at runtime when your types don't expect this type.