• Typeguard for duration strings.

    Returns

    duration is Duration

    Parameters

    • duration: unknown

    Returns duration is `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${number} week` | `${number} weeks` | `${number} month` | `${number} months` | `${number} year` | `${number} years` | `-${number} second` | `-${number} seconds` | `-${number} minute` | `-${number} minutes` | `-${number} hour` | `-${number} hours` | `-${number} day` | `-${number} days` | `-${number} week` | `-${number} weeks` | `-${number} month` | `-${number} months` | `-${number} year` | `-${number} years`

Generated using TypeDoc