Skip to content

Commit

Permalink
feat: reference astro/client from astro/config
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Sep 9, 2024
1 parent f7548c9 commit 438ed81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/violet-goats-grab.md
Original file line number Diff line number Diff line change
@@ -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`.
1 change: 1 addition & 0 deletions packages/astro/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference path='./client.d.ts' />
type ViteUserConfig = import('vite').UserConfig;
type ViteUserConfigFn = import('vite').UserConfigFn;
type AstroUserConfig = import('./dist/types/public/config.js').AstroUserConfig;
Expand Down

0 comments on commit 438ed81

Please sign in to comment.