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:
parent
325a57c543
commit
8cff1f82d5
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue