Skip to content

Commit

Permalink
Update packages/astro/src/@types/astro.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
  • Loading branch information
FredKSchott and natemoo-re authored Mar 28, 2022
1 parent 1714642 commit 6a0cd7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export interface AstroGlobalPartial {
resolve: (path: string) => string;
/** @deprecated Use `Astro.glob()` instead. */
fetchContent(globStr: string): Promise<any[]>;
glob<T = any>(globStr: string): Promise<T[]>;
glob<T extends Record<string, any>>(globStr: `${any}.md`): Promise<MarkdownGlobResult<T>[]>;
glob<T extends Record<string, any>>(globStr: `${any}.astro`): Promise<AstroGlobResult[]>;
glob<T extends Record<string, any>>(globStr: string): Promise<T[]>;
site: URL;
}

Expand Down

0 comments on commit 6a0cd7e

Please sign in to comment.