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` 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;