diff --git a/lib/react.js b/lib/react.js index 9026e78d34c..f2164559c02 100644 --- a/lib/react.js +++ b/lib/react.js @@ -43,12 +43,12 @@ declare class React$Component { constructor(props?: Props, context?: any): void; render(): React$Node; - componentWillMount(): void; - componentDidMount(): void; + componentWillMount(): mixed; + componentDidMount(): mixed; componentWillReceiveProps( nextProps: Props, nextContext: any, - ): void; + ): mixed; shouldComponentUpdate( nextProps: Props, nextState: State, @@ -58,13 +58,13 @@ declare class React$Component { nextProps: Props, nextState: State, nextContext: any, - ): void; + ): mixed; componentDidUpdate( prevProps: Props, prevState: State, prevContext: any, - ): void; - componentWillUnmount(): void; + ): mixed; + componentWillUnmount(): mixed; // long tail of other stuff not modeled very well