Fix Vue & Svelte server renderer types (#12776)

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
This commit is contained in:
Amine Ilidrissi 2025-01-02 18:56:07 +09:00 committed by GitHub
parent 96c4b92533
commit 8809b85747
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -1,2 +1,4 @@
import type { NamedSSRLoadedRendererValue } from 'astro';
export default NamedSSRLoadedRendererValue;
declare const renderer: NamedSSRLoadedRendererValue;
export default renderer;

View file

@ -1,2 +1,4 @@
import type { NamedSSRLoadedRendererValue } from 'astro';
export default NamedSSRLoadedRendererValue;
declare const renderer: NamedSSRLoadedRendererValue;
export default renderer;