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

add typings #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add typings #33

wants to merge 1 commit into from

Conversation

nicolaspanel
Copy link

include typescript definitions

@nicolaspanel
Copy link
Author

@mikolalysenko : let me know if you have questions
Best regards

hi(...args: number[]): NdArray;
step(...args: number[]): NdArray;
transpose(...args: number[]): NdArray;
pick(...args: number[]): NdArray;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this allow null or undefined values? Need to think it through, but a couple of the functions allow null or undefined values when meaningful.

@nicolaspanel
Copy link
Author

@rreusser Good point! I come back to you with a fix ASAP.
Best regards

@chigix
Copy link

chigix commented Feb 3, 2019

Because https://github.com/scijs/ndarray/blob/master/ndarray.js is the only main file makes up this repository, then how about rewriting this javascript program into typescript completely? There could be no needs to maintain some snips for different module system or different es versions, like the practice in rxjs

@dmromanov
Copy link

When the PR will be ready?

@grimmer0125
Copy link

@dmromanov I saw there is already here, https://www.npmjs.com/package/@types/ndarray.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants