UNPKG

fast-time-input

Version:
12 lines (11 loc) 447 B
export declare function pad(num: number, size: number): string; export declare function clamp(val: number, min: number, max: number): number; export declare class Time { hours: number; mins: number; constructor(hr: number, mn: number); to12Hour(): string; to24Hour(): string; } export declare function filterInput(e: any): false | undefined; export declare function parse(timeString: string, format?: "24hr" | "12hr"): string;