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

Fix undeclared variable and add types #925

Closed
wants to merge 7 commits into from
Closed

Conversation

ghalle
Copy link
Collaborator

@ghalle ghalle commented Jul 2, 2023

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • infrastructure changes
  • Other... Please describe:

What is the current behavior?

The code references a variable that does not exist causing the following error:

ReferenceError: timerState is not defined

What is the new behavior?

The error is gone

Other information

This also fixes all the typescript errors in vite/plugin.js and fs-router/router.js.
Some code was refactored to facilitate type inference.
Vite was updated to fix a type mismatch between 2 different versions of vite.

Tests were not successfully run, but they also didn't work with the base branch.

@ghalle ghalle marked this pull request as draft July 5, 2023 20:14
@ghalle ghalle closed this Oct 31, 2023
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