MinusOne
@type-challenges
Last updated 30 days ago
MEDIUM
Given a number (always positive) as a type. Your type should return the number decreased by one.
For example:
type Zero = MinusOne<1> // 0 type FiftyFour = MinusOne<55> // 54
This challenge was ported from Type Challenges and was authored by fayzzzm
Loading...
Loading...