0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-17 23:11:29 -05:00

fix: use z.input for AstroConfigWithDB type

This commit is contained in:
bholmesdev 2024-02-15 12:52:57 -05:00
parent 37d99d0496
commit 4be8bfb5c1

View file

@ -351,7 +351,7 @@ export function defineWritableCollection<TFields extends FieldsConfig>(
return baseDefineCollection(userConfig, true);
}
export type AstroConfigWithDB = z.infer<typeof astroConfigWithDbSchema>;
export type AstroConfigWithDB = z.input<typeof astroConfigWithDbSchema>;
type FieldOpts<T extends DBFieldInput> = Omit<T, 'type'>;
// We cannot use `Omit<NumberField | TextField, 'type'>`,