18 lines
475 B
TypeScript
18 lines
475 B
TypeScript
import { VNode } from 'preact';
|
|
|
|
export default function renderToString<P = {}>(
|
|
vnode: VNode<P>,
|
|
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 renderToStringAsync<P = {}>(
|
|
vnode: VNode<P>,
|
|
context?: any
|
|
): string | Promise<string>;
|
|
export function renderToStaticMarkup<P = {}>(
|
|
vnode: VNode<P>,
|
|
context?: any
|
|
): string;
|