update to astro 4 plus new post

This commit is contained in:
2024-01-27 21:28:00 -05:00
parent beffc3335e
commit 29fc5be452
11 changed files with 77 additions and 33 deletions
+10 -3
View File
@@ -165,11 +165,11 @@ declare module 'astro:content' {
? {
collection: C;
slug: ValidContentEntrySlug<C>;
}
}
: {
collection: C;
id: keyof DataEntryMap[C];
}
}
>;
// Allow generic `string` to avoid excessive type errors in the config
// if `dev` is not running to update as you edit.
@@ -269,6 +269,13 @@ declare module 'astro:content' {
collection: "blog";
data: InferEntrySchema<"blog">
} & { render(): Render[".md"] };
"my-backup-solution.md": {
id: "my-backup-solution.md";
slug: "my-backup-solution";
body: string;
collection: "blog";
data: InferEntrySchema<"blog">
} & { render(): Render[".md"] };
"my-favorite-little-apps-part-2.md": {
id: "my-favorite-little-apps-part-2.md";
slug: "my-favorite-little-apps-part-2";
@@ -384,5 +391,5 @@ declare module 'astro:content' {
type AnyEntryMap = ContentEntryMap & DataEntryMap;
type ContentConfig = typeof import("../src/content/config");
type ContentConfig = typeof import("../src/content/config.js");
}