Fix getViteConfig return type (#6753)

This commit is contained in:
Bjorn Lu 2023-04-05 21:06:00 +08:00 committed by GitHub
parent c7eb0d4310
commit 489dd8d69c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix `getViteConfig` return type

View file

@ -1,4 +1,5 @@
type ViteUserConfig = import('vite').UserConfig;
type ViteUserConfigFn = import('vite').UserConfigFn;
type AstroUserConfig = import('./dist/@types/astro.js').AstroUserConfig;
/**
@ -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;