start working on posts with placeholder content
This commit is contained in:
23
.astro/content.d.ts
vendored
23
.astro/content.d.ts
vendored
@@ -1,3 +1,14 @@
|
||||
declare module 'astro:content' {
|
||||
interface Render {
|
||||
'.mdx': Promise<{
|
||||
Content: import('astro').MDXContent;
|
||||
headings: import('astro').MarkdownHeading[];
|
||||
remarkPluginFrontmatter: Record<string, any>;
|
||||
components: import('astro').MDXInstance<{}>['components'];
|
||||
}>;
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'astro:content' {
|
||||
export interface RenderResult {
|
||||
Content: import('astro/runtime/server/index.js').AstroComponentFactory;
|
||||
@@ -162,7 +173,15 @@ declare module 'astro:content' {
|
||||
};
|
||||
|
||||
type DataEntryMap = {
|
||||
|
||||
"posts": Record<string, {
|
||||
id: string;
|
||||
body?: string;
|
||||
collection: "posts";
|
||||
data: InferEntrySchema<"posts">;
|
||||
rendered?: RenderedContent;
|
||||
filePath?: string;
|
||||
}>;
|
||||
|
||||
};
|
||||
|
||||
type AnyEntryMap = ContentEntryMap & DataEntryMap;
|
||||
@@ -194,6 +213,6 @@ declare module 'astro:content' {
|
||||
LiveContentConfig['collections'][C]['loader']
|
||||
>;
|
||||
|
||||
export type ContentConfig = typeof import("../src/content.config.mjs");
|
||||
export type ContentConfig = typeof import("../src/content.config.js");
|
||||
export type LiveContentConfig = never;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user