Skip to content

Commit cb32a6a

Browse files
authored
Merge pull request #326 from Geo25rey/patch-1
fix external type definitions of `renderToString`
2 parents f4aff9d + 87d8c21 commit cb32a6a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/afraid-dolls-walk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"preact-render-to-string": patch
3+
---
4+
5+
fix external type definitions of `renderToString`

src/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { VNode } from 'preact';
22

3-
export default function renderToString(vnode: VNode, context?: any): string;
3+
export default function renderToString<P = {}>(vnode: VNode<P>, context?: any): string;
44

5-
export function render(vnode: VNode, context?: any): string;
6-
export function renderToString(vnode: VNode, context?: any): string;
7-
export function renderToStaticMarkup(vnode: VNode, context?: any): string;
5+
export function render<P = {}>(vnode: VNode<P>, context?: any): string;
6+
export function renderToString<P = {}>(vnode: VNode<P>, context?: any): string;
7+
export function renderToStaticMarkup<P = {}>(vnode: VNode<P>, context?: any): string;

0 commit comments

Comments
 (0)