From 8a11d499f541b53a17a58c1091ac9735fd7dd70b Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Mon, 28 Mar 2022 14:01:31 -0700 Subject: [PATCH] update types --- packages/astro/env.d.ts | 2 +- packages/astro/src/@types/astro.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/env.d.ts b/packages/astro/env.d.ts index 88a4bcce350f9..ebb416dd26814 100644 --- a/packages/astro/env.d.ts +++ b/packages/astro/env.d.ts @@ -1,6 +1,6 @@ /// -type Astro = import('./dist/types/@types/astro').AstroGlobal; +type Astro = import('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) /** diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index c37203f1a7e47..106021f6bd0d4 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -65,8 +65,8 @@ export interface AstroGlobalPartial { resolve: (path: string) => string; /** @deprecated Use `Astro.glob()` instead. */ fetchContent(globStr: string): Promise; - glob>(globStr: `${any}.md`): Promise[]>; - glob>(globStr: `${any}.astro`): Promise; + glob(globStr: `${any}.md`): Promise; + glob(globStr: `${any}.astro`): Promise; glob>(globStr: string): Promise; site: URL; }