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

25 lines
496 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { VNode } from 'preact';
interface Options {
jsx?: boolean;
xml?: boolean;
pretty?: boolean | string;
shallow?: boolean;
functions?: boolean;
functionNames?: boolean;
skipFalseAttributes?: boolean;
}
export default function renderToStringPretty(
vnode: VNode,
context?: any,
options?: Options
): string;
export function render(vnode: VNode, context?: any, options?: Options): string;
export function shallowRender(
vnode: VNode,
context?: any,
options?: Options
): string;