Skip to content

Commit cf20384

Browse files
committed
refactor: improve typing
1 parent 569344e commit cf20384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fireEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getHostParent, isHostElement } from './helpers/component-tree';
55
import { filterNodeByType } from './helpers/filterNodeByType';
66
import { getHostComponentNames } from './helpers/host-component-names';
77

8-
type EventHandler = (...args: any) => unknown;
8+
type EventHandler = (...args: unknown[]) => unknown;
99

1010
function isTextInput(element: ReactTestInstance) {
1111
// We have to test if the element type is either the `TextInput` component

0 commit comments

Comments
 (0)