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:
parent
37d99d0496
commit
4be8bfb5c1
1 changed files with 1 additions and 1 deletions
|
@ -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'>`,
|
||||
|
|
Loading…
Add table
Reference in a new issue