We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
renderToString
1 parent b3bc8fc commit 3dcf098Copy full SHA for 3dcf098
src/index.d.ts
@@ -1,7 +1,7 @@
1
import { VNode } from 'preact';
2
3
-export default function renderToString(vnode: VNode, context?: any): string;
+export default function renderToString<P = {}>(vnode: VNode<P>, context?: any): string;
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;
+export function render<P = {}>(vnode: VNode<P>, context?: any): string;
+export function renderToString<P = {}>(vnode: VNode<P>, context?: any): string;
+export function renderToStaticMarkup<P = {}>(vnode: VNode<P>, context?: any): string;
0 commit comments