summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/quick-onions-itch.md5
-rw-r--r--packages/astro/src/@types/astro.ts2
2 files changed, 7 insertions, 0 deletions
diff --git a/.changeset/quick-onions-itch.md b/.changeset/quick-onions-itch.md
new file mode 100644
index 000000000..68bc505b3
--- /dev/null
+++ b/.changeset/quick-onions-itch.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Add `url` and `file` properties to `MarkdownContent` type
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index 5003f42ab..570df260c 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -903,6 +903,8 @@ export interface MarkdownParserResponse extends MarkdownRenderingResult {
*/
export type MarkdownContent<T extends Record<string, any> = Record<string, any>> = T & {
astro: MarkdownMetadata;
+ url: string | undefined;
+ file: string;
};
/**