fix: apply new state/props type safety constraints on all dependand packages

This commit is contained in:
Martin Hochel
2018-06-26 11:06:37 +02:00
parent 542f3c08a5
commit 98f3e2fb2f
37 changed files with 506 additions and 710 deletions
@@ -56,7 +56,7 @@ const ClassicComponent: React.ClassicComponentClass<Props> = createReactClass<Pr
shouldComponentUpdate(this: React.ClassicComponent<Props, State>, nextProps, nextState) {
const newFoo: string = nextProps.foo;
const newBar: number = nextState.bar;
return newFoo !== this.props.foo && newBar !== this.state.bar;
return newFoo !== this.props.foo && newBar !== this.state!.bar;
},
statics: {
test: 1