|
1 |
| -import { Matcher, MatcherOptions } from './matches' |
2 |
| -import { SelectorMatcherOptions } from './query-helpers' |
3 |
| -import { waitForOptions } from './wait-for' |
4 |
| -import { ARIARole } from 'aria-query' |
| 1 | +import {Matcher, MatcherOptions} from './matches' |
| 2 | +import {SelectorMatcherOptions} from './query-helpers' |
| 3 | +import {waitForOptions} from './wait-for' |
| 4 | +import {ARIARole} from 'aria-query' |
5 | 5 |
|
6 | 6 | export type QueryByBoundAttribute = (
|
7 | 7 | container: HTMLElement,
|
@@ -93,64 +93,67 @@ export interface ByRoleOptions extends MatcherOptions {
|
93 | 93 | | ((accessibleName: string, element: Element) => boolean)
|
94 | 94 | }
|
95 | 95 |
|
96 |
| -export declare function AllByRole( |
| 96 | +// disable unified-signatures to have intellisense for aria roles |
| 97 | +/* tslint:disable:unified-signatures */ |
| 98 | +export function AllByRole( |
97 | 99 | container: HTMLElement,
|
98 | 100 | role: Matcher,
|
99 | 101 | options?: ByRoleOptions,
|
100 | 102 | ): HTMLElement[]
|
101 |
| -export declare function AllByRole( |
| 103 | +export function AllByRole( |
102 | 104 | container: HTMLElement,
|
103 | 105 | role: ARIARole,
|
104 | 106 | options?: ByRoleOptions,
|
105 | 107 | ): HTMLElement[]
|
106 | 108 |
|
107 |
| -export declare function GetByRole( |
| 109 | +export function GetByRole( |
108 | 110 | container: HTMLElement,
|
109 | 111 | role: Matcher,
|
110 | 112 | options?: ByRoleOptions,
|
111 | 113 | ): HTMLElement
|
112 |
| -export declare function GetByRole( |
| 114 | +export function GetByRole( |
113 | 115 | container: HTMLElement,
|
114 | 116 | role: ARIARole,
|
115 | 117 | options?: ByRoleOptions,
|
116 | 118 | ): HTMLElement
|
117 | 119 |
|
118 |
| -export declare function QueryByRole( |
| 120 | +export function QueryByRole( |
119 | 121 | container: HTMLElement,
|
120 | 122 | role: Matcher | ByRoleOptions,
|
121 | 123 | options?: ByRoleOptions,
|
122 | 124 | ): HTMLElement | null
|
123 |
| -export declare function QueryByRole( |
| 125 | +export function QueryByRole( |
124 | 126 | container: HTMLElement,
|
125 | 127 | role: ARIARole,
|
126 | 128 | options?: ByRoleOptions,
|
127 | 129 | ): HTMLElement | null
|
128 | 130 |
|
129 |
| -export declare function FindByRole( |
| 131 | +export function FindByRole( |
130 | 132 | container: HTMLElement,
|
131 | 133 | role: Matcher,
|
132 | 134 | options?: ByRoleOptions,
|
133 | 135 | waitForElementOptions?: waitForOptions,
|
134 | 136 | ): Promise<HTMLElement>
|
135 |
| -export declare function FindByRole( |
| 137 | +export function FindByRole( |
136 | 138 | container: HTMLElement,
|
137 | 139 | role: ARIARole,
|
138 | 140 | options?: ByRoleOptions,
|
139 | 141 | waitForElementOptions?: waitForOptions,
|
140 | 142 | ): Promise<HTMLElement>
|
141 | 143 |
|
142 |
| -export declare function FindAllByRole( |
| 144 | +export function FindAllByRole( |
143 | 145 | container: HTMLElement,
|
144 | 146 | role: Matcher,
|
145 | 147 | options?: ByRoleOptions,
|
146 | 148 | waitForElementOptions?: waitForOptions,
|
147 | 149 | ): Promise<HTMLElement[]>
|
148 |
| -export declare function FindAllByRole( |
| 150 | +export function FindAllByRole( |
149 | 151 | container: HTMLElement,
|
150 | 152 | role: Matcher,
|
151 | 153 | options?: ByRoleOptions,
|
152 | 154 | waitForElementOptions?: waitForOptions,
|
153 | 155 | ): Promise<HTMLElement[]>
|
| 156 | +/* tslint:enable */ |
154 | 157 |
|
155 | 158 | export const getByLabelText: GetByText
|
156 | 159 | export const getAllByLabelText: AllByText
|
|
0 commit comments