s-private API Documentation - v3.8.1
    Preparing search index...
    • Creates a validated Rating from a number.

      Parameters

      • v: number

        The rating value (integer between 1 and 5)

      Returns number & $brand<"Rating">

      A branded Rating value

      When the input is not an integer or out of the 1-5 range.