Skip to content

Commit

Permalink
Replace CallableFunction with a more explicit function type
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeyper committed Dec 15, 2020
1 parent f33e457 commit a5754f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/useRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('useHook tests', () => {

test('should handle useImperativeHandle hook', () => {
const { result } = renderHook(() => {
const ref = useRef<Record<string, CallableFunction>>({})
const ref = useRef<Record<string, () => boolean>>({})
useImperativeHandle(ref, () => ({
fakeImperativeMethod: () => true
}))
Expand Down

0 comments on commit a5754f2

Please sign in to comment.