mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
Fix input types
This commit is contained in:
parent
65bb0a85ca
commit
d7e922cbfa
1 changed files with 7 additions and 7 deletions
|
@ -61,7 +61,7 @@ const numberFieldOptsSchema: z.ZodType<
|
||||||
},
|
},
|
||||||
ZodTypeDef,
|
ZodTypeDef,
|
||||||
z.input<typeof numberFieldBaseSchema> & {
|
z.input<typeof numberFieldBaseSchema> & {
|
||||||
references?: () => NumberFieldInput;
|
references?: () => z.input<typeof numberFieldSchema>;
|
||||||
}
|
}
|
||||||
> = numberFieldBaseSchema.and(
|
> = numberFieldBaseSchema.and(
|
||||||
z.object({
|
z.object({
|
||||||
|
@ -108,7 +108,7 @@ const textFieldOptsSchema: z.ZodType<
|
||||||
},
|
},
|
||||||
ZodTypeDef,
|
ZodTypeDef,
|
||||||
z.input<typeof textFieldBaseSchema> & {
|
z.input<typeof textFieldBaseSchema> & {
|
||||||
references?: () => TextFieldInput;
|
references?: () => z.input<typeof textFieldSchema>;
|
||||||
}
|
}
|
||||||
> = textFieldBaseSchema.and(
|
> = textFieldBaseSchema.and(
|
||||||
z.object({
|
z.object({
|
||||||
|
@ -219,15 +219,15 @@ export const collectionsSchema = z.preprocess((rawCollections) => {
|
||||||
}, z.record(collectionSchema));
|
}, z.record(collectionSchema));
|
||||||
|
|
||||||
export type BooleanField = z.infer<typeof booleanFieldSchema>;
|
export type BooleanField = z.infer<typeof booleanFieldSchema>;
|
||||||
export type BooleanFieldInput = z.input<typeof booleanFieldSchema>;
|
export type BooleanFieldInput = z.input<typeof booleanFieldSchema>['schema'];
|
||||||
export type NumberField = z.infer<typeof numberFieldSchema>;
|
export type NumberField = z.infer<typeof numberFieldSchema>;
|
||||||
export type NumberFieldInput = z.input<typeof numberFieldSchema>;
|
export type NumberFieldInput = z.input<typeof numberFieldSchema>['schema'];
|
||||||
export type TextField = z.infer<typeof textFieldSchema>;
|
export type TextField = z.infer<typeof textFieldSchema>;
|
||||||
export type TextFieldInput = z.input<typeof textFieldSchema>;
|
export type TextFieldInput = z.input<typeof textFieldSchema>['schema'];
|
||||||
export type DateField = z.infer<typeof dateFieldSchema>;
|
export type DateField = z.infer<typeof dateFieldSchema>;
|
||||||
export type DateFieldInput = z.input<typeof dateFieldSchema>;
|
export type DateFieldInput = z.input<typeof dateFieldSchema>['schema'];
|
||||||
export type JsonField = z.infer<typeof jsonFieldSchema>;
|
export type JsonField = z.infer<typeof jsonFieldSchema>;
|
||||||
export type JsonFieldInput = z.input<typeof jsonFieldSchema>;
|
export type JsonFieldInput = z.input<typeof jsonFieldSchema>['schema'];
|
||||||
|
|
||||||
export type FieldType =
|
export type FieldType =
|
||||||
| BooleanField['type']
|
| BooleanField['type']
|
||||||
|
|
Loading…
Add table
Reference in a new issue