From 237db862e284a1f4568905a93f40fc2b48021309 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Fri, 6 Jan 2023 17:14:45 -0500 Subject: [PATCH] chore: update with-content types --- .../content.d.ts} | 77 ++++++++++--------- examples/with-content/src/env.d.ts | 1 + 2 files changed, 40 insertions(+), 38 deletions(-) rename examples/with-content/{src/content/types.generated.d.ts => .astro/content.d.ts} (62%) diff --git a/examples/with-content/src/content/types.generated.d.ts b/examples/with-content/.astro/content.d.ts similarity index 62% rename from examples/with-content/src/content/types.generated.d.ts rename to examples/with-content/.astro/content.d.ts index 906aabb752f73..a71bffde0872b 100644 --- a/examples/with-content/src/content/types.generated.d.ts +++ b/examples/with-content/.astro/content.d.ts @@ -42,44 +42,45 @@ declare module 'astro:content' { }; const entryMap: { - blog: { - 'first-post.md': { - id: 'first-post.md'; - slug: 'first-post'; - body: string; - collection: 'blog'; - data: InferEntrySchema<'blog'>; - }; - 'markdown-style-guide.md': { - id: 'markdown-style-guide.md'; - slug: 'markdown-style-guide'; - body: string; - collection: 'blog'; - data: InferEntrySchema<'blog'>; - }; - 'second-post.md': { - id: 'second-post.md'; - slug: 'second-post'; - body: string; - collection: 'blog'; - data: InferEntrySchema<'blog'>; - }; - 'third-post.md': { - id: 'third-post.md'; - slug: 'third-post'; - body: string; - collection: 'blog'; - data: InferEntrySchema<'blog'>; - }; - 'using-mdx.mdx': { - id: 'using-mdx.mdx'; - slug: 'using-mdx'; - body: string; - collection: 'blog'; - data: InferEntrySchema<'blog'>; - }; - }; + "blog": { +"first-post.md": { + id: "first-post.md", + slug: "first-post", + body: string, + collection: "blog", + data: InferEntrySchema<"blog"> +}, +"markdown-style-guide.md": { + id: "markdown-style-guide.md", + slug: "markdown-style-guide", + body: string, + collection: "blog", + data: InferEntrySchema<"blog"> +}, +"second-post.md": { + id: "second-post.md", + slug: "second-post", + body: string, + collection: "blog", + data: InferEntrySchema<"blog"> +}, +"third-post.md": { + id: "third-post.md", + slug: "third-post", + body: string, + collection: "blog", + data: InferEntrySchema<"blog"> +}, +"using-mdx.mdx": { + id: "using-mdx.mdx", + slug: "using-mdx", + body: string, + collection: "blog", + data: InferEntrySchema<"blog"> +}, +}, + }; - type ContentConfig = typeof import('./config'); + type ContentConfig = typeof import("../src/content/config"); } diff --git a/examples/with-content/src/env.d.ts b/examples/with-content/src/env.d.ts index f964fe0cffd88..c138d9aeb2676 100644 --- a/examples/with-content/src/env.d.ts +++ b/examples/with-content/src/env.d.ts @@ -1 +1,2 @@ +/// ///