mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-31 09:44:21 +00:00
committed by
Nicolas Gallagher
parent
0caa29c0bf
commit
56dd0fb656
@@ -1,5 +1,6 @@
|
|||||||
coverage
|
coverage
|
||||||
dist
|
dist
|
||||||
|
flow-typed
|
||||||
node_modules
|
node_modules
|
||||||
packages/**/vendor/*
|
packages/**/vendor/*
|
||||||
packages/examples/.next
|
packages/examples/.next
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
[include]
|
[include]
|
||||||
|
|
||||||
[libs]
|
[libs]
|
||||||
<PROJECT_ROOT>/types
|
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
munge_underscores=true
|
munge_underscores=true
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
coverage
|
coverage
|
||||||
dist
|
dist
|
||||||
|
flow-typed
|
||||||
node_modules
|
node_modules
|
||||||
packages/**/vendor/*
|
packages/**/vendor/*
|
||||||
packages/examples/.next
|
packages/examples/.next
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// flow-typed signature: 59a949eac1b23f4800e93fe3c647f055
|
||||||
|
// flow-typed version: c6154227d1/create-react-class_v15.x.x/flow_>=v0.104.x
|
||||||
|
|
||||||
|
declare module "create-react-class" {
|
||||||
|
declare module.exports: React$CreateClass;
|
||||||
|
}
|
||||||
+10
-7
@@ -1,5 +1,5 @@
|
|||||||
// flow-typed signature: 3eaa1f24c7397b78a7481992d2cddcb2
|
// flow-typed signature: c93a723cbeb4d2f95d6a472157f6052f
|
||||||
// flow-typed version: a1a20d4928/prop-types_v15.x.x/flow_>=v0.41.x
|
// flow-typed version: 61b795e5b6/prop-types_v15.x.x/flow_>=v0.104.x
|
||||||
|
|
||||||
type $npm$propTypes$ReactPropsCheckType = (
|
type $npm$propTypes$ReactPropsCheckType = (
|
||||||
props: any,
|
props: any,
|
||||||
@@ -8,25 +8,28 @@ type $npm$propTypes$ReactPropsCheckType = (
|
|||||||
href?: string
|
href?: string
|
||||||
) => ?Error;
|
) => ?Error;
|
||||||
|
|
||||||
|
// Copied from: https://github.com/facebook/flow/blob/0938da8d7293d0077fbe95c3a3e0eebadb57b012/lib/react.js#L433-L449
|
||||||
declare module 'prop-types' {
|
declare module 'prop-types' {
|
||||||
declare var array: React$PropType$Primitive<Array<any>>;
|
declare var array: React$PropType$Primitive<Array<any>>;
|
||||||
declare var bool: React$PropType$Primitive<boolean>;
|
declare var bool: React$PropType$Primitive<boolean>;
|
||||||
declare var func: React$PropType$Primitive<Function>;
|
declare var func: React$PropType$Primitive<(...a: Array<any>) => mixed>;
|
||||||
declare var number: React$PropType$Primitive<number>;
|
declare var number: React$PropType$Primitive<number>;
|
||||||
declare var object: React$PropType$Primitive<Object>;
|
declare var object: React$PropType$Primitive<{ +[string]: mixed, ... }>;
|
||||||
declare var string: React$PropType$Primitive<string>;
|
declare var string: React$PropType$Primitive<string>;
|
||||||
|
declare var symbol: React$PropType$Primitive<Symbol>;
|
||||||
declare var any: React$PropType$Primitive<any>;
|
declare var any: React$PropType$Primitive<any>;
|
||||||
declare var arrayOf: React$PropType$ArrayOf;
|
declare var arrayOf: React$PropType$ArrayOf;
|
||||||
declare var element: React$PropType$Primitive<any>; /* TODO */
|
declare var element: React$PropType$Primitive<any>;
|
||||||
|
declare var elementType: React$PropType$Primitive<any>;
|
||||||
declare var instanceOf: React$PropType$InstanceOf;
|
declare var instanceOf: React$PropType$InstanceOf;
|
||||||
declare var node: React$PropType$Primitive<any>; /* TODO */
|
declare var node: React$PropType$Primitive<any>;
|
||||||
declare var objectOf: React$PropType$ObjectOf;
|
declare var objectOf: React$PropType$ObjectOf;
|
||||||
declare var oneOf: React$PropType$OneOf;
|
declare var oneOf: React$PropType$OneOf;
|
||||||
declare var oneOfType: React$PropType$OneOfType;
|
declare var oneOfType: React$PropType$OneOfType;
|
||||||
declare var shape: React$PropType$Shape;
|
declare var shape: React$PropType$Shape;
|
||||||
|
|
||||||
declare function checkPropTypes<V>(
|
declare function checkPropTypes<V>(
|
||||||
propTypes: $Subtype<{ [_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType }>,
|
propTypes: { [key: $Keys<V>]: $npm$propTypes$ReactPropsCheckType, ... },
|
||||||
values: V,
|
values: V,
|
||||||
location: string,
|
location: string,
|
||||||
componentName: string,
|
componentName: string,
|
||||||
+2
-2
@@ -21,7 +21,7 @@
|
|||||||
"jest": "jest --config ./scripts/jest/config.js",
|
"jest": "jest --config ./scripts/jest/config.js",
|
||||||
"lint": "yarn lint:report --fix",
|
"lint": "yarn lint:report --fix",
|
||||||
"lint:report": "eslint packages scripts",
|
"lint:report": "eslint packages scripts",
|
||||||
"prerelease": "yarn test && yarn compile && yarn compile:commonjs",
|
"prerelease": "yarn test && yarn compile",
|
||||||
"release": "node ./scripts/release/publish.js",
|
"release": "node ./scripts/release/publish.js",
|
||||||
"postrelease": "yarn docs:release && yarn benchmarks:release",
|
"postrelease": "yarn docs:release && yarn benchmarks:release",
|
||||||
"test": "yarn flow && yarn lint:report && yarn jest --runInBand"
|
"test": "yarn flow && yarn lint:report && yarn jest --runInBand"
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
"del-cli": "^3.0.1",
|
"del-cli": "^3.0.1",
|
||||||
"eslint": "^7.19.0",
|
"eslint": "^7.19.0",
|
||||||
"eslint-config-prettier": "^7.2.0",
|
"eslint-config-prettier": "^7.2.0",
|
||||||
"eslint-plugin-flowtype": "^5.2.0",
|
"eslint-plugin-flowtype": "^5.4.0",
|
||||||
"eslint-plugin-promise": "^4.2.1",
|
"eslint-plugin-promise": "^4.2.1",
|
||||||
"eslint-plugin-react": "^7.22.0",
|
"eslint-plugin-react": "^7.22.0",
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.2.0",
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
// flow-typed signature: 121e589c9be7dac408c14a02e88287fa
|
|
||||||
// flow-typed version: a1a20d4928/create-react-class_v15.x.x/flow_>=v0.41.x
|
|
||||||
|
|
||||||
declare module 'create-react-class' {
|
|
||||||
declare var exports: React$CreateClass;
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) 2013-present, Facebook, Inc.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare module 'fbjs/lib/invariant' {
|
|
||||||
declare function exports<T>(condition: any, message: string, ...args: Array<any>): void;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'fbjs/lib/nullthrows' {
|
|
||||||
declare function exports<T>(value: ?T): T;
|
|
||||||
}
|
|
||||||
@@ -4845,10 +4845,10 @@ eslint-config-prettier@^7.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9"
|
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9"
|
||||||
integrity sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==
|
integrity sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==
|
||||||
|
|
||||||
eslint-plugin-flowtype@^5.2.0:
|
eslint-plugin-flowtype@^5.4.0:
|
||||||
version "5.2.0"
|
version "5.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-5.2.0.tgz#a4bef5dc18f9b2bdb41569a4ab05d73805a3d261"
|
resolved "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-5.4.0.tgz#a559526e56403cb97b470b524957fc526e2485fe"
|
||||||
integrity sha512-z7ULdTxuhlRJcEe1MVljePXricuPOrsWfScRXFhNzVD5dmTHWjIF57AxD0e7AbEoLSbjSsaA5S+hCg43WvpXJQ==
|
integrity sha512-O0s0iTT5UxYuoOpHMLSIO2qZMyvrb9shhk1EM5INNGtJ2CffrfUmsnh6TVsnoT41fkXIEndP630WNovhoO87xQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
lodash "^4.17.15"
|
lodash "^4.17.15"
|
||||||
string-natural-compare "^3.0.1"
|
string-natural-compare "^3.0.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user