site/node_modules/preact-render-to-string/dist/index.d.ts

18 lines
475 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
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;