0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix: add filePath type for content layer entries

This commit is contained in:
Princesseuh 2024-09-23 16:45:18 +01:00
parent 325a57c543
commit 8cff1f82d5
No known key found for this signature in database
GPG key ID: 105BBD6D57F2B0C0

View file

@ -498,7 +498,7 @@ async function writeContentFiles({
contentTypesStr += `};\n`;
break;
case CONTENT_LAYER_TYPE:
dataTypesStr += `${collectionKey}: Record<string, {\n id: string;\n collection: ${collectionKey};\n data: ${dataType};\n rendered?: RenderedContent \n}>;\n`;
dataTypesStr += `${collectionKey}: Record<string, {\n id: string;\n collection: ${collectionKey};\n data: ${dataType};\n rendered?: RenderedContent;\n filePath?: string}>;\n`;
break;
case 'data':
if (collectionEntryKeys.length === 0) {