diff options
author | 2022-08-12 11:20:59 -0400 | |
---|---|---|
committer | 2022-08-12 11:20:59 -0400 | |
commit | b0033cef32f1e7ec83ae22d481e9c81125986309 (patch) | |
tree | 7bd750d2a4e30ef731bdc163db5d1871bd4b4c94 | |
parent | b1cad77fa1339dd0ef41300ba7a0bd21c4da81c9 (diff) | |
download | astro-b0033cef32f1e7ec83ae22d481e9c81125986309.tar.gz astro-b0033cef32f1e7ec83ae22d481e9c81125986309.tar.zst astro-b0033cef32f1e7ec83ae22d481e9c81125986309.zip |
Make astro import inside env.d.ts relative so they work inside the monorepo (#4281)
Diffstat (limited to '')
-rw-r--r-- | packages/astro/env.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/env.d.ts b/packages/astro/env.d.ts index a018eca20..ff5314898 100644 --- a/packages/astro/env.d.ts +++ b/packages/astro/env.d.ts @@ -1,6 +1,6 @@ /// <reference path="./client.d.ts" /> -type Astro = import('astro').AstroGlobal; +type Astro = import('./dist/types/@types/astro').AstroGlobal; // We duplicate the description here because editors won't show the JSDoc comment from the imported type (but will for its properties, ex: Astro.request will show the AstroGlobal.request description) /** @@ -13,7 +13,7 @@ declare const Astro: Readonly<Astro>; declare const Fragment: any; declare module '*.md' { - type MD = import('astro').MarkdownInstance<Record<string, any>>; + type MD = import('./dist/types/@types/astro').MarkdownInstance<Record<string, any>>; export const frontmatter: MD['frontmatter']; export const file: MD['file']; |