From 3182941c53c171cef019f38df21b1ec329718809 Mon Sep 17 00:00:00 2001 From: Royston Shufflebotham Date: Wed, 19 Dec 2018 13:03:44 +0000 Subject: [PATCH] fix(TS): add hydrate typings --- typings/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 91e44c15..e267c0df 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -13,12 +13,18 @@ export interface RenderResult extends GetsAndQueries { asFragment: () => DocumentFragment } +export interface RenderOptions { + container: HTMLElement + baseElement?: HTMLElement + hydrate?: boolean +} + /** * Render into a container which is appended to document.body. It should be used with cleanup. */ export function render( ui: React.ReactElement, - options?: {container: HTMLElement; baseElement?: HTMLElement}, + options?: RenderOptions, ): RenderResult /**