react-timekeeper
Version:
Time picker based on the style of the Google Keep app
8 lines (7 loc) • 403 B
TypeScript
import { MODE } from './constants';
import { Time } from './types';
export declare function getTimeValue(mode: MODE, time: Time): number;
export declare function getNormalizedTimeValue(mode: MODE, time: Time): number;
export declare function isHourMode(mode: MODE): boolean;
export declare function isMinuteMode(mode: MODE): boolean;
export declare function isSameTime(prev: Time, next: Time): boolean;