-
Notifications
You must be signed in to change notification settings - Fork 0
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(mf-parser): provide getInfo advanced typings #241
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #241 +/- ##
==========================================
- Coverage 96.55% 96.55% -0.01%
==========================================
Files 209 210 +1
Lines 19713 19757 +44
Branches 2223 2238 +15
==========================================
+ Hits 19034 19076 +42
- Misses 671 673 +2
Partials 8 8 ☔ View full report in Codecov by Sentry. |
Any idea why locally I have this error in my tests:
But not in CI ? |
I would use |
I don't have the error locally. Did you run |
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.
I'm not able to judge TS migration anyway but I plan to simplify the library (and make breaking changes) to avoid custom name for properties among other. Don't hesitate to create issues if you see some complex pattern.
Ref: #234 |
109208e
to
0ee1597
Compare
It happen with |
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.
Difficult to review TS change impact but LGTM based on updated test.
Refs: #226 |
Maybe we don't have the same dependency tree, but this is weird. |
Typescript is very rich in its ability to define and express types, but if we can use simple types and avoid dynamic properties in the future, I'd be very grateful ^^. In terms of suggestions, I'd say strongly type all the inputs and outputs of each function. I went down the rabbit hole on my previous PR #231. I had a lot of trouble typing I think you'll find this abandoned RP useful for examples of precisely defined types. |
rework of #231