Skip to content

Commit eaee298

Browse files
committed
fix renderHook options type to intersect RenderOptions type
1 parent 1ba1bd9 commit eaee298

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ export function renderHook<P extends any, T extends (...args: [P]) => any>(
44
callback: (_: P) => ReturnType<T>,
55
options?: {
66
initialProps?: P
7-
options?: RenderOptions
8-
}
7+
} & RenderOptions
98
): {
109
readonly result: {
1110
current: ReturnType<T>

0 commit comments

Comments
 (0)