diff --git a/flow/create-react-class.js b/flow/create-react-class.js new file mode 100644 index 0000000000..ba33969e14 --- /dev/null +++ b/flow/create-react-class.js @@ -0,0 +1,17 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @flow + * @nolint + */ + +// TODO (acdlite) Remove this file once flowtype/flow-typed/pull/773 is merged + +declare module 'create-react-class' { + declare var exports: React$CreateClass; +} diff --git a/package.json b/package.json index 01fceebacf..dc5dd12a4f 100644 --- a/package.json +++ b/package.json @@ -157,6 +157,7 @@ "concat-stream": "^1.6.0", "connect": "^2.8.3", "core-js": "^2.2.2", + "create-react-class": "^15.5.2", "debug": "^2.2.0", "denodeify": "^1.2.1", "event-target-shim": "^1.0.5", @@ -216,10 +217,10 @@ "devDependencies": { "babel-eslint": "^7.1.1", "eslint": "^3.8.1", + "eslint-config-fbjs": "^1.1.1", "eslint-plugin-babel": "^3.3.0", "eslint-plugin-flowtype": "^2.20.0", "eslint-plugin-react": "^6.4.1", - "eslint-config-fbjs": "^1.1.1", "flow-bin": "^0.44.2", "jest": "19.0.2", "jest-repl": "19.0.2",