Skip to content

Commit

Permalink
chore: deprecate html in favour of body for render()
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Jun 6, 2024
1 parent c69978f commit 260192b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/svelte/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2113,9 +2113,11 @@ declare module 'svelte/server' {
context?: Map<any, any>;
}): RenderOutput;
interface RenderOutput {
/** HTML that goes into the `<head>` */
head: string;
/** @deprecated */
/** @deprecated use `body` instead */
html: string;
/** HTML that goes somewhere into the `<body>` */
body: string;
}
}
Expand Down

0 comments on commit 260192b

Please sign in to comment.