Add properties (url, file) to MarkdownContent type (#4028)
'url' and 'file' properties were missing in MarkdownContent type, but they should there according to: https://docs.astro.build/en/guides/markdown-content/#markdown-layouts
This commit is contained in:
parent
9697649d31
commit
c565465a96
2 changed files with 7 additions and 0 deletions
5
.changeset/quick-onions-itch.md
Normal file
5
.changeset/quick-onions-itch.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add `url` and `file` properties to `MarkdownContent` type
|
|
@ -903,6 +903,8 @@ export interface MarkdownParserResponse extends MarkdownRenderingResult {
|
||||||
*/
|
*/
|
||||||
export type MarkdownContent<T extends Record<string, any> = Record<string, any>> = T & {
|
export type MarkdownContent<T extends Record<string, any> = Record<string, any>> = T & {
|
||||||
astro: MarkdownMetadata;
|
astro: MarkdownMetadata;
|
||||||
|
url: string | undefined;
|
||||||
|
file: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue