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