object
object<T extends Record<string, Schema<any, unknown>>, Input = unknown>(
...args: [props: T] | [name: string, props: T],
): ObjectSchema<{ [Key in keyof T]: TypeOf<T[Key]> }, Input>
object<T extends Record<string, any>, Input = unknown>(
...args: [props: PropsOf<T>] | [name: string, props: PropsOf<T>],
): ObjectSchema<T, Input>
Providing a name improves readability of parse errors.