31 строка
644 B
JavaScript
31 строка
644 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow strict-local
|
|
*/
|
|
|
|
export type Options = $ReadOnly<{|
|
|
date?: ?(Date | number),
|
|
minDate?: ?(Date | number),
|
|
maxDate?: ?(Date | number),
|
|
mode?: ?('calendar' | 'spinner' | 'default'),
|
|
|}>;
|
|
|
|
export type DatePickerOpenAction =
|
|
| {|
|
|
action: 'dateSetAction',
|
|
year: number,
|
|
month: number,
|
|
day: number,
|
|
|}
|
|
| {|
|
|
action: 'dismissedAction',
|
|
year: void,
|
|
month: void,
|
|
day: void,
|
|
|};
|