-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathjsx.d.ts
More file actions
33 lines (28 loc) · 580 Bytes
/
jsx.d.ts
File metadata and controls
33 lines (28 loc) · 580 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { VNode } from 'preact';
interface Options {
jsx?: boolean;
xml?: boolean;
pretty?: boolean | string;
shallow?: boolean;
functions?: boolean;
functionNames?: boolean;
skipFalseAttributes?: boolean;
}
declare function renderToStringPretty(
vnode: VNode,
context?: any,
options?: Options
): string;
declare namespace renderToStringPretty {
export function render(
vnode: VNode,
context?: any,
options?: Options
): string;
export function shallowRender(
vnode: VNode,
context?: any,
options?: Options
): string;
}
export = renderToStringPretty;