UNPKG

vremel

Version:

JavaScript date utility library for Temporal API

9 lines 508 B
import type { Temporal } from "../types.js"; /** * Compares two datetime objects in reverse chronological order and returns -1, 0, or 1. * @param a datetime object * @param b datetime object * @returns the result of the comparison */ export declare function compareDesc<DateTime extends Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate | Temporal.PlainTime | Temporal.PlainDateTime | Temporal.PlainYearMonth>(a: DateTime, b: DateTime): -1 | 0 | 1; //# sourceMappingURL=compareDesc.d.ts.map