mathjs: mathjs/number missing typescript definitions.
There is still no “mathjs/number” typescript definition.
import {
create,
all
} from "mathjs/number";
results in typescript error
Cannot find module 'mathjs/number' or its corresponding type declarations.ts(2307)
There was an issue on this before (#1665). It got closed with reference to #1539. #1539 got closed with a comment asking us to open new issues if there is some issue with the current types. So here I am.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 5
- Comments: 16 (7 by maintainers)
Yes, this latest report from @thien-do agrees with my experiments that I needed the number.d.ts file in two different places for it to always be picked up by different ways of importing the library. And incidentally, PR #2569 also set the type declaration file for the number version of mathjs to be the same as for the full version of mathjs, which is definitely not right – it needs to be a separate version filtered to only support numbers. I think both of these points will need to be addressed by another PR.