• 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).

      • Optionalinclusive?: boolean

    Returns value is Duration