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

Typescript experimentation #271

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

rlamacraft
Copy link
Contributor

@rlamacraft rlamacraft commented Feb 21, 2025

This PR looks add adding TypeScript to the codebase, making it work alongside Flow, Jest, Eslint, and the various other tools that we use, with the ultimate aim being to move the codebase from Flow to TypeScript in small pieces when we can find the time.

This migration works because both webpack and jest can transpile the flow and typescript code into javascript and then have the former call the later where necessary. To make the type check continue to work, the boundary between the flow js code at the root of the module tree and typescript at the leaves is annotated with a flow library declaration file so that the calling flow code can get the right types.

Also includes a few files; test subjects that were necessary in identifying all of the changes necessary to all of the config files to get everything working: some simple components, a test file, and a cyclical dependency.

@rlamacraft rlamacraft force-pushed the typescript-experimentation branch 4 times, most recently from 7e2676e to 63f421e Compare February 21, 2025 17:11
@rlamacraft rlamacraft force-pushed the typescript-experimentation branch 6 times, most recently from 48503be to 5875271 Compare March 5, 2025 09:53
@rlamacraft rlamacraft marked this pull request as ready for review March 5, 2025 11:07
@rlamacraft rlamacraft force-pushed the typescript-experimentation branch 13 times, most recently from 214d516 to 4b16fb6 Compare March 11, 2025 09:46
@rlamacraft rlamacraft force-pushed the typescript-experimentation branch from 4b16fb6 to a99be63 Compare March 11, 2025 15:09
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