mathjs icon indicating copy to clipboard operation
mathjs copied to clipboard

TypeScript bug for apply function

Open AspieCoder1 opened this issue 5 years ago • 3 comments

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.

AspieCoder1 avatar Sep 02 '21 09:09 AspieCoder1

Thanks for reporting.

Anyone able to add the missing function apply to the TypeScript definitions?

josdejong avatar Sep 15 '21 07:09 josdejong

Fixed: https://github.com/josdejong/mathjs/pull/2330. Let me know if it's okay

DianaTdr avatar Oct 02 '21 19:10 DianaTdr

Thanks 👍 , merged now

josdejong avatar Oct 13 '21 10:10 josdejong