From 5fa33d49360ac2655889d067f45aba4c8b651c99 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 19 Apr 2017 19:49:30 -0700 Subject: [PATCH] Add create-react-class package Reviewed By: sebmarkbage Differential Revision: D4917270 fbshipit-source-id: 3a490eaaa31cb0f4a4f39065bf09a1f30f43c4e1 --- flow/create-react-class.js | 17 +++++++++++++++++ package.json | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 flow/create-react-class.js diff --git a/flow/create-react-class.js b/flow/create-react-class.js new file mode 100644 index 000000000..ba33969e1 --- /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 01fceebac..dc5dd12a4 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",