Skip to content
This repository was archived by the owner on Jan 14, 2019. It is now read-only.

fix(*): brute force initial conversion to TS #25

Merged
merged 1 commit into from
Nov 4, 2018
Merged

fix(*): brute force initial conversion to TS #25

merged 1 commit into from
Nov 4, 2018

Conversation

JamesHenry
Copy link
Owner

Deliberately approached this large PR as a first step - force the tsc to compile the codebase successfully without making runtime changes to it.

E.g. in a code path which is currently exposed to possible unaccounted for null values, and would therefore be flagged by strictNullChecks, the solution in this PR is to use type assertions/casting. In follow up PRs the underlying issues will be fixed.

I have painstakingly recreated the ESTree spec (type info from that not yet in use though to align with the above intentions).

Yuck:

  • A million type assertions
  • Temporary inferred type info from legacy JS codebase is very funky

Yay:
...but up and running with TypeScript source 🎉

@JamesHenry JamesHenry force-pushed the ts branch 2 times, most recently from 231f6d8 to 85b0e77 Compare November 4, 2018 18:41
@JamesHenry JamesHenry changed the title refactor(*): brute force initial conversion to TS fix(*): brute force initial conversion to TS Nov 4, 2018
@JamesHenry
Copy link
Owner Author

I have updated the commit to be a fix so that a patch release update will be triggered by semantic-release and the updated build/publish process can be validated

@JamesHenry JamesHenry merged commit ab6cb20 into master Nov 4, 2018
@JamesHenry JamesHenry deleted the ts branch November 4, 2018 19:38
@JamesHenry
Copy link
Owner Author

🎉 This PR is included in version 5.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@j-f1
Copy link
Contributor

j-f1 commented Nov 4, 2018

FYI there’s an @types/estree package

@kaicataldo
Copy link
Collaborator

Nice work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants