summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Luiz Ferraz <ematipico@users.noreply.github.com> 2024-06-19 15:53:24 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-06-19 15:53:24 +0000
commit42a6eceab61f880ba46b6e11cd77237ef29fb324 (patch)
treefc664012a8b5c8b64dbdb65004daa7e1dee3a561
parent5a9c9a60e7c32aa461b86b5bc667cb955e23d4d9 (diff)
downloadastro-42a6eceab61f880ba46b6e11cd77237ef29fb324.tar.gz
astro-42a6eceab61f880ba46b6e11cd77237ef29fb324.tar.zst
astro-42a6eceab61f880ba46b6e11cd77237ef29fb324.zip
[ci] format
-rw-r--r--packages/astro/src/content/types-generator.ts28
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/astro/src/content/types-generator.ts b/packages/astro/src/content/types-generator.ts
index 66e5aef3c..b970eadb9 100644
--- a/packages/astro/src/content/types-generator.ts
+++ b/packages/astro/src/content/types-generator.ts
@@ -35,18 +35,18 @@ type DataEntryMetadata = Record<string, never>;
type ContentEntryMetadata = { slug: string };
type CollectionEntryMap = {
[collection: string]:
- | {
- type: 'unknown';
- entries: Record<string, never>;
- }
- | {
- type: 'content';
- entries: Record<string, ContentEntryMetadata>;
- }
- | {
- type: 'data';
- entries: Record<string, DataEntryMetadata>;
- };
+ | {
+ type: 'unknown';
+ entries: Record<string, never>;
+ }
+ | {
+ type: 'content';
+ entries: Record<string, ContentEntryMetadata>;
+ }
+ | {
+ type: 'data';
+ entries: Record<string, DataEntryMetadata>;
+ };
};
type CreateContentGeneratorParams = {
@@ -425,8 +425,8 @@ async function writeContentFiles({
const resolvedType: 'content' | 'data' =
collection.type === 'unknown'
? // Add empty / unknown collections to the data type map by default
- // This ensures `getCollection('empty-collection')` doesn't raise a type error
- collectionConfig?.type ?? 'data'
+ // This ensures `getCollection('empty-collection')` doesn't raise a type error
+ collectionConfig?.type ?? 'data'
: collection.type;
const collectionEntryKeys = Object.keys(collection.entries).sort();