- maxDuration(value, maximum, options?): value is Duration
Parameters
- value: unknown
- maximum:
| string
| Duration
| Partial<{
days: number;
hours: number;
milliseconds: number;
minutes: number;
months: number;
seconds: number;
weeks: number;
years: number;
}>
| [time: number, unit?: DurationUnitType] Optional
options: {
inclusive?: boolean;
}Optional
inclusive?: boolean
Returns value is Duration
The value to validate.