Millwork
    Preparing search index...

    Variable durationConst

    duration: Codec<
        string
        | number,
        Duration,
        { unit?: "iso" | "s" | "ms" } | undefined,
    > = ...

    ISO 8601 or a number ↔ a dayjs Duration. The unit option is 'iso' (default), 's' or 'ms'. Each unit is kept on the wire. equals compares years, months, weeks and days per unit and the rest by length.