Skip to content

Commit

Permalink
fix: ReactHooksRenderer renderHook was not expecting arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Jan 7, 2021
1 parent a25993f commit bb870e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { RenderHookOptions } from './internal'

export type Renderer<TProps> = {
render: (props?: TProps) => void
rerender: (props?: TProps) => void
Expand Down Expand Up @@ -48,7 +50,10 @@ export type RenderHook<
AsyncUtils

export interface ReactHooksRenderer {
renderHook: <TProps, TResult>() => RenderHook<TProps, TResult>
renderHook: <TProps, TResult, TOptions>(
callback: (props: TProps) => TResult,
options?: RenderHookOptions<TProps, TOptions>
) => RenderHook<TProps, TResult>
act: Act
cleanup: () => void
addCleanup: (callback: () => Promise<void> | void) => () => void
Expand Down

0 comments on commit bb870e0

Please sign in to comment.