mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
fix: apply new state/props type safety constraints on all dependand packages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user