Skip to content

Commit f099d2f

Browse files
RoystonSKent C. Dodds
authored and
Kent C. Dodds
committed
fix(TS): add hydrate typings (#250)
1 parent 08731f2 commit f099d2f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

typings/index.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ export interface RenderResult extends GetsAndQueries {
1313
asFragment: () => DocumentFragment
1414
}
1515

16+
export interface RenderOptions {
17+
container: HTMLElement
18+
baseElement?: HTMLElement
19+
hydrate?: boolean
20+
}
21+
1622
/**
1723
* Render into a container which is appended to document.body. It should be used with cleanup.
1824
*/
1925
export function render(
2026
ui: React.ReactElement<any>,
21-
options?: {container: HTMLElement; baseElement?: HTMLElement},
27+
options?: RenderOptions,
2228
): RenderResult
2329

2430
/**

0 commit comments

Comments
 (0)