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

Code correctness fixes from typing experiment #1300

Merged
merged 9 commits into from
Dec 7, 2023

Conversation

marcustyphoon
Copy link
Collaborator

Description

As per our discussion (#1234 (comment)) in #1234, this fixes a few places where we accidentally passed non-array values to showModal, something which would have been caught by a type checker, and adjusts a few JSDoc entries that said type checker would have complained about.

To do this, I—naturally—tried setting up tsc on the repository, because come on. Who do you think I am?

Testing steps

The only functional change expected here, because of the fact that one can use a spread operator on a string, is that Limit Checker's error handler no longer crashes. Thus:

  • Open Tumblr with Limit Checker enabled.
  • Disconnect your network.
  • Click the limit checker button.

With this PR there should be an error message; without it the progress screen should stall forever.

@AprilSylph AprilSylph self-requested a review October 3, 2023 10:02
@marcustyphoon marcustyphoon merged commit 914d426 into AprilSylph:master Dec 7, 2023
2 checks passed
@marcustyphoon marcustyphoon deleted the fixes-from-ts branch December 7, 2023 22:57
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.

2 participants