mini-effect
    Preparing search index...

    Function decimal

    • Creates a decimal validation action.

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

      Type Parameters

      • TInput$1 extends string

      Returns DecimalAction<TInput$1, undefined>

      An decimal action.

    • Creates a decimal validation action.

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

      Type Parameters

      Parameters

      • message: TMessage

        The error message.

      Returns DecimalAction<TInput$1, TMessage>

      An decimal action.