From 63441335260667804cc6950530e55f6397be3ec9 Mon Sep 17 00:00:00 2001 From: Yoshiki Shibukawa Date: Mon, 22 Feb 2021 07:03:06 +0900 Subject: [PATCH] fix: Type definitions for findByRole() and findAllByRole() (#173) --- types/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 7b954bb..c53b1de 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3,6 +3,7 @@ import { configure, Matcher, + ByRoleMatcher, MatcherOptions as DTLMatcherOptions, ByRoleOptions as DTLByRoleOptions, SelectorMatcherOptions as DTLSelectorMatcherOptions, @@ -211,7 +212,7 @@ declare global { * @see https://github.com/testing-library/cypress-testing-library#usage * @see https://github.com/testing-library/dom-testing-library#table-of-contents */ - findByRole(id: Matcher, options?: ByRoleOptions): Chainable + findByRole(id: ByRoleMatcher, options?: ByRoleOptions): Chainable /** * dom-testing-library helpers for Cypress @@ -222,7 +223,7 @@ declare global { * @see https://github.com/testing-library/cypress-testing-library#usage * @see https://github.com/testing-library/dom-testing-library#table-of-contents */ - findAllByRole(id: Matcher, options?: ByRoleOptions): Chainable + findAllByRole(id: ByRoleMatcher, options?: ByRoleOptions): Chainable /** * dom-testing-library helpers for Cypress