Skip to content

Commit fd3b321

Browse files
ppi-buckKent C. Dodds
authored andcommitted
fix(TS): change *ByValue to *ByDisplayValue (#51)
These changes in typings were not done when changing the API from *ByValue to *ByDisplayValue Closes #42
1 parent f918436 commit fd3b321

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

typings/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,11 @@ declare global {
588588
* @see https://github.com/testing-library/cypress-testing-library#usage
589589
* @see https://github.com/testing-library/dom-testing-library#table-of-contents
590590
*/
591-
queryByValue<E extends Node = HTMLElement>(
591+
queryByDisplayValue<E extends Node = HTMLElement>(
592592
id: Matcher,
593593
options?: MatcherOptions,
594594
): Chainable<E | null>
595-
queryByValue<K extends keyof HTMLElementTagNameMap>(
595+
queryByDisplayValue<K extends keyof HTMLElementTagNameMap>(
596596
id: Matcher,
597597
options?: MatcherOptions,
598598
): Chainable<HTMLElementTagNameMap[K] | null>
@@ -608,11 +608,11 @@ declare global {
608608
* @see https://github.com/testing-library/cypress-testing-library#usage
609609
* @see https://github.com/testing-library/dom-testing-library#table-of-contents
610610
*/
611-
queryAllByValue<E extends Node = HTMLElement>(
611+
queryAllByDisplayValue<E extends Node = HTMLElement>(
612612
id: Matcher,
613613
options?: MatcherOptions,
614614
): Chainable<(E | null)[]>
615-
queryAllByValue<K extends keyof HTMLElementTagNameMap>(
615+
queryAllByDisplayValue<K extends keyof HTMLElementTagNameMap>(
616616
id: Matcher,
617617
options?: MatcherOptions,
618618
): Chainable<(HTMLElementTagNameMap[K] | null)[]>
@@ -628,11 +628,11 @@ declare global {
628628
* @see https://github.com/testing-library/cypress-testing-library#usage
629629
* @see https://github.com/testing-library/dom-testing-library#table-of-contents
630630
*/
631-
getByValue<E extends Node = HTMLElement>(
631+
getByDisplayValue<E extends Node = HTMLElement>(
632632
id: Matcher,
633633
options?: MatcherOptions,
634634
): Chainable<E>
635-
getByValue<K extends keyof HTMLElementTagNameMap>(
635+
getByDisplayValue<K extends keyof HTMLElementTagNameMap>(
636636
id: Matcher,
637637
options?: MatcherOptions,
638638
): Chainable<HTMLElementTagNameMap[K]>
@@ -648,11 +648,11 @@ declare global {
648648
* @see https://github.com/testing-library/cypress-testing-library#usage
649649
* @see https://github.com/testing-library/dom-testing-library#table-of-contents
650650
*/
651-
getAllByValue<E extends Node = HTMLElement>(
651+
getAllByDisplayValue<E extends Node = HTMLElement>(
652652
id: Matcher,
653653
options?: MatcherOptions,
654654
): Chainable<E[]>
655-
getAllByValue<K extends keyof HTMLElementTagNameMap>(
655+
getAllByDisplayValue<K extends keyof HTMLElementTagNameMap>(
656656
id: Matcher,
657657
options?: MatcherOptions,
658658
): Chainable<HTMLElementTagNameMap[K][]>

0 commit comments

Comments
 (0)