Releases: YLfjuk/core
Releases Β· YLfjuk/core
@ylfjuk/[email protected]
Patch Changes
- Updated dependencies
- @ylfjuk-core/[email protected]
@ylfjuk-core/[email protected]
Patch Changes
Features π
-
Added Types
- SafeRecord | A record that emulates the
noUncheckedIndexedAccess
tsconfig setting - Result
- ResultData | Extracts the data from a
Result
type - ResultError | Extracts the error from a
Result
type
- SafeRecord | A record that emulates the
-
Modified Types
- ValueOf | Add support for arrays
- Extend
Chores π§Ή
@ylfjuk/[email protected]
Patch Changes
- Updated dependencies [4af919a]
- Updated dependencies [78da6dd]
- Updated dependencies [457d7e7]
- @ylfjuk-core/[email protected]
@ylfjuk-core/[email protected]
Patch Changes
Features π
-
Added Types
- Box | Boxes union types
- Equal | Returns if two types are strictly equal
- LessThanEqual | Returns if a number is less than or equal to another number |
β οΈ Floats Unsupported
-
Modified Types
- ArrayOfN | Fill now accepts any type
@ylfjuk/[email protected]
Patch Changes
- Updated dependencies
- @ylfjuk-core/[email protected]
@ylfjuk-core/[email protected]
Patch Changes
Features π
- Added Utilities:
- toggle | toggles between elements in an array
@ylfjuk/[email protected]
Patch Changes
- Updated dependencies
- @ylfjuk-core/[email protected]
@ylfjuk-core/[email protected]
Patch Changes
Features π
- Added types
Increment
| Increments a N β β number by 1 |β οΈ Negative/Floats Unsupported
Fixes π©Ή
- Renamed
IsNatural
toIsPositiveOrZero
to describe it better (breaking π₯)
@ylfjuk/[email protected]
Patch Changes
- Updated dependencies
- @ylfjuk-core/[email protected]
@ylfjuk-core/[email protected]
Patch Changes
Chores π§Ή
- The package now ensures that it only exports types
Features π
-
Added types
- Abs | Returns the absolute value of a number
- ArrayOfN | Returns an array of n length
- AtLeastOne | Requires at least one of the fields in an object
- ExactlyOne | Requires exactly one of the fields in an object
- IsNatural | Returns if the number is an element of the Natural numbers group
- IsTuple | Return if an array is a tuple
- LessThan | Returns if a number is less than another number |
β οΈ Floats Unsupported - PickBy | Picks the fields of an object where the value matches the condition
-
Modified Types
- Primitive | Added support for
symbol
type - MaskLiterals | Trailing changes from the
Primitive
type modification
- Primitive | Added support for