Skip to content

Commit d0592ad

Browse files
author
EBAM006
committed
refactor: put better naming includeHIddenElements first in flow types
1 parent b4bfad2 commit d0592ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

typings/index.flow.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ type FindReturn = Promise<ReactTestInstance>;
99
type FindAllReturn = Promise<ReactTestInstance[]>;
1010

1111
type CommonQueryOptions = {
12-
hidden?: boolean,
1312
includeHiddenElements?: boolean,
13+
/** Alias to `includeHiddenElements` for RTL compatibility */
14+
hidden?: boolean,
1415
};
1516
type TextMatch = string | RegExp;
1617

@@ -466,8 +467,9 @@ declare module '@testing-library/react-native' {
466467

467468
declare interface Config {
468469
asyncUtilTimeout: number;
469-
defaultHidden: boolean;
470470
defaultIncludeHiddenElements: boolean;
471+
/** Alias to `defaultIncludeHiddenElements` for RTL compatibility */
472+
defaultHidden: boolean;
471473
defaultDebugOptions?: $Shape<DebugOptions>;
472474
}
473475

0 commit comments

Comments
 (0)