chore: update Instance types
This commit is contained in:
parent
3c35fef157
commit
cb6f26944c
1 changed files with 4 additions and 5 deletions
|
@ -841,7 +841,7 @@ export interface AstroInstance {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarkdownInstance<T extends Record<string, any>> {
|
export interface MarkdownInstance<T extends Record<string, any>> {
|
||||||
frontmatter: T;
|
frontmatter: T & { file: string; url: string | undefined };
|
||||||
file: string;
|
file: string;
|
||||||
url: string | undefined;
|
url: string | undefined;
|
||||||
Content: AstroComponentFactory;
|
Content: AstroComponentFactory;
|
||||||
|
@ -871,10 +871,9 @@ export interface MDXInstance<T>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarkdownLayoutProps<T extends Record<string, any>> {
|
export interface MarkdownLayoutProps<T extends Record<string, any>> {
|
||||||
frontmatter: {
|
frontmatter: MarkdownInstance<T>['frontmatter'];
|
||||||
file: MarkdownInstance<T>['file'];
|
file: MarkdownInstance<T>['file'];
|
||||||
url: MarkdownInstance<T>['url'];
|
url: MarkdownInstance<T>['url'];
|
||||||
} & T;
|
|
||||||
headings: MarkdownHeading[];
|
headings: MarkdownHeading[];
|
||||||
rawContent: MarkdownInstance<T>['rawContent'];
|
rawContent: MarkdownInstance<T>['rawContent'];
|
||||||
compiledContent: MarkdownInstance<T>['compiledContent'];
|
compiledContent: MarkdownInstance<T>['compiledContent'];
|
||||||
|
|
Loading…
Reference in a new issue