Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Mar 28, 2022
1 parent 6a0cd7e commit 8a11d49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/astro/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="vite/client" />

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)
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export interface AstroGlobalPartial {
resolve: (path: string) => string;
/** @deprecated Use `Astro.glob()` instead. */
fetchContent(globStr: string): Promise<any[]>;
glob<T extends Record<string, any>>(globStr: `${any}.md`): Promise<MarkdownGlobResult<T>[]>;
glob<T extends Record<string, any>>(globStr: `${any}.astro`): Promise<AstroGlobResult[]>;
glob(globStr: `${any}.md`): Promise<MarkdownInstance[]>;
glob(globStr: `${any}.astro`): Promise<ComponentInstance[]>;
glob<T extends Record<string, any>>(globStr: string): Promise<T[]>;
site: URL;
}
Expand Down

0 comments on commit 8a11d49

Please sign in to comment.