@tangential/core
Version:
Core types and support code for Tangential
22 lines (21 loc) • 622 B
TypeScript
export interface TimeUnit {
unitKey: string;
logicalMax: number;
fullLabel: string;
label: string;
momentKey: 'd' | 'h' | 'm' | 's' | 'ms';
orderIndex: number;
separatorSuffix: string;
next: string | undefined;
previous: string | undefined;
}
export declare const TimeUnitSort: (b: TimeUnit, a: TimeUnit) => number;
export interface TimeUnitsType {
day: TimeUnit;
h: TimeUnit;
min: TimeUnit;
s: TimeUnit;
ms: TimeUnit;
}
export declare const TimeUnits: TimeUnitsType;
export declare const TimeUnitKeySort: (a: keyof TimeUnitsType, b: keyof TimeUnitsType) => number;