ts-data-forge
    Preparing search index...

    Function increment

    • Type-safe increment operation for SmallUint values.

      Increments a SmallUint (0-40) by 1 with the result type computed at compile time. This provides type-level arithmetic for small unsigned integers, useful for type-safe counter operations.

      Type Parameters

      • N extends
            | 0
            | 1
            | 2
            | 3
            | 4
            | 5
            | 6
            | 7
            | 8
            | 9
            | 10
            | 11
            | 12
            | 13
            | 14
            | 15
            | 16
            | 17
            | 18
            | 19
            | 20
            | 21
            | 22
            | 23
            | 24
            | 25
            | 26
            | 27
            | 28
            | 29
            | 30
            | 31
            | 32
            | 33
            | 34
            | 35
            | 36
            | 37
            | 38
            | 39

        A SmallUint literal type (0-40)

      Parameters

      • n: N

        The SmallUint value to increment

      Returns Increment<N>

      The incremented value with type Increment