Skip to content

Conversation

nataly87s
Copy link
Contributor

related to #12

  • updated build script to copy type declarations to dist dir
  • added type tests

@nataly87s nataly87s force-pushed the typescript-validation branch from 2ff360b to fe9b04e Compare October 12, 2018 20:56
@codecov
Copy link

codecov bot commented Oct 12, 2018

Codecov Report

Merging #20 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7adcfa1...fe9b04e. Read the comment docs.

Copy link
Owner

@philipp-spiess philipp-spiess left a 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>;
Copy link
Owner

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';
Copy link
Owner

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 🙂

Copy link
Contributor Author

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

Copy link
Owner

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

@philipp-spiess philipp-spiess merged commit f675153 into philipp-spiess:master Oct 13, 2018
@nataly87s nataly87s deleted the typescript-validation branch October 13, 2018 16:20
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.

2 participants