-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4aec8d2
commit 012e9e5
Showing
4 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
import { queries, BoundFunctions, Queries } from '@testing-library/dom'; | ||
|
||
const all = Symbol('all'); | ||
export const optional = Symbol('optional'); | ||
|
||
export interface RoleDescriptor { | ||
readonly role: string; | ||
readonly name?: string | RegExp; | ||
readonly [optional]?: true; | ||
readonly isSelected?: boolean; | ||
// readonly all?: true; | ||
readonly event?: 'click'; | ||
} | ||
|
||
export interface AllDescriptor { | ||
readonly all: true; | ||
} | ||
|
||
export interface AllRoleDescription extends RoleDescriptor, AllDescriptor {} | ||
|
||
export interface SingleDescriptor<Q extends Queries = typeof queries> { | ||
get(source: BoundFunctions<Q>): HTMLElement; | ||
} |