mini-effect
    Preparing search index...

    Function endsWith

    • Creates an ends with validation action.

      Type Parameters

      • TInput$1 extends string
      • const TRequirement extends string

      Parameters

      • requirement: TRequirement

        The end string.

      Returns EndsWithAction<TInput$1, TRequirement, undefined>

      An ends with action.

    • Creates an ends with validation action.

      Type Parameters

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

      Parameters

      • requirement: TRequirement

        The end string.

      • message: TMessage

        The error message.

      Returns EndsWithAction<TInput$1, TRequirement, TMessage>

      An ends with action.