astro/packages/astro/config.d.ts
Erika ce01225a70
Fix types not working properly when using moduleResolution: 'node16' (#5108)
* Fix imports failling under `moduleResolution: node16`

* Add changeset

* Revert comment about Vite 4
2022-10-17 11:29:39 -03:00

13 lines
421 B
TypeScript

type ViteUserConfig = import('vite').UserConfig;
type AstroUserConfig = import('./dist/@types/astro.js').AstroUserConfig;
/**
* See the full Astro Configuration API Documentation
* https://astro.build/config
*/
export function defineConfig(config: AstroUserConfig): AstroUserConfig;
/**
* Use Astro to generate a fully resolved Vite config
*/
export function getViteConfig(config: ViteUserConfig): ViteUserConfig;