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