-
Notifications
You must be signed in to change notification settings - Fork 40
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
Type Definition for HDF5 module #58
Comments
I'm not familiar with what this is:-) Would it be best to be a part of this code or separate in https://github.com/DefinitelyTyped/DefinitelyTyped? I'm guessing this adds an interface for typescript calls? |
I guess its better to be part of this module, because of version mismatches. It's only an extra definition file of the javascript interface. So it doesn't change existing code. |
Right. And this adds the potential of typescript users liking this project? Is there anything you need changed to make it nice? |
Yes, absolutly. There is one thing. |
Oh I've been wanting to move to that style with the options! Then properties are clear of any reserved names. And it would fit javascrpt/JSON coding styles. Been thinking to make the legacy of reserved rank row, and type properties only work if no options are defined. |
In other words this can be made seamless for prior users without breaking code they already have |
I'll work at changing to the options args for rank rows type this evening. You morning seems earlier than mine:-) |
Legacy must also be available when someone defines chunkSize or compression in options but use the old buffer options. |
Yep. Are you fine with getting options back as done in https://github.com/HDF-NI/hdf5.node/blob/master/test/test_h5lt.js#L136 ?
|
Yes, that's fine. |
All you're doing is really strengthening this project! Thank you |
Thank you. But you are one who created this great module and housekeeping the code. |
Maybe when we now changing the options, dims should be an array like: dims[2, 4, 5, 6] and maxDims[-1, 4,5,6]; |
Yes, a release at 0.3.4 so that bug fixes are available to anyone with legacy style, tag it so a branch can be made if necessary; then make it all with the new spec. Also I'm seeing a lot of compile warnings now with nodejs v10.1.x which I want to investigate. Docs will get an update including the tutorials. I got some of the way thru moving to options last night but first found some other bugs. |
Should have it testable later today with {rank: 2, rows: 10, columns: 10 ....} style sutoiku most likely is working on nodejs 10.1.x changes in the v8 |
What should be documented for typescript developers? |
Maybe add an example
and add a hint that not all functions are currently described in typescript. |
Ah good May I use your full name in credits? |
Yes and thanks. |
btw the current waldo test and tutorial has been changed to use the options way instead of the reserved properties You want docs on the optional maxRows: H5SType.H5S_UNLIMITED capability right? Will add. I was asking do typescript developers know what to do? How to make developers become aware of your new dts files? I'll learn a bit to help maintain |
Great. Should we add directly the maxDims: [-1, 100] option? I develop in vs code, and the d.ts files are automatically recognize, so the original Javascript functions get a description and parameters get description. |
The d.ts files are like an overlay about your existing Javascript functions. So the Javascript and dts files must match, otherwise there will be Javascript errors like: undefined is not a function. |
maxDims as an array? Might be what users gravitate towards. Will look into it |
That's the same as you mentioned in #42 higher rank datasets. |
Hello and thanks for provinding this great module.
Is there a plan to include type definitions for typescript?
Otherwise I would like to implement and distribute it on https://github.com/DefinitelyTyped/DefinitelyTyped.
The text was updated successfully, but these errors were encountered: