• Parameters

    • value: unknown

      The value to validate.

    • maximum:
          | string
          | Duration
          | Partial<
              {
                  days: number;
                  hours: number;
                  milliseconds: number;
                  minutes: number;
                  months: number;
                  seconds: number;
                  weeks: number;
                  years: number;
              },
          >
          | [time: number, unit?: DurationUnitType]

      The maximum allowed duration.

    • Optionaloptions: { inclusive?: boolean }

      Additional options (see MaxDuration).

    Returns value is Duration