Skip to content

Commit e9d38b5

Browse files
committed
fix: regenerate types
1 parent 173dbd7 commit e9d38b5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

packages/svelte/types/index.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,26 @@ declare module 'svelte/server' {
17371737
options: { props: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any> }
17381738
]
17391739
): RenderOutput;
1740+
1741+
/**
1742+
* Only available on the server and when compiling with the `server` option.
1743+
* Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app.
1744+
* Unlike `render` it doesn't render any hydration marker.
1745+
*/
1746+
export function renderStaticHTML<
1747+
Comp extends SvelteComponent<any> | Component<any>,
1748+
Props extends ComponentProps<Comp> = ComponentProps<Comp>
1749+
>(
1750+
...args: {} extends Props
1751+
? [
1752+
component: Comp extends SvelteComponent<any> ? ComponentType<Comp> : Comp,
1753+
options?: { props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any> }
1754+
]
1755+
: [
1756+
component: Comp extends SvelteComponent<any> ? ComponentType<Comp> : Comp,
1757+
options: { props: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any> }
1758+
]
1759+
): RenderOutput;
17401760
interface RenderOutput {
17411761
/** HTML that goes into the `<head>` */
17421762
head: string;

0 commit comments

Comments
 (0)