question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Port to Typescript

See original GitHub issue

Type 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, or tsc 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:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
morleyzhicommented, Apr 18, 2019

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

2reactions
Akuukiscommented, May 21, 2019

@morleyzhi @Ffloriel Ok, so I’m taking this on me in my corner for a week or so.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found