PositiveInt

Deprecated

Use the positiveIntOrThrow function instead.

Replace with

import kotools.types.number.positiveIntOrThrow
positiveIntOrThrow(value)

Returns the value as a PositiveInt, or throws an PositiveInt.ConstructionError if the value is strictly negative.