-
Notifications
You must be signed in to change notification settings - Fork 13
Bundle and test typescript declarations #20
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
Bundle and test typescript declarations #20
Conversation
2ff360b
to
fe9b04e
Compare
Codecov Report
@@ Coverage Diff @@
## master #20 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 4 4
Lines 53 53
Branches 12 12
=====================================
Hits 53 53 Continue to review full report at Codecov.
|
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.
This is really great work thank you so much! Looking at it it feels like you covered everything, I'll release a new RC soon - seems like it should just work.
Thank you again! 😍
export function Update<T>(state: T): UpdateAction<T>; | ||
|
||
export function SideEffects<T>(sideEffect: T): SideEffectsAction<T>; | ||
export function SideEffects<T>(sideEffect: SideEffect<T>): SideEffectsAction<T>; |
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.
Ha, awesome!
@@ -0,0 +1,17 @@ | |||
import { NoUpdate, Update, SideEffects, UpdateWithSideEffects } from 'react-recomponent'; |
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.
Just a side-node: Do you know if prettier supports TypeScript as well? If so we should probably run it for those files as well just for completeness 🙂
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.
It does.
You can also add husky
and lint-staged
to run prettier on the commit hook
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.
Awesome! Added support for it here: 0a46eef
related to #12