Skip to content

Commit 692b92b

Browse files
committed
fix root copy of jsx types
1 parent e0cde8a commit 692b92b

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

jsx.d.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
import { VNode } from 'preact';
22

33
interface Options {
4-
jsx?: boolean;
5-
xml?: boolean;
6-
functions?: boolean
7-
functionNames?: boolean,
8-
skipFalseAttributes?: boolean
9-
pretty?: boolean | string;
4+
jsx?: boolean;
5+
xml?: boolean;
6+
pretty?: boolean | string;
7+
shallow?: boolean;
8+
functions?: boolean;
9+
functionNames?: boolean;
10+
skipFalseAttributes?: boolean;
1011
}
1112

12-
export function render(vnode: VNode, context?: any, options?: Options):string;
13+
export default function renderToStringPretty(
14+
vnode: VNode,
15+
context?: any,
16+
options?: Options
17+
): string;
18+
19+
export function shallowRender(vnode: VNode, context?: any): string;
20+
1321
export default render;

0 commit comments

Comments
 (0)