Skip to content

Commit a5754f2

Browse files
committed
Replace CallableFunction with a more explicit function type
1 parent f33e457 commit a5754f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/useRef.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('useHook tests', () => {
1313

1414
test('should handle useImperativeHandle hook', () => {
1515
const { result } = renderHook(() => {
16-
const ref = useRef<Record<string, CallableFunction>>({})
16+
const ref = useRef<Record<string, () => boolean>>({})
1717
useImperativeHandle(ref, () => ({
1818
fakeImperativeMethod: () => true
1919
}))

0 commit comments

Comments
 (0)