registration

This commit is contained in:
User
2025-02-02 16:08:03 +03:00
parent 7f6495eb4d
commit 78afbaed71
6334 changed files with 196774 additions and 165754 deletions

View File

@@ -1,3 +1,4 @@
import type { DateArg } from "./types.js";
/**
* @name compareAsc
* @category Common Helpers
@@ -7,8 +8,6 @@
* Compare the two dates and return 1 if the first date is after the second,
* -1 if the first date is before the second or 0 if dates are equal.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param dateLeft - The first date to compare
* @param dateRight - The second date to compare
*
@@ -32,7 +31,7 @@
* // Sun Jul 02 1995 00:00:00
* // ]
*/
export declare function compareAsc<DateType extends Date>(
dateLeft: DateType | number | string,
dateRight: DateType | number | string,
export declare function compareAsc(
dateLeft: DateArg<Date> & {},
dateRight: DateArg<Date> & {},
): number;