mini-effect
    Preparing search index...

    Function isoWeek

    • Creates an ISO week validation action.

      Format: yyyy-Www

      Hint: The regex used cannot validate the maximum number of weeks based on the year. For example, "2021W53" is valid although 2021 has only 52 weeks.

      Type Parameters

      • TInput$1 extends string

      Returns IsoWeekAction<TInput$1, undefined>

      An ISO week action.

    • Creates an ISO week validation action.

      Format: yyyy-Www

      Hint: The regex used cannot validate the maximum number of weeks based on the year. For example, "2021W53" is valid although 2021 has only 52 weeks.

      Type Parameters

      Parameters

      • message: TMessage

        The error message.

      Returns IsoWeekAction<TInput$1, TMessage>

      An ISO week action.