@@ -55,10 +55,10 @@ declare type A11yRole =
5555
5656declare type A11yState = { |
5757 disabled ? : boolean ,
58- selected ? : boolean ,
59- checked ? : boolean | 'mixed' ,
60- busy ? : boolean ,
61- expanded ? : boolean ,
58+ selected ? : boolean ,
59+ checked ? : boolean | 'mixed' ,
60+ busy ? : boolean ,
61+ expanded ? : boolean ,
6262| } ;
6363
6464declare type A11yValue = {
@@ -86,12 +86,12 @@ interface ByTextQueries {
8686 findByText: (
8787 text : TextMatch ,
8888 queryOptions ? : ByTextOptions ,
89- waitForOptions ? : WaitForOptions
89+ waitForOptions ? : WaitForOptions ,
9090 ) => FindReturn ;
9191 findAllByText: (
9292 text : TextMatch ,
9393 queryOptions ? : ByTextOptions ,
94- waitForOptions ? : WaitForOptions
94+ waitForOptions ? : WaitForOptions ,
9595 ) => FindAllReturn ;
9696}
9797
@@ -105,12 +105,12 @@ interface ByTestIdQueries {
105105 findByTestId: (
106106 testID : TextMatch ,
107107 queryOptions ? : ByTestIdOptions ,
108- waitForOptions ? : WaitForOptions
108+ waitForOptions ? : WaitForOptions ,
109109 ) => FindReturn ;
110110 findAllByTestId: (
111111 testID : TextMatch ,
112112 queryOptions ? : ByTestIdOptions ,
113- waitForOptions ? : WaitForOptions
113+ waitForOptions ? : WaitForOptions ,
114114 ) => FindAllReturn ;
115115}
116116
@@ -120,25 +120,25 @@ interface ByDisplayValueQueries {
120120 getByDisplayValue : ( value : TextMatch , options ? : ByDisplayValueOptions ) = > ReactTestInstance ;
121121 getAllByDisplayValue: (
122122 value : TextMatch ,
123- options ? : ByDisplayValueOptions
123+ options ? : ByDisplayValueOptions ,
124124 ) => Array < ReactTestInstance > ;
125125 queryByDisplayValue : (
126126 value : TextMatch ,
127- options ? : ByDisplayValueOptions
127+ options ? : ByDisplayValueOptions ,
128128 ) => ReactTestInstance | null ;
129129 queryAllByDisplayValue : (
130130 value : TextMatch ,
131- options ? : ByDisplayValueOptions
131+ options ? : ByDisplayValueOptions ,
132132 ) = > Array < ReactTestInstance > | [ ] ;
133133 findByDisplayValue : (
134134 value : TextMatch ,
135135 queryOptions ? : ByDisplayValueOptions ,
136- waitForOptions ? : WaitForOptions
136+ waitForOptions ? : WaitForOptions ,
137137 ) = > FindReturn ;
138138 findAllByDisplayValue : (
139139 value : TextMatch ,
140140 queryOptions ? : ByDisplayValueOptions ,
141- waitForOptions ? : WaitForOptions
141+ waitForOptions ? : WaitForOptions ,
142142 ) = > FindAllReturn ;
143143}
144144
@@ -147,29 +147,29 @@ type ByPlaceholderTextOptions = CommonQueryOptions & TextMatchOptions;
147147interface ByPlaceholderTextQueries {
148148 getByPlaceholderText : (
149149 placeholder : TextMatch ,
150- options ? : ByPlaceholderTextOptions
150+ options ? : ByPlaceholderTextOptions ,
151151 ) = > ReactTestInstance ;
152152 getAllByPlaceholderText : (
153153 placeholder : TextMatch ,
154- options ? : ByPlaceholderTextOptions
154+ options ? : ByPlaceholderTextOptions ,
155155 ) = > Array < ReactTestInstance > ;
156156 queryByPlaceholderText : (
157157 placeholder : TextMatch ,
158- options ? : ByPlaceholderTextOptions
158+ options ? : ByPlaceholderTextOptions ,
159159 ) = > ReactTestInstance | null ;
160160 queryAllByPlaceholderText : (
161161 placeholder : TextMatch ,
162- options ? : ByPlaceholderTextOptions
162+ options ? : ByPlaceholderTextOptions ,
163163 ) = > Array < ReactTestInstance > | [ ] ;
164164 findByPlaceholderText : (
165165 placeholder : TextMatch ,
166166 queryOptions ? : ByPlaceholderTextOptions ,
167- waitForOptions ? : WaitForOptions
167+ waitForOptions ? : WaitForOptions ,
168168 ) = > FindReturn ;
169169 findAllByPlaceholderText : (
170170 placeholder : TextMatch ,
171171 queryOptions ? : ByPlaceholderTextOptions ,
172- waitForOptions ? : WaitForOptions
172+ waitForOptions ? : WaitForOptions ,
173173 ) = > FindAllReturn ;
174174}
175175
@@ -205,12 +205,12 @@ interface A11yAPI {
205205 findByLabelText : (
206206 matcher : TextMatch ,
207207 queryOptions ? : ByLabelTextOptions ,
208- waitForOptions ? : WaitForOptions
208+ waitForOptions ? : WaitForOptions ,
209209 ) = > FindReturn ;
210210 findAllByLabelText : (
211211 matcher : TextMatch ,
212212 queryOptions ? : ByLabelTextOptions ,
213- waitForOptions ? : WaitForOptions
213+ waitForOptions ? : WaitForOptions ,
214214 ) = > FindAllReturn ;
215215
216216 // Hint
@@ -225,22 +225,22 @@ interface A11yAPI {
225225 findByA11yHint : (
226226 matcher : TextMatch ,
227227 queryOptions ? : ByHintTextOptions ,
228- waitForOptions ? : WaitForOptions
228+ waitForOptions ? : WaitForOptions ,
229229 ) = > FindReturn ;
230230 findByHintText : (
231231 matcher : TextMatch ,
232232 queryOptions ? : ByHintTextOptions ,
233- waitForOptions ? : WaitForOptions
233+ waitForOptions ? : WaitForOptions ,
234234 ) = > FindReturn ;
235235 findAllByA11yHint : (
236236 matcher : TextMatch ,
237237 queryOptions ? : ByHintTextOptions ,
238- waitForOptions ? : WaitForOptions
238+ waitForOptions ? : WaitForOptions ,
239239 ) = > FindAllReturn ;
240240 findAllByHintText : (
241241 matcher : TextMatch ,
242242 queryOptions ? : ByHintTextOptions ,
243- waitForOptions ? : WaitForOptions
243+ waitForOptions ? : WaitForOptions ,
244244 ) = > FindAllReturn ;
245245
246246 // Role
@@ -251,12 +251,12 @@ interface A11yAPI {
251251 findByRole : (
252252 matcher : A11yRole | RegExp ,
253253 queryOptions ? : ByRoleOptions ,
254- waitForOptions ? : WaitForOptions
254+ waitForOptions ? : WaitForOptions ,
255255 ) = > FindReturn ;
256256 findAllByRole : (
257257 matcher : A11yRole | RegExp ,
258258 queryOptions ? : ByRoleOptions ,
259- waitForOptions ? : WaitForOptions
259+ waitForOptions ? : WaitForOptions ,
260260 ) = > FindAllReturn ;
261261}
262262
@@ -266,7 +266,7 @@ interface Thenable {
266266
267267type MapPropsFunction = (
268268 props : { [ string ] : mixed } ,
269- node: ReactTestRendererJSON
269+ node : ReactTestRendererJSON ,
270270) = > { [ string ] : mixed } ;
271271
272272type DebugOptions = {
@@ -275,7 +275,7 @@ type DebugOptions = {
275275} ;
276276
277277type Debug = {
278- ( options ? : DebugOptions | string ) : void ,
278+ ( options ? : DebugOptions ) : void ,
279279} ;
280280
281281type Queries = ByTextQueries &
@@ -322,7 +322,7 @@ declare module '@testing-library/react-native' {
322322
323323 declare export var render : (
324324 component : React . Element < any > ,
325- options ? : RenderOptions
325+ options ? : RenderOptions ,
326326 ) = > RenderResult ;
327327
328328 declare export var screen : RenderResult ;
@@ -334,7 +334,7 @@ declare module '@testing-library/react-native' {
334334
335335 declare type WaitForElementToBeRemovedFunction = < T = any > (
336336 expectation: () => T ,
337- options ? : WaitForOptions
337+ options ? : WaitForOptions ,
338338 ) = > Promise < T > ;
339339
340340 declare export var waitForElementToBeRemoved : WaitForElementToBeRemovedFunction ;
@@ -375,7 +375,7 @@ declare module '@testing-library/react-native' {
375375
376376 declare type RenderHookFunction = < Result , Props > (
377377 renderCallback : ( props : Props ) = > Result ,
378- options ?: RenderHookOptions < Props >
378+ options ?: RenderHookOptions < Props > ,
379379 ) => RenderHookResult < Result , Props > ;
380380
381381 declare export var renderHook : RenderHookFunction ;
0 commit comments