Skip to content

Commit 7310d15

Browse files
committed
Flow type tweaks
1 parent d4cbb45 commit 7310d15

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

typings/index.flow.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -212,63 +212,63 @@ interface A11yAPI {
212212
// Label
213213
getByLabelText: (
214214
matcher: TextMatch,
215-
queryOptions?: TextMatchOptions
215+
options?: TextMatchOptions
216216
) => GetReturn;
217217
getAllByLabelText: (
218218
matcher: TextMatch,
219-
queryOptions?: TextMatchOptions
219+
options?: TextMatchOptions
220220
) => GetAllReturn;
221221
queryByLabelText: (
222222
matcher: TextMatch,
223-
queryOptions?: TextMatchOptions
223+
options?: TextMatchOptions
224224
) => QueryReturn;
225225
queryAllByLabelText: (
226226
matcher: TextMatch,
227-
queryOptions?: TextMatchOptions
227+
options?: TextMatchOptions
228228
) => QueryAllReturn;
229229
findByLabelText: (
230230
matcher: TextMatch,
231231
queryOptions?: TextMatchOptions,
232-
233232
waitForOptions?: WaitForOptions
234233
) => FindReturn;
235234
findAllByLabelText: (
236235
matcher: TextMatch,
236+
queryOptions?: TextMatchOptions,
237237
waitForOptions?: WaitForOptions
238238
) => FindAllReturn;
239239

240240
// Hint
241241
getByA11yHint: (
242242
matcher: TextMatch,
243-
queryOptions?: TextMatchOptions
243+
options?: TextMatchOptions
244244
) => GetReturn;
245245
getByHintText: (
246246
matcher: TextMatch,
247-
queryOptions?: TextMatchOptions
247+
options?: TextMatchOptions
248248
) => GetReturn;
249249
getAllByA11yHint: (
250250
matcher: TextMatch,
251-
queryOptions?: TextMatchOptions
251+
options?: TextMatchOptions
252252
) => GetAllReturn;
253253
getAllByHintText: (
254254
matcher: TextMatch,
255-
queryOptions?: TextMatchOptions
255+
options?: TextMatchOptions
256256
) => GetAllReturn;
257257
queryByA11yHint: (
258258
matcher: TextMatch,
259-
queryOptions?: TextMatchOptions
259+
options?: TextMatchOptions
260260
) => QueryReturn;
261261
queryByHintText: (
262262
matcher: TextMatch,
263-
queryOptions?: TextMatchOptions
263+
options?: TextMatchOptions
264264
) => QueryReturn;
265265
queryAllByA11yHint: (
266266
matcher: TextMatch,
267-
queryOptions?: TextMatchOptions
267+
options?: TextMatchOptions
268268
) => QueryAllReturn;
269269
queryAllByHintText: (
270270
matcher: TextMatch,
271-
queryOptions?: TextMatchOptions
271+
options?: TextMatchOptions
272272
) => QueryAllReturn;
273273
findByA11yHint: (
274274
matcher: TextMatch,
@@ -295,24 +295,24 @@ interface A11yAPI {
295295
getByRole: (matcher: A11yRole | RegExp, role?: ByRoleOptions) => GetReturn;
296296
getAllByRole: (
297297
matcher: A11yRole | RegExp,
298-
role?: ByRoleOptions
298+
options?: ByRoleOptions
299299
) => GetAllReturn;
300300
queryByRole: (
301301
matcher: A11yRole | RegExp,
302-
role?: ByRoleOptions
302+
options?: ByRoleOptions
303303
) => QueryReturn;
304304
queryAllByRole: (
305305
matcher: A11yRole | RegExp,
306-
role?: ByRoleOptions
306+
options?: ByRoleOptions
307307
) => QueryAllReturn;
308308
findByRole: (
309309
matcher: A11yRole | RegExp,
310-
role?: ByRoleOptions,
310+
queryOptions?: ByRoleOptions,
311311
waitForOptions?: WaitForOptions
312312
) => FindReturn;
313313
findAllByRole: (
314314
matcher: A11yRole | RegExp,
315-
role?: ByRoleOptions,
315+
queryOptions?: ByRoleOptions,
316316
waitForOptions?: WaitForOptions
317317
) => FindAllReturn;
318318

0 commit comments

Comments
 (0)