@@ -12,7 +12,9 @@ export interface CTLMatcherOptions {
12
12
}
13
13
14
14
export type MatcherOptions = DTLMatcherOptions | CTLMatcherOptions
15
- export type SelectorMatcherOptions = DTLSelectorMatcherOptions | CTLMatcherOptions
15
+ export type SelectorMatcherOptions =
16
+ | DTLSelectorMatcherOptions
17
+ | CTLMatcherOptions
16
18
17
19
declare global {
18
20
namespace Cypress {
@@ -31,11 +33,11 @@ declare global {
31
33
queryByPlaceholderText < E extends Node = HTMLElement > (
32
34
id : Matcher ,
33
35
options ?: MatcherOptions ,
34
- ) : Chainable < E | null >
36
+ ) : Chainable < JQuery < E > >
35
37
queryByPlaceholderText < K extends keyof HTMLElementTagNameMap > (
36
38
id : Matcher ,
37
39
options ?: MatcherOptions ,
38
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
40
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
39
41
40
42
/**
41
43
* dom-testing-library helpers for Cypress
@@ -51,11 +53,11 @@ declare global {
51
53
queryAllByPlaceholderText < E extends Node = HTMLElement > (
52
54
id : Matcher ,
53
55
options ?: MatcherOptions ,
54
- ) : Chainable < ( E | null ) [ ] >
56
+ ) : Chainable < JQuery < E > >
55
57
queryAllByPlaceholderText < K extends keyof HTMLElementTagNameMap > (
56
58
id : Matcher ,
57
59
options ?: MatcherOptions ,
58
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
60
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
59
61
60
62
/**
61
63
* dom-testing-library helpers for Cypress
@@ -71,11 +73,11 @@ declare global {
71
73
getByPlaceholderText < E extends Node = HTMLElement > (
72
74
id : Matcher ,
73
75
options ?: MatcherOptions ,
74
- ) : Chainable < E >
76
+ ) : Chainable < JQuery < E > >
75
77
getByPlaceholderText < K extends keyof HTMLElementTagNameMap > (
76
78
id : Matcher ,
77
79
options ?: MatcherOptions ,
78
- ) : Chainable < HTMLElementTagNameMap [ K ] >
80
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
79
81
80
82
/**
81
83
* dom-testing-library helpers for Cypress
@@ -91,11 +93,11 @@ declare global {
91
93
getAllByPlaceholderText < E extends Node = HTMLElement > (
92
94
id : Matcher ,
93
95
options ?: MatcherOptions ,
94
- ) : Chainable < E [ ] >
96
+ ) : Chainable < JQuery < E > >
95
97
getAllByPlaceholderText < K extends keyof HTMLElementTagNameMap > (
96
98
id : Matcher ,
97
99
options ?: MatcherOptions ,
98
- ) : Chainable < HTMLElementTagNameMap [ K ] [ ] >
100
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
99
101
100
102
/**
101
103
* dom-testing-library helpers for Cypress
@@ -111,11 +113,11 @@ declare global {
111
113
queryBySelectText < E extends Node = HTMLElement > (
112
114
id : Matcher ,
113
115
options ?: MatcherOptions ,
114
- ) : Chainable < E | null >
116
+ ) : Chainable < JQuery < E > >
115
117
queryBySelectText < K extends keyof HTMLElementTagNameMap > (
116
118
id : Matcher ,
117
119
options ?: MatcherOptions ,
118
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
120
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
119
121
120
122
/**
121
123
* dom-testing-library helpers for Cypress
@@ -131,11 +133,11 @@ declare global {
131
133
queryAllBySelectText < E extends Node = HTMLElement > (
132
134
id : Matcher ,
133
135
options ?: MatcherOptions ,
134
- ) : Chainable < ( E | null ) [ ] >
136
+ ) : Chainable < JQuery < E > >
135
137
queryAllBySelectText < K extends keyof HTMLElementTagNameMap > (
136
138
id : Matcher ,
137
139
options ?: MatcherOptions ,
138
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
140
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
139
141
140
142
/**
141
143
* dom-testing-library helpers for Cypress
@@ -191,11 +193,11 @@ declare global {
191
193
queryByText < E extends Node = HTMLElement > (
192
194
id : Matcher ,
193
195
options ?: SelectorMatcherOptions ,
194
- ) : Chainable < E | null >
196
+ ) : Chainable < JQuery < E > >
195
197
queryByText < K extends keyof HTMLElementTagNameMap > (
196
198
id : Matcher ,
197
199
options ?: SelectorMatcherOptions ,
198
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
200
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
199
201
200
202
/**
201
203
* dom-testing-library helpers for Cypress
@@ -211,11 +213,11 @@ declare global {
211
213
queryAllByText < E extends Node = HTMLElement > (
212
214
id : Matcher ,
213
215
options ?: SelectorMatcherOptions ,
214
- ) : Chainable < ( E | null ) [ ] >
216
+ ) : Chainable < JQuery < E > >
215
217
queryAllByText < K extends keyof HTMLElementTagNameMap > (
216
218
id : Matcher ,
217
219
options ?: SelectorMatcherOptions ,
218
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
220
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
219
221
220
222
/**
221
223
* dom-testing-library helpers for Cypress
@@ -271,11 +273,11 @@ declare global {
271
273
queryByLabelText < E extends Node = HTMLElement > (
272
274
id : Matcher ,
273
275
options ?: SelectorMatcherOptions ,
274
- ) : Chainable < E | null >
276
+ ) : Chainable < JQuery < E > >
275
277
queryByLabelText < K extends keyof HTMLElementTagNameMap > (
276
278
id : Matcher ,
277
279
options ?: SelectorMatcherOptions ,
278
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
280
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
279
281
280
282
/**
281
283
* dom-testing-library helpers for Cypress
@@ -291,11 +293,11 @@ declare global {
291
293
queryAllByLabelText < E extends Node = HTMLElement > (
292
294
id : Matcher ,
293
295
options ?: SelectorMatcherOptions ,
294
- ) : Chainable < ( E | null ) [ ] >
296
+ ) : Chainable < JQuery < E > >
295
297
queryAllByLabelText < K extends keyof HTMLElementTagNameMap > (
296
298
id : Matcher ,
297
299
options ?: SelectorMatcherOptions ,
298
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
300
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
299
301
300
302
/**
301
303
* dom-testing-library helpers for Cypress
@@ -351,11 +353,11 @@ declare global {
351
353
queryByAltText < E extends Node = HTMLElement > (
352
354
id : Matcher ,
353
355
options ?: MatcherOptions ,
354
- ) : Chainable < E | null >
356
+ ) : Chainable < JQuery < E > >
355
357
queryByAltText < K extends keyof HTMLElementTagNameMap > (
356
358
id : Matcher ,
357
359
options ?: MatcherOptions ,
358
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
360
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
359
361
360
362
/**
361
363
* dom-testing-library helpers for Cypress
@@ -371,11 +373,11 @@ declare global {
371
373
queryAllByAltText < E extends Node = HTMLElement > (
372
374
id : Matcher ,
373
375
options ?: MatcherOptions ,
374
- ) : Chainable < ( E | null ) [ ] >
376
+ ) : Chainable < JQuery < E > >
375
377
queryAllByAltText < K extends keyof HTMLElementTagNameMap > (
376
378
id : Matcher ,
377
379
options ?: MatcherOptions ,
378
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
380
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
379
381
380
382
/**
381
383
* dom-testing-library helpers for Cypress
@@ -431,11 +433,11 @@ declare global {
431
433
queryByTestId < E extends Node = HTMLElement > (
432
434
id : Matcher ,
433
435
options ?: MatcherOptions ,
434
- ) : Chainable < E | null >
436
+ ) : Chainable < JQuery < E > >
435
437
queryByTestId < K extends keyof HTMLElementTagNameMap > (
436
438
id : Matcher ,
437
439
options ?: MatcherOptions ,
438
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
440
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
439
441
440
442
/**
441
443
* dom-testing-library helpers for Cypress
@@ -451,11 +453,11 @@ declare global {
451
453
queryAllByTestId < E extends Node = HTMLElement > (
452
454
id : Matcher ,
453
455
options ?: MatcherOptions ,
454
- ) : Chainable < ( E | null ) [ ] >
456
+ ) : Chainable < JQuery < E > >
455
457
queryAllByTestId < K extends keyof HTMLElementTagNameMap > (
456
458
id : Matcher ,
457
459
options ?: MatcherOptions ,
458
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
460
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
459
461
460
462
/**
461
463
* dom-testing-library helpers for Cypress
@@ -511,11 +513,11 @@ declare global {
511
513
queryByTitle < E extends Node = HTMLElement > (
512
514
id : Matcher ,
513
515
options ?: MatcherOptions ,
514
- ) : Chainable < E | null >
516
+ ) : Chainable < JQuery < E > >
515
517
queryByTitle < K extends keyof HTMLElementTagNameMap > (
516
518
id : Matcher ,
517
519
options ?: MatcherOptions ,
518
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
520
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
519
521
520
522
/**
521
523
* dom-testing-library helpers for Cypress
@@ -531,11 +533,11 @@ declare global {
531
533
queryAllByTitle < E extends Node = HTMLElement > (
532
534
id : Matcher ,
533
535
options ?: MatcherOptions ,
534
- ) : Chainable < ( E | null ) [ ] >
536
+ ) : Chainable < JQuery < E > >
535
537
queryAllByTitle < K extends keyof HTMLElementTagNameMap > (
536
538
id : Matcher ,
537
539
options ?: MatcherOptions ,
538
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
540
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
539
541
540
542
/**
541
543
* dom-testing-library helpers for Cypress
@@ -591,11 +593,11 @@ declare global {
591
593
queryByDisplayValue < E extends Node = HTMLElement > (
592
594
id : Matcher ,
593
595
options ?: MatcherOptions ,
594
- ) : Chainable < E | null >
596
+ ) : Chainable < JQuery < E > >
595
597
queryByDisplayValue < K extends keyof HTMLElementTagNameMap > (
596
598
id : Matcher ,
597
599
options ?: MatcherOptions ,
598
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
600
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
599
601
600
602
/**
601
603
* dom-testing-library helpers for Cypress
@@ -611,11 +613,11 @@ declare global {
611
613
queryAllByDisplayValue < E extends Node = HTMLElement > (
612
614
id : Matcher ,
613
615
options ?: MatcherOptions ,
614
- ) : Chainable < ( E | null ) [ ] >
616
+ ) : Chainable < JQuery < E > >
615
617
queryAllByDisplayValue < K extends keyof HTMLElementTagNameMap > (
616
618
id : Matcher ,
617
619
options ?: MatcherOptions ,
618
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
620
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
619
621
620
622
/**
621
623
* dom-testing-library helpers for Cypress
@@ -671,11 +673,11 @@ declare global {
671
673
queryByRole < E extends Node = HTMLElement > (
672
674
id : Matcher ,
673
675
options ?: MatcherOptions ,
674
- ) : Chainable < E | null >
676
+ ) : Chainable < JQuery < E > >
675
677
queryByRole < K extends keyof HTMLElementTagNameMap > (
676
678
id : Matcher ,
677
679
options ?: MatcherOptions ,
678
- ) : Chainable < HTMLElementTagNameMap [ K ] | null >
680
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
679
681
680
682
/**
681
683
* dom-testing-library helpers for Cypress
@@ -691,11 +693,11 @@ declare global {
691
693
queryAllByRole < E extends Node = HTMLElement > (
692
694
id : Matcher ,
693
695
options ?: MatcherOptions ,
694
- ) : Chainable < ( E | null ) [ ] >
696
+ ) : Chainable < JQuery < E > >
695
697
queryAllByRole < K extends keyof HTMLElementTagNameMap > (
696
698
id : Matcher ,
697
699
options ?: MatcherOptions ,
698
- ) : Chainable < ( HTMLElementTagNameMap [ K ] | null ) [ ] >
700
+ ) : Chainable < JQuery < HTMLElementTagNameMap [ K ] > >
699
701
700
702
/**
701
703
* dom-testing-library helpers for Cypress
0 commit comments