diff --git a/src/pure.tsx b/src/pure.tsx index a1c14897..6cc35223 100644 --- a/src/pure.tsx +++ b/src/pure.tsx @@ -73,9 +73,14 @@ function resultContainer() { } } +export interface RenderHookOptions { + initialProps?: TProps + wrapper?: React.ComponentType +} + function renderHook( callback: (props: TProps) => TResult, - { initialProps, wrapper }: { initialProps?: TProps; wrapper?: React.ComponentType } = {} + { initialProps, wrapper }: RenderHookOptions = {} ) { const { result, setValue, setError, addResolver } = resultContainer() const hookProps = { current: initialProps }