mini-effect
    Preparing search index...

    Function digits

    • Creates a digits validation action.

      The difference between digits and decimal is that digits accepts only the digits 0-9, while decimal accepts floating point numbers and negative numbers.

      Type Parameters

      • TInput$1 extends string

      Returns DigitsAction<TInput$1, undefined>

      An digits action.

    • Creates a digits validation action.

      The difference between digits and decimal is that digits accepts only the digits 0-9, while decimal accepts floating point numbers and negative numbers.

      Type Parameters

      Parameters

      • message: TMessage

        The error message.

      Returns DigitsAction<TInput$1, TMessage>

      An digits action.