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 = Record> = T & { astro: MarkdownMetadata; + url: string | undefined; + file: string; }; /**