Make astro import inside env.d.ts relative so they work inside the monorepo (#4281)
This commit is contained in:
parent
b1cad77fa1
commit
b0033cef32
1 changed files with 2 additions and 2 deletions
4
packages/astro/env.d.ts
vendored
4
packages/astro/env.d.ts
vendored
|
@ -1,6 +1,6 @@
|
||||||
/// <reference path="./client.d.ts" />
|
/// <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)
|
// 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 const Fragment: any;
|
||||||
|
|
||||||
declare module '*.md' {
|
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 frontmatter: MD['frontmatter'];
|
||||||
export const file: MD['file'];
|
export const file: MD['file'];
|
||||||
|
|
Loading…
Reference in a new issue