Skip to content

Commit

Permalink
Fix getViteConfig return type (#6753)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Apr 5, 2023
1 parent c7eb0d4 commit 489dd8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/empty-moose-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix `getViteConfig` return type
3 changes: 2 additions & 1 deletion packages/astro/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
type ViteUserConfig = import('vite').UserConfig;
type ViteUserConfigFn = import('vite').UserConfigFn;
type AstroUserConfig = import('./dist/@types/astro.js').AstroUserConfig;

/**
Expand All @@ -10,4 +11,4 @@ export function defineConfig(config: AstroUserConfig): AstroUserConfig;
/**
* Use Astro to generate a fully resolved Vite config
*/
export function getViteConfig(config: ViteUserConfig): ViteUserConfig;
export function getViteConfig(config: ViteUserConfig): ViteUserConfigFn;

0 comments on commit 489dd8d

Please sign in to comment.