mathjs
mathjs copied to clipboard
TypeScript bug for apply function
I am using the library in my TypeScript project. When I use the following imports,
import { apply, max, min } from 'mathjs';
I get a type error which says that there is no member apply that is exported. I have double checked the type definitions and there is indeed no export for the apply function. I think this is a bug as if I use a ts-ignore there is no error and the apply function is correctly imported.
Thanks for reporting.
Anyone able to add the missing function apply to the TypeScript definitions?
Fixed: https://github.com/josdejong/mathjs/pull/2330. Let me know if it's okay
Thanks 👍 , merged now