chore: update Instance types

This commit is contained in:
bholmesdev 2022-08-15 10:34:56 -04:00
parent 3c35fef157
commit cb6f26944c

View file

@ -841,7 +841,7 @@ export interface AstroInstance {
}
export interface MarkdownInstance<T extends Record<string, any>> {
frontmatter: T;
frontmatter: T & { file: string; url: string | undefined };
file: string;
url: string | undefined;
Content: AstroComponentFactory;
@ -871,10 +871,9 @@ export interface MDXInstance<T>
}
export interface MarkdownLayoutProps<T extends Record<string, any>> {
frontmatter: {
file: MarkdownInstance<T>['file'];
url: MarkdownInstance<T>['url'];
} & T;
frontmatter: MarkdownInstance<T>['frontmatter'];
file: MarkdownInstance<T>['file'];
url: MarkdownInstance<T>['url'];
headings: MarkdownHeading[];
rawContent: MarkdownInstance<T>['rawContent'];
compiledContent: MarkdownInstance<T>['compiledContent'];