@beabee/beabee-common 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const dateUnits: readonly ["s", "m", "h", "d", "M", "y"];
|
|
2
2
|
declare type DateUnit = typeof dateUnits[number];
|
|
3
3
|
export declare function parseDate(value: string, now?: Date): [Date, DateUnit];
|
|
4
|
+
export declare function getMinDateUnit(units: [DateUnit, ...DateUnit[]]): DateUnit;
|
|
4
5
|
export declare function getMinDateUnit(units: DateUnit[]): DateUnit | undefined;
|
|
5
6
|
export declare function isValidDate(s: string): boolean;
|
|
6
7
|
export {};
|