Skip to content

Commit 6bf86f9

Browse files
authored
Fix the type bug for queryAllByTestId (#498)
1 parent 17d5165 commit 6bf86f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ interface QueryByAPI {
7070
) => ReactTestInstance | null;
7171
queryByDisplayValue: (value: string | RegExp) => ReactTestInstance | null;
7272
queryByTestId: (testID: string) => ReactTestInstance | null;
73-
queryAllByTestId: (testID: string) => Array<ReactTestInstance> | null;
73+
queryAllByTestId: (testID: string) => Array<ReactTestInstance> | [];
7474
queryAllByText: (text: string | RegExp) => Array<ReactTestInstance> | [];
7575
queryAllByPlaceholderText: (
7676
placeholder: string | RegExp

0 commit comments

Comments
 (0)