-
Notifications
You must be signed in to change notification settings - Fork 204
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
When creating a Basic Tab and choosing TypeScript as the language, TTK still creates the code in JavaScript #12432
Comments
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned. |
We included a .js file in our TypeScript project because the basic tab is designed to be lightweight and uses HTML to directly access JavaScript. Since browsers don't support TypeScript files directly, we opted for JavaScript here. |
Isn't the user explicitly saying that they want a TypeScript app by choosing the "TypeScript" option when creating the app? If they wanted a JavaScript app they would have selected the "JavaScript" option. |
In designing the Basic Tab, we chose to use JavaScript to keep it lightweight and reduce complexity. Since browsers do not natively support TypeScript files, we would need to compile TypeScript into JavaScript during development, which adds extra build steps and complexity. |
I understand the desire to reduce complexity, but isn't the user explicitly saying that they want a TypeScript app by choosing the "TypeScript" option when creating an app? Why offer the user the option if it won't be honored? |
@AE-MS Thank you for yor feedback. We are actively investigating feasible solutions to have the core business code in the Basic Tab TS template as TypeScript files. If you have any suggested approaches, we would greatly appreciate your input. |
Describe the bug
Despite choosing TypeScript as the language when creating a new "Basic Tab," TTK still creates the code as JavaScript in
teamsapp.js
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The created app to be authored in TypeScript. In fact, it is still authored in JavaScript.
Screenshots
VS Code Extension Information (please complete the following information):
CLI Information (please complete the following information):
I don't know what this section is looking for
The text was updated successfully, but these errors were encountered: