Port to Typescript
See original GitHub issueType safety will help us defend against a large swath of annoying, low-level bugs, and the JS community has mostly standardized on TS.
One possible plan:
- Rename all files to
.ts
- Find the right compiler (Babel,
ts-loader
, ortsc
directly are viable options) - See large number of errors and warnings with strict mode on
- If it’ll take less than a week, fix all those errors. If it’ll take more than a week, turn off strict mode
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:10 (7 by maintainers)
Top Results From Across the Web
How To Port A JavaScript Project To TypeScript - Fullstack.io
The first step in setting up TypeScript for your project is to create a folder structure with src and dest directories. Here, src...
Read more >Documentation - Migrating from JavaScript - TypeScript
Converting a JavaScript codebase over to TypeScript is, while somewhat tedious, usually not challenging. In this tutorial, we're going to look at how...
Read more >How to move your project to TypeScript - at your own pace
PORT is of type string and 3000 is of type number . This would mean that PORT += 1 would equal in two...
Read more >@types/tcp-port-used - npm
@types/tcp-port-used. TypeScript icon, indicating that this package has built-in type declarations. 1.0.1 • Public • Published 8 months ago.
Read more >Porting a React Frontend to TypeScript - Execute Program
TypeScript is a superset of JavaScript, so porting to it is easy. Reversing a port is even easier: delete the type definitions; now...
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 FreeTop 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
Top GitHub Comments
Typescript definitions are in this repo as of 0.15.1! Right now, only
stellar-sdk
has “local” type definitions.https://github.com/stellar/js-stellar-sdk/releases/tag/v0.15.1
@morleyzhi @Ffloriel Ok, so I’m taking this on me in my corner for a week or so.