3 Commits

Author SHA1 Message Date
mrft
09f6da9278
fix: #3493 #3499 #3494 type definitions of unit(number), for add and multiply without arguments, and for unit.to(unit) (#3495)
* fixes #3493 allowing math.unit(5), which would now fail because for values of MathNumericType and MathCollection, the second parameter wasn't optional

* Added tests, and as a result of that, fixed the definition of unit(value: MathCollection): Unit[] where no units seem to be allowed

* Changes as requested by josdejong

* math.add and math.multipl type fixes and added tests

* fixes #3494: math.unit(m).to(math.unit(cm)) is now ok for typescript
2025-07-02 10:37:44 +02:00
Jos de Jong
49df88985e docs: document how to run tests for the type definitions 2024-05-16 08:46:58 +02:00
Jos de Jong
544b86f25f
fix: #2919 TypeScript types not working with NodeNext module resolution (#3079) 2023-10-26 11:39:44 +02:00