@@ -389,6 +389,37 @@ interface A11yAPI {
389
389
) = > FindAllReturn ;
390
390
}
391
391
392
+ type ByPredicateOptions = CommonQueryOptions;
393
+
394
+ interface ByPredicateQueries {
395
+ getByPredicate : (
396
+ placeholder : TextMatch ,
397
+ options ? : ByPredicateOptions
398
+ ) = > ReactTestInstance ;
399
+ getAllByPredicate : (
400
+ placeholder : TextMatch ,
401
+ options ? : ByPredicateOptions
402
+ ) = > Array < ReactTestInstance > ;
403
+ queryByPredicate : (
404
+ placeholder : TextMatch ,
405
+ options ? : ByPredicateOptions
406
+ ) = > ReactTestInstance | null ;
407
+ queryAllByPredicate : (
408
+ placeholder : TextMatch ,
409
+ options ? : ByPredicateOptions
410
+ ) = > Array < ReactTestInstance > | [ ] ;
411
+ findByPredicate : (
412
+ placeholder : TextMatch ,
413
+ queryOptions ? : ByPredicateOptions ,
414
+ waitForOptions ? : WaitForOptions
415
+ ) = > FindReturn ;
416
+ findAllByPredicate : (
417
+ placeholder : TextMatch ,
418
+ queryOptions ? : ByPredicateOptions ,
419
+ waitForOptions ? : WaitForOptions
420
+ ) = > FindAllReturn ;
421
+ }
422
+
392
423
interface Thenable {
393
424
then : ( resolve : ( ) = > any , reject ? : ( ) => any ) = > any ;
394
425
}
@@ -412,6 +443,7 @@ type Queries = ByTextQueries &
412
443
ByTestIdQueries &
413
444
ByDisplayValueQueries &
414
445
ByPlaceholderTextQueries &
446
+ ByPredicateQueries &
415
447
UnsafeByTypeQueries &
416
448
UnsafeByPropsQueries &
417
449
A11yAPI ;
0 commit comments