date-vir - v7.3.2
    Preparing search index...

    Type Alias Duration<DurationKeys>

    Duration: UnionToIntersection<
        DurationKeys extends true
            ? AnyDuration
            : DurationKeys extends DurationUnit
                ? Pick<AllDurations, DurationKeys>
                : never,
    >

    Not a single date instance, but a description of a date duration. Used to calculate diffs between dates, add offsets to an existing date, or describe a single time duration. Usually only one property is set on this at any given time.

    Settings a type parameter of true allows any DurationUnit.

    Type Parameters