Getting close to being mainly a TypeScript project

Been checking the numbers now and then and I see there will soon be more TypeScript than JavaScript code in the repo:

image

Probably a good part of the JS code is in the CLI app, which hasn't been updated much. Critical parts of the app are now in TypeScript, including the synchronizer, database and encryption service. Joplin Server is also entirely in TypeScript. Even the database rows are now typed thanks to sql-ts.

So anyway TypeScript has been a big win for the project as it made it possible to refactor and modernise many parts of it in a safe way, and make the code future proof and easier to work with! I expect we should get to over 50% over the next few months.

22 Likes

Hello, I am a new contributor and student. Would it be helpful for me to translate some of the JavaScript code to TypeScript?

1 Like

It'd be more useful - both for you and for the project - if you pick an issue and try working on it. And if you encounter any js files in the process you can convert them to Typescript.

1 Like

Here we are, Joplin is now a TypeScript project :grin:

image

There was a big jump recently, probably due to the share feature, which adds a lot of new code and test units.

3 Likes