Skip to content

Commit 21543c5

Browse files
yushimatenjinfacebook-github-bot
yushimatenjin
authored andcommitted
Flow strict-local in TimePickerAndroid.android.ios.js (facebook#22714)
Summary: Related to facebook#22100 Enhance TimePickerAndroid flow types. Turn Flow strict mode on for Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.ios.js. All flow tests succeed. [General] [Changed] - Enhance Flow types definitions Pull Request resolved: facebook#22714 Differential Revision: D13817142 Pulled By: cpojer fbshipit-source-id: 9d0f0b0629966a60d77b73ba8a6bba4e1a4e2337
1 parent e9ee3a9 commit 21543c5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @format
8-
* @flow
8+
* @flow strict-local
99
*/
1010

1111
'use strict';
1212

13+
import type {
14+
TimePickerOptions,
15+
TimePickerResult,
16+
} from './TimePickerAndroidTypes';
17+
1318
const TimePickerAndroid = {
14-
async open(options: Object): Promise<Object> {
19+
async open(options: TimePickerOptions): Promise<TimePickerResult> {
1520
return Promise.reject({
1621
message: 'TimePickerAndroid is not supported on this platform.',
1722
});

0 commit comments

Comments
 (0)