mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
de60c69aa0
commit
537e971372
1 changed files with 2 additions and 5 deletions
|
@ -452,10 +452,7 @@ async function writeContentFiles({
|
||||||
dataTypesStr += `};\n`;
|
dataTypesStr += `};\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (settings.config.experimental.contentCollectionJsonSchema && collectionConfig?.schema) {
|
||||||
settings.config.experimental.contentCollectionJsonSchema &&
|
|
||||||
collectionConfig?.schema
|
|
||||||
) {
|
|
||||||
let zodSchemaForJson =
|
let zodSchemaForJson =
|
||||||
typeof collectionConfig.schema === 'function'
|
typeof collectionConfig.schema === 'function'
|
||||||
? collectionConfig.schema({ image: () => z.string() })
|
? collectionConfig.schema({ image: () => z.string() })
|
||||||
|
|
Loading…
Add table
Reference in a new issue