diff --git a/.changeset/violet-goats-grab.md b/.changeset/violet-goats-grab.md new file mode 100644 index 000000000000..ae4bfef831cd --- /dev/null +++ b/.changeset/violet-goats-grab.md @@ -0,0 +1,7 @@ +--- +'astro': minor +--- + +Updates `astro/config` import to reference `astro/client` types + +When importing `astro/config`, types from `astro/client` will be made automatically available to your project. If your project `tsconfig.json` changes how references behave, you'll still have access to these types after running `astro sync`. diff --git a/packages/astro/config.d.ts b/packages/astro/config.d.ts index 2e4e72d797b2..de2a500c25b2 100644 --- a/packages/astro/config.d.ts +++ b/packages/astro/config.d.ts @@ -1,3 +1,4 @@ +/// type ViteUserConfig = import('vite').UserConfig; type ViteUserConfigFn = import('vite').UserConfigFn; type AstroUserConfig = import('./dist/types/public/config.js').AstroUserConfig;