0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00

[ci] format

This commit is contained in:
Mark Gaze 2024-06-14 10:39:09 +00:00 committed by astrobot-houston
parent de60c69aa0
commit 537e971372

View file

@ -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() })