Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing TypeScript declaration for math.row() #2123

Closed
soogui opened this issue Mar 5, 2021 · 4 comments
Closed

Missing TypeScript declaration for math.row() #2123

soogui opened this issue Mar 5, 2021 · 4 comments

Comments

@soogui
Copy link

soogui commented Mar 5, 2021

While working on a TS project, I am unable to use math.row() and math.column() functions. In my editor, I get the following error:
Property 'row' does not exist on type 'MathJsStatic'.ts(2339).

Using @types/mathjs": "^6.0.11 and mathjs": "^9.0.0.

Thank you in advance.

@josdejong
Copy link
Owner

The TypeScript definitions are not up to date unfortunately. Help would be very welcome (it shouldn't be hard to at least add the missing functions like these to the definitions).

See also: #1801, #2100, #2076, #2019

@maria92ruiz
Copy link

Hi, we are a group of students from the University of Seville. We've been working on a project based on math.js. Hence, we've tried to fix the issue raised. Here's the PR.
Hope it helps!

@josdejong
Copy link
Owner

Thanks a log @maria92ruiz for picking this up 👍 👍

It would be great if you could also have a look in for example #2019, that is a one-liner just removing the null from the definitions. Hopefully that solves the issues some people have in VS Code autocompletion.

@josdejong
Copy link
Owner

Fixed now in mathjs@9.4.0 with the now build-in type definitions too.

joshhansen pushed a commit to LearnSomethingTeam/mathjs that referenced this issue Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants