mini-effect
    Preparing search index...

    Function startsWith

    • Creates a starts with validation action.

      Type Parameters

      • TInput$1 extends string
      • const TRequirement extends string

      Parameters

      • requirement: TRequirement

        The start string.

      Returns StartsWithAction<TInput$1, TRequirement, undefined>

      A starts with action.

    • Creates a starts with validation action.

      Type Parameters

      • TInput$1 extends string
      • const TRequirement extends string
      • const TMessage extends ErrorMessage<StartsWithIssue<TInput$1, TRequirement>> | undefined

      Parameters

      • requirement: TRequirement

        The start string.

      • message: TMessage

        The error message.

      Returns StartsWithAction<TInput$1, TRequirement, TMessage>

      A starts with action.