-
Notifications
You must be signed in to change notification settings - Fork 133
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
SNOW-595248: Port the library to TypeScript (phase1: add typing) #309
Comments
I completely agree. I was trying to make sense of this library to add functionality of uploading a file from a stream instead of the hard-coded file path upload that is supported. But I gave up because the library was too much a mess. |
We plan to add the support for Typescript support, and it's in our backlog. I dont have any ETA yet, but we will prioritize it as we do the next quarter planning. We will keep this thread updated. Thanks all for your patience. |
In case this helps increase the priority of this change, the corresponding type dependency for this library, https://www.npmjs.com/package/@types/snowflake-sdk is quite out of date. For example, there are no typings for (I understand that typing library is not maintained by Snowflake, but porting the library to TS would remove the need for that dependency entirely and would automatically keep the types and source code in sync) |
Hi everyone - it's been a while but I have some progress to report. We're actively working on adding the typing for Rewriting the whole library in TypeScript is another story though, I don't have any estimation for that, but the types are coming soon. |
PR #762 has been merged now, and will be released with the next release cycle, towards end of May 2024 |
released with May 2024 release cycle, version 1.11.0. thank you for your patience here ! Note: if the externally maintained typings might be conflicting now with the Snowflake-internal ones, please try to uninstall the external one / remove it from the dependencies. Also if there are unexpected issues with the typings, do raise a new issue please. For rewriting and porting the whole library to TypeScript, there is no plans for the foreseeable future. |
This library is written in a old style JavaScript manner. While this is functional for the most part, it would be more maintainable if it was written in a well typed language like TypeScript that would allow better type checking, preventing bugs like #308 (which occurred because of a type mismatch related error)
The library would also be easier for outside contributors to understand as well if they could lean on the TypeScript compiler and associated tooling to navigate and understand the code.
The text was updated successfully, but these errors were encountered: