-
Notifications
You must be signed in to change notification settings - Fork 387
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
Validate existing JavaScript implementation with TypeScript #649
Conversation
Refactored prototypes to classes in 98ab37c due to TypeScript lacking support for JSDoc |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
The |
This comment was marked as outdated.
This comment was marked as outdated.
When reviewing this I highly recommend checking the "hide whitespace" box because there's a ton of indentation changes because of the prototype->class migration. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I've been progressively rolling back any "fixes" that I made in the name of making red squiggles go away, in favor of instead marking them with This PR is a substantial enough improvement just from having syntactically-correct JSDoc that is validated by |
getting very close but still wrestling with some JSDoc details. |
I've been playing with the typescript compiler settings and I don't think I can make the bundle smaller, if we're going to continue supporting ES5 (which I think we should for now). In my opinion we should take the size hit, then switch to a more optimal bundler that may help, then over time incrementally raise our target ECMAScript version to reduce the number of polyfills TypeScript is including. |
not sure why they didn't work before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We got to a point where these changes work in our dev environment, so I'm approving this.
Of course, let's cut this v1/v2 boundary first before merging here.
I think we should get rid of the built content in the repo a la #643 before merging this - but yeah, need v2 cut. |
consensus between me and @sea-bass: this is:
so we're gonna merge this and fix any other problems as they arise in our usage or in Issues. |
We also are actively using this branch in our project, so that gives us confidence that it does, in fact, work. |
Why are we bumping to 1.4.1? Why not already bump it to 2.0.0, so people know this isn't 1.X anymore. Doesn't mean we need to release it. |
Or this isn't breaking yet? |
We probably should bump it to 2.0.0. I can do it in #645, or we can do it as a standalone PR. |
this shouldn't be breaking yet - but anyway, sorry, the 1.4.1 came in as a merge conflict and I should've reconciled it as 2.0.0! |
Public API Changes
undefined
or no argument foroptions
. However, this was never actually supported, so this should not affect the great majority of users.Description
Using the TypeScript compiler to statically type-check the existing JavaScript in this repository (and hopefully also auto-generate some typescript typings, that would be nice)
TODO: