mirror of
https://github.com/withastro/astro.git
synced 2025-01-22 10:31:53 -05:00
Fix Vue & Svelte server renderer types (#12776)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
This commit is contained in:
parent
96c4b92533
commit
8809b85747
3 changed files with 12 additions and 2 deletions
6
.changeset/old-kings-obey.md
Normal file
6
.changeset/old-kings-obey.md
Normal 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
|
4
packages/integrations/svelte/server.d.ts
vendored
4
packages/integrations/svelte/server.d.ts
vendored
|
@ -1,2 +1,4 @@
|
|||
import type { NamedSSRLoadedRendererValue } from 'astro';
|
||||
export default NamedSSRLoadedRendererValue;
|
||||
|
||||
declare const renderer: NamedSSRLoadedRendererValue;
|
||||
export default renderer;
|
||||
|
|
4
packages/integrations/vue/server.d.ts
vendored
4
packages/integrations/vue/server.d.ts
vendored
|
@ -1,2 +1,4 @@
|
|||
import type { NamedSSRLoadedRendererValue } from 'astro';
|
||||
export default NamedSSRLoadedRendererValue;
|
||||
|
||||
declare const renderer: NamedSSRLoadedRendererValue;
|
||||
export default renderer;
|
||||
|
|
Loading…
Reference in a new issue