looseObject()
constlooseObject: <T>(entries,message?) =>ObjectConstraint<T> =object
Loose object schema - validates defined properties but ignores others.
Object schema with composition and constraints.
Type Parametersβ
T: T extends Record<string, AnySchema>β
Parametersβ
entries: Tβ
Object entries schema definition.
message?: stringβ
Custom error message (optional).
Returns: ObjectConstraint<T>β
ObjectConstraint with all constraints.
Sinceβ
2.0.0
Remarksβ
Alias for object - both create loose object schemas by default.
Sinceβ
2.0.0