ts-data-forge
    Preparing search index...

    Function decrement

    • Type-safe decrement operation for positive SmallInt values.

      Decrements a positive SmallInt (1-40) by 1 with the result type computed at compile time. This provides type-level arithmetic for small positive integers, useful for type-safe countdown operations.

      Type Parameters

      • N extends SmallPositiveInt

        A positive SmallInt literal type (1-40)

      Parameters

      • n: N

        The positive SmallInt value to decrement

      Returns Decrement<N>

      The decremented value with type Decrement