Skip to content

Conversation

@benzaria
Copy link
Contributor

Changes:

  • add negative numbers support for UnionMax and UnionMin.
  • add SeperateNegatives internal type to split a number union to [positives, negatives].
  • add bigint support for ReverseSign.
  • fix Negative type returning never for NegativeInfinity.
  • rename and improve StringToNumber -> ToNumber to include bigint and boolean similare to Number(T).
  • add ToBigint internal type to transforme supported types to bigint.
  • add SplitFloat internal type to use as a simple Round type at the moment.

…pes, improve and rename `StringToNumber` to `ToNumber` and add `ToBigint`, `SplitFloat` and `SeperateNegatives` internal types
@benzaria benzaria marked this pull request as draft October 21, 2025 20:29
@benzaria benzaria changed the title feat: improve UnionMax, UnionMin, ReverseSign and Negative types, improve and rename StringToNumber to ToNumber and add ToBigint, SplitFloat and SeperateNegatives internal types feat: improve UnionMax, UnionMin, ReverseSign, Negative, ToNumber and add ToBigint, SplitFloat and SeperateNegatives internal types Oct 21, 2025
@benzaria benzaria marked this pull request as ready for review October 21, 2025 23:05
benzaria and others added 3 commits October 22, 2025 13:52
improve `SplitFloat`, Update documentation to reflect support for negative numbers in UnionMin and UnionMax types.
Co-authored-by: Sindre Sorhus <[email protected]>
@som-sm
Copy link
Collaborator

som-sm commented Nov 11, 2025

@benzaria Are all of these changes related and need to be part of the same PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants