mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
fix: missing body type on content layer entries (#12123)
This commit is contained in:
parent
bd25d3ff8e
commit
b8673df51c
2 changed files with 6 additions and 1 deletions
5
.changeset/thin-trains-fold.md
Normal file
5
.changeset/thin-trains-fold.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes missing `body` property on CollectionEntry types for content layer entries
|
|
@ -497,7 +497,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 filePath?: string \n}>;\n`;
|
||||
dataTypesStr += `${collectionKey}: Record<string, {\n id: string;\n collection: ${collectionKey};\n data: ${dataType};\n rendered?: RenderedContent;\n filePath?: string;\n body?: string \n}>;\n`;
|
||||
break;
|
||||
case 'data':
|
||||
if (collectionEntryKeys.length === 0) {
|
||||
|
|
Loading…
Reference in a new issue