Skip to content

Commit

Permalink
Flow strict-local in TimePickerAndroid.android.ios.js (facebook#22714)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yushimatenjin authored and facebook-github-bot committed Jan 25, 2019
1 parent e9ee3a9 commit 21543c5
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
* @flow strict-local
*/

'use strict';

import type {
TimePickerOptions,
TimePickerResult,
} from './TimePickerAndroidTypes';

const TimePickerAndroid = {
async open(options: Object): Promise<Object> {
async open(options: TimePickerOptions): Promise<TimePickerResult> {
return Promise.reject({
message: 'TimePickerAndroid is not supported on this platform.',
});
Expand Down

0 comments on commit 21543c5

Please sign in to comment.