registration
This commit is contained in:
9
frontend/style/node_modules/date-fns/compareAsc.d.ts
generated
vendored
9
frontend/style/node_modules/date-fns/compareAsc.d.ts
generated
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user