Matt Vague

Results 35 comments of Matt Vague

@3nvi Almost 3 years later you've saved my day as well, thank you!

> for functions that have a fixed number of 1 or 2 arguments (like gcd). gcd does seem to accept a variable number of args though If other fns do...

>Do you have use cases for it? I don't at the moment, I just noticed it didn't work while working on the chain types. However, I do think that it's...

>Ahh, wait a second. I forgot that gcd also supports not only two but an variable number of arguments. Yes makes sense to me to add Array/Matrix support for gcd...

@ChristopherChudzicki Potentially relevant discussion: https://github.com/josdejong/mathjs/pull/2537. I was considering breaking index.ts and index.d.ts apart as part of that PR but decided to hold off. Maybe we can collaborate after it's merged.

>In your example demonstrating the issue I think TypeScript has a point, and you probably should not use isAdditionNode and isSubtractionNode to both type guard OperatorNode. I guess in the...

>I understand your point. Right now, mathjs is plain JavaScript, and the TypeScript definitions do not fully cover mathjs. They come "close". It is not trivial to rewrite mathjs in...

Is there already a task / discussion for the TS conversion?

@josdejong Hey there, just ran into this myself. Was wondering if you'd accept a PR to remove that misleading example from the docs for now?

Really nice work @javierjulio, was going to tackle this myself before I saw your PR. What would be the best way for me to help get this merged?