update to astro 4 plus new post
This commit is contained in:
Vendored
+10
-3
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user