-
Notifications
You must be signed in to change notification settings - Fork 399
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
Building Bolt App with JavaScript vs TypeScript #950
Comments
Hi @erkand-imeri , thanks for using Bolt JS for a long time and asking this! A few weeks ago, we had another discussion about TypeScript developer experience here: #826 After that, we (I'm the main person who has been working on, actually) have been working on many improvements. You can find many TypeScript related issues/pull requests we'll include in the next minor version (v3.4) here. The next minor version should surely be far better than the past versions. We'll release the version within a few weeks. That being said, there may still be room for improvements even with v3.4 and later versions. Moreover, we are committed not to bring backward-incompatible changes as much as possible (except for the cases where we fix an obvious bug). Therefore, Bolt's past design decisions and/or implementation details may prevent significant changes for improvements in the future.
The Bolt team's current direction is clearly to make both optimal for developers as much as possible. Going with JavaScript is also a great choice. I have to admit that it may be less distracting in some situations, while you'll lose the TypeScript compiler's supports. We're sorry about the past non-ideal experience with Bolt in TS. If you continue using TS and let us know specific issues, we would greatly appreciate it. As we're now more committed to improving this area than ever before, you can expect reported problems to be fixed more quickly. I'm not sure if this was a desirable answer for you, but I hope this was helpful to you for making the decision. |
@erkand-imeri Thanks for your reaction. Let me close this issue now but please feel free to write in when you have anything further to discuss/ask regarding this topic. |
Hello @seratch, thanks a lot for your answer, much appreciated. I have some questions regarding inferring some types, should I create a new issue or continue here on comments? |
Hello all, currently I have a Slack Bolt App built in TypeScript.
My current Slack bolt npm dependency is:
"@slack/bolt": "^2.0.1",
So, I want to update into the latest Slack bolt version 3.*.
My question is, how much support does currently Slack-Bolt has for TypeScript, do we have to reverse-engineer the library in order to figure out and compose the types? From my personal experience in many cases i always had to dig deep into the framework to figure out and infer types for many slack events, sometimes i had to create custom types as well.
Is it better for me to switch the app from TypeScript to JavaScript both for now and long term?
Thanks in advance.
The text was updated successfully, but these errors were encountered: