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.

Convert to typescript

See original GitHub issue

Convert the source file to typescript, which will be compiled in the rollup build step. While we currently use .ts files, typehinting etc. is not used in the files.

If you want to help: Just start adding typehints to any file that is still missing them or improve the ones that already have them. Feel free to send a PR for files even if only a part of them is converted.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lukasoppermanncommented, Jun 11, 2021

Sounds great. Whatever you feel most comfortable with is a good start and very much appreciated. 👍

If you have questions, just send a PR and add a comment with your questions.

1reaction
lukasoppermanncommented, Jun 10, 2021

Hey, thank you, there are two important things concerning typescript:

  1. The PR to update fails #745 so this needs to be fixed (I didn’t really check out what is the problem yet)
  2. The main file with everything that was not extracted to smaller modules yet is not using typings or other typescript features at all and could profit from it: https://github.com/lukasoppermann/html5sortable/blob/master/src/html5sortable.ts

If you want to work on either or both of those issues it would be very great. You can also extract functionality from the html4sortable.ts into smaller modules where it makes sense and convert this over to typescript. This may be easier and more fun than in the big file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
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 >
Online Javascript to Typescript Converter Tool - JavaInUse
Online tool to convert a javascript file to typescript. Complex javascript files can be converted to typescript file using this tool.
Read more >
Converting a Javascript project to Typescript - Medium
Converting a Javascript project to Typescript. An extensive methodology. Photo by Emile Perron on Unsplash. Introduction.
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 >

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