Schema.build.object
Creates a validation builder that accepts an object with specific properties.
object: <T extends Record<string, Builder | Schema<any>>>(
schema: T,
) => ObjectBuilder<{ [K in keyof T]: Infer<T[K]> }>;
Parameters
- schema — An object mapping property names to validation builders.
Return value
An ObjectBuilder.
Related
Schema.build static
An object containing functions that create Builder instances for specific types.
