ts-data-forge
    Preparing search index...

    Variable asInt8Const

    asInt8: (x: number) => Int8 = castType

    Casts a number to an Int8 branded type.

    This function validates that the input is within the Int8 range [-128, 127] and is an integer, then returns it with the Int8 brand.

    Type Declaration

      • (x: number): Int8
      • Parameters

        • x: number

        Returns Int8

        The value as an Int8 branded type

    If the value is not a valid 8-bit signed integer