-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
✨ Add TypeScript support #1125
✨ Add TypeScript support #1125
Conversation
dbe9cfc
to
fdecd67
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #1125 +/- ##
==========================================
- Coverage 92.59% 91.90% -0.70%
==========================================
Files 29 28 -1
Lines 297 284 -13
Branches 69 69
==========================================
- Hits 275 261 -14
- Misses 21 22 +1
Partials 1 1
☔ View full report in Codecov by Sentry. |
( | ||
(meow as jest.Mock).mock.calls[0][1] as { importMeta: string } | ||
).importMeta = 'import.meta.url' | ||
|
||
expect(meow.mock.calls).toMatchSnapshot() | ||
expect((meow as jest.Mock).mock.calls).toMatchSnapshot() |
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.
Bit unfortunate bit of typing going on here, but not sure what the proper way would be to handle mocked libraries.
fdecd67
to
ea63d37
Compare
I guess we can eventually transition into using |
ea63d37
to
82004ee
Compare
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.
Great work!! 😍
A couple of comments/suggestions
Thanks ❤️
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.
LGTM! 🚀
I'll release a patch version with this! ❤️ |
Description
This PR updates the project configuration to support TypeScript alongside Flow for a gradual conversion. The idea is to apply a boyscout rule to the codebase, if you touch a file, try to convert it to typescript as we go.
Added
tsconfig.json
file added for TypeScript configuration.@babel/preset-typescript
and TypeScript related devDependencies added.Changed
.ts
extension.Issues