Convert project to TypeScript
See original GitHub issueAs a binary-heavy module with a lot of complicated parameters, this is a valuable module to add typescript to. In the past, we’ve failed to add a proper declaration file, so rather than take that half-measure, we should actually convert the module to TypeScript.
In case we add a bounty, we need well defined acceptance criteria. Those would be:
- The changes should obviously not change module behavior at all.
- All method parameters and return types should be typed.
- Should introduce an npm
buildscript which builds the typescript file into an output file. - the
package.jsonmainfield should point to the built output. - Anyone re-running
buildshould be able to deterministically produce the same output. - The typedef file should be generated programmatically from the input script.
- Migrating to yarn in the process is acceptable but not required.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:20 (5 by maintainers)
Top Results From Across the Web
Documentation - Migrating from JavaScript - TypeScript
If you're looking to convert a React project, we recommend looking at the React Conversion Guide first. Setting up your Directories. If you're...
Read more >Converting a Javascript project to Typescript - Medium
You can do so by running the following command in the root directory of your project. npm install --save-dev typescript ts-loader. Step 2: ......
Read more >Converting JavaScript to TypeScript - TutorialsTeacher
Converting Existing JavaScript to TypeScript · Add tsconfig.json file to project · Integrate with a build tool · Change all .js files to...
Read more >How to Migrate Application From JavaScript to TypeScript
TypeScript is a superset of JavaScript, so valid JavaScript code is a valid TypeScript code. Incremental migration, converting the whole project step by...
Read more >8 Tips for Converting That Big Project to TypeScript
The hybrid method allows your team to migrate to TypeScript without stopping the development process. Use the allowJs compiler option to add new ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Okay, a quick review of #73, it seems to have merely moved the
.jsto.tsfile. That’s very funny, because JS is valid TS, but it isn’t what is intended by this issue, I’ll be clarifying the master post to clarify.💰 A crowdfund contribution worth 5.00000 DAI (5.0 USD @ $1.0/DAI) has been attached to this funded issue from @bakkdoor.💰
Want to chip in also? Add your own contribution here.