Public
Versions
- Open: VersionChanges from v7 to v8+1-0⦚ 3 unchanged lines ⦚// include liketype PrefixWithZero<T extends number, U extends number> = T extends U ? `0${T}`: `${T}`;⦚ 4 unchanged lines ⦚⦚ 3 unchanged lines ⦚// include like// validation + predicate + callbacktype PrefixWithZero<T extends number, U extends number> = T extends U ? `0${T}`: `${T}`;⦚ 4 unchanged lines ⦚
- Open: VersionChanges from v6 to v7+1-0⦚ 7 unchanged lines ⦚type Hours = PrefixWithZero<HoursDigits, SingleDigits>;type Hours2 = PrefixWithZero<1, SingleDigits>;⦚ 7 unchanged lines ⦚type Hours = PrefixWithZero<HoursDigits, SingleDigits>;// union with 1 itemtype Hours2 = PrefixWithZero<1, SingleDigits>;
- Open: VersionChanges from v5 to v6+1-1
// union - array likeftype SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;⦚ 7 unchanged lines ⦚// union - array liketype SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;⦚ 7 unchanged lines ⦚ - Open: VersionChanges from v4 to v5+1-0type SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;⦚ 7 unchanged lines ⦚// union - array likeftype SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;⦚ 7 unchanged lines ⦚
- Open: VersionChanges from v3 to v4+2-1⦚ 5 unchanged lines ⦚: `${T}`;
type Hours = PrefixWithZero<HoursDigits, SingleDigits>;⦚ 5 unchanged lines ⦚: `${T}`;type Hours = PrefixWithZero<HoursDigits, SingleDigits>;type Hours2 = PrefixWithZero<1, SingleDigits>; - Open: VersionChanges from v2 to v3+1-0type SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;type PrefixWithZero<T extends number, U extends number> = T extends U ? `0${T}`: `${T}`;type Hours = PrefixWithZero<HoursDigits, SingleDigits>;type SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;// include liketype PrefixWithZero<T extends number, U extends number> = T extends U ? `0${T}`: `${T}`;type Hours = PrefixWithZero<HoursDigits, SingleDigits>;
- Open: VersionChanges from v1 to v2+0-0⦚ 7 unchanged lines ⦚⦚ 7 unchanged lines ⦚
- Open: VersionChanges from v0 to v1+1-80type SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;
// naive - hardcoded uglinesstype DoubleDigitMinutes =| 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| 40type SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;type PrefixWithZero<T extends number, U extends number> = T extends U ? `0${T}`: `${T}`;type Hours = PrefixWithZero<HoursDigits, SingleDigits>; - Open: Version+86-0type SingleDigits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;type HoursDigits = SingleDigits | 10 | 11 | 12;// naive - hardcoded uglinesstype DoubleDigitMinutes =| 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| 40
Updated: September 17, 2024