From bb870e0ee77b775be5debf909c71596e17c0e85d Mon Sep 17 00:00:00 2001 From: Josh Ellis Date: Thu, 7 Jan 2021 10:35:22 +0000 Subject: [PATCH] fix: ReactHooksRenderer renderHook was not expecting arguments --- src/types/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/types/index.ts b/src/types/index.ts index cf151e5e..90885b20 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,3 +1,5 @@ +import { RenderHookOptions } from './internal' + export type Renderer = { render: (props?: TProps) => void rerender: (props?: TProps) => void @@ -48,7 +50,10 @@ export type RenderHook< AsyncUtils export interface ReactHooksRenderer { - renderHook: () => RenderHook + renderHook: ( + callback: (props: TProps) => TResult, + options?: RenderHookOptions + ) => RenderHook act: Act cleanup: () => void addCleanup: (callback: () => Promise | void) => () => void