Skip to content

Commit a16d3a3

Browse files
FredyCotofu-square
andauthored
Simplify the way to extract first argument type
Co-Authored-By: otofu-square <otofu.square@gmail.com>
1 parent b2478e8 commit a16d3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { cleanup, act, RenderOptions, RenderResult } from 'react-testing-library'
22

33
export function renderHook<P, R>(
4-
callback: (...args: [P]) => R,
4+
callback: (props: P) => R,
55
options?: {
66
initialProps?: P
77
} & RenderOptions

0 commit comments

Comments
 (0)