diff --git a/packages/astro/content-types.template.d.ts b/packages/astro/content-types.template.d.ts index 8e5b59c39ac9..eb560193d4a7 100644 --- a/packages/astro/content-types.template.d.ts +++ b/packages/astro/content-types.template.d.ts @@ -10,9 +10,9 @@ declare module 'astro:content' { declare module 'astro:content' { export { z } from 'astro/zod'; - - type Flatten = T extends { [K: string]: infer U } ? U : never; - + + type Flatten = T extends { [K: string]: infer U } ? U : never; + export type CollectionKey = keyof AnyEntryMap; export type CollectionEntry = Flatten;