From 3dcf09891b13190faed36f4d798e2adb9cd3e6fd Mon Sep 17 00:00:00 2001 From: Geoffrey Casper Date: Wed, 13 Dec 2023 20:21:15 -0500 Subject: [PATCH 1/2] fix external type definitions of `renderToString` --- src/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index 113cbcb7..6b7b7e5d 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,7 +1,7 @@ import { VNode } from 'preact'; -export default function renderToString(vnode: VNode, context?: any): string; +export default function renderToString

(vnode: VNode

, context?: any): string; -export function render(vnode: VNode, context?: any): string; -export function renderToString(vnode: VNode, context?: any): string; -export function renderToStaticMarkup(vnode: VNode, context?: any): string; +export function render

(vnode: VNode

, context?: any): string; +export function renderToString

(vnode: VNode

, context?: any): string; +export function renderToStaticMarkup

(vnode: VNode

, context?: any): string; From 87d8c21e61c8fb9c1ec9d8d69a826bfb3e5db9af Mon Sep 17 00:00:00 2001 From: Geoffrey Casper Date: Wed, 13 Dec 2023 20:39:15 -0500 Subject: [PATCH 2/2] Create changeset --- .changeset/afraid-dolls-walk.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/afraid-dolls-walk.md diff --git a/.changeset/afraid-dolls-walk.md b/.changeset/afraid-dolls-walk.md new file mode 100644 index 00000000..d6dfe7d7 --- /dev/null +++ b/.changeset/afraid-dolls-walk.md @@ -0,0 +1,5 @@ +--- +"preact-render-to-string": patch +--- + +fix external type definitions of `renderToString`