UNPKG

@wojtekmaj/react-timerange-picker

Version:

A time range picker for your React app.

12 lines (11 loc) 547 B
export type Range<T> = [T, T]; export type AmPmType = 'am' | 'pm'; export type ClassName = string | null | undefined | (string | null | undefined)[]; export type CloseReason = 'buttonClick' | 'escape' | 'outsideAction' | 'select'; export type Detail = 'hour' | 'minute' | 'second'; type LooseValuePiece = string | Date | null; export type LooseValue = LooseValuePiece | Range<LooseValuePiece>; export type OpenReason = 'buttonClick' | 'focus'; type ValuePiece = string | Date | null; export type Value = ValuePiece | Range<ValuePiece>; export {};