File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " preact-render-to-string " : patch
3
+ ---
4
+
5
+ fix external type definitions of ` renderToString `
Original file line number Diff line number Diff line change 1
1
import { VNode } from 'preact' ;
2
2
3
- export default function renderToString ( vnode : VNode , context ?: any ) : string ;
3
+ export default function renderToString < P = { } > ( vnode : VNode < P > , context ?: any ) : string ;
4
4
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 ;
You can’t perform that action at this time.
0 commit comments