We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ee46e6 commit 919f7c6Copy full SHA for 919f7c6
1 file changed
src/render-hook.tsx
@@ -38,7 +38,7 @@ export type RenderHookOptions<Props> = {
38
39
export function renderHook<Result, Props>(
40
hookToRender: (props: Props) => Result,
41
- options?: RenderHookOptions<Props>,
+ options?: RenderHookOptions<NoInfer<Props>>,
42
): RenderHookResult<Result, Props> {
43
const result = React.createRef<Result>() as RefObject<Result>;
44
@@ -67,7 +67,7 @@ export function renderHook<Result, Props>(
67
68
export async function renderHookAsync<Result, Props>(
69
70
71
): Promise<RenderHookAsyncResult<Result, Props>> {
72
73
0 commit comments