1- // flow-typed signature: 2ec4c8cd8f67266b906a8137b83f9fc7
2- // flow-typed version: 11a906f160 /@testing-library/react_v10.x.x/flow_>=v0.104.x
1+ // flow-typed signature: ae2315526b7166323994a02216dc7db6
2+ // flow-typed version: 539567b90a /@testing-library/react_v10.x.x/flow_>=v0.104.x
33
44declare module '@testing-library/react' {
55 // This type comes from
@@ -137,7 +137,7 @@ declare module '@testing-library/react' {
137137 ) => Promise < HTMLElement > ;
138138
139139 declare type FindAllByRole = (
140- role : Matcher ,
140+ role : any ,
141141 options ? : ByRoleOptions ,
142142 waitForElementOptions ? : WaitForElementOptions
143143 ) => Promise < HTMLElement [ ] > ;
@@ -238,7 +238,7 @@ declare module '@testing-library/react' {
238238 container ?: HTMLElement ,
239239 baseElement ?: HTMLElement ,
240240 hydrate ?: boolean ,
241- wrapper ?: React . ComponentType ,
241+ wrapper ?: React$ ComponentType < any > ,
242242 | } ;
243243
244244 declare export type RenderOptionsWithCustomQueries <
@@ -248,17 +248,17 @@ declare module '@testing-library/react' {
248248 container ?: HTMLElement ,
249249 baseElement ?: HTMLElement ,
250250 hydrate ?: boolean ,
251- wrapper ?: React . ComponentType ,
251+ wrapper ?: React$ ComponentType < any > ,
252252 | } ;
253253
254254 declare export function render (
255- ui : React . ReactElement < any > ,
255+ ui : React$Element < any > ,
256256 options ?: RenderOptionsWithoutCustomQueries
257257 ) : RenderResult < > ;
258258 declare export function render <
259259 CustomQueries : { [ string ] : ( ...args : Array < any > ) => any , ... }
260260 > (
261- ui : React . ReactElement < any > ,
261+ ui : React$Element < any > ,
262262 options : RenderOptionsWithCustomQueries < CustomQueries >
263263 ) : RenderResult < CustomQueries > ;
264264
@@ -403,6 +403,11 @@ declare module '@testing-library/react' {
403403 id: TextMatch,
404404 options?: TextMatchOptions
405405 ): HTMLElement;
406+ declare export function getAllByTestId(
407+ container: HTMLElement,
408+ text: TextMatch,
409+ options?: TextMatchOptions
410+ ): Array< HTMLElement > ;
406411 declare export function queryByText(
407412 container: HTMLElement,
408413 text: TextMatch,
0 commit comments