Skip to content

Commit

Permalink
Fix Vue & Svelte server renderer types (#12776)
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
  • Loading branch information
aminevg and ematipico authored Jan 2, 2025
1 parent 96c4b92 commit 8809b85
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/old-kings-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@astrojs/svelte': patch
'@astrojs/vue': patch
---

Fixes an issue where TypeScript couldn't infer the correct types of the `server.mjs` file
4 changes: 3 additions & 1 deletion packages/integrations/svelte/server.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
import type { NamedSSRLoadedRendererValue } from 'astro';
export default NamedSSRLoadedRendererValue;

declare const renderer: NamedSSRLoadedRendererValue;
export default renderer;
4 changes: 3 additions & 1 deletion packages/integrations/vue/server.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
import type { NamedSSRLoadedRendererValue } from 'astro';
export default NamedSSRLoadedRendererValue;

declare const renderer: NamedSSRLoadedRendererValue;
export default renderer;

0 comments on commit 8809b85

Please sign in to comment.