This commit is contained in:
@@ -85,3 +85,32 @@ export const ZodSchemaObject = <
|
||||
}
|
||||
})
|
||||
.build()
|
||||
|
||||
|
||||
export type ZodSchemaObjectTrait<
|
||||
SchemaT extends z.ZodRawShape,
|
||||
SchemaUnknownKeys extends z.UnknownKeysParam,
|
||||
SchemaCatchall extends z.ZodTypeAny,
|
||||
|
||||
SchemaWithDefaultValuesT extends z.ZodRawShape,
|
||||
SchemaWithDefaultValuesUnknownKeys extends z.UnknownKeysParam,
|
||||
SchemaWithDefaultValuesCatchall extends z.ZodTypeAny,
|
||||
|
||||
Values extends object,
|
||||
PartialValues extends Partial<Values>,
|
||||
> = (
|
||||
ReturnType<
|
||||
typeof ZodSchemaObject<
|
||||
SchemaT,
|
||||
SchemaUnknownKeys,
|
||||
SchemaCatchall,
|
||||
|
||||
SchemaWithDefaultValuesT,
|
||||
SchemaWithDefaultValuesUnknownKeys,
|
||||
SchemaWithDefaultValuesCatchall,
|
||||
|
||||
Values,
|
||||
PartialValues
|
||||
>
|
||||
>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user