Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: strongly type with jsdoc typings #2612

Merged
merged 33 commits into from
Oct 30, 2023
Merged

feat: strongly type with jsdoc typings #2612

merged 33 commits into from
Oct 30, 2023

Conversation

Julusian
Copy link
Member

@Julusian Julusian commented Oct 18, 2023

There have been a bunch of bugs recently due to either typos made during development, or introduced during merges. Without static typings these are really hard to spot without encountering them while using the software.

I chose jsdoc as a middle-ground for not being as strict and opinionated as typescript, and as an easier first step. There are some typescript files introduced here, but containing purely interfaces, so are not needed to have a runnable application. Using typescript for these files made the types easier to write and understand than the more awkward jsdoc.

Some of the bugs that were found recently:

Some fixes backported from this jsdoc work (not everything was):

@Julusian
Copy link
Member Author

I am merging this into develop so that it can get a bit of testing by both me and other adventurous users.
I expect there are some bugs, but hopefully nothing too major.

@Julusian Julusian merged commit 664e897 into develop Oct 30, 2023
11 checks passed
@Julusian Julusian deleted the feat/jsdoc-typings branch October 30, 2023 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant