From 6fcb1eb4b8ae9872b340c37898d64fe59c68e020 Mon Sep 17 00:00:00 2001 From: Federico Feroldi Date: Thu, 26 Apr 2018 16:10:24 +0200 Subject: [PATCH] [#157113003] Migrate app code to TypeScript (#98) [#157113003] Migrate app code to TypeScript --- .circleci/config.yml | 14 +- .eslintrc.json | 66 - .flowconfig | 55 - .prettierrc | 2 +- __tests__/{index.js => index.ts} | 0 flow-typed/npm/babel-eslint_vx.x.x.js | 123 - flow-typed/npm/babel-jest_vx.x.x.js | 32 - .../npm/babel-preset-react-native_vx.x.x.js | 73 - flow-typed/npm/color_vx.x.x.js | 33 - flow-typed/npm/email-validator_vx.x.x.js | 38 - flow-typed/npm/eslint-config-airbnb_vx.x.x.js | 73 - flow-typed/npm/eslint-config-google_vx.x.x.js | 33 - .../npm/eslint-config-prettier_vx.x.x.js | 66 - .../npm/eslint-plugin-flowtype_vx.x.x.js | 354 -- flow-typed/npm/eslint-plugin-import_vx.x.x.js | 340 -- flow-typed/npm/eslint-plugin-jest_vx.x.x.js | 192 - .../npm/eslint-plugin-jsx-a11y_vx.x.x.js | 1040 ---- .../npm/eslint-plugin-prettier_vx.x.x.js | 32 - flow-typed/npm/eslint-plugin-react_vx.x.x.js | 619 --- flow-typed/npm/eslint_vx.x.x.js | 2412 --------- flow-typed/npm/flow-bin_v0.x.x.js | 6 - flow-typed/npm/flow-typed_vx.x.x.js | 193 - flow-typed/npm/jest_v22.x.x.js | 594 --- flow-typed/npm/lodash_v4.x.x.js | 4441 ----------------- flow-typed/npm/native-base_vx.x.x.js | 1719 ------- flow-typed/npm/option_vx.x.x.js | 38 - flow-typed/npm/prettier_v1.x.x.js | 178 - flow-typed/npm/prettier_vx.x.x.js | 87 - flow-typed/npm/react-native-config_vx.x.x.js | 33 - flow-typed/npm/react-native-fs_vx.x.x.js | 53 - flow-typed/npm/react-native-i18n_vx.x.x.js | 33 - .../npm/react-native-mixpanel_vx.x.x.js | 33 - flow-typed/npm/react-native-offline_vx.x.x.js | 130 - flow-typed/npm/react-native-sha256_vx.x.x.js | 32 - flow-typed/npm/react-navigation_v1.x.x.js | 1142 ----- flow-typed/npm/react-redux_v5.x.x.js | 132 - flow-typed/npm/react-test-renderer_v16.x.x.js | 62 - flow-typed/npm/react-test-renderer_vx.x.x.js | 745 --- flow-typed/npm/redux-logger_vx.x.x.js | 67 - flow-typed/npm/redux-persist_vx.x.x.js | 488 -- flow-typed/npm/redux-saga_v0.16.x.js | 1475 ------ flow-typed/npm/redux-thunk_vx.x.x.js | 60 - flow-typed/npm/redux_v3.x.x.js | 59 - flow-typed/npm/source-map_vx.x.x.js | 123 - flow-typed/npm/stacktrace-js_vx.x.x.js | 60 - index.js | 8 +- js/actions/index.js | 8 - js/actions/login.js | 92 - js/actions/types.js | 71 - js/actions/user.js | 117 - js/components/MessagesComponent.js | 84 - js/components/ProfileComponent.js | 184 - js/components/SpidLoginButton.js | 468 -- js/components/SpidSubscribeComponent.js | 68 - js/components/ui/AppHeader.js | 27 - js/config.js | 10 - js/index.js | 11 - js/lib/react-native/types.js | 25 - js/middlewares/index.js | 5 - js/reducers/__tests__/user.test.js | 55 - js/reducers/types.js | 29 - js/reducers/user.js | 104 - js/screens/authentication/LoginScreen.js | 205 - js/screens/main/MessagesScreen.js | 60 - js/screens/main/ProfileScreen.js | 55 - js/utils/constants.js | 9 - package.json | 70 +- rn-cli.config.js | 8 + js/App.js => ts/App.tsx | 28 +- js/RootContainer.js => ts/RootContainer.tsx | 9 +- ts/actions/types.ts | 51 + js/api/index.js => ts/api/index.ts | 26 +- .../boot/configureErrorHandler.ts | 9 +- .../boot/configureStoreAndPersistor.ts | 31 +- .../components/ConnectionBar.tsx | 27 +- .../IdpsGrid.js => ts/components/IdpsGrid.tsx | 26 +- .../components/forms/SpidInformationForm.tsx | 27 +- .../utils.js => ts/components/forms/utils.tsx | 37 +- .../styles.js => ts/components/styles.ts | 11 +- ts/components/ui/AppHeader.tsx | 20 + .../ui/Modal.js => ts/components/ui/Modal.tsx | 9 +- ts/config.ts | 8 + js/i18n.js => ts/i18n.ts | 4 +- .../middlewares/analytics.ts | 70 +- ts/middlewares/index.ts | 3 + .../navigation/AppNavigator.ts | 4 +- .../navigation/AuthenticationNavigator.ts | 8 +- .../navigation/MainNavigator.ts | 4 +- .../navigation/OnboardingNavigator.ts | 4 +- .../index.js => ts/navigation/index.tsx | 10 +- .../routes.js => ts/navigation/routes.ts | 0 .../react-native-source-maps/index.ts | 0 .../reducers/__tests__/appState.test.ts | 5 +- .../appState.js => ts/reducers/appState.ts | 6 +- js/reducers/index.js => ts/reducers/index.ts | 14 +- .../reducers/navigation.ts | 15 +- ts/reducers/types.ts | 27 + js/sagas/index.js => ts/sagas/index.ts | 7 +- .../onboarding.js => ts/sagas/onboarding.ts | 13 +- js/sagas/profile.js => ts/sagas/profile.ts | 28 +- js/sagas/session.js => ts/sagas/session.ts | 15 +- .../screens/IngressScreen.tsx | 27 +- .../screens/authentication/IdpLoginScreen.tsx | 38 +- .../authentication/IdpSelectionScreen.tsx | 29 +- .../screens/authentication/LandingScreen.tsx | 19 +- .../SpidInformationRequestScreen.tsx | 20 +- ts/screens/main/MessagesScreen.tsx | 27 + ts/screens/main/ProfileScreen.tsx | 22 + .../screens/onboarding/PinScreen.tsx | 19 +- .../screens/onboarding/TosScreen.tsx | 20 +- .../store/actions/application.ts | 2 - .../store/actions/constants.ts | 4 +- .../store/actions/onboarding.ts | 2 - .../profile.js => ts/store/actions/profile.ts | 4 +- .../session.js => ts/store/actions/session.ts | 2 +- .../error.js => ts/store/reducers/error.ts | 20 +- .../store/reducers/loading.ts | 16 +- .../store/reducers/onboarding.ts | 4 +- .../store/reducers/profile.ts | 6 +- .../store/reducers/session.ts | 38 +- .../theme/components/Button.ts | 28 +- .../theme/components/Content.ts | 13 +- .../H1.js => ts/theme/components/H1.ts | 4 +- .../H3.js => ts/theme/components/H3.ts | 4 +- .../theme/components/Header.ts | 4 +- .../Item.js => ts/theme/components/Item.ts | 12 +- .../Modal.js => ts/theme/components/Modal.ts | 4 +- .../Text.js => ts/theme/components/Text.ts | 14 +- .../View.js => ts/theme/components/View.ts | 19 +- js/theme/fonts.js => ts/theme/fonts.ts | 29 +- js/theme/index.js => ts/theme/index.ts | 3 +- js/theme/types.js => ts/theme/types.ts | 2 - .../variables.js => ts/theme/variables.ts | 4 +- js/utils/api.js => ts/utils/api.ts | 8 +- ts/utils/constants.ts | 6 + tsconfig.json | 25 + tslint.json | 37 + yarn.lock | 1131 ++--- 138 files changed, 1019 insertions(+), 20556 deletions(-) delete mode 100644 .eslintrc.json delete mode 100644 .flowconfig rename __tests__/{index.js => index.ts} (100%) delete mode 100644 flow-typed/npm/babel-eslint_vx.x.x.js delete mode 100644 flow-typed/npm/babel-jest_vx.x.x.js delete mode 100644 flow-typed/npm/babel-preset-react-native_vx.x.x.js delete mode 100644 flow-typed/npm/color_vx.x.x.js delete mode 100644 flow-typed/npm/email-validator_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-config-airbnb_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-config-google_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-config-prettier_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-plugin-import_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-plugin-jest_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-plugin-prettier_vx.x.x.js delete mode 100644 flow-typed/npm/eslint-plugin-react_vx.x.x.js delete mode 100644 flow-typed/npm/eslint_vx.x.x.js delete mode 100644 flow-typed/npm/flow-bin_v0.x.x.js delete mode 100644 flow-typed/npm/flow-typed_vx.x.x.js delete mode 100644 flow-typed/npm/jest_v22.x.x.js delete mode 100644 flow-typed/npm/lodash_v4.x.x.js delete mode 100644 flow-typed/npm/native-base_vx.x.x.js delete mode 100644 flow-typed/npm/option_vx.x.x.js delete mode 100644 flow-typed/npm/prettier_v1.x.x.js delete mode 100644 flow-typed/npm/prettier_vx.x.x.js delete mode 100644 flow-typed/npm/react-native-config_vx.x.x.js delete mode 100644 flow-typed/npm/react-native-fs_vx.x.x.js delete mode 100644 flow-typed/npm/react-native-i18n_vx.x.x.js delete mode 100644 flow-typed/npm/react-native-mixpanel_vx.x.x.js delete mode 100644 flow-typed/npm/react-native-offline_vx.x.x.js delete mode 100644 flow-typed/npm/react-native-sha256_vx.x.x.js delete mode 100644 flow-typed/npm/react-navigation_v1.x.x.js delete mode 100644 flow-typed/npm/react-redux_v5.x.x.js delete mode 100644 flow-typed/npm/react-test-renderer_v16.x.x.js delete mode 100644 flow-typed/npm/react-test-renderer_vx.x.x.js delete mode 100644 flow-typed/npm/redux-logger_vx.x.x.js delete mode 100644 flow-typed/npm/redux-persist_vx.x.x.js delete mode 100644 flow-typed/npm/redux-saga_v0.16.x.js delete mode 100644 flow-typed/npm/redux-thunk_vx.x.x.js delete mode 100644 flow-typed/npm/redux_v3.x.x.js delete mode 100644 flow-typed/npm/source-map_vx.x.x.js delete mode 100644 flow-typed/npm/stacktrace-js_vx.x.x.js delete mode 100644 js/actions/index.js delete mode 100644 js/actions/login.js delete mode 100644 js/actions/types.js delete mode 100644 js/actions/user.js delete mode 100644 js/components/MessagesComponent.js delete mode 100644 js/components/ProfileComponent.js delete mode 100644 js/components/SpidLoginButton.js delete mode 100644 js/components/SpidSubscribeComponent.js delete mode 100644 js/components/ui/AppHeader.js delete mode 100644 js/config.js delete mode 100644 js/index.js delete mode 100644 js/lib/react-native/types.js delete mode 100644 js/middlewares/index.js delete mode 100644 js/reducers/__tests__/user.test.js delete mode 100644 js/reducers/types.js delete mode 100644 js/reducers/user.js delete mode 100644 js/screens/authentication/LoginScreen.js delete mode 100644 js/screens/main/MessagesScreen.js delete mode 100644 js/screens/main/ProfileScreen.js delete mode 100644 js/utils/constants.js create mode 100644 rn-cli.config.js rename js/App.js => ts/App.tsx (67%) rename js/RootContainer.js => ts/RootContainer.tsx (91%) create mode 100644 ts/actions/types.ts rename js/api/index.js => ts/api/index.ts (89%) rename js/boot/configureErrorHandler.js => ts/boot/configureErrorHandler.ts (89%) rename js/boot/configureStoreAndPersistor.js => ts/boot/configureStoreAndPersistor.ts (77%) rename js/components/ConnectionBar.js => ts/components/ConnectionBar.tsx (71%) rename js/components/IdpsGrid.js => ts/components/IdpsGrid.tsx (82%) rename js/components/forms/SpidInformationForm.js => ts/components/forms/SpidInformationForm.tsx (62%) rename js/components/forms/utils.js => ts/components/forms/utils.tsx (62%) rename js/components/styles.js => ts/components/styles.ts (89%) create mode 100644 ts/components/ui/AppHeader.tsx rename js/components/ui/Modal.js => ts/components/ui/Modal.tsx (90%) create mode 100644 ts/config.ts rename js/i18n.js => ts/i18n.ts (74%) rename js/middlewares/analytics.js => ts/middlewares/analytics.ts (68%) create mode 100644 ts/middlewares/index.ts rename js/navigation/AppNavigator.js => ts/navigation/AppNavigator.ts (93%) rename js/navigation/AuthenticationNavigator.js => ts/navigation/AuthenticationNavigator.ts (82%) rename js/navigation/MainNavigator.js => ts/navigation/MainNavigator.ts (88%) rename js/navigation/OnboardingNavigator.js => ts/navigation/OnboardingNavigator.ts (87%) rename js/navigation/index.js => ts/navigation/index.tsx (92%) rename js/navigation/routes.js => ts/navigation/routes.ts (100%) rename js/react-native-source-maps/index.js => ts/react-native-source-maps/index.ts (100%) rename js/reducers/__tests__/appState.test.js => ts/reducers/__tests__/appState.test.ts (69%) rename js/reducers/appState.js => ts/reducers/appState.ts (89%) rename js/reducers/index.js => ts/reducers/index.ts (81%) rename js/reducers/navigation.js => ts/reducers/navigation.ts (68%) create mode 100644 ts/reducers/types.ts rename js/sagas/index.js => ts/sagas/index.ts (85%) rename js/sagas/onboarding.js => ts/sagas/onboarding.ts (89%) rename js/sagas/profile.js => ts/sagas/profile.ts (80%) rename js/sagas/session.js => ts/sagas/session.ts (86%) rename js/screens/IngressScreen.js => ts/screens/IngressScreen.tsx (77%) rename js/screens/authentication/IdpLoginScreen.js => ts/screens/authentication/IdpLoginScreen.tsx (81%) rename js/screens/authentication/IdpSelectionScreen.js => ts/screens/authentication/IdpSelectionScreen.tsx (89%) rename js/screens/authentication/LandingScreen.js => ts/screens/authentication/LandingScreen.tsx (87%) rename js/screens/authentication/SpidInformationRequestScreen.js => ts/screens/authentication/SpidInformationRequestScreen.tsx (94%) create mode 100644 ts/screens/main/MessagesScreen.tsx create mode 100644 ts/screens/main/ProfileScreen.tsx rename js/screens/onboarding/PinScreen.js => ts/screens/onboarding/PinScreen.tsx (68%) rename js/screens/onboarding/TosScreen.js => ts/screens/onboarding/TosScreen.tsx (87%) rename js/store/actions/application.js => ts/store/actions/application.ts (97%) rename js/store/actions/constants.js => ts/store/actions/constants.ts (95%) rename js/store/actions/onboarding.js => ts/store/actions/onboarding.ts (97%) rename js/store/actions/profile.js => ts/store/actions/profile.ts (93%) rename js/store/actions/session.js => ts/store/actions/session.ts (93%) rename js/store/reducers/error.js => ts/store/reducers/error.ts (73%) rename js/store/reducers/loading.js => ts/store/reducers/loading.ts (77%) rename js/store/reducers/onboarding.js => ts/store/reducers/onboarding.ts (88%) rename js/store/reducers/profile.js => ts/store/reducers/profile.ts (82%) rename js/store/reducers/session.js => ts/store/reducers/session.ts (59%) rename js/theme/components/Button.js => ts/theme/components/Button.ts (84%) rename js/theme/components/Content.js => ts/theme/components/Content.ts (65%) rename js/theme/components/H1.js => ts/theme/components/H1.ts (85%) rename js/theme/components/H3.js => ts/theme/components/H3.ts (88%) rename js/theme/components/Header.js => ts/theme/components/Header.ts (94%) rename js/theme/components/Item.js => ts/theme/components/Item.ts (73%) rename js/theme/components/Modal.js => ts/theme/components/Modal.ts (90%) rename js/theme/components/Text.js => ts/theme/components/Text.ts (62%) rename js/theme/components/View.js => ts/theme/components/View.ts (75%) rename js/theme/fonts.js => ts/theme/fonts.ts (68%) rename js/theme/index.js => ts/theme/index.ts (96%) rename js/theme/types.js => ts/theme/types.ts (94%) rename js/theme/variables.js => ts/theme/variables.ts (97%) rename js/utils/api.js => ts/utils/api.ts (95%) create mode 100644 ts/utils/constants.ts create mode 100644 tsconfig.json create mode 100644 tslint.json diff --git a/.circleci/config.yml b/.circleci/config.yml index d5e12d9b02c..f087f5de48e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,11 +30,11 @@ jobs: - node_modules key: v1-dependencies-{{ checksum "yarn.lock" }} - # Run Flow check - - run: yarn flow + # Run TSLint + # - run: yarn lint - # Run ESLint - - run: yarn lint + # Build app + - run: yarn tsc:noemit # Run tests - run: yarn test @@ -130,12 +130,12 @@ jobs: macos: xcode: "9.0" - + shell: /bin/bash --login -o pipefail steps: - checkout - + # Download node packages - run: yarn install @@ -147,7 +147,7 @@ jobs: # Fetch CocoaPods specs - run: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf - + # Move to the ios project directory and run the test_build lane - run: cd ios && bundle exec fastlane test_build diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index b4489b643b8..00000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "env": { - "browser": true, - "node": true, - "es6": true, - "jest": true - }, - "extends": [ - "eslint:recommended", - "plugin:flowtype/recommended", - "plugin:react/recommended", - "plugin:jest/recommended", - "prettier", - "prettier/flowtype", - "prettier/react" - ], - "parserOptions": { - "ecmaFeatures": { - "experimentalObjectRestSpread": true, - "jsx": true - }, - "sourceType": "module" - }, - "globals": { - "__DEV__": true, - "__PROD__": true - }, - "plugins": [ - "flowtype", - "react", - "prettier", - "jest" - ], - "rules": { - "eqeqeq": 2, - "consistent-return": 2, - "curly": 2, - "strict": 2, - "handle-callback-err": 1, - "id-length": [2, {"min": 2}], - "no-eval": 2, - "no-magic-numbers": 2, - "no-param-reassign": 1, - "no-trailing-spaces": 2, - "no-unused-expressions": 2, - "no-use-before-define": 2, - "no-var": 2, - "prefer-arrow-callback": 2, - "prefer-const": 2, - "require-jsdoc": [2, { - "require": { - "FunctionDeclaration": false, - "MethodDefinition": false, - "ClassDeclaration": true, - "ArrowFunctionExpression": false, - "FunctionExpression": false - } - }], - "flowtype/no-mutable-array": 2, - "flowtype/no-weak-types": 2, - "flowtype/require-return-type": 2, - "react/jsx-uses-vars": 2, - "react/jsx-no-literals": 2, - "prettier/prettier": 2 - } -} diff --git a/.flowconfig b/.flowconfig deleted file mode 100644 index 2c8df2cb3f7..00000000000 --- a/.flowconfig +++ /dev/null @@ -1,55 +0,0 @@ -[ignore] -; We fork some components by platform -.*/*[.]android.js - -; Ignore "BUCK" generated dirs -/\.buckd/ - -; Ignore unexpected extra "@providesModule" -.*/node_modules/.*/node_modules/fbjs/.* - -; Ignore duplicate module providers -; For RN Apps installed via npm, "Libraries" folder is inside -; "node_modules/react-native" but in the source repo it is in the root -.*/Libraries/react-native/React.js - -; Ignore polyfills -.*/Libraries/polyfills/.* - -; Ignore metro -.*/node_modules/metro/.* - -; Ignore libraries with errors -.*/node_modules/react-native-keyboard-aware-scroll-view/* -.*/node_modules/react-native-sha256/* -.*/node_modules/react-native-offline/* -.*/node_modules/redux-persist/* - -[include] - -[libs] -node_modules/react-native/Libraries/react-native/react-native-interface.js -node_modules/react-native/flow/ -node_modules/react-native/flow-github/ - -[options] -emoji=true - -module.system=haste - -munge_underscores=true - -module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' - -suppress_type=$FlowIssue -suppress_type=$FlowFixMe -suppress_type=$FlowFixMeProps -suppress_type=$FlowFixMeState - -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ -suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy -suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError - -[version] -^0.65.0 diff --git a/.prettierrc b/.prettierrc index 37681df7e4c..8229a12087e 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,5 @@ { - "parser": "flow", + "parser": "typescript", "singleQuote": true, "semi": false } diff --git a/__tests__/index.js b/__tests__/index.ts similarity index 100% rename from __tests__/index.js rename to __tests__/index.ts diff --git a/flow-typed/npm/babel-eslint_vx.x.x.js b/flow-typed/npm/babel-eslint_vx.x.x.js deleted file mode 100644 index 1ffb07b7a1b..00000000000 --- a/flow-typed/npm/babel-eslint_vx.x.x.js +++ /dev/null @@ -1,123 +0,0 @@ -// flow-typed signature: bf1757e1f4799c0c34c739bcb9e102e8 -// flow-typed version: <>/babel-eslint_v^8.1.1/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-eslint' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'babel-eslint' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'babel-eslint/lib/analyze-scope' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/babylon-to-espree/attachComments' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/babylon-to-espree/convertComments' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/babylon-to-espree/index' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/babylon-to-espree/toAST' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/babylon-to-espree/toToken' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/babylon-to-espree/toTokens' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/index' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/parse-with-patch' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/parse-with-scope' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/parse' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/patch-eslint-scope' { - declare module.exports: any; -} - -declare module 'babel-eslint/lib/visitor-keys' { - declare module.exports: any; -} - -// Filename aliases -declare module 'babel-eslint/lib/analyze-scope.js' { - declare module.exports: $Exports<'babel-eslint/lib/analyze-scope'>; -} -declare module 'babel-eslint/lib/babylon-to-espree/attachComments.js' { - declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/attachComments'>; -} -declare module 'babel-eslint/lib/babylon-to-espree/convertComments.js' { - declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertComments'>; -} -declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType.js' { - declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertTemplateType'>; -} -declare module 'babel-eslint/lib/babylon-to-espree/index.js' { - declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/index'>; -} -declare module 'babel-eslint/lib/babylon-to-espree/toAST.js' { - declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toAST'>; -} -declare module 'babel-eslint/lib/babylon-to-espree/toToken.js' { - declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toToken'>; -} -declare module 'babel-eslint/lib/babylon-to-espree/toTokens.js' { - declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toTokens'>; -} -declare module 'babel-eslint/lib/index.js' { - declare module.exports: $Exports<'babel-eslint/lib/index'>; -} -declare module 'babel-eslint/lib/parse-with-patch.js' { - declare module.exports: $Exports<'babel-eslint/lib/parse-with-patch'>; -} -declare module 'babel-eslint/lib/parse-with-scope.js' { - declare module.exports: $Exports<'babel-eslint/lib/parse-with-scope'>; -} -declare module 'babel-eslint/lib/parse.js' { - declare module.exports: $Exports<'babel-eslint/lib/parse'>; -} -declare module 'babel-eslint/lib/patch-eslint-scope.js' { - declare module.exports: $Exports<'babel-eslint/lib/patch-eslint-scope'>; -} -declare module 'babel-eslint/lib/visitor-keys.js' { - declare module.exports: $Exports<'babel-eslint/lib/visitor-keys'>; -} diff --git a/flow-typed/npm/babel-jest_vx.x.x.js b/flow-typed/npm/babel-jest_vx.x.x.js deleted file mode 100644 index 4dca076e4ba..00000000000 --- a/flow-typed/npm/babel-jest_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 677ab2d78172cd0f405b686070df87e2 -// flow-typed version: <>/babel-jest_v22.0.4/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-jest' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'babel-jest' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'babel-jest/build/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'babel-jest/build/index.js' { - declare module.exports: $Exports<'babel-jest/build/index'>; -} diff --git a/flow-typed/npm/babel-preset-react-native_vx.x.x.js b/flow-typed/npm/babel-preset-react-native_vx.x.x.js deleted file mode 100644 index 452f44df65a..00000000000 --- a/flow-typed/npm/babel-preset-react-native_vx.x.x.js +++ /dev/null @@ -1,73 +0,0 @@ -// flow-typed signature: 0a6f0b938b4ca850cbfe51d2630f769c -// flow-typed version: <>/babel-preset-react-native_v4.0.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-preset-react-native' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'babel-preset-react-native' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'babel-preset-react-native/configs/hmr' { - declare module.exports: any; -} - -declare module 'babel-preset-react-native/configs/main' { - declare module.exports: any; -} - -declare module 'babel-preset-react-native/lib/resolvePlugins' { - declare module.exports: any; -} - -declare module 'babel-preset-react-native/plugins' { - declare module.exports: any; -} - -declare module 'babel-preset-react-native/transforms/transform-dynamic-import' { - declare module.exports: any; -} - -declare module 'babel-preset-react-native/transforms/transform-symbol-member' { - declare module.exports: any; -} - -// Filename aliases -declare module 'babel-preset-react-native/configs/hmr.js' { - declare module.exports: $Exports<'babel-preset-react-native/configs/hmr'>; -} -declare module 'babel-preset-react-native/configs/main.js' { - declare module.exports: $Exports<'babel-preset-react-native/configs/main'>; -} -declare module 'babel-preset-react-native/index' { - declare module.exports: $Exports<'babel-preset-react-native'>; -} -declare module 'babel-preset-react-native/index.js' { - declare module.exports: $Exports<'babel-preset-react-native'>; -} -declare module 'babel-preset-react-native/lib/resolvePlugins.js' { - declare module.exports: $Exports<'babel-preset-react-native/lib/resolvePlugins'>; -} -declare module 'babel-preset-react-native/plugins.js' { - declare module.exports: $Exports<'babel-preset-react-native/plugins'>; -} -declare module 'babel-preset-react-native/transforms/transform-dynamic-import.js' { - declare module.exports: $Exports<'babel-preset-react-native/transforms/transform-dynamic-import'>; -} -declare module 'babel-preset-react-native/transforms/transform-symbol-member.js' { - declare module.exports: $Exports<'babel-preset-react-native/transforms/transform-symbol-member'>; -} diff --git a/flow-typed/npm/color_vx.x.x.js b/flow-typed/npm/color_vx.x.x.js deleted file mode 100644 index ed0d1a92f21..00000000000 --- a/flow-typed/npm/color_vx.x.x.js +++ /dev/null @@ -1,33 +0,0 @@ -// flow-typed signature: cee7aeb31bf6d826d4edac193adb613e -// flow-typed version: <>/color_v^2.0.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'color' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'color' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ - - -// Filename aliases -declare module 'color/index' { - declare module.exports: $Exports<'color'>; -} -declare module 'color/index.js' { - declare module.exports: $Exports<'color'>; -} diff --git a/flow-typed/npm/email-validator_vx.x.x.js b/flow-typed/npm/email-validator_vx.x.x.js deleted file mode 100644 index a907d258466..00000000000 --- a/flow-typed/npm/email-validator_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: d71a098ef46034e0bcd0a5f143340109 -// flow-typed version: <>/email-validator_v^1.0.7/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'email-validator' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'email-validator' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'email-validator/test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'email-validator/index' { - declare module.exports: $Exports<'email-validator'>; -} -declare module 'email-validator/index.js' { - declare module.exports: $Exports<'email-validator'>; -} -declare module 'email-validator/test.js' { - declare module.exports: $Exports<'email-validator/test'>; -} diff --git a/flow-typed/npm/eslint-config-airbnb_vx.x.x.js b/flow-typed/npm/eslint-config-airbnb_vx.x.x.js deleted file mode 100644 index 42e7b171b99..00000000000 --- a/flow-typed/npm/eslint-config-airbnb_vx.x.x.js +++ /dev/null @@ -1,73 +0,0 @@ -// flow-typed signature: c7ac7096b61236308c75c2f0e1e8aa4a -// flow-typed version: <>/eslint-config-airbnb_v^16.1.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-config-airbnb' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-config-airbnb' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint-config-airbnb/base' { - declare module.exports: any; -} - -declare module 'eslint-config-airbnb/legacy' { - declare module.exports: any; -} - -declare module 'eslint-config-airbnb/rules/react-a11y' { - declare module.exports: any; -} - -declare module 'eslint-config-airbnb/rules/react' { - declare module.exports: any; -} - -declare module 'eslint-config-airbnb/test/test-base' { - declare module.exports: any; -} - -declare module 'eslint-config-airbnb/test/test-react-order' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-config-airbnb/base.js' { - declare module.exports: $Exports<'eslint-config-airbnb/base'>; -} -declare module 'eslint-config-airbnb/index' { - declare module.exports: $Exports<'eslint-config-airbnb'>; -} -declare module 'eslint-config-airbnb/index.js' { - declare module.exports: $Exports<'eslint-config-airbnb'>; -} -declare module 'eslint-config-airbnb/legacy.js' { - declare module.exports: $Exports<'eslint-config-airbnb/legacy'>; -} -declare module 'eslint-config-airbnb/rules/react-a11y.js' { - declare module.exports: $Exports<'eslint-config-airbnb/rules/react-a11y'>; -} -declare module 'eslint-config-airbnb/rules/react.js' { - declare module.exports: $Exports<'eslint-config-airbnb/rules/react'>; -} -declare module 'eslint-config-airbnb/test/test-base.js' { - declare module.exports: $Exports<'eslint-config-airbnb/test/test-base'>; -} -declare module 'eslint-config-airbnb/test/test-react-order.js' { - declare module.exports: $Exports<'eslint-config-airbnb/test/test-react-order'>; -} diff --git a/flow-typed/npm/eslint-config-google_vx.x.x.js b/flow-typed/npm/eslint-config-google_vx.x.x.js deleted file mode 100644 index e09a32a48af..00000000000 --- a/flow-typed/npm/eslint-config-google_vx.x.x.js +++ /dev/null @@ -1,33 +0,0 @@ -// flow-typed signature: f06730fe600ef52b4c8e39e66963c0dc -// flow-typed version: <>/eslint-config-google_v^0.9.1/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-config-google' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-config-google' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ - - -// Filename aliases -declare module 'eslint-config-google/index' { - declare module.exports: $Exports<'eslint-config-google'>; -} -declare module 'eslint-config-google/index.js' { - declare module.exports: $Exports<'eslint-config-google'>; -} diff --git a/flow-typed/npm/eslint-config-prettier_vx.x.x.js b/flow-typed/npm/eslint-config-prettier_vx.x.x.js deleted file mode 100644 index 8dbdb78d572..00000000000 --- a/flow-typed/npm/eslint-config-prettier_vx.x.x.js +++ /dev/null @@ -1,66 +0,0 @@ -// flow-typed signature: 22c12d63174cb610e83ccb637a4498f3 -// flow-typed version: <>/eslint-config-prettier_v^2.9.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-config-prettier' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-config-prettier' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint-config-prettier/bin/cli' { - declare module.exports: any; -} - -declare module 'eslint-config-prettier/bin/validators' { - declare module.exports: any; -} - -declare module 'eslint-config-prettier/flowtype' { - declare module.exports: any; -} - -declare module 'eslint-config-prettier/react' { - declare module.exports: any; -} - -declare module 'eslint-config-prettier/standard' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-config-prettier/bin/cli.js' { - declare module.exports: $Exports<'eslint-config-prettier/bin/cli'>; -} -declare module 'eslint-config-prettier/bin/validators.js' { - declare module.exports: $Exports<'eslint-config-prettier/bin/validators'>; -} -declare module 'eslint-config-prettier/flowtype.js' { - declare module.exports: $Exports<'eslint-config-prettier/flowtype'>; -} -declare module 'eslint-config-prettier/index' { - declare module.exports: $Exports<'eslint-config-prettier'>; -} -declare module 'eslint-config-prettier/index.js' { - declare module.exports: $Exports<'eslint-config-prettier'>; -} -declare module 'eslint-config-prettier/react.js' { - declare module.exports: $Exports<'eslint-config-prettier/react'>; -} -declare module 'eslint-config-prettier/standard.js' { - declare module.exports: $Exports<'eslint-config-prettier/standard'>; -} diff --git a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js deleted file mode 100644 index ef7b0892f03..00000000000 --- a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js +++ /dev/null @@ -1,354 +0,0 @@ -// flow-typed signature: 2c881071cc51f27713f97be59edcc457 -// flow-typed version: <>/eslint-plugin-flowtype_v^2.42.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-plugin-flowtype' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-plugin-flowtype' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint-plugin-flowtype/bin/readmeAssertions' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/booleanStyle' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/defineFlowType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/delimiterDangle' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/genericSpacing' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noFlowFixMeComments' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noMutableArray' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noUnusedExpressions' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/objectTypeDelimiter' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/requireExactType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/requireParameterType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/requireReturnType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/requireValidFileAnnotation' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/requireVariableType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/semi' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/sortKeys' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/spaceAfterTypeColon' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/spaceBeforeGenericBracket' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/spaceBeforeTypeColon' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateFunctions' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeIndexer' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeProperty' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateReturnType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypeCastExpression' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypical' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/reporter' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/typeIdMatch' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/unionIntersectionSpacing' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/useFlowType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/validSyntax' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/checkFlowFileAnnotation' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/fuzzyStringMatch' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/getParameterName' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/getTokenAfterParens' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/getTokenBeforeParens' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/isFlowFile' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/isFlowFileAnnotation' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/iterateFunctionNodes' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/quoteName' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/utilities/spacingFixers' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-plugin-flowtype/bin/readmeAssertions.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/bin/readmeAssertions'>; -} -declare module 'eslint-plugin-flowtype/dist/index.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/index'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/booleanStyle.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/booleanStyle'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/defineFlowType.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/defineFlowType'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/delimiterDangle.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/delimiterDangle'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/genericSpacing.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/genericSpacing'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noDupeKeys'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/noFlowFixMeComments.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noFlowFixMeComments'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/noMutableArray.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noMutableArray'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noUnusedExpressions'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noWeakTypes'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/objectTypeDelimiter.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/objectTypeDelimiter'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/requireExactType.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireExactType'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/requireParameterType.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireParameterType'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/requireReturnType.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireReturnType'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/requireValidFileAnnotation.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireValidFileAnnotation'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/requireVariableType.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireVariableType'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/semi.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/semi'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/sortKeys.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/sortKeys'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/spaceAfterTypeColon.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/spaceAfterTypeColon'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/spaceBeforeGenericBracket.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/spaceBeforeGenericBracket'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/spaceBeforeTypeColon.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/spaceBeforeTypeColon'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateFunctions.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateFunctions'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeIndexer.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeIndexer'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeProperty.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeProperty'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateReturnType.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateReturnType'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypeCastExpression.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypeCastExpression'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypical.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypical'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/index.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/index'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/reporter.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/reporter'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/typeIdMatch.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeIdMatch'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/unionIntersectionSpacing.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/unionIntersectionSpacing'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/useFlowType.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/useFlowType'>; -} -declare module 'eslint-plugin-flowtype/dist/rules/validSyntax.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/validSyntax'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/checkFlowFileAnnotation.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/checkFlowFileAnnotation'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/fuzzyStringMatch.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/fuzzyStringMatch'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/getParameterName.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/getParameterName'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/getTokenAfterParens.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/getTokenAfterParens'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/getTokenBeforeParens.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/getTokenBeforeParens'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/index.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/index'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/isFlowFile.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/isFlowFile'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/isFlowFileAnnotation.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/isFlowFileAnnotation'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/iterateFunctionNodes.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/iterateFunctionNodes'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/quoteName.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/quoteName'>; -} -declare module 'eslint-plugin-flowtype/dist/utilities/spacingFixers.js' { - declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/spacingFixers'>; -} diff --git a/flow-typed/npm/eslint-plugin-import_vx.x.x.js b/flow-typed/npm/eslint-plugin-import_vx.x.x.js deleted file mode 100644 index 9b695bc7191..00000000000 --- a/flow-typed/npm/eslint-plugin-import_vx.x.x.js +++ /dev/null @@ -1,340 +0,0 @@ -// flow-typed signature: f826a5a638fca39fa884d89c08156c97 -// flow-typed version: <>/eslint-plugin-import_v^2.8.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-plugin-import' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-plugin-import' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint-plugin-import/config/electron' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/config/errors' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/config/react-native' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/config/react' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/config/recommended' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/config/stage-0' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/config/warnings' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/core/importType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/core/staticRequire' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/ExportMap' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/importDeclaration' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/default' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/export' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/exports-last' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/extensions' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/first' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/imports-first' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/max-dependencies' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/named' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/namespace' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/newline-after-import' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-absolute-path' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-amd' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-commonjs' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-deprecated' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-duplicates' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-dynamic-require' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-extraneous-dependencies' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-internal-modules' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-mutable-exports' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-named-as-default-member' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-named-as-default' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-named-default' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-namespace' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-nodejs-modules' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-restricted-paths' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-unassigned-import' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-unresolved' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-webpack-loader-syntax' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/order' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/prefer-default-export' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/unambiguous' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/memo-parser/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-plugin-import/config/electron.js' { - declare module.exports: $Exports<'eslint-plugin-import/config/electron'>; -} -declare module 'eslint-plugin-import/config/errors.js' { - declare module.exports: $Exports<'eslint-plugin-import/config/errors'>; -} -declare module 'eslint-plugin-import/config/react-native.js' { - declare module.exports: $Exports<'eslint-plugin-import/config/react-native'>; -} -declare module 'eslint-plugin-import/config/react.js' { - declare module.exports: $Exports<'eslint-plugin-import/config/react'>; -} -declare module 'eslint-plugin-import/config/recommended.js' { - declare module.exports: $Exports<'eslint-plugin-import/config/recommended'>; -} -declare module 'eslint-plugin-import/config/stage-0.js' { - declare module.exports: $Exports<'eslint-plugin-import/config/stage-0'>; -} -declare module 'eslint-plugin-import/config/warnings.js' { - declare module.exports: $Exports<'eslint-plugin-import/config/warnings'>; -} -declare module 'eslint-plugin-import/lib/core/importType.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/core/importType'>; -} -declare module 'eslint-plugin-import/lib/core/staticRequire.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/core/staticRequire'>; -} -declare module 'eslint-plugin-import/lib/ExportMap.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/ExportMap'>; -} -declare module 'eslint-plugin-import/lib/importDeclaration.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/importDeclaration'>; -} -declare module 'eslint-plugin-import/lib/index.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/index'>; -} -declare module 'eslint-plugin-import/lib/rules/default.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/default'>; -} -declare module 'eslint-plugin-import/lib/rules/export.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/export'>; -} -declare module 'eslint-plugin-import/lib/rules/exports-last.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/exports-last'>; -} -declare module 'eslint-plugin-import/lib/rules/extensions.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/extensions'>; -} -declare module 'eslint-plugin-import/lib/rules/first.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/first'>; -} -declare module 'eslint-plugin-import/lib/rules/imports-first.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/imports-first'>; -} -declare module 'eslint-plugin-import/lib/rules/max-dependencies.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/max-dependencies'>; -} -declare module 'eslint-plugin-import/lib/rules/named.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/named'>; -} -declare module 'eslint-plugin-import/lib/rules/namespace.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/namespace'>; -} -declare module 'eslint-plugin-import/lib/rules/newline-after-import.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/newline-after-import'>; -} -declare module 'eslint-plugin-import/lib/rules/no-absolute-path.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-absolute-path'>; -} -declare module 'eslint-plugin-import/lib/rules/no-amd.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-amd'>; -} -declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-anonymous-default-export'>; -} -declare module 'eslint-plugin-import/lib/rules/no-commonjs.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-commonjs'>; -} -declare module 'eslint-plugin-import/lib/rules/no-deprecated.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-deprecated'>; -} -declare module 'eslint-plugin-import/lib/rules/no-duplicates.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-duplicates'>; -} -declare module 'eslint-plugin-import/lib/rules/no-dynamic-require.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-dynamic-require'>; -} -declare module 'eslint-plugin-import/lib/rules/no-extraneous-dependencies.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-extraneous-dependencies'>; -} -declare module 'eslint-plugin-import/lib/rules/no-internal-modules.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-internal-modules'>; -} -declare module 'eslint-plugin-import/lib/rules/no-mutable-exports.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-mutable-exports'>; -} -declare module 'eslint-plugin-import/lib/rules/no-named-as-default-member.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-as-default-member'>; -} -declare module 'eslint-plugin-import/lib/rules/no-named-as-default.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-as-default'>; -} -declare module 'eslint-plugin-import/lib/rules/no-named-default.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-default'>; -} -declare module 'eslint-plugin-import/lib/rules/no-namespace.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-namespace'>; -} -declare module 'eslint-plugin-import/lib/rules/no-nodejs-modules.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-nodejs-modules'>; -} -declare module 'eslint-plugin-import/lib/rules/no-restricted-paths.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-restricted-paths'>; -} -declare module 'eslint-plugin-import/lib/rules/no-unassigned-import.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-unassigned-import'>; -} -declare module 'eslint-plugin-import/lib/rules/no-unresolved.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-unresolved'>; -} -declare module 'eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-webpack-loader-syntax'>; -} -declare module 'eslint-plugin-import/lib/rules/order.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/order'>; -} -declare module 'eslint-plugin-import/lib/rules/prefer-default-export.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/prefer-default-export'>; -} -declare module 'eslint-plugin-import/lib/rules/unambiguous.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/unambiguous'>; -} -declare module 'eslint-plugin-import/memo-parser/index.js' { - declare module.exports: $Exports<'eslint-plugin-import/memo-parser/index'>; -} diff --git a/flow-typed/npm/eslint-plugin-jest_vx.x.x.js b/flow-typed/npm/eslint-plugin-jest_vx.x.x.js deleted file mode 100644 index 1b7c4430a5c..00000000000 --- a/flow-typed/npm/eslint-plugin-jest_vx.x.x.js +++ /dev/null @@ -1,192 +0,0 @@ -// flow-typed signature: b0b722508bbc818f83624e9adbff10e7 -// flow-typed version: <>/eslint-plugin-jest_v^21.7.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-plugin-jest' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-plugin-jest' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint-plugin-jest/processors/__tests__/snapshot-processor.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/processors/snapshot-processor' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/no_focused_tests.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/no_identical_title.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/no_large_snapshots.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/no_skipped_tests.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/prefer_expect_assertions.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/prefer_to_be_null.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/prefer_to_be_undefined.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/prefer_to_have_length.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/valid_expect_in_promise.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/__tests__/valid_expect.test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/no_disabled_tests' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/no_focused_tests' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/no_identical_title' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/no_large_snapshots' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/prefer_expect_assertions' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/prefer_to_be_null' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/prefer_to_be_undefined' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/prefer_to_have_length' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/util' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/valid_expect_in_promise' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jest/rules/valid_expect' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-plugin-jest/index' { - declare module.exports: $Exports<'eslint-plugin-jest'>; -} -declare module 'eslint-plugin-jest/index.js' { - declare module.exports: $Exports<'eslint-plugin-jest'>; -} -declare module 'eslint-plugin-jest/processors/__tests__/snapshot-processor.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/processors/__tests__/snapshot-processor.test'>; -} -declare module 'eslint-plugin-jest/processors/snapshot-processor.js' { - declare module.exports: $Exports<'eslint-plugin-jest/processors/snapshot-processor'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/no_focused_tests.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/no_focused_tests.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/no_identical_title.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/no_identical_title.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/no_large_snapshots.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/no_large_snapshots.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/no_skipped_tests.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/no_skipped_tests.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/prefer_expect_assertions.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/prefer_expect_assertions.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/prefer_to_be_null.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/prefer_to_be_null.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/prefer_to_be_undefined.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/prefer_to_be_undefined.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/prefer_to_have_length.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/prefer_to_have_length.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/valid_expect_in_promise.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/valid_expect_in_promise.test'>; -} -declare module 'eslint-plugin-jest/rules/__tests__/valid_expect.test.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/__tests__/valid_expect.test'>; -} -declare module 'eslint-plugin-jest/rules/no_disabled_tests.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/no_disabled_tests'>; -} -declare module 'eslint-plugin-jest/rules/no_focused_tests.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/no_focused_tests'>; -} -declare module 'eslint-plugin-jest/rules/no_identical_title.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/no_identical_title'>; -} -declare module 'eslint-plugin-jest/rules/no_large_snapshots.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/no_large_snapshots'>; -} -declare module 'eslint-plugin-jest/rules/prefer_expect_assertions.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/prefer_expect_assertions'>; -} -declare module 'eslint-plugin-jest/rules/prefer_to_be_null.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/prefer_to_be_null'>; -} -declare module 'eslint-plugin-jest/rules/prefer_to_be_undefined.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/prefer_to_be_undefined'>; -} -declare module 'eslint-plugin-jest/rules/prefer_to_have_length.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/prefer_to_have_length'>; -} -declare module 'eslint-plugin-jest/rules/util.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/util'>; -} -declare module 'eslint-plugin-jest/rules/valid_expect_in_promise.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/valid_expect_in_promise'>; -} -declare module 'eslint-plugin-jest/rules/valid_expect.js' { - declare module.exports: $Exports<'eslint-plugin-jest/rules/valid_expect'>; -} diff --git a/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js b/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js deleted file mode 100644 index 9222a801a7d..00000000000 --- a/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js +++ /dev/null @@ -1,1040 +0,0 @@ -// flow-typed signature: c0d9afc5f9bfafc86fd4d65082feff70 -// flow-typed version: <>/eslint-plugin-jsx-a11y_v^6.0.3/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-plugin-jsx-a11y' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-plugin-jsx-a11y' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint-plugin-jsx-a11y/__mocks__/genInteractives' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__mocks__/IdentifierMock' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXAttributeMock' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXElementMock' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXExpressionContainerMock' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/__util__/parserOptionsMapper' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/__util__/ruleOptionsMapperFactory' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/index-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/accessible-emoji-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/alt-text-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-is-valid-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-activedescendant-has-tabindex-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/iframe-has-title-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/interactive-supports-focus-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/media-has-caption-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-autofocus-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-distracting-elements-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-interactive-element-to-noninteractive-role-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-interactions-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-tabindex-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-redundant-roles-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/attributesComparator-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getTabIndex-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/hasAccessibleChild-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/input-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/menu-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/menuitem-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isAbstractRole-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveElement-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveRole-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveElement-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveRole-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/parserOptionsMapper-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/accessible-emoji' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/alt-text' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-is-valid' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-activedescendant-has-tabindex' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-role' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/heading-has-content' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/html-has-lang' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/iframe-has-title' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/interactive-supports-focus' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/label-has-for' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/lang' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/media-has-caption' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-access-key' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-autofocus' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-distracting-elements' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-interactive-element-to-noninteractive-role' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-to-interactive-role' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-tabindex' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-onchange' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-redundant-roles' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/scope' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/attributesComparator' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/getImplicitRole' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/getSuggestion' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/getTabIndex' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/hasAccessibleChild' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/isAbstractRole' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveRole' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveElement' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveRole' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/isPresentationRole' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/schemas' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/scripts/addRuleToIndex' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/scripts/boilerplate/doc' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/scripts/boilerplate/rule' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/scripts/boilerplate/test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/scripts/create-rule' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-plugin-jsx-a11y/__mocks__/genInteractives.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__mocks__/genInteractives'>; -} -declare module 'eslint-plugin-jsx-a11y/__mocks__/IdentifierMock.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__mocks__/IdentifierMock'>; -} -declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXAttributeMock.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__mocks__/JSXAttributeMock'>; -} -declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXElementMock.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__mocks__/JSXElementMock'>; -} -declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXExpressionContainerMock.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__mocks__/JSXExpressionContainerMock'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/__util__/parserOptionsMapper.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/__util__/parserOptionsMapper'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/__util__/ruleOptionsMapperFactory.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/__util__/ruleOptionsMapperFactory'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/index-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/index-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/accessible-emoji-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/accessible-emoji-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/alt-text-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/alt-text-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-is-valid-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-is-valid-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-activedescendant-has-tabindex-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-activedescendant-has-tabindex-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/iframe-has-title-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/iframe-has-title-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/interactive-supports-focus-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/interactive-supports-focus-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/media-has-caption-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/media-has-caption-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-autofocus-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-autofocus-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-distracting-elements-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-distracting-elements-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-interactive-element-to-noninteractive-role-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-interactive-element-to-noninteractive-role-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-interactions-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-interactions-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-tabindex-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-tabindex-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-redundant-roles-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-redundant-roles-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/attributesComparator-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/attributesComparator-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getTabIndex-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/getTabIndex-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/hasAccessibleChild-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/hasAccessibleChild-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/input-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/input-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/menu-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/menu-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/menuitem-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/menuitem-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isAbstractRole-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isAbstractRole-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveElement-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveElement-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveRole-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveRole-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveElement-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveElement-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveRole-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveRole-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/parserOptionsMapper-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/parserOptionsMapper-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/index.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/index'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/accessible-emoji.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/accessible-emoji'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/alt-text.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/alt-text'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-is-valid.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/anchor-is-valid'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-activedescendant-has-tabindex.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-activedescendant-has-tabindex'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-props.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-props'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-role.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-role'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/heading-has-content.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/heading-has-content'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/html-has-lang.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/html-has-lang'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/iframe-has-title.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/iframe-has-title'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/interactive-supports-focus.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/interactive-supports-focus'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/label-has-for.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/label-has-for'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/lang.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/lang'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/media-has-caption.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/media-has-caption'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-access-key.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-access-key'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-autofocus.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-autofocus'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-distracting-elements.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-distracting-elements'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-interactive-element-to-noninteractive-role.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-interactive-element-to-noninteractive-role'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-to-interactive-role.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-to-interactive-role'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-tabindex.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-tabindex'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-onchange.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-onchange'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-redundant-roles.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-redundant-roles'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/scope.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/scope'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/attributesComparator.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/attributesComparator'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/getImplicitRole.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getImplicitRole'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/getSuggestion.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getSuggestion'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/getTabIndex.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getTabIndex'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/hasAccessibleChild.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/hasAccessibleChild'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/isAbstractRole.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isAbstractRole'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveRole.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isInteractiveRole'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveElement.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveElement'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveRole.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveRole'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/isPresentationRole.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isPresentationRole'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/schemas.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/schemas'>; -} -declare module 'eslint-plugin-jsx-a11y/scripts/addRuleToIndex.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/scripts/addRuleToIndex'>; -} -declare module 'eslint-plugin-jsx-a11y/scripts/boilerplate/doc.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/scripts/boilerplate/doc'>; -} -declare module 'eslint-plugin-jsx-a11y/scripts/boilerplate/rule.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/scripts/boilerplate/rule'>; -} -declare module 'eslint-plugin-jsx-a11y/scripts/boilerplate/test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/scripts/boilerplate/test'>; -} -declare module 'eslint-plugin-jsx-a11y/scripts/create-rule.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/scripts/create-rule'>; -} diff --git a/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js b/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js deleted file mode 100644 index 84a04e6c913..00000000000 --- a/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 9a51186f7a3b9daaa8d98c80037e34ca -// flow-typed version: <>/eslint-plugin-prettier_v^2.5.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-plugin-prettier' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-plugin-prettier' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint-plugin-prettier/eslint-plugin-prettier' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-plugin-prettier/eslint-plugin-prettier.js' { - declare module.exports: $Exports<'eslint-plugin-prettier/eslint-plugin-prettier'>; -} diff --git a/flow-typed/npm/eslint-plugin-react_vx.x.x.js b/flow-typed/npm/eslint-plugin-react_vx.x.x.js deleted file mode 100644 index 17d6b7479cc..00000000000 --- a/flow-typed/npm/eslint-plugin-react_vx.x.x.js +++ /dev/null @@ -1,619 +0,0 @@ -// flow-typed signature: f3b47740a04bbce16e747d9dcf2f8de9 -// flow-typed version: <>/eslint-plugin-react_v^7.6.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-plugin-react' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint-plugin-react' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint-plugin-react/lib/rules/boolean-prop-naming' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/button-has-type' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/default-props-match-prop-types' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/destructuring-assignment' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/display-name' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/forbid-component-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/forbid-dom-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/forbid-elements' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/forbid-foreign-prop-types' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/forbid-prop-types' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-boolean-value' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-child-element-spacing' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-closing-tag-location' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-equals-spacing' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-filename-extension' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-first-prop-new-line' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-handler-names' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-indent-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-indent' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-key' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-max-props-per-line' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-no-bind' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-no-duplicate-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-no-literals' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-no-target-blank' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-no-undef' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-one-expression-per-line' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-pascal-case' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-sort-default-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-sort-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-space-before-closing' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-tag-spacing' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-uses-react' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-uses-vars' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/jsx-wrap-multilines' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-access-state-in-setstate' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-array-index-key' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-children-prop' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-danger-with-children' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-danger' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-deprecated' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-did-mount-set-state' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-did-update-set-state' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-direct-mutation-state' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-find-dom-node' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-is-mounted' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-multi-comp' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-redundant-should-component-update' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-render-return-value' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-set-state' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-string-refs' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-this-in-sfc' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-typos' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-unknown-property' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-unused-state' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/no-will-update-set-state' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/prefer-es6-class' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/prefer-stateless-function' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/prop-types' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/react-in-jsx-scope' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/require-default-props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/require-optimization' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/require-render-return' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/self-closing-comp' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/sort-comp' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/sort-prop-types' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/style-prop-object' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/rules/void-dom-elements-no-children' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/annotations' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/ast' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/Components' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/docsUrl' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/makeNoMethodSetStateRule' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/pragma' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/props' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/variable' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/version' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-plugin-react/index' { - declare module.exports: $Exports<'eslint-plugin-react'>; -} -declare module 'eslint-plugin-react/index.js' { - declare module.exports: $Exports<'eslint-plugin-react'>; -} -declare module 'eslint-plugin-react/lib/rules/boolean-prop-naming.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/boolean-prop-naming'>; -} -declare module 'eslint-plugin-react/lib/rules/button-has-type.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/button-has-type'>; -} -declare module 'eslint-plugin-react/lib/rules/default-props-match-prop-types.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/default-props-match-prop-types'>; -} -declare module 'eslint-plugin-react/lib/rules/destructuring-assignment.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/destructuring-assignment'>; -} -declare module 'eslint-plugin-react/lib/rules/display-name.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/display-name'>; -} -declare module 'eslint-plugin-react/lib/rules/forbid-component-props.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-component-props'>; -} -declare module 'eslint-plugin-react/lib/rules/forbid-dom-props.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-dom-props'>; -} -declare module 'eslint-plugin-react/lib/rules/forbid-elements.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-elements'>; -} -declare module 'eslint-plugin-react/lib/rules/forbid-foreign-prop-types.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-foreign-prop-types'>; -} -declare module 'eslint-plugin-react/lib/rules/forbid-prop-types.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-prop-types'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-boolean-value.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-boolean-value'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-child-element-spacing.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-child-element-spacing'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-closing-bracket-location'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-closing-tag-location.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-closing-tag-location'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-brace-presence'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-spacing'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-equals-spacing.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-equals-spacing'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-filename-extension.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-filename-extension'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-first-prop-new-line.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-first-prop-new-line'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-handler-names.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-handler-names'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-indent-props.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-indent-props'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-indent.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-indent'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-key.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-key'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-max-props-per-line.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-max-props-per-line'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-no-bind.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-bind'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-no-duplicate-props.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-duplicate-props'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-no-literals.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-literals'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-no-target-blank.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-target-blank'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-no-undef.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-undef'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-one-expression-per-line.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-one-expression-per-line'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-pascal-case.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-pascal-case'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-sort-default-props.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-sort-default-props'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-sort-props.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-sort-props'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-space-before-closing.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-space-before-closing'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-tag-spacing.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-tag-spacing'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-uses-react.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-uses-react'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-uses-vars.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-uses-vars'>; -} -declare module 'eslint-plugin-react/lib/rules/jsx-wrap-multilines.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-wrap-multilines'>; -} -declare module 'eslint-plugin-react/lib/rules/no-access-state-in-setstate.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-access-state-in-setstate'>; -} -declare module 'eslint-plugin-react/lib/rules/no-array-index-key.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-array-index-key'>; -} -declare module 'eslint-plugin-react/lib/rules/no-children-prop.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-children-prop'>; -} -declare module 'eslint-plugin-react/lib/rules/no-danger-with-children.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-danger-with-children'>; -} -declare module 'eslint-plugin-react/lib/rules/no-danger.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-danger'>; -} -declare module 'eslint-plugin-react/lib/rules/no-deprecated.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-deprecated'>; -} -declare module 'eslint-plugin-react/lib/rules/no-did-mount-set-state.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-did-mount-set-state'>; -} -declare module 'eslint-plugin-react/lib/rules/no-did-update-set-state.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-did-update-set-state'>; -} -declare module 'eslint-plugin-react/lib/rules/no-direct-mutation-state.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-direct-mutation-state'>; -} -declare module 'eslint-plugin-react/lib/rules/no-find-dom-node.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-find-dom-node'>; -} -declare module 'eslint-plugin-react/lib/rules/no-is-mounted.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-is-mounted'>; -} -declare module 'eslint-plugin-react/lib/rules/no-multi-comp.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-multi-comp'>; -} -declare module 'eslint-plugin-react/lib/rules/no-redundant-should-component-update.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-redundant-should-component-update'>; -} -declare module 'eslint-plugin-react/lib/rules/no-render-return-value.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-render-return-value'>; -} -declare module 'eslint-plugin-react/lib/rules/no-set-state.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-set-state'>; -} -declare module 'eslint-plugin-react/lib/rules/no-string-refs.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-string-refs'>; -} -declare module 'eslint-plugin-react/lib/rules/no-this-in-sfc.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-this-in-sfc'>; -} -declare module 'eslint-plugin-react/lib/rules/no-typos.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-typos'>; -} -declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unescaped-entities'>; -} -declare module 'eslint-plugin-react/lib/rules/no-unknown-property.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unknown-property'>; -} -declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unused-prop-types'>; -} -declare module 'eslint-plugin-react/lib/rules/no-unused-state.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unused-state'>; -} -declare module 'eslint-plugin-react/lib/rules/no-will-update-set-state.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-will-update-set-state'>; -} -declare module 'eslint-plugin-react/lib/rules/prefer-es6-class.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prefer-es6-class'>; -} -declare module 'eslint-plugin-react/lib/rules/prefer-stateless-function.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prefer-stateless-function'>; -} -declare module 'eslint-plugin-react/lib/rules/prop-types.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prop-types'>; -} -declare module 'eslint-plugin-react/lib/rules/react-in-jsx-scope.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/react-in-jsx-scope'>; -} -declare module 'eslint-plugin-react/lib/rules/require-default-props.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-default-props'>; -} -declare module 'eslint-plugin-react/lib/rules/require-optimization.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-optimization'>; -} -declare module 'eslint-plugin-react/lib/rules/require-render-return.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-render-return'>; -} -declare module 'eslint-plugin-react/lib/rules/self-closing-comp.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/self-closing-comp'>; -} -declare module 'eslint-plugin-react/lib/rules/sort-comp.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/sort-comp'>; -} -declare module 'eslint-plugin-react/lib/rules/sort-prop-types.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/sort-prop-types'>; -} -declare module 'eslint-plugin-react/lib/rules/style-prop-object.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/style-prop-object'>; -} -declare module 'eslint-plugin-react/lib/rules/void-dom-elements-no-children.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/void-dom-elements-no-children'>; -} -declare module 'eslint-plugin-react/lib/util/annotations.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/annotations'>; -} -declare module 'eslint-plugin-react/lib/util/ast.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/ast'>; -} -declare module 'eslint-plugin-react/lib/util/Components.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/Components'>; -} -declare module 'eslint-plugin-react/lib/util/docsUrl.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/docsUrl'>; -} -declare module 'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket'>; -} -declare module 'eslint-plugin-react/lib/util/makeNoMethodSetStateRule.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/makeNoMethodSetStateRule'>; -} -declare module 'eslint-plugin-react/lib/util/pragma.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/pragma'>; -} -declare module 'eslint-plugin-react/lib/util/props.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/props'>; -} -declare module 'eslint-plugin-react/lib/util/variable.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/variable'>; -} -declare module 'eslint-plugin-react/lib/util/version.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/version'>; -} diff --git a/flow-typed/npm/eslint_vx.x.x.js b/flow-typed/npm/eslint_vx.x.x.js deleted file mode 100644 index 4f40ca7989e..00000000000 --- a/flow-typed/npm/eslint_vx.x.x.js +++ /dev/null @@ -1,2412 +0,0 @@ -// flow-typed signature: e80c6bcb50569284d35b2eac77229792 -// flow-typed version: <>/eslint_v^4.16.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint/bin/eslint' { - declare module.exports: any; -} - -declare module 'eslint/conf/config-schema' { - declare module.exports: any; -} - -declare module 'eslint/conf/default-cli-options' { - declare module.exports: any; -} - -declare module 'eslint/conf/default-config-options' { - declare module.exports: any; -} - -declare module 'eslint/conf/environments' { - declare module.exports: any; -} - -declare module 'eslint/conf/eslint-all' { - declare module.exports: any; -} - -declare module 'eslint/conf/eslint-recommended' { - declare module.exports: any; -} - -declare module 'eslint/lib/api' { - declare module.exports: any; -} - -declare module 'eslint/lib/ast-utils' { - declare module.exports: any; -} - -declare module 'eslint/lib/cli-engine' { - declare module.exports: any; -} - -declare module 'eslint/lib/cli' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/code-path-analyzer' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/code-path-segment' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/code-path-state' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/code-path' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/debug-helpers' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/fork-context' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/id-generator' { - declare module.exports: any; -} - -declare module 'eslint/lib/config' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/autoconfig' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-cache' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-file' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-initializer' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-ops' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-rule' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-validator' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/environments' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/plugins' { - declare module.exports: any; -} - -declare module 'eslint/lib/file-finder' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/checkstyle' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/codeframe' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/compact' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/html' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/jslint-xml' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/json' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/junit' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/stylish' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/table' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/tap' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/unix' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/visualstudio' { - declare module.exports: any; -} - -declare module 'eslint/lib/ignored-paths' { - declare module.exports: any; -} - -declare module 'eslint/lib/linter' { - declare module.exports: any; -} - -declare module 'eslint/lib/load-rules' { - declare module.exports: any; -} - -declare module 'eslint/lib/logging' { - declare module.exports: any; -} - -declare module 'eslint/lib/options' { - declare module.exports: any; -} - -declare module 'eslint/lib/report-translator' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/accessor-pairs' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/array-bracket-newline' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/array-bracket-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/array-callback-return' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/array-element-newline' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/arrow-body-style' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/arrow-parens' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/arrow-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/block-scoped-var' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/block-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/brace-style' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/callback-return' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/camelcase' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/capitalized-comments' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/class-methods-use-this' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/comma-dangle' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/comma-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/comma-style' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/complexity' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/computed-property-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/consistent-return' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/consistent-this' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/constructor-super' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/curly' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/default-case' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/dot-location' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/dot-notation' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/eol-last' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/eqeqeq' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/for-direction' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/func-call-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/func-name-matching' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/func-names' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/func-style' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/function-paren-newline' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/generator-star-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/getter-return' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/global-require' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/guard-for-in' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/handle-callback-err' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/id-blacklist' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/id-length' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/id-match' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/implicit-arrow-linebreak' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/indent-legacy' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/indent' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/init-declarations' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/jsx-quotes' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/key-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/keyword-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/line-comment-position' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/linebreak-style' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/lines-around-comment' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/lines-around-directive' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/lines-between-class-members' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/max-depth' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/max-len' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/max-lines' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/max-nested-callbacks' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/max-params' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/max-statements-per-line' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/max-statements' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/multiline-comment-style' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/multiline-ternary' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/new-cap' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/new-parens' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/newline-after-var' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/newline-before-return' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/newline-per-chained-call' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-alert' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-array-constructor' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-await-in-loop' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-bitwise' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-buffer-constructor' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-caller' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-case-declarations' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-catch-shadow' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-class-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-compare-neg-zero' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-cond-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-confusing-arrow' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-console' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-const-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-constant-condition' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-continue' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-control-regex' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-debugger' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-delete-var' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-div-regex' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-dupe-args' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-dupe-class-members' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-dupe-keys' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-duplicate-case' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-duplicate-imports' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-else-return' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-empty-character-class' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-empty-function' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-empty-pattern' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-empty' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-eq-null' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-eval' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-ex-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-extend-native' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-extra-bind' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-extra-boolean-cast' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-extra-label' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-extra-parens' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-extra-semi' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-fallthrough' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-floating-decimal' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-func-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-global-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-implicit-coercion' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-implicit-globals' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-implied-eval' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-inline-comments' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-inner-declarations' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-invalid-regexp' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-invalid-this' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-irregular-whitespace' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-iterator' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-label-var' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-labels' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-lone-blocks' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-lonely-if' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-loop-func' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-magic-numbers' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-mixed-operators' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-mixed-requires' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-mixed-spaces-and-tabs' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-multi-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-multi-spaces' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-multi-str' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-multiple-empty-lines' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-native-reassign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-negated-condition' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-negated-in-lhs' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-nested-ternary' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-new-func' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-new-object' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-new-require' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-new-symbol' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-new-wrappers' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-new' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-obj-calls' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-octal-escape' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-octal' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-param-reassign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-path-concat' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-plusplus' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-process-env' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-process-exit' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-proto' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-prototype-builtins' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-redeclare' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-regex-spaces' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-restricted-globals' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-restricted-imports' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-restricted-modules' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-restricted-properties' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-restricted-syntax' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-return-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-return-await' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-script-url' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-self-assign' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-self-compare' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-sequences' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-shadow-restricted-names' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-shadow' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-spaced-func' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-sparse-arrays' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-sync' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-tabs' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-template-curly-in-string' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-ternary' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-this-before-super' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-throw-literal' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-trailing-spaces' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-undef-init' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-undef' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-undefined' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-underscore-dangle' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unexpected-multiline' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unmodified-loop-condition' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unneeded-ternary' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unreachable' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unsafe-finally' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unsafe-negation' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unused-expressions' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unused-labels' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-unused-vars' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-use-before-define' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-useless-call' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-useless-computed-key' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-useless-concat' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-useless-constructor' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-useless-escape' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-useless-rename' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-useless-return' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-var' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-void' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-warning-comments' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-whitespace-before-property' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/no-with' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/nonblock-statement-body-position' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/object-curly-newline' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/object-curly-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/object-property-newline' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/object-shorthand' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/one-var-declaration-per-line' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/one-var' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/operator-assignment' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/operator-linebreak' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/padded-blocks' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/padding-line-between-statements' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-arrow-callback' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-const' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-destructuring' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-numeric-literals' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-promise-reject-errors' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-reflect' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-rest-params' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-spread' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/prefer-template' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/quote-props' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/quotes' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/radix' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/require-await' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/require-jsdoc' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/require-yield' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/rest-spread-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/semi-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/semi-style' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/semi' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/sort-imports' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/sort-keys' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/sort-vars' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/space-before-blocks' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/space-before-function-paren' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/space-in-parens' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/space-infix-ops' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/space-unary-ops' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/spaced-comment' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/strict' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/switch-colon-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/symbol-description' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/template-curly-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/template-tag-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/unicode-bom' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/use-isnan' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/valid-jsdoc' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/valid-typeof' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/vars-on-top' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/wrap-iife' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/wrap-regex' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/yield-star-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/yoda' { - declare module.exports: any; -} - -declare module 'eslint/lib/testers/rule-tester' { - declare module.exports: any; -} - -declare module 'eslint/lib/timing' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/backward-token-comment-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/backward-token-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/cursors' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/decorative-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/filter-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/forward-token-comment-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/forward-token-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/index' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/limit-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/padded-token-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/skip-cursor' { - declare module.exports: any; -} - -declare module 'eslint/lib/token-store/utils' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/ajv' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/apply-disable-directives' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/fix-tracker' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/glob-util' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/glob' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/hash' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/interpolate' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/keywords' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/module-resolver' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/naming' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/node-event-generator' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/npm-util' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/path-util' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/patterns/letters' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/rule-fixer' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/safe-emitter' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/source-code-fixer' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/source-code-util' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/source-code' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/traverser' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/xml-escape' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint/bin/eslint.js' { - declare module.exports: $Exports<'eslint/bin/eslint'>; -} -declare module 'eslint/conf/config-schema.js' { - declare module.exports: $Exports<'eslint/conf/config-schema'>; -} -declare module 'eslint/conf/default-cli-options.js' { - declare module.exports: $Exports<'eslint/conf/default-cli-options'>; -} -declare module 'eslint/conf/default-config-options.js' { - declare module.exports: $Exports<'eslint/conf/default-config-options'>; -} -declare module 'eslint/conf/environments.js' { - declare module.exports: $Exports<'eslint/conf/environments'>; -} -declare module 'eslint/conf/eslint-all.js' { - declare module.exports: $Exports<'eslint/conf/eslint-all'>; -} -declare module 'eslint/conf/eslint-recommended.js' { - declare module.exports: $Exports<'eslint/conf/eslint-recommended'>; -} -declare module 'eslint/lib/api.js' { - declare module.exports: $Exports<'eslint/lib/api'>; -} -declare module 'eslint/lib/ast-utils.js' { - declare module.exports: $Exports<'eslint/lib/ast-utils'>; -} -declare module 'eslint/lib/cli-engine.js' { - declare module.exports: $Exports<'eslint/lib/cli-engine'>; -} -declare module 'eslint/lib/cli.js' { - declare module.exports: $Exports<'eslint/lib/cli'>; -} -declare module 'eslint/lib/code-path-analysis/code-path-analyzer.js' { - declare module.exports: $Exports<'eslint/lib/code-path-analysis/code-path-analyzer'>; -} -declare module 'eslint/lib/code-path-analysis/code-path-segment.js' { - declare module.exports: $Exports<'eslint/lib/code-path-analysis/code-path-segment'>; -} -declare module 'eslint/lib/code-path-analysis/code-path-state.js' { - declare module.exports: $Exports<'eslint/lib/code-path-analysis/code-path-state'>; -} -declare module 'eslint/lib/code-path-analysis/code-path.js' { - declare module.exports: $Exports<'eslint/lib/code-path-analysis/code-path'>; -} -declare module 'eslint/lib/code-path-analysis/debug-helpers.js' { - declare module.exports: $Exports<'eslint/lib/code-path-analysis/debug-helpers'>; -} -declare module 'eslint/lib/code-path-analysis/fork-context.js' { - declare module.exports: $Exports<'eslint/lib/code-path-analysis/fork-context'>; -} -declare module 'eslint/lib/code-path-analysis/id-generator.js' { - declare module.exports: $Exports<'eslint/lib/code-path-analysis/id-generator'>; -} -declare module 'eslint/lib/config.js' { - declare module.exports: $Exports<'eslint/lib/config'>; -} -declare module 'eslint/lib/config/autoconfig.js' { - declare module.exports: $Exports<'eslint/lib/config/autoconfig'>; -} -declare module 'eslint/lib/config/config-cache.js' { - declare module.exports: $Exports<'eslint/lib/config/config-cache'>; -} -declare module 'eslint/lib/config/config-file.js' { - declare module.exports: $Exports<'eslint/lib/config/config-file'>; -} -declare module 'eslint/lib/config/config-initializer.js' { - declare module.exports: $Exports<'eslint/lib/config/config-initializer'>; -} -declare module 'eslint/lib/config/config-ops.js' { - declare module.exports: $Exports<'eslint/lib/config/config-ops'>; -} -declare module 'eslint/lib/config/config-rule.js' { - declare module.exports: $Exports<'eslint/lib/config/config-rule'>; -} -declare module 'eslint/lib/config/config-validator.js' { - declare module.exports: $Exports<'eslint/lib/config/config-validator'>; -} -declare module 'eslint/lib/config/environments.js' { - declare module.exports: $Exports<'eslint/lib/config/environments'>; -} -declare module 'eslint/lib/config/plugins.js' { - declare module.exports: $Exports<'eslint/lib/config/plugins'>; -} -declare module 'eslint/lib/file-finder.js' { - declare module.exports: $Exports<'eslint/lib/file-finder'>; -} -declare module 'eslint/lib/formatters/checkstyle.js' { - declare module.exports: $Exports<'eslint/lib/formatters/checkstyle'>; -} -declare module 'eslint/lib/formatters/codeframe.js' { - declare module.exports: $Exports<'eslint/lib/formatters/codeframe'>; -} -declare module 'eslint/lib/formatters/compact.js' { - declare module.exports: $Exports<'eslint/lib/formatters/compact'>; -} -declare module 'eslint/lib/formatters/html.js' { - declare module.exports: $Exports<'eslint/lib/formatters/html'>; -} -declare module 'eslint/lib/formatters/jslint-xml.js' { - declare module.exports: $Exports<'eslint/lib/formatters/jslint-xml'>; -} -declare module 'eslint/lib/formatters/json.js' { - declare module.exports: $Exports<'eslint/lib/formatters/json'>; -} -declare module 'eslint/lib/formatters/junit.js' { - declare module.exports: $Exports<'eslint/lib/formatters/junit'>; -} -declare module 'eslint/lib/formatters/stylish.js' { - declare module.exports: $Exports<'eslint/lib/formatters/stylish'>; -} -declare module 'eslint/lib/formatters/table.js' { - declare module.exports: $Exports<'eslint/lib/formatters/table'>; -} -declare module 'eslint/lib/formatters/tap.js' { - declare module.exports: $Exports<'eslint/lib/formatters/tap'>; -} -declare module 'eslint/lib/formatters/unix.js' { - declare module.exports: $Exports<'eslint/lib/formatters/unix'>; -} -declare module 'eslint/lib/formatters/visualstudio.js' { - declare module.exports: $Exports<'eslint/lib/formatters/visualstudio'>; -} -declare module 'eslint/lib/ignored-paths.js' { - declare module.exports: $Exports<'eslint/lib/ignored-paths'>; -} -declare module 'eslint/lib/linter.js' { - declare module.exports: $Exports<'eslint/lib/linter'>; -} -declare module 'eslint/lib/load-rules.js' { - declare module.exports: $Exports<'eslint/lib/load-rules'>; -} -declare module 'eslint/lib/logging.js' { - declare module.exports: $Exports<'eslint/lib/logging'>; -} -declare module 'eslint/lib/options.js' { - declare module.exports: $Exports<'eslint/lib/options'>; -} -declare module 'eslint/lib/report-translator.js' { - declare module.exports: $Exports<'eslint/lib/report-translator'>; -} -declare module 'eslint/lib/rules.js' { - declare module.exports: $Exports<'eslint/lib/rules'>; -} -declare module 'eslint/lib/rules/accessor-pairs.js' { - declare module.exports: $Exports<'eslint/lib/rules/accessor-pairs'>; -} -declare module 'eslint/lib/rules/array-bracket-newline.js' { - declare module.exports: $Exports<'eslint/lib/rules/array-bracket-newline'>; -} -declare module 'eslint/lib/rules/array-bracket-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/array-bracket-spacing'>; -} -declare module 'eslint/lib/rules/array-callback-return.js' { - declare module.exports: $Exports<'eslint/lib/rules/array-callback-return'>; -} -declare module 'eslint/lib/rules/array-element-newline.js' { - declare module.exports: $Exports<'eslint/lib/rules/array-element-newline'>; -} -declare module 'eslint/lib/rules/arrow-body-style.js' { - declare module.exports: $Exports<'eslint/lib/rules/arrow-body-style'>; -} -declare module 'eslint/lib/rules/arrow-parens.js' { - declare module.exports: $Exports<'eslint/lib/rules/arrow-parens'>; -} -declare module 'eslint/lib/rules/arrow-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/arrow-spacing'>; -} -declare module 'eslint/lib/rules/block-scoped-var.js' { - declare module.exports: $Exports<'eslint/lib/rules/block-scoped-var'>; -} -declare module 'eslint/lib/rules/block-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/block-spacing'>; -} -declare module 'eslint/lib/rules/brace-style.js' { - declare module.exports: $Exports<'eslint/lib/rules/brace-style'>; -} -declare module 'eslint/lib/rules/callback-return.js' { - declare module.exports: $Exports<'eslint/lib/rules/callback-return'>; -} -declare module 'eslint/lib/rules/camelcase.js' { - declare module.exports: $Exports<'eslint/lib/rules/camelcase'>; -} -declare module 'eslint/lib/rules/capitalized-comments.js' { - declare module.exports: $Exports<'eslint/lib/rules/capitalized-comments'>; -} -declare module 'eslint/lib/rules/class-methods-use-this.js' { - declare module.exports: $Exports<'eslint/lib/rules/class-methods-use-this'>; -} -declare module 'eslint/lib/rules/comma-dangle.js' { - declare module.exports: $Exports<'eslint/lib/rules/comma-dangle'>; -} -declare module 'eslint/lib/rules/comma-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/comma-spacing'>; -} -declare module 'eslint/lib/rules/comma-style.js' { - declare module.exports: $Exports<'eslint/lib/rules/comma-style'>; -} -declare module 'eslint/lib/rules/complexity.js' { - declare module.exports: $Exports<'eslint/lib/rules/complexity'>; -} -declare module 'eslint/lib/rules/computed-property-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/computed-property-spacing'>; -} -declare module 'eslint/lib/rules/consistent-return.js' { - declare module.exports: $Exports<'eslint/lib/rules/consistent-return'>; -} -declare module 'eslint/lib/rules/consistent-this.js' { - declare module.exports: $Exports<'eslint/lib/rules/consistent-this'>; -} -declare module 'eslint/lib/rules/constructor-super.js' { - declare module.exports: $Exports<'eslint/lib/rules/constructor-super'>; -} -declare module 'eslint/lib/rules/curly.js' { - declare module.exports: $Exports<'eslint/lib/rules/curly'>; -} -declare module 'eslint/lib/rules/default-case.js' { - declare module.exports: $Exports<'eslint/lib/rules/default-case'>; -} -declare module 'eslint/lib/rules/dot-location.js' { - declare module.exports: $Exports<'eslint/lib/rules/dot-location'>; -} -declare module 'eslint/lib/rules/dot-notation.js' { - declare module.exports: $Exports<'eslint/lib/rules/dot-notation'>; -} -declare module 'eslint/lib/rules/eol-last.js' { - declare module.exports: $Exports<'eslint/lib/rules/eol-last'>; -} -declare module 'eslint/lib/rules/eqeqeq.js' { - declare module.exports: $Exports<'eslint/lib/rules/eqeqeq'>; -} -declare module 'eslint/lib/rules/for-direction.js' { - declare module.exports: $Exports<'eslint/lib/rules/for-direction'>; -} -declare module 'eslint/lib/rules/func-call-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/func-call-spacing'>; -} -declare module 'eslint/lib/rules/func-name-matching.js' { - declare module.exports: $Exports<'eslint/lib/rules/func-name-matching'>; -} -declare module 'eslint/lib/rules/func-names.js' { - declare module.exports: $Exports<'eslint/lib/rules/func-names'>; -} -declare module 'eslint/lib/rules/func-style.js' { - declare module.exports: $Exports<'eslint/lib/rules/func-style'>; -} -declare module 'eslint/lib/rules/function-paren-newline.js' { - declare module.exports: $Exports<'eslint/lib/rules/function-paren-newline'>; -} -declare module 'eslint/lib/rules/generator-star-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/generator-star-spacing'>; -} -declare module 'eslint/lib/rules/getter-return.js' { - declare module.exports: $Exports<'eslint/lib/rules/getter-return'>; -} -declare module 'eslint/lib/rules/global-require.js' { - declare module.exports: $Exports<'eslint/lib/rules/global-require'>; -} -declare module 'eslint/lib/rules/guard-for-in.js' { - declare module.exports: $Exports<'eslint/lib/rules/guard-for-in'>; -} -declare module 'eslint/lib/rules/handle-callback-err.js' { - declare module.exports: $Exports<'eslint/lib/rules/handle-callback-err'>; -} -declare module 'eslint/lib/rules/id-blacklist.js' { - declare module.exports: $Exports<'eslint/lib/rules/id-blacklist'>; -} -declare module 'eslint/lib/rules/id-length.js' { - declare module.exports: $Exports<'eslint/lib/rules/id-length'>; -} -declare module 'eslint/lib/rules/id-match.js' { - declare module.exports: $Exports<'eslint/lib/rules/id-match'>; -} -declare module 'eslint/lib/rules/implicit-arrow-linebreak.js' { - declare module.exports: $Exports<'eslint/lib/rules/implicit-arrow-linebreak'>; -} -declare module 'eslint/lib/rules/indent-legacy.js' { - declare module.exports: $Exports<'eslint/lib/rules/indent-legacy'>; -} -declare module 'eslint/lib/rules/indent.js' { - declare module.exports: $Exports<'eslint/lib/rules/indent'>; -} -declare module 'eslint/lib/rules/init-declarations.js' { - declare module.exports: $Exports<'eslint/lib/rules/init-declarations'>; -} -declare module 'eslint/lib/rules/jsx-quotes.js' { - declare module.exports: $Exports<'eslint/lib/rules/jsx-quotes'>; -} -declare module 'eslint/lib/rules/key-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/key-spacing'>; -} -declare module 'eslint/lib/rules/keyword-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/keyword-spacing'>; -} -declare module 'eslint/lib/rules/line-comment-position.js' { - declare module.exports: $Exports<'eslint/lib/rules/line-comment-position'>; -} -declare module 'eslint/lib/rules/linebreak-style.js' { - declare module.exports: $Exports<'eslint/lib/rules/linebreak-style'>; -} -declare module 'eslint/lib/rules/lines-around-comment.js' { - declare module.exports: $Exports<'eslint/lib/rules/lines-around-comment'>; -} -declare module 'eslint/lib/rules/lines-around-directive.js' { - declare module.exports: $Exports<'eslint/lib/rules/lines-around-directive'>; -} -declare module 'eslint/lib/rules/lines-between-class-members.js' { - declare module.exports: $Exports<'eslint/lib/rules/lines-between-class-members'>; -} -declare module 'eslint/lib/rules/max-depth.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-depth'>; -} -declare module 'eslint/lib/rules/max-len.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-len'>; -} -declare module 'eslint/lib/rules/max-lines.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-lines'>; -} -declare module 'eslint/lib/rules/max-nested-callbacks.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-nested-callbacks'>; -} -declare module 'eslint/lib/rules/max-params.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-params'>; -} -declare module 'eslint/lib/rules/max-statements-per-line.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-statements-per-line'>; -} -declare module 'eslint/lib/rules/max-statements.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-statements'>; -} -declare module 'eslint/lib/rules/multiline-comment-style.js' { - declare module.exports: $Exports<'eslint/lib/rules/multiline-comment-style'>; -} -declare module 'eslint/lib/rules/multiline-ternary.js' { - declare module.exports: $Exports<'eslint/lib/rules/multiline-ternary'>; -} -declare module 'eslint/lib/rules/new-cap.js' { - declare module.exports: $Exports<'eslint/lib/rules/new-cap'>; -} -declare module 'eslint/lib/rules/new-parens.js' { - declare module.exports: $Exports<'eslint/lib/rules/new-parens'>; -} -declare module 'eslint/lib/rules/newline-after-var.js' { - declare module.exports: $Exports<'eslint/lib/rules/newline-after-var'>; -} -declare module 'eslint/lib/rules/newline-before-return.js' { - declare module.exports: $Exports<'eslint/lib/rules/newline-before-return'>; -} -declare module 'eslint/lib/rules/newline-per-chained-call.js' { - declare module.exports: $Exports<'eslint/lib/rules/newline-per-chained-call'>; -} -declare module 'eslint/lib/rules/no-alert.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-alert'>; -} -declare module 'eslint/lib/rules/no-array-constructor.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-array-constructor'>; -} -declare module 'eslint/lib/rules/no-await-in-loop.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-await-in-loop'>; -} -declare module 'eslint/lib/rules/no-bitwise.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-bitwise'>; -} -declare module 'eslint/lib/rules/no-buffer-constructor.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-buffer-constructor'>; -} -declare module 'eslint/lib/rules/no-caller.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-caller'>; -} -declare module 'eslint/lib/rules/no-case-declarations.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-case-declarations'>; -} -declare module 'eslint/lib/rules/no-catch-shadow.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-catch-shadow'>; -} -declare module 'eslint/lib/rules/no-class-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-class-assign'>; -} -declare module 'eslint/lib/rules/no-compare-neg-zero.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-compare-neg-zero'>; -} -declare module 'eslint/lib/rules/no-cond-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-cond-assign'>; -} -declare module 'eslint/lib/rules/no-confusing-arrow.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-confusing-arrow'>; -} -declare module 'eslint/lib/rules/no-console.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-console'>; -} -declare module 'eslint/lib/rules/no-const-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-const-assign'>; -} -declare module 'eslint/lib/rules/no-constant-condition.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-constant-condition'>; -} -declare module 'eslint/lib/rules/no-continue.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-continue'>; -} -declare module 'eslint/lib/rules/no-control-regex.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-control-regex'>; -} -declare module 'eslint/lib/rules/no-debugger.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-debugger'>; -} -declare module 'eslint/lib/rules/no-delete-var.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-delete-var'>; -} -declare module 'eslint/lib/rules/no-div-regex.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-div-regex'>; -} -declare module 'eslint/lib/rules/no-dupe-args.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-dupe-args'>; -} -declare module 'eslint/lib/rules/no-dupe-class-members.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-dupe-class-members'>; -} -declare module 'eslint/lib/rules/no-dupe-keys.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-dupe-keys'>; -} -declare module 'eslint/lib/rules/no-duplicate-case.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-duplicate-case'>; -} -declare module 'eslint/lib/rules/no-duplicate-imports.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-duplicate-imports'>; -} -declare module 'eslint/lib/rules/no-else-return.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-else-return'>; -} -declare module 'eslint/lib/rules/no-empty-character-class.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-empty-character-class'>; -} -declare module 'eslint/lib/rules/no-empty-function.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-empty-function'>; -} -declare module 'eslint/lib/rules/no-empty-pattern.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-empty-pattern'>; -} -declare module 'eslint/lib/rules/no-empty.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-empty'>; -} -declare module 'eslint/lib/rules/no-eq-null.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-eq-null'>; -} -declare module 'eslint/lib/rules/no-eval.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-eval'>; -} -declare module 'eslint/lib/rules/no-ex-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-ex-assign'>; -} -declare module 'eslint/lib/rules/no-extend-native.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-extend-native'>; -} -declare module 'eslint/lib/rules/no-extra-bind.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-extra-bind'>; -} -declare module 'eslint/lib/rules/no-extra-boolean-cast.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-extra-boolean-cast'>; -} -declare module 'eslint/lib/rules/no-extra-label.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-extra-label'>; -} -declare module 'eslint/lib/rules/no-extra-parens.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-extra-parens'>; -} -declare module 'eslint/lib/rules/no-extra-semi.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-extra-semi'>; -} -declare module 'eslint/lib/rules/no-fallthrough.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-fallthrough'>; -} -declare module 'eslint/lib/rules/no-floating-decimal.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-floating-decimal'>; -} -declare module 'eslint/lib/rules/no-func-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-func-assign'>; -} -declare module 'eslint/lib/rules/no-global-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-global-assign'>; -} -declare module 'eslint/lib/rules/no-implicit-coercion.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-implicit-coercion'>; -} -declare module 'eslint/lib/rules/no-implicit-globals.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-implicit-globals'>; -} -declare module 'eslint/lib/rules/no-implied-eval.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-implied-eval'>; -} -declare module 'eslint/lib/rules/no-inline-comments.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-inline-comments'>; -} -declare module 'eslint/lib/rules/no-inner-declarations.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-inner-declarations'>; -} -declare module 'eslint/lib/rules/no-invalid-regexp.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-invalid-regexp'>; -} -declare module 'eslint/lib/rules/no-invalid-this.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-invalid-this'>; -} -declare module 'eslint/lib/rules/no-irregular-whitespace.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-irregular-whitespace'>; -} -declare module 'eslint/lib/rules/no-iterator.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-iterator'>; -} -declare module 'eslint/lib/rules/no-label-var.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-label-var'>; -} -declare module 'eslint/lib/rules/no-labels.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-labels'>; -} -declare module 'eslint/lib/rules/no-lone-blocks.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-lone-blocks'>; -} -declare module 'eslint/lib/rules/no-lonely-if.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-lonely-if'>; -} -declare module 'eslint/lib/rules/no-loop-func.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-loop-func'>; -} -declare module 'eslint/lib/rules/no-magic-numbers.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-magic-numbers'>; -} -declare module 'eslint/lib/rules/no-mixed-operators.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-mixed-operators'>; -} -declare module 'eslint/lib/rules/no-mixed-requires.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-mixed-requires'>; -} -declare module 'eslint/lib/rules/no-mixed-spaces-and-tabs.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-mixed-spaces-and-tabs'>; -} -declare module 'eslint/lib/rules/no-multi-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-multi-assign'>; -} -declare module 'eslint/lib/rules/no-multi-spaces.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-multi-spaces'>; -} -declare module 'eslint/lib/rules/no-multi-str.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-multi-str'>; -} -declare module 'eslint/lib/rules/no-multiple-empty-lines.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-multiple-empty-lines'>; -} -declare module 'eslint/lib/rules/no-native-reassign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-native-reassign'>; -} -declare module 'eslint/lib/rules/no-negated-condition.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-negated-condition'>; -} -declare module 'eslint/lib/rules/no-negated-in-lhs.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-negated-in-lhs'>; -} -declare module 'eslint/lib/rules/no-nested-ternary.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-nested-ternary'>; -} -declare module 'eslint/lib/rules/no-new-func.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-new-func'>; -} -declare module 'eslint/lib/rules/no-new-object.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-new-object'>; -} -declare module 'eslint/lib/rules/no-new-require.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-new-require'>; -} -declare module 'eslint/lib/rules/no-new-symbol.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-new-symbol'>; -} -declare module 'eslint/lib/rules/no-new-wrappers.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-new-wrappers'>; -} -declare module 'eslint/lib/rules/no-new.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-new'>; -} -declare module 'eslint/lib/rules/no-obj-calls.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-obj-calls'>; -} -declare module 'eslint/lib/rules/no-octal-escape.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-octal-escape'>; -} -declare module 'eslint/lib/rules/no-octal.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-octal'>; -} -declare module 'eslint/lib/rules/no-param-reassign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-param-reassign'>; -} -declare module 'eslint/lib/rules/no-path-concat.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-path-concat'>; -} -declare module 'eslint/lib/rules/no-plusplus.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-plusplus'>; -} -declare module 'eslint/lib/rules/no-process-env.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-process-env'>; -} -declare module 'eslint/lib/rules/no-process-exit.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-process-exit'>; -} -declare module 'eslint/lib/rules/no-proto.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-proto'>; -} -declare module 'eslint/lib/rules/no-prototype-builtins.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-prototype-builtins'>; -} -declare module 'eslint/lib/rules/no-redeclare.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-redeclare'>; -} -declare module 'eslint/lib/rules/no-regex-spaces.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-regex-spaces'>; -} -declare module 'eslint/lib/rules/no-restricted-globals.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-restricted-globals'>; -} -declare module 'eslint/lib/rules/no-restricted-imports.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-restricted-imports'>; -} -declare module 'eslint/lib/rules/no-restricted-modules.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-restricted-modules'>; -} -declare module 'eslint/lib/rules/no-restricted-properties.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-restricted-properties'>; -} -declare module 'eslint/lib/rules/no-restricted-syntax.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-restricted-syntax'>; -} -declare module 'eslint/lib/rules/no-return-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-return-assign'>; -} -declare module 'eslint/lib/rules/no-return-await.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-return-await'>; -} -declare module 'eslint/lib/rules/no-script-url.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-script-url'>; -} -declare module 'eslint/lib/rules/no-self-assign.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-self-assign'>; -} -declare module 'eslint/lib/rules/no-self-compare.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-self-compare'>; -} -declare module 'eslint/lib/rules/no-sequences.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-sequences'>; -} -declare module 'eslint/lib/rules/no-shadow-restricted-names.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-shadow-restricted-names'>; -} -declare module 'eslint/lib/rules/no-shadow.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-shadow'>; -} -declare module 'eslint/lib/rules/no-spaced-func.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-spaced-func'>; -} -declare module 'eslint/lib/rules/no-sparse-arrays.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-sparse-arrays'>; -} -declare module 'eslint/lib/rules/no-sync.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-sync'>; -} -declare module 'eslint/lib/rules/no-tabs.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-tabs'>; -} -declare module 'eslint/lib/rules/no-template-curly-in-string.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-template-curly-in-string'>; -} -declare module 'eslint/lib/rules/no-ternary.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-ternary'>; -} -declare module 'eslint/lib/rules/no-this-before-super.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-this-before-super'>; -} -declare module 'eslint/lib/rules/no-throw-literal.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-throw-literal'>; -} -declare module 'eslint/lib/rules/no-trailing-spaces.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-trailing-spaces'>; -} -declare module 'eslint/lib/rules/no-undef-init.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-undef-init'>; -} -declare module 'eslint/lib/rules/no-undef.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-undef'>; -} -declare module 'eslint/lib/rules/no-undefined.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-undefined'>; -} -declare module 'eslint/lib/rules/no-underscore-dangle.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-underscore-dangle'>; -} -declare module 'eslint/lib/rules/no-unexpected-multiline.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unexpected-multiline'>; -} -declare module 'eslint/lib/rules/no-unmodified-loop-condition.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unmodified-loop-condition'>; -} -declare module 'eslint/lib/rules/no-unneeded-ternary.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unneeded-ternary'>; -} -declare module 'eslint/lib/rules/no-unreachable.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unreachable'>; -} -declare module 'eslint/lib/rules/no-unsafe-finally.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unsafe-finally'>; -} -declare module 'eslint/lib/rules/no-unsafe-negation.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unsafe-negation'>; -} -declare module 'eslint/lib/rules/no-unused-expressions.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unused-expressions'>; -} -declare module 'eslint/lib/rules/no-unused-labels.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unused-labels'>; -} -declare module 'eslint/lib/rules/no-unused-vars.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-unused-vars'>; -} -declare module 'eslint/lib/rules/no-use-before-define.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-use-before-define'>; -} -declare module 'eslint/lib/rules/no-useless-call.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-useless-call'>; -} -declare module 'eslint/lib/rules/no-useless-computed-key.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-useless-computed-key'>; -} -declare module 'eslint/lib/rules/no-useless-concat.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-useless-concat'>; -} -declare module 'eslint/lib/rules/no-useless-constructor.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-useless-constructor'>; -} -declare module 'eslint/lib/rules/no-useless-escape.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-useless-escape'>; -} -declare module 'eslint/lib/rules/no-useless-rename.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-useless-rename'>; -} -declare module 'eslint/lib/rules/no-useless-return.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-useless-return'>; -} -declare module 'eslint/lib/rules/no-var.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-var'>; -} -declare module 'eslint/lib/rules/no-void.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-void'>; -} -declare module 'eslint/lib/rules/no-warning-comments.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-warning-comments'>; -} -declare module 'eslint/lib/rules/no-whitespace-before-property.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-whitespace-before-property'>; -} -declare module 'eslint/lib/rules/no-with.js' { - declare module.exports: $Exports<'eslint/lib/rules/no-with'>; -} -declare module 'eslint/lib/rules/nonblock-statement-body-position.js' { - declare module.exports: $Exports<'eslint/lib/rules/nonblock-statement-body-position'>; -} -declare module 'eslint/lib/rules/object-curly-newline.js' { - declare module.exports: $Exports<'eslint/lib/rules/object-curly-newline'>; -} -declare module 'eslint/lib/rules/object-curly-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/object-curly-spacing'>; -} -declare module 'eslint/lib/rules/object-property-newline.js' { - declare module.exports: $Exports<'eslint/lib/rules/object-property-newline'>; -} -declare module 'eslint/lib/rules/object-shorthand.js' { - declare module.exports: $Exports<'eslint/lib/rules/object-shorthand'>; -} -declare module 'eslint/lib/rules/one-var-declaration-per-line.js' { - declare module.exports: $Exports<'eslint/lib/rules/one-var-declaration-per-line'>; -} -declare module 'eslint/lib/rules/one-var.js' { - declare module.exports: $Exports<'eslint/lib/rules/one-var'>; -} -declare module 'eslint/lib/rules/operator-assignment.js' { - declare module.exports: $Exports<'eslint/lib/rules/operator-assignment'>; -} -declare module 'eslint/lib/rules/operator-linebreak.js' { - declare module.exports: $Exports<'eslint/lib/rules/operator-linebreak'>; -} -declare module 'eslint/lib/rules/padded-blocks.js' { - declare module.exports: $Exports<'eslint/lib/rules/padded-blocks'>; -} -declare module 'eslint/lib/rules/padding-line-between-statements.js' { - declare module.exports: $Exports<'eslint/lib/rules/padding-line-between-statements'>; -} -declare module 'eslint/lib/rules/prefer-arrow-callback.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-arrow-callback'>; -} -declare module 'eslint/lib/rules/prefer-const.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-const'>; -} -declare module 'eslint/lib/rules/prefer-destructuring.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-destructuring'>; -} -declare module 'eslint/lib/rules/prefer-numeric-literals.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-numeric-literals'>; -} -declare module 'eslint/lib/rules/prefer-promise-reject-errors.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-promise-reject-errors'>; -} -declare module 'eslint/lib/rules/prefer-reflect.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-reflect'>; -} -declare module 'eslint/lib/rules/prefer-rest-params.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-rest-params'>; -} -declare module 'eslint/lib/rules/prefer-spread.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-spread'>; -} -declare module 'eslint/lib/rules/prefer-template.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-template'>; -} -declare module 'eslint/lib/rules/quote-props.js' { - declare module.exports: $Exports<'eslint/lib/rules/quote-props'>; -} -declare module 'eslint/lib/rules/quotes.js' { - declare module.exports: $Exports<'eslint/lib/rules/quotes'>; -} -declare module 'eslint/lib/rules/radix.js' { - declare module.exports: $Exports<'eslint/lib/rules/radix'>; -} -declare module 'eslint/lib/rules/require-await.js' { - declare module.exports: $Exports<'eslint/lib/rules/require-await'>; -} -declare module 'eslint/lib/rules/require-jsdoc.js' { - declare module.exports: $Exports<'eslint/lib/rules/require-jsdoc'>; -} -declare module 'eslint/lib/rules/require-yield.js' { - declare module.exports: $Exports<'eslint/lib/rules/require-yield'>; -} -declare module 'eslint/lib/rules/rest-spread-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/rest-spread-spacing'>; -} -declare module 'eslint/lib/rules/semi-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/semi-spacing'>; -} -declare module 'eslint/lib/rules/semi-style.js' { - declare module.exports: $Exports<'eslint/lib/rules/semi-style'>; -} -declare module 'eslint/lib/rules/semi.js' { - declare module.exports: $Exports<'eslint/lib/rules/semi'>; -} -declare module 'eslint/lib/rules/sort-imports.js' { - declare module.exports: $Exports<'eslint/lib/rules/sort-imports'>; -} -declare module 'eslint/lib/rules/sort-keys.js' { - declare module.exports: $Exports<'eslint/lib/rules/sort-keys'>; -} -declare module 'eslint/lib/rules/sort-vars.js' { - declare module.exports: $Exports<'eslint/lib/rules/sort-vars'>; -} -declare module 'eslint/lib/rules/space-before-blocks.js' { - declare module.exports: $Exports<'eslint/lib/rules/space-before-blocks'>; -} -declare module 'eslint/lib/rules/space-before-function-paren.js' { - declare module.exports: $Exports<'eslint/lib/rules/space-before-function-paren'>; -} -declare module 'eslint/lib/rules/space-in-parens.js' { - declare module.exports: $Exports<'eslint/lib/rules/space-in-parens'>; -} -declare module 'eslint/lib/rules/space-infix-ops.js' { - declare module.exports: $Exports<'eslint/lib/rules/space-infix-ops'>; -} -declare module 'eslint/lib/rules/space-unary-ops.js' { - declare module.exports: $Exports<'eslint/lib/rules/space-unary-ops'>; -} -declare module 'eslint/lib/rules/spaced-comment.js' { - declare module.exports: $Exports<'eslint/lib/rules/spaced-comment'>; -} -declare module 'eslint/lib/rules/strict.js' { - declare module.exports: $Exports<'eslint/lib/rules/strict'>; -} -declare module 'eslint/lib/rules/switch-colon-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/switch-colon-spacing'>; -} -declare module 'eslint/lib/rules/symbol-description.js' { - declare module.exports: $Exports<'eslint/lib/rules/symbol-description'>; -} -declare module 'eslint/lib/rules/template-curly-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/template-curly-spacing'>; -} -declare module 'eslint/lib/rules/template-tag-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/template-tag-spacing'>; -} -declare module 'eslint/lib/rules/unicode-bom.js' { - declare module.exports: $Exports<'eslint/lib/rules/unicode-bom'>; -} -declare module 'eslint/lib/rules/use-isnan.js' { - declare module.exports: $Exports<'eslint/lib/rules/use-isnan'>; -} -declare module 'eslint/lib/rules/valid-jsdoc.js' { - declare module.exports: $Exports<'eslint/lib/rules/valid-jsdoc'>; -} -declare module 'eslint/lib/rules/valid-typeof.js' { - declare module.exports: $Exports<'eslint/lib/rules/valid-typeof'>; -} -declare module 'eslint/lib/rules/vars-on-top.js' { - declare module.exports: $Exports<'eslint/lib/rules/vars-on-top'>; -} -declare module 'eslint/lib/rules/wrap-iife.js' { - declare module.exports: $Exports<'eslint/lib/rules/wrap-iife'>; -} -declare module 'eslint/lib/rules/wrap-regex.js' { - declare module.exports: $Exports<'eslint/lib/rules/wrap-regex'>; -} -declare module 'eslint/lib/rules/yield-star-spacing.js' { - declare module.exports: $Exports<'eslint/lib/rules/yield-star-spacing'>; -} -declare module 'eslint/lib/rules/yoda.js' { - declare module.exports: $Exports<'eslint/lib/rules/yoda'>; -} -declare module 'eslint/lib/testers/rule-tester.js' { - declare module.exports: $Exports<'eslint/lib/testers/rule-tester'>; -} -declare module 'eslint/lib/timing.js' { - declare module.exports: $Exports<'eslint/lib/timing'>; -} -declare module 'eslint/lib/token-store/backward-token-comment-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/backward-token-comment-cursor'>; -} -declare module 'eslint/lib/token-store/backward-token-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/backward-token-cursor'>; -} -declare module 'eslint/lib/token-store/cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/cursor'>; -} -declare module 'eslint/lib/token-store/cursors.js' { - declare module.exports: $Exports<'eslint/lib/token-store/cursors'>; -} -declare module 'eslint/lib/token-store/decorative-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/decorative-cursor'>; -} -declare module 'eslint/lib/token-store/filter-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/filter-cursor'>; -} -declare module 'eslint/lib/token-store/forward-token-comment-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/forward-token-comment-cursor'>; -} -declare module 'eslint/lib/token-store/forward-token-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/forward-token-cursor'>; -} -declare module 'eslint/lib/token-store/index.js' { - declare module.exports: $Exports<'eslint/lib/token-store/index'>; -} -declare module 'eslint/lib/token-store/limit-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/limit-cursor'>; -} -declare module 'eslint/lib/token-store/padded-token-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/padded-token-cursor'>; -} -declare module 'eslint/lib/token-store/skip-cursor.js' { - declare module.exports: $Exports<'eslint/lib/token-store/skip-cursor'>; -} -declare module 'eslint/lib/token-store/utils.js' { - declare module.exports: $Exports<'eslint/lib/token-store/utils'>; -} -declare module 'eslint/lib/util/ajv.js' { - declare module.exports: $Exports<'eslint/lib/util/ajv'>; -} -declare module 'eslint/lib/util/apply-disable-directives.js' { - declare module.exports: $Exports<'eslint/lib/util/apply-disable-directives'>; -} -declare module 'eslint/lib/util/fix-tracker.js' { - declare module.exports: $Exports<'eslint/lib/util/fix-tracker'>; -} -declare module 'eslint/lib/util/glob-util.js' { - declare module.exports: $Exports<'eslint/lib/util/glob-util'>; -} -declare module 'eslint/lib/util/glob.js' { - declare module.exports: $Exports<'eslint/lib/util/glob'>; -} -declare module 'eslint/lib/util/hash.js' { - declare module.exports: $Exports<'eslint/lib/util/hash'>; -} -declare module 'eslint/lib/util/interpolate.js' { - declare module.exports: $Exports<'eslint/lib/util/interpolate'>; -} -declare module 'eslint/lib/util/keywords.js' { - declare module.exports: $Exports<'eslint/lib/util/keywords'>; -} -declare module 'eslint/lib/util/module-resolver.js' { - declare module.exports: $Exports<'eslint/lib/util/module-resolver'>; -} -declare module 'eslint/lib/util/naming.js' { - declare module.exports: $Exports<'eslint/lib/util/naming'>; -} -declare module 'eslint/lib/util/node-event-generator.js' { - declare module.exports: $Exports<'eslint/lib/util/node-event-generator'>; -} -declare module 'eslint/lib/util/npm-util.js' { - declare module.exports: $Exports<'eslint/lib/util/npm-util'>; -} -declare module 'eslint/lib/util/path-util.js' { - declare module.exports: $Exports<'eslint/lib/util/path-util'>; -} -declare module 'eslint/lib/util/patterns/letters.js' { - declare module.exports: $Exports<'eslint/lib/util/patterns/letters'>; -} -declare module 'eslint/lib/util/rule-fixer.js' { - declare module.exports: $Exports<'eslint/lib/util/rule-fixer'>; -} -declare module 'eslint/lib/util/safe-emitter.js' { - declare module.exports: $Exports<'eslint/lib/util/safe-emitter'>; -} -declare module 'eslint/lib/util/source-code-fixer.js' { - declare module.exports: $Exports<'eslint/lib/util/source-code-fixer'>; -} -declare module 'eslint/lib/util/source-code-util.js' { - declare module.exports: $Exports<'eslint/lib/util/source-code-util'>; -} -declare module 'eslint/lib/util/source-code.js' { - declare module.exports: $Exports<'eslint/lib/util/source-code'>; -} -declare module 'eslint/lib/util/traverser.js' { - declare module.exports: $Exports<'eslint/lib/util/traverser'>; -} -declare module 'eslint/lib/util/xml-escape.js' { - declare module.exports: $Exports<'eslint/lib/util/xml-escape'>; -} diff --git a/flow-typed/npm/flow-bin_v0.x.x.js b/flow-typed/npm/flow-bin_v0.x.x.js deleted file mode 100644 index c538e2086f1..00000000000 --- a/flow-typed/npm/flow-bin_v0.x.x.js +++ /dev/null @@ -1,6 +0,0 @@ -// flow-typed signature: 6a5610678d4b01e13bbfbbc62bdaf583 -// flow-typed version: 3817bc6980/flow-bin_v0.x.x/flow_>=v0.25.x - -declare module "flow-bin" { - declare module.exports: string; -} diff --git a/flow-typed/npm/flow-typed_vx.x.x.js b/flow-typed/npm/flow-typed_vx.x.x.js deleted file mode 100644 index cfe5638a561..00000000000 --- a/flow-typed/npm/flow-typed_vx.x.x.js +++ /dev/null @@ -1,193 +0,0 @@ -// flow-typed signature: 71df711db077679afe4990c042fb43cf -// flow-typed version: <>/flow-typed_v^2.3.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'flow-typed' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'flow-typed' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'flow-typed/dist/cli' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/commands/create-stub' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/commands/install' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/commands/runTests' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/commands/search' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/commands/update-cache' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/commands/update' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/commands/validateDefs' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/commands/version' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/cacheRepoUtils' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/codeSign' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/fileUtils' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/flowProjectUtils' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/flowVersion' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/git' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/github' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/isInFlowTypedRepo' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/libDefs' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/node' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/npm/npmLibDefs' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/npm/npmProjectUtils' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/semver' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/stubUtils' { - declare module.exports: any; -} - -declare module 'flow-typed/dist/lib/validationErrors' { - declare module.exports: any; -} - -// Filename aliases -declare module 'flow-typed/dist/cli.js' { - declare module.exports: $Exports<'flow-typed/dist/cli'>; -} -declare module 'flow-typed/dist/commands/create-stub.js' { - declare module.exports: $Exports<'flow-typed/dist/commands/create-stub'>; -} -declare module 'flow-typed/dist/commands/install.js' { - declare module.exports: $Exports<'flow-typed/dist/commands/install'>; -} -declare module 'flow-typed/dist/commands/runTests.js' { - declare module.exports: $Exports<'flow-typed/dist/commands/runTests'>; -} -declare module 'flow-typed/dist/commands/search.js' { - declare module.exports: $Exports<'flow-typed/dist/commands/search'>; -} -declare module 'flow-typed/dist/commands/update-cache.js' { - declare module.exports: $Exports<'flow-typed/dist/commands/update-cache'>; -} -declare module 'flow-typed/dist/commands/update.js' { - declare module.exports: $Exports<'flow-typed/dist/commands/update'>; -} -declare module 'flow-typed/dist/commands/validateDefs.js' { - declare module.exports: $Exports<'flow-typed/dist/commands/validateDefs'>; -} -declare module 'flow-typed/dist/commands/version.js' { - declare module.exports: $Exports<'flow-typed/dist/commands/version'>; -} -declare module 'flow-typed/dist/lib/cacheRepoUtils.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/cacheRepoUtils'>; -} -declare module 'flow-typed/dist/lib/codeSign.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/codeSign'>; -} -declare module 'flow-typed/dist/lib/fileUtils.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/fileUtils'>; -} -declare module 'flow-typed/dist/lib/flowProjectUtils.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/flowProjectUtils'>; -} -declare module 'flow-typed/dist/lib/flowVersion.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/flowVersion'>; -} -declare module 'flow-typed/dist/lib/git.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/git'>; -} -declare module 'flow-typed/dist/lib/github.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/github'>; -} -declare module 'flow-typed/dist/lib/isInFlowTypedRepo.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/isInFlowTypedRepo'>; -} -declare module 'flow-typed/dist/lib/libDefs.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/libDefs'>; -} -declare module 'flow-typed/dist/lib/node.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/node'>; -} -declare module 'flow-typed/dist/lib/npm/npmLibDefs.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmLibDefs'>; -} -declare module 'flow-typed/dist/lib/npm/npmProjectUtils.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmProjectUtils'>; -} -declare module 'flow-typed/dist/lib/semver.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/semver'>; -} -declare module 'flow-typed/dist/lib/stubUtils.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/stubUtils'>; -} -declare module 'flow-typed/dist/lib/validationErrors.js' { - declare module.exports: $Exports<'flow-typed/dist/lib/validationErrors'>; -} diff --git a/flow-typed/npm/jest_v22.x.x.js b/flow-typed/npm/jest_v22.x.x.js deleted file mode 100644 index 0b6d0fee683..00000000000 --- a/flow-typed/npm/jest_v22.x.x.js +++ /dev/null @@ -1,594 +0,0 @@ -// flow-typed signature: 18018da6c1a1d95b4ab1c64bb5fe86ca -// flow-typed version: c1ad61e7d4/jest_v22.x.x/flow_>=v0.39.x - -type JestMockFn, TReturn> = { - (...args: TArguments): TReturn, - /** - * An object for introspecting mock calls - */ - mock: { - /** - * An array that represents all calls that have been made into this mock - * function. Each call is represented by an array of arguments that were - * passed during the call. - */ - calls: Array, - /** - * An array that contains all the object instances that have been - * instantiated from this mock function. - */ - instances: Array - }, - /** - * Resets all information stored in the mockFn.mock.calls and - * mockFn.mock.instances arrays. Often this is useful when you want to clean - * up a mock's usage data between two assertions. - */ - mockClear(): void, - /** - * Resets all information stored in the mock. This is useful when you want to - * completely restore a mock back to its initial state. - */ - mockReset(): void, - /** - * Removes the mock and restores the initial implementation. This is useful - * when you want to mock functions in certain test cases and restore the - * original implementation in others. Beware that mockFn.mockRestore only - * works when mock was created with jest.spyOn. Thus you have to take care of - * restoration yourself when manually assigning jest.fn(). - */ - mockRestore(): void, - /** - * Accepts a function that should be used as the implementation of the mock. - * The mock itself will still record all calls that go into and instances - * that come from itself -- the only difference is that the implementation - * will also be executed when the mock is called. - */ - mockImplementation( - fn: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Accepts a function that will be used as an implementation of the mock for - * one call to the mocked function. Can be chained so that multiple function - * calls produce different results. - */ - mockImplementationOnce( - fn: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Just a simple sugar function for returning `this` - */ - mockReturnThis(): void, - /** - * Deprecated: use jest.fn(() => value) instead - */ - mockReturnValue(value: TReturn): JestMockFn, - /** - * Sugar for only returning a value once inside your mock - */ - mockReturnValueOnce(value: TReturn): JestMockFn -}; - -type JestAsymmetricEqualityType = { - /** - * A custom Jasmine equality tester - */ - asymmetricMatch(value: mixed): boolean -}; - -type JestCallsType = { - allArgs(): mixed, - all(): mixed, - any(): boolean, - count(): number, - first(): mixed, - mostRecent(): mixed, - reset(): void -}; - -type JestClockType = { - install(): void, - mockDate(date: Date): void, - tick(milliseconds?: number): void, - uninstall(): void -}; - -type JestMatcherResult = { - message?: string | (() => string), - pass: boolean -}; - -type JestMatcher = (actual: any, expected: any) => JestMatcherResult; - -type JestPromiseType = { - /** - * Use rejects to unwrap the reason of a rejected promise so any other - * matcher can be chained. If the promise is fulfilled the assertion fails. - */ - rejects: JestExpectType, - /** - * Use resolves to unwrap the value of a fulfilled promise so any other - * matcher can be chained. If the promise is rejected the assertion fails. - */ - resolves: JestExpectType -}; - -/** - * Jest allows functions and classes to be used as test names in test() and - * describe() - */ -type JestTestName = string | Function; - -/** - * Plugin: jest-enzyme - */ -type EnzymeMatchersType = { - toBeChecked(): void, - toBeDisabled(): void, - toBeEmpty(): void, - toBePresent(): void, - toContainReact(element: React$Element): void, - toHaveClassName(className: string): void, - toHaveHTML(html: string): void, - toHaveProp(propKey: string, propValue?: any): void, - toHaveRef(refName: string): void, - toHaveState(stateKey: string, stateValue?: any): void, - toHaveStyle(styleKey: string, styleValue?: any): void, - toHaveTagName(tagName: string): void, - toHaveText(text: string): void, - toIncludeText(text: string): void, - toHaveValue(value: any): void, - toMatchElement(element: React$Element): void, - toMatchSelector(selector: string): void -}; - -type JestExpectType = { - not: JestExpectType & EnzymeMatchersType, - /** - * If you have a mock function, you can use .lastCalledWith to test what - * arguments it was last called with. - */ - lastCalledWith(...args: Array): void, - /** - * toBe just checks that a value is what you expect. It uses === to check - * strict equality. - */ - toBe(value: any): void, - /** - * Use .toHaveBeenCalled to ensure that a mock function got called. - */ - toBeCalled(): void, - /** - * Use .toBeCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toBeCalledWith(...args: Array): void, - /** - * Using exact equality with floating point numbers is a bad idea. Rounding - * means that intuitive things fail. - */ - toBeCloseTo(num: number, delta: any): void, - /** - * Use .toBeDefined to check that a variable is not undefined. - */ - toBeDefined(): void, - /** - * Use .toBeFalsy when you don't care what a value is, you just want to - * ensure a value is false in a boolean context. - */ - toBeFalsy(): void, - /** - * To compare floating point numbers, you can use toBeGreaterThan. - */ - toBeGreaterThan(number: number): void, - /** - * To compare floating point numbers, you can use toBeGreaterThanOrEqual. - */ - toBeGreaterThanOrEqual(number: number): void, - /** - * To compare floating point numbers, you can use toBeLessThan. - */ - toBeLessThan(number: number): void, - /** - * To compare floating point numbers, you can use toBeLessThanOrEqual. - */ - toBeLessThanOrEqual(number: number): void, - /** - * Use .toBeInstanceOf(Class) to check that an object is an instance of a - * class. - */ - toBeInstanceOf(cls: Class<*>): void, - /** - * .toBeNull() is the same as .toBe(null) but the error messages are a bit - * nicer. - */ - toBeNull(): void, - /** - * Use .toBeTruthy when you don't care what a value is, you just want to - * ensure a value is true in a boolean context. - */ - toBeTruthy(): void, - /** - * Use .toBeUndefined to check that a variable is undefined. - */ - toBeUndefined(): void, - /** - * Use .toContain when you want to check that an item is in a list. For - * testing the items in the list, this uses ===, a strict equality check. - */ - toContain(item: any): void, - /** - * Use .toContainEqual when you want to check that an item is in a list. For - * testing the items in the list, this matcher recursively checks the - * equality of all fields, rather than checking for object identity. - */ - toContainEqual(item: any): void, - /** - * Use .toEqual when you want to check that two objects have the same value. - * This matcher recursively checks the equality of all fields, rather than - * checking for object identity. - */ - toEqual(value: any): void, - /** - * Use .toHaveBeenCalled to ensure that a mock function got called. - */ - toHaveBeenCalled(): void, - /** - * Use .toHaveBeenCalledTimes to ensure that a mock function got called exact - * number of times. - */ - toHaveBeenCalledTimes(number: number): void, - /** - * Use .toHaveBeenCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toHaveBeenCalledWith(...args: Array): void, - /** - * Use .toHaveBeenLastCalledWith to ensure that a mock function was last called - * with specific arguments. - */ - toHaveBeenLastCalledWith(...args: Array): void, - /** - * Check that an object has a .length property and it is set to a certain - * numeric value. - */ - toHaveLength(number: number): void, - /** - * - */ - toHaveProperty(propPath: string, value?: any): void, - /** - * Use .toMatch to check that a string matches a regular expression or string. - */ - toMatch(regexpOrString: RegExp | string): void, - /** - * Use .toMatchObject to check that a javascript object matches a subset of the properties of an object. - */ - toMatchObject(object: Object | Array): void, - /** - * This ensures that a React component matches the most recent snapshot. - */ - toMatchSnapshot(name?: string): void, - /** - * Use .toThrow to test that a function throws when it is called. - * If you want to test that a specific error gets thrown, you can provide an - * argument to toThrow. The argument can be a string for the error message, - * a class for the error, or a regex that should match the error. - * - * Alias: .toThrowError - */ - toThrow(message?: string | Error | Class | RegExp): void, - toThrowError(message?: string | Error | Class | RegExp): void, - /** - * Use .toThrowErrorMatchingSnapshot to test that a function throws a error - * matching the most recent snapshot when it is called. - */ - toThrowErrorMatchingSnapshot(): void -}; - -type JestObjectType = { - /** - * Disables automatic mocking in the module loader. - * - * After this method is called, all `require()`s will return the real - * versions of each module (rather than a mocked version). - */ - disableAutomock(): JestObjectType, - /** - * An un-hoisted version of disableAutomock - */ - autoMockOff(): JestObjectType, - /** - * Enables automatic mocking in the module loader. - */ - enableAutomock(): JestObjectType, - /** - * An un-hoisted version of enableAutomock - */ - autoMockOn(): JestObjectType, - /** - * Clears the mock.calls and mock.instances properties of all mocks. - * Equivalent to calling .mockClear() on every mocked function. - */ - clearAllMocks(): JestObjectType, - /** - * Resets the state of all mocks. Equivalent to calling .mockReset() on every - * mocked function. - */ - resetAllMocks(): JestObjectType, - /** - * Restores all mocks back to their original value. - */ - restoreAllMocks(): JestObjectType, - /** - * Removes any pending timers from the timer system. - */ - clearAllTimers(): void, - /** - * The same as `mock` but not moved to the top of the expectation by - * babel-jest. - */ - doMock(moduleName: string, moduleFactory?: any): JestObjectType, - /** - * The same as `unmock` but not moved to the top of the expectation by - * babel-jest. - */ - dontMock(moduleName: string): JestObjectType, - /** - * Returns a new, unused mock function. Optionally takes a mock - * implementation. - */ - fn, TReturn>( - implementation?: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Determines if the given function is a mocked function. - */ - isMockFunction(fn: Function): boolean, - /** - * Given the name of a module, use the automatic mocking system to generate a - * mocked version of the module for you. - */ - genMockFromModule(moduleName: string): any, - /** - * Mocks a module with an auto-mocked version when it is being required. - * - * The second argument can be used to specify an explicit module factory that - * is being run instead of using Jest's automocking feature. - * - * The third argument can be used to create virtual mocks -- mocks of modules - * that don't exist anywhere in the system. - */ - mock( - moduleName: string, - moduleFactory?: any, - options?: Object - ): JestObjectType, - /** - * Returns the actual module instead of a mock, bypassing all checks on - * whether the module should receive a mock implementation or not. - */ - requireActual(moduleName: string): any, - /** - * Returns a mock module instead of the actual module, bypassing all checks - * on whether the module should be required normally or not. - */ - requireMock(moduleName: string): any, - /** - * Resets the module registry - the cache of all required modules. This is - * useful to isolate modules where local state might conflict between tests. - */ - resetModules(): JestObjectType, - /** - * Exhausts the micro-task queue (usually interfaced in node via - * process.nextTick). - */ - runAllTicks(): void, - /** - * Exhausts the macro-task queue (i.e., all tasks queued by setTimeout(), - * setInterval(), and setImmediate()). - */ - runAllTimers(): void, - /** - * Exhausts all tasks queued by setImmediate(). - */ - runAllImmediates(): void, - /** - * Executes only the macro task queue (i.e. all tasks queued by setTimeout() - * or setInterval() and setImmediate()). - */ - runTimersToTime(msToRun: number): void, - /** - * Executes only the macro-tasks that are currently pending (i.e., only the - * tasks that have been queued by setTimeout() or setInterval() up to this - * point) - */ - runOnlyPendingTimers(): void, - /** - * Explicitly supplies the mock object that the module system should return - * for the specified module. Note: It is recommended to use jest.mock() - * instead. - */ - setMock(moduleName: string, moduleExports: any): JestObjectType, - /** - * Indicates that the module system should never return a mocked version of - * the specified module from require() (e.g. that it should always return the - * real module). - */ - unmock(moduleName: string): JestObjectType, - /** - * Instructs Jest to use fake versions of the standard timer functions - * (setTimeout, setInterval, clearTimeout, clearInterval, nextTick, - * setImmediate and clearImmediate). - */ - useFakeTimers(): JestObjectType, - /** - * Instructs Jest to use the real versions of the standard timer functions. - */ - useRealTimers(): JestObjectType, - /** - * Creates a mock function similar to jest.fn but also tracks calls to - * object[methodName]. - */ - spyOn(object: Object, methodName: string): JestMockFn, - /** - * Set the default timeout interval for tests and before/after hooks in milliseconds. - * Note: The default timeout interval is 5 seconds if this method is not called. - */ - setTimeout(timeout: number): JestObjectType -}; - -type JestSpyType = { - calls: JestCallsType -}; - -/** Runs this function after every test inside this context */ -declare function afterEach( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function before every test inside this context */ -declare function beforeEach( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function after all tests have finished inside this context */ -declare function afterAll( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function before any tests have started inside this context */ -declare function beforeAll( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; - -/** A context for grouping tests together */ -declare var describe: { - /** - * Creates a block that groups together several related tests in one "test suite" - */ - (name: JestTestName, fn: () => void): void, - - /** - * Only run this describe block - */ - only(name: JestTestName, fn: () => void): void, - - /** - * Skip running this describe block - */ - skip(name: JestTestName, fn: () => void): void -}; - -/** An individual test unit */ -declare var it: { - /** - * An individual test unit - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - ( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void, - /** - * Only run this test - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - only( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void, - /** - * Skip running this test - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - skip( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void, - /** - * Run the test concurrently - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - concurrent( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void -}; -declare function fit( - name: JestTestName, - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** An individual test unit */ -declare var test: typeof it; -/** A disabled group of tests */ -declare var xdescribe: typeof describe; -/** A focused group of tests */ -declare var fdescribe: typeof describe; -/** A disabled individual test */ -declare var xit: typeof it; -/** A disabled individual test */ -declare var xtest: typeof it; - -/** The expect function is used every time you want to test a value */ -declare var expect: { - /** The object that you want to make assertions against */ - (value: any): JestExpectType & JestPromiseType & EnzymeMatchersType, - /** Add additional Jasmine matchers to Jest's roster */ - extend(matchers: { [name: string]: JestMatcher }): void, - /** Add a module that formats application-specific data structures. */ - addSnapshotSerializer(serializer: (input: Object) => string): void, - assertions(expectedAssertions: number): void, - hasAssertions(): void, - any(value: mixed): JestAsymmetricEqualityType, - anything(): void, - arrayContaining(value: Array): void, - objectContaining(value: Object): void, - /** Matches any received string that contains the exact expected string. */ - stringContaining(value: string): void, - stringMatching(value: string | RegExp): void -}; - -// TODO handle return type -// http://jasmine.github.io/2.4/introduction.html#section-Spies -declare function spyOn(value: mixed, method: string): Object; - -/** Holds all functions related to manipulating test runner */ -declare var jest: JestObjectType; - -/** - * The global Jasmine object, this is generally not exposed as the public API, - * using features inside here could break in later versions of Jest. - */ -declare var jasmine: { - DEFAULT_TIMEOUT_INTERVAL: number, - any(value: mixed): JestAsymmetricEqualityType, - anything(): void, - arrayContaining(value: Array): void, - clock(): JestClockType, - createSpy(name: string): JestSpyType, - createSpyObj( - baseName: string, - methodNames: Array - ): { [methodName: string]: JestSpyType }, - objectContaining(value: Object): void, - stringMatching(value: string): void -}; diff --git a/flow-typed/npm/lodash_v4.x.x.js b/flow-typed/npm/lodash_v4.x.x.js deleted file mode 100644 index 8b18ea3613a..00000000000 --- a/flow-typed/npm/lodash_v4.x.x.js +++ /dev/null @@ -1,4441 +0,0 @@ -// flow-typed signature: 2aa4c73f85e9dfa81f161e7edb6e4d6e -// flow-typed version: 8c150a1c24/lodash_v4.x.x/flow_>=v0.55.x <=v0.62.x - -declare module "lodash" { - declare type __CurriedFunction1 = (...r: [AA]) => R; - declare type CurriedFunction1 = __CurriedFunction1; - - declare type __CurriedFunction2 = (( - ...r: [AA] - ) => CurriedFunction1) & - ((...r: [AA, BB]) => R); - declare type CurriedFunction2 = __CurriedFunction2; - - declare type __CurriedFunction3 = (( - ...r: [AA] - ) => CurriedFunction2) & - ((...r: [AA, BB]) => CurriedFunction1) & - ((...r: [AA, BB, CC]) => R); - declare type CurriedFunction3 = __CurriedFunction3< - A, - B, - C, - R, - *, - *, - * - >; - - declare type __CurriedFunction4< - A, - B, - C, - D, - R, - AA: A, - BB: B, - CC: C, - DD: D - > = ((...r: [AA]) => CurriedFunction3) & - ((...r: [AA, BB]) => CurriedFunction2) & - ((...r: [AA, BB, CC]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD]) => R); - declare type CurriedFunction4 = __CurriedFunction4< - A, - B, - C, - D, - R, - *, - *, - *, - * - >; - - declare type __CurriedFunction5< - A, - B, - C, - D, - E, - R, - AA: A, - BB: B, - CC: C, - DD: D, - EE: E - > = ((...r: [AA]) => CurriedFunction4) & - ((...r: [AA, BB]) => CurriedFunction3) & - ((...r: [AA, BB, CC]) => CurriedFunction2) & - ((...r: [AA, BB, CC, DD]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD, EE]) => R); - declare type CurriedFunction5 = __CurriedFunction5< - A, - B, - C, - D, - E, - R, - *, - *, - *, - *, - * - >; - - declare type __CurriedFunction6< - A, - B, - C, - D, - E, - F, - R, - AA: A, - BB: B, - CC: C, - DD: D, - EE: E, - FF: F - > = ((...r: [AA]) => CurriedFunction5) & - ((...r: [AA, BB]) => CurriedFunction4) & - ((...r: [AA, BB, CC]) => CurriedFunction3) & - ((...r: [AA, BB, CC, DD]) => CurriedFunction2) & - ((...r: [AA, BB, CC, DD, EE]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD, EE, FF]) => R); - declare type CurriedFunction6 = __CurriedFunction6< - A, - B, - C, - D, - E, - F, - R, - *, - *, - *, - *, - *, - * - >; - - declare type Curry = (((...r: [A]) => R) => CurriedFunction1) & - (((...r: [A, B]) => R) => CurriedFunction2) & - (((...r: [A, B, C]) => R) => CurriedFunction3) & - (( - (...r: [A, B, C, D]) => R - ) => CurriedFunction4) & - (( - (...r: [A, B, C, D, E]) => R - ) => CurriedFunction5) & - (( - (...r: [A, B, C, D, E, F]) => R - ) => CurriedFunction6); - - declare type UnaryFn = (a: A) => R; - - declare type TemplateSettings = { - escape?: RegExp, - evaluate?: RegExp, - imports?: Object, - interpolate?: RegExp, - variable?: string - }; - - declare type TruncateOptions = { - length?: number, - omission?: string, - separator?: RegExp | string - }; - - declare type DebounceOptions = { - leading?: boolean, - maxWait?: number, - trailing?: boolean - }; - - declare type ThrottleOptions = { - leading?: boolean, - trailing?: boolean - }; - - declare type NestedArray = Array>; - - declare type matchesIterateeShorthand = Object; - declare type matchesPropertyIterateeShorthand = [string, any]; - declare type propertyIterateeShorthand = string; - - declare type OPredicate = - | ((value: A, key: string, object: O) => any) - | matchesIterateeShorthand - | matchesPropertyIterateeShorthand - | propertyIterateeShorthand; - - declare type OIterateeWithResult = - | Object - | string - | ((value: V, key: string, object: O) => R); - declare type OIteratee = OIterateeWithResult; - declare type OFlatMapIteratee = OIterateeWithResult>; - - declare type Predicate = - | ((value: T, index: number, array: Array) => any) - | matchesIterateeShorthand - | matchesPropertyIterateeShorthand - | propertyIterateeShorthand; - - declare type _ValueOnlyIteratee = (value: T) => mixed; - declare type ValueOnlyIteratee = _ValueOnlyIteratee | string; - declare type _Iteratee = ( - item: T, - index: number, - array: ?Array - ) => mixed; - declare type Iteratee = _Iteratee | Object | string; - declare type FlatMapIteratee = - | ((item: T, index: number, array: ?Array) => Array) - | Object - | string; - declare type Comparator = (item: T, item2: T) => boolean; - - declare type MapIterator = - | ((item: T, index: number, array: Array) => U) - | propertyIterateeShorthand; - - declare type ReadOnlyMapIterator = - | ((item: T, index: number, array: $ReadOnlyArray) => U) - | propertyIterateeShorthand; - - declare type OMapIterator = - | ((item: T, key: string, object: O) => U) - | propertyIterateeShorthand; - - declare class Lodash { - // Array - chunk(array?: ?Array, size?: ?number): Array>; - compact(array?: ?Array): Array; - concat(base?: ?Array, ...elements: Array): Array; - difference(array?: ?$ReadOnlyArray, values?: ?$ReadOnlyArray): Array; - differenceBy( - array?: ?$ReadOnlyArray, - values?: ?$ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): T[]; - differenceWith(array?: ?$ReadOnlyArray, values?: ?$ReadOnlyArray, comparator?: ?Comparator): T[]; - drop(array?: ?Array, n?: ?number): Array; - dropRight(array?: ?Array, n?: ?number): Array; - dropRightWhile(array?: ?Array, predicate?: ?Predicate): Array; - dropWhile(array?: ?Array, predicate?: ?Predicate): Array; - fill( - array?: ?Array, - value?: ?U, - start?: ?number, - end?: ?number - ): Array; - findIndex( - array: $ReadOnlyArray, - predicate?: ?Predicate, - fromIndex?: ?number - ): number; - findIndex( - array: void | null, - predicate?: ?Predicate, - fromIndex?: ?number - ): -1; - findLastIndex( - array: $ReadOnlyArray, - predicate?: ?Predicate, - fromIndex?: ?number - ): number; - findLastIndex( - array: void | null, - predicate?: ?Predicate, - fromIndex?: ?number - ): -1; - // alias of _.head - first(array: ?Array): T; - flatten(array?: ?Array | X>): Array; - flattenDeep(array?: ?any[]): Array; - flattenDepth(array?: ?any[], depth?: ?number): any[]; - fromPairs(pairs?: ?Array<[A, B]>): { [key: A]: B }; - head(array: ?Array): T; - indexOf(array: Array, value: T, fromIndex?: number): number; - indexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; - initial(array: ?Array): Array; - intersection(...arrays?: Array>): Array; - //Workaround until (...parameter: T, parameter2: U) works - intersectionBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; - intersectionBy( - a1?: ?Array, - a2?: ?Array, - iteratee?: ?ValueOnlyIteratee - ): Array; - intersectionBy( - a1?: ?Array, - a2?: ?Array, - a3?: ?Array, - iteratee?: ?ValueOnlyIteratee - ): Array; - intersectionBy( - a1?: ?Array, - a2?: ?Array, - a3?: ?Array, - a4?: ?Array, - iteratee?: ?ValueOnlyIteratee - ): Array; - //Workaround until (...parameter: T, parameter2: U) works - intersectionWith(a1?: ?Array, comparator?: ?Comparator): Array; - intersectionWith( - a1?: ?Array, - a2?: ?Array, - comparator?: ?Comparator - ): Array; - intersectionWith( - a1?: ?Array, - a2?: ?Array, - a3?: ?Array, - comparator?: ?Comparator - ): Array; - intersectionWith( - a1?: ?Array, - a2?: ?Array, - a3?: ?Array, - a4?: ?Array, - comparator?: ?Comparator - ): Array; - join(array: Array, separator?: ?string): string; - join(array: void | null, separator?: ?string): ''; - last(array: ?Array): T; - lastIndexOf(array: Array, value?: ?T, fromIndex?: ?number): number; - lastIndexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; - nth(array: T[], n?: ?number): T; - nth(array: void | null, n?: ?number): void; - pull(array: Array, ...values?: Array): Array; - pull(array: T, ...values?: Array): T; - pullAll(array: Array, values?: ?Array): Array; - pullAll(array: T, values?: ?Array): T; - pullAllBy( - array: Array, - values?: ?Array, - iteratee?: ?ValueOnlyIteratee - ): Array; - pullAllBy( - array: T, - values?: ?Array, - iteratee?: ?ValueOnlyIteratee - ): T; - pullAllWith(array: T[], values?: ?T[], comparator?: ?Function): T[]; - pullAllWith(array: T, values?: ?Array, comparator?: ?Function): T; - pullAt(array?: ?Array, ...indexed?: Array): Array; - pullAt(array?: ?Array, indexed?: ?Array): Array; - remove(array?: ?Array, predicate?: ?Predicate): Array; - reverse(array: Array): Array; - reverse(array: T): T; - slice(array?: ?Array, start?: ?number, end?: ?number): Array; - sortedIndex(array: Array, value: T): number; - sortedIndex(array: void | null, value: ?T): 0; - sortedIndexBy( - array: Array, - value?: ?T, - iteratee?: ?ValueOnlyIteratee - ): number; - sortedIndexBy( - array: void | null, - value?: ?T, - iteratee?: ?ValueOnlyIteratee - ): 0; - sortedIndexOf(array: Array, value: T): number; - sortedIndexOf(array: void | null, value?: ?T): -1; - sortedLastIndex(array: Array, value: T): number; - sortedLastIndex(array: void | null, value?: ?T): 0; - sortedLastIndexBy( - array: Array, - value: T, - iteratee?: ValueOnlyIteratee - ): number; - sortedLastIndexBy( - array: void | null, - value?: ?T, - iteratee?: ?ValueOnlyIteratee - ): 0; - sortedLastIndexOf(array: Array, value: T): number; - sortedLastIndexOf(array: void | null, value?: ?T): -1; - sortedUniq(array?: ?Array): Array; - sortedUniqBy(array?: ?Array, iteratee?: ?(value: T) => mixed): Array; - tail(array?: ?Array): Array; - take(array?: ?Array, n?: ?number): Array; - takeRight(array?: ?Array, n?: ?number): Array; - takeRightWhile(array?: ?Array, predicate?: ?Predicate): Array; - takeWhile(array?: ?Array, predicate?: ?Predicate): Array; - union(...arrays?: Array>): Array; - //Workaround until (...parameter: T, parameter2: U) works - unionBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; - unionBy( - a1?: ?Array, - a2: Array, - iteratee?: ValueOnlyIteratee - ): Array; - unionBy( - a1: Array, - a2: Array, - a3: Array, - iteratee?: ValueOnlyIteratee - ): Array; - unionBy( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - iteratee?: ValueOnlyIteratee - ): Array; - //Workaround until (...parameter: T, parameter2: U) works - unionWith(a1?: ?Array, comparator?: ?Comparator): Array; - unionWith( - a1: Array, - a2: Array, - comparator?: Comparator - ): Array; - unionWith( - a1: Array, - a2: Array, - a3: Array, - comparator?: Comparator - ): Array; - unionWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - comparator?: Comparator - ): Array; - uniq(array?: ?Array): Array; - uniqBy(array?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; - uniqWith(array?: ?Array, comparator?: ?Comparator): Array; - unzip(array: Array<[A, B]>): [Array, Array]; - unzip(array: Array<[A, B, C]>): [Array, Array, Array]; - unzip( - array: Array<[A, B, C, D]>, - ): [Array, Array, Array, Array]; - unzip( - array: Array<[A, B, C, D, E]>, - ): [Array, Array, Array, Array, Array]; - unzipWith(array: ?Array, iteratee?: ?Iteratee): Array; - without(array?: ?Array, ...values?: Array): Array; - xor(...array: Array>): Array; - //Workaround until (...parameter: T, parameter2: U) works - xorBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; - xorBy( - a1: Array, - a2: Array, - iteratee?: ValueOnlyIteratee - ): Array; - xorBy( - a1: Array, - a2: Array, - a3: Array, - iteratee?: ValueOnlyIteratee - ): Array; - xorBy( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - iteratee?: ValueOnlyIteratee - ): Array; - //Workaround until (...parameter: T, parameter2: U) works - xorWith(a1?: ?Array, comparator?: ?Comparator): Array; - xorWith( - a1: Array, - a2: Array, - comparator?: Comparator - ): Array; - xorWith( - a1: Array, - a2: Array, - a3: Array, - comparator?: Comparator - ): Array; - xorWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - comparator?: Comparator - ): Array; - zip(a1?: ?A[], a2?: ?B[]): Array<[A, B]>; - zip(a1: A[], a2: B[], a3: C[]): Array<[A, B, C]>; - zip(a1: A[], a2: B[], a3: C[], a4: D[]): Array<[A, B, C, D]>; - zip( - a1: A[], - a2: B[], - a3: C[], - a4: D[], - a5: E[] - ): Array<[A, B, C, D, E]>; - - zipObject(props: Array, values?: ?Array): { [key: K]: V }; - zipObject(props: void | null, values?: ?Array): {}; - zipObjectDeep(props: any[], values?: ?any): Object; - zipObjectDeep(props: void | null, values?: ?any): {}; - - zipWith(a1?: ?Array): Array<[A]>; - zipWith(a1: Array, iteratee: (A) => T): Array; - - zipWith(a1: Array, a2: Array): Array<[A, B]>; - zipWith( - a1: Array, - a2: Array, - iteratee: (A, B) => T - ): Array; - - zipWith( - a1: Array, - a2: Array, - a3: Array - ): Array<[A, B, C]>; - zipWith( - a1: Array, - a2: Array, - a3: Array, - iteratee: (A, B, C) => T - ): Array; - - zipWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array - ): Array<[A, B, C, D]>; - zipWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - iteratee: (A, B, C, D) => T - ): Array; - - // Collection - countBy(array: Array, iteratee?: ?ValueOnlyIteratee): Object; - countBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; - countBy(object: T, iteratee?: ?ValueOnlyIteratee): Object; - // alias of _.forEach - each(array: Array, iteratee?: ?Iteratee): Array; - each(array: T, iteratee?: ?Iteratee): T; - each(object: T, iteratee?: ?OIteratee): T; - // alias of _.forEachRight - eachRight(array: Array, iteratee?: ?Iteratee): Array; - eachRight(array: T, iteratee?: ?Iteratee): T; - eachRight(object: T, iteratee?: OIteratee): T; - every(array?: ?Array, iteratee?: ?Iteratee): boolean; - every(object: T, iteratee?: OIteratee): boolean; - filter(array?: ?Array, predicate?: ?Predicate): Array; - filter( - object: T, - predicate?: OPredicate - ): Array; - find( - array: $ReadOnlyArray, - predicate?: ?Predicate, - fromIndex?: ?number - ): T | void; - find( - array: void | null, - predicate?: ?Predicate, - fromIndex?: ?number - ): void; - find( - object: T, - predicate?: OPredicate, - fromIndex?: number - ): V; - findLast( - array: ?$ReadOnlyArray, - predicate?: ?Predicate, - fromIndex?: ?number - ): T | void; - findLast( - object: T, - predicate?: ?OPredicate - ): V; - flatMap(array?: ?Array, iteratee?: ?FlatMapIteratee): Array; - flatMap( - object: T, - iteratee?: OFlatMapIteratee - ): Array; - flatMapDeep( - array?: ?Array, - iteratee?: ?FlatMapIteratee - ): Array; - flatMapDeep( - object: T, - iteratee?: ?OFlatMapIteratee - ): Array; - flatMapDepth( - array?: ?Array, - iteratee?: ?FlatMapIteratee, - depth?: ?number - ): Array; - flatMapDepth( - object: T, - iteratee?: OFlatMapIteratee, - depth?: number - ): Array; - forEach(array: Array, iteratee?: ?Iteratee): Array; - forEach(array: T, iteratee?: ?Iteratee): T; - forEach(object: T, iteratee?: ?OIteratee): T; - forEachRight(array: Array, iteratee?: ?Iteratee): Array; - forEachRight(array: T, iteratee?: ?Iteratee): T; - forEachRight(object: T, iteratee?: ?OIteratee): T; - groupBy( - array: Array, - iteratee?: ?ValueOnlyIteratee - ): { [key: V]: Array }; - groupBy( - array: void | null, - iteratee?: ?ValueOnlyIteratee - ): {}; - groupBy( - object: T, - iteratee?: ValueOnlyIteratee - ): { [key: V]: Array }; - includes(array: Array, value: T, fromIndex?: ?number): boolean; - includes(array: void | null, value?: ?T, fromIndex?: ?number): false; - includes(object: T, value: any, fromIndex?: number): boolean; - includes(str: string, value: string, fromIndex?: number): boolean; - invokeMap( - array?: ?Array, - path?: ?((value: T) => Array | string) | Array | string, - ...args?: Array - ): Array; - invokeMap( - object: T, - path: ((value: any) => Array | string) | Array | string, - ...args?: Array - ): Array; - keyBy( - array: Array, - iteratee?: ?ValueOnlyIteratee - ): { [key: V]: ?T }; - keyBy( - array: void | null, - iteratee?: ?ValueOnlyIteratee<*> - ): {}; - keyBy( - object: T, - iteratee?: ?ValueOnlyIteratee - ): { [key: V]: ?A }; - map(array?: ?Array, iteratee?: ?MapIterator): Array; - map( - array: ?$ReadOnlyArray, - iteratee?: ReadOnlyMapIterator - ): Array, - map( - object: ?T, - iteratee?: OMapIterator - ): Array; - map( - str: ?string, - iteratee?: (char: string, index: number, str: string) => any - ): string; - orderBy( - array: Array, - iteratees?: ?Array> | ?string, - orders?: ?Array<"asc" | "desc"> | ?string - ): Array; - orderBy( - array: null | void, - iteratees?: ?Array> | ?string, - orders?: ?Array<"asc" | "desc"> | ?string - ): Array; - orderBy( - object: T, - iteratees?: Array> | string, - orders?: Array<"asc" | "desc"> | string - ): Array; - partition( - array?: ?Array, - predicate?: ?Predicate - ): [Array, Array]; - partition( - object: T, - predicate?: OPredicate - ): [Array, Array]; - reduce( - array: Array, - iteratee?: ( - accumulator: U, - value: T, - index: number, - array: ?Array - ) => U, - accumulator?: U - ): U; - reduce( - array: void | null, - iteratee?: ?( - accumulator: U, - value: T, - index: number, - array: ?Array - ) => U, - accumulator?: ?U - ): void | null; - reduce( - object: T, - iteratee?: (accumulator: U, value: any, key: string, object: T) => U, - accumulator?: U - ): U; - reduceRight( - array: void | null, - iteratee?: ?( - accumulator: U, - value: T, - index: number, - array: ?Array - ) => U, - accumulator?: ?U - ): void | null; - reduceRight( - array: Array, - iteratee?: ?( - accumulator: U, - value: T, - index: number, - array: ?Array - ) => U, - accumulator?: ?U - ): U; - reduceRight( - object: T, - iteratee?: ?(accumulator: U, value: any, key: string, object: T) => U, - accumulator?: ?U - ): U; - reject(array: ?Array, predicate?: Predicate): Array; - reject( - object?: ?T, - predicate?: ?OPredicate - ): Array; - sample(array: ?Array): T; - sample(object: T): V; - sampleSize(array?: ?Array, n?: ?number): Array; - sampleSize(object: T, n?: number): Array; - shuffle(array: ?Array): Array; - shuffle(object: T): Array; - size(collection: Array | Object | string): number; - some(array: ?Array, predicate?: Predicate): boolean; - some(array: void | null, predicate?: ?Predicate): false; - some( - object?: ?T, - predicate?: OPredicate - ): boolean; - sortBy(array: ?Array, ...iteratees?: Array>): Array; - sortBy(array: ?Array, iteratees?: Array>): Array; - sortBy( - object: T, - ...iteratees?: Array> - ): Array; - sortBy(object: T, iteratees?: Array>): Array; - - // Date - now(): number; - - // Function - after(n: number, fn: Function): Function; - ary(func: Function, n?: number): Function; - before(n: number, fn: Function): Function; - bind(func: Function, thisArg: any, ...partials: Array): Function; - bindKey(obj?: ?Object, key?: ?string, ...partials?: Array): Function; - curry: Curry; - curry(func: Function, arity?: number): Function; - curryRight(func: Function, arity?: number): Function; - debounce(func: F, wait?: number, options?: DebounceOptions): F; - defer(func: Function, ...args?: Array): number; - delay(func: Function, wait: number, ...args?: Array): number; - flip(func: Function): Function; - memoize(func: F, resolver?: Function): F; - negate(predicate: Function): Function; - once(func: Function): Function; - overArgs(func?: ?Function, ...transforms?: Array): Function; - overArgs(func?: ?Function, transforms?: ?Array): Function; - partial(func: Function, ...partials: any[]): Function; - partialRight(func: Function, ...partials: Array): Function; - partialRight(func: Function, partials: Array): Function; - rearg(func: Function, ...indexes: Array): Function; - rearg(func: Function, indexes: Array): Function; - rest(func: Function, start?: number): Function; - spread(func: Function): Function; - throttle( - func: Function, - wait?: number, - options?: ThrottleOptions - ): Function; - unary(func: Function): Function; - wrap(value?: any, wrapper?: ?Function): Function; - - // Lang - castArray(value: *): any[]; - clone(value: T): T; - cloneDeep(value: T): T; - cloneDeepWith( - value: T, - customizer?: ?(value: T, key: number | string, object: T, stack: any) => U - ): U; - cloneWith( - value: T, - customizer?: ?(value: T, key: number | string, object: T, stack: any) => U - ): U; - conformsTo( - source: T, - predicates: T & { [key: string]: (x: any) => boolean } - ): boolean; - eq(value: any, other: any): boolean; - gt(value: any, other: any): boolean; - gte(value: any, other: any): boolean; - isArguments(value: void | null): false; - isArguments(value: any): boolean; - isArray(value: Array): true; - isArray(value: any): false; - isArrayBuffer(value: ArrayBuffer): true; - isArrayBuffer(value: any): false; - isArrayLike(value: Array | string | {length: number}): true; - isArrayLike(value: any): false; - isArrayLikeObject(value: {length: number} | Array): true; - isArrayLikeObject(value: any): false; - isBoolean(value: boolean): true; - isBoolean(value: any): false; - isBuffer(value: void | null): false; - isBuffer(value: any): boolean; - isDate(value: Date): true; - isDate(value: any): false; - isElement(value: Element): true; - isElement(value: any): false; - isEmpty(value: void | null | '' | {} | [] | number | boolean): true; - isEmpty(value: any): boolean; - isEqual(value: any, other: any): boolean; - isEqualWith( - value?: ?T, - other?: ?U, - customizer?: ?( - objValue: any, - otherValue: any, - key: number | string, - object: T, - other: U, - stack: any - ) => boolean | void - ): boolean; - isError(value: Error): true; - isError(value: any): false; - isFinite(value: number): boolean; - isFinite(value: any): false; - isFunction(value: Function): true; - isFunction(value: any): false; - isInteger(value: number): boolean; - isInteger(value: any): false; - isLength(value: void | null): false; - isLength(value: any): boolean; - isMap(value: Map): true; - isMap(value: any): false; - isMatch(object?: ?Object, source?: ?Object): boolean; - isMatchWith( - object?: ?T, - source?: ?U, - customizer?: ?( - objValue: any, - srcValue: any, - key: number | string, - object: T, - source: U - ) => boolean | void - ): boolean; - isNaN(value: Function | string | void | null | Object): false; - isNaN(value: number): boolean; - isNative(value: number | string | void | null | Object): false; - isNative(value: any): boolean; - isNil(value: void | null): true; - isNil(value: any): false; - isNull(value: null): true; - isNull(value: any): false; - isNumber(value: number): true; - isNumber(value: any): false; - isObject(value: Object): true; - isObject(value: any): false; - isObjectLike(value: void | null): false; - isObjectLike(value: any): boolean; - isPlainObject(value: Object): true; - isPlainObject(value: any): false; - isRegExp(value: RegExp): true; - isRegExp(value: any): false; - isSafeInteger(value: number): boolean; - isSafeInteger(value: any): false; - isSet(value: Set): true; - isSet(value: any): false; - isString(value: string): true; - isString( - value: number | boolean | Function | void | null | Object | Array - ): false; - isSymbol(value: Symbol): true; - isSymbol(value: any): false; - isTypedArray(value: $TypedArray): true; - isTypedArray(value: any): false; - isUndefined(value: void): true; - isUndefined(value: any): false; - isWeakMap(value: WeakMap): true; - isWeakMap(value: any): false; - isWeakSet(value: WeakSet): true; - isWeakSet(value: any): false; - lt(value: any, other: any): boolean; - lte(value: any, other: any): boolean; - toArray(value: any): Array; - toFinite(value: void | null): 0; - toFinite(value: any): number; - toInteger(value: void | null): 0; - toInteger(value: any): number; - toLength(value: void | null): 0; - toLength(value: any): number; - toNumber(value: void | null): 0; - toNumber(value: any): number; - toPlainObject(value: any): Object; - toSafeInteger(value: void | null): 0; - toSafeInteger(value: any): number; - toString(value: void | null): ''; - toString(value: any): string; - - // Math - add(augend: number, addend: number): number; - ceil(number: number, precision?: number): number; - divide(dividend: number, divisor: number): number; - floor(number: number, precision?: number): number; - max(array: ?Array): T; - maxBy(array: ?Array, iteratee?: Iteratee): T; - mean(array: Array<*>): number; - meanBy(array: Array, iteratee?: Iteratee): number; - min(array: ?Array): T; - minBy(array: ?Array, iteratee?: Iteratee): T; - multiply(multiplier: number, multiplicand: number): number; - round(number: number, precision?: number): number; - subtract(minuend: number, subtrahend: number): number; - sum(array: Array<*>): number; - sumBy(array: Array, iteratee?: Iteratee): number; - - // number - clamp(number?: number, lower?: ?number, upper?: ?number): number; - clamp(number: ?number, lower?: ?number, upper?: ?number): 0; - inRange(number: number, start?: number, end: number): boolean; - random(lower?: number, upper?: number, floating?: boolean): number; - - // Object - assign(object?: ?Object, ...sources?: Array): Object; - assignIn(): {}; - assignIn(a: A, b: B): A & B; - assignIn(a: A, b: B, c: C): A & B & C; - assignIn(a: A, b: B, c: C, d: D): A & B & C & D; - assignIn(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E; - assignInWith(): {}; - assignInWith( - object: T, - s1: A, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): Object; - assignInWith( - object: T, - s1: A, - s2: B, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): Object; - assignInWith( - object: T, - s1: A, - s2: B, - s3: C, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C - ) => any | void - ): Object; - assignInWith( - object: T, - s1: A, - s2: B, - s3: C, - s4: D, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C | D - ) => any | void - ): Object; - assignWith(): {}; - assignWith( - object: T, - s1: A, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): Object; - assignWith( - object: T, - s1: A, - s2: B, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): Object; - assignWith( - object: T, - s1: A, - s2: B, - s3: C, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C - ) => any | void - ): Object; - assignWith( - object: T, - s1: A, - s2: B, - s3: C, - s4: D, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C | D - ) => any | void - ): Object; - at(object?: ?Object, ...paths: Array): Array; - at(object?: ?Object, paths: Array): Array; - create(prototype: T, properties: Object): $Supertype; - create(prototype: any, properties: void | null): {}; - defaults(object?: ?Object, ...sources?: Array): Object; - defaultsDeep(object?: ?Object, ...sources?: Array): Object; - // alias for _.toPairs - entries(object?: ?Object): Array<[string, any]>; - // alias for _.toPairsIn - entriesIn(object?: ?Object): Array<[string, any]>; - // alias for _.assignIn - extend(a?: ?A, b?: ?B): A & B; - extend(a: A, b: B, c: C): A & B & C; - extend(a: A, b: B, c: C, d: D): A & B & C & D; - extend(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E; - // alias for _.assignInWith - extendWith( - object?: ?T, - s1?: ?A, - customizer?: ?( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): Object; - extendWith( - object: T, - s1: A, - s2: B, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): Object; - extendWith( - object: T, - s1: A, - s2: B, - s3: C, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C - ) => any | void - ): Object; - extendWith( - object: T, - s1: A, - s2: B, - s3: C, - s4: D, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C | D - ) => any | void - ): Object; - findKey( - object: T, - predicate?: ?OPredicate - ): string | void; - findKey( - object: void | null, - predicate?: ?OPredicate - ): void; - findLastKey( - object: T, - predicate?: ?OPredicate - ): string | void; - findLastKey( - object: void | null, - predicate?: ?OPredicate - ): void; - forIn(object: Object, iteratee?: ?OIteratee<*>): Object; - forIn(object: void | null, iteratee?: ?OIteratee<*>): null; - forInRight(object: Object, iteratee?: ?OIteratee<*>): Object; - forInRight(object: void | null, iteratee?: ?OIteratee<*>): null; - forOwn(object: Object, iteratee?: ?OIteratee<*>): Object; - forOwn(object: void | null, iteratee?: ?OIteratee<*>): null; - forOwnRight(object: Object, iteratee?: ?OIteratee<*>): Object; - forOwnRight(object: void | null, iteratee?: ?OIteratee<*>): null; - functions(object?: ?Object): Array; - functionsIn(object?: ?Object): Array; - get( - object?: ?Object | ?Array, - path?: ?Array | string, - defaultValue?: any - ): any; - has(object: Object, path: Array | string): boolean; - has(object: Object, path: void | null): false; - has(object: void | null, path?: ?Array | ?string): false; - hasIn(object: Object, path: Array | string): boolean; - hasIn(object: Object, path: void | null): false; - hasIn(object: void | null, path?: ?Array | ?string): false; - invert(object: Object, multiVal?: ?boolean): Object; - invert(object: void | null, multiVal?: ?boolean): {}; - invertBy(object: Object, iteratee?: ?Function): Object; - invertBy(object: void | null, iteratee?: ?Function): {}; - invoke( - object?: ?Object, - path?: ?Array | string, - ...args?: Array - ): any; - keys(object?: ?{ [key: K]: any }): Array; - keys(object?: ?Object): Array; - keysIn(object?: ?Object): Array; - mapKeys(object: Object, iteratee?: ?OIteratee<*>): Object; - mapKeys(object: void | null, iteratee?: ?OIteratee<*>): {}; - mapValues(object: Object, iteratee?: ?OIteratee<*>): Object; - mapValues(object: void | null, iteratee?: ?OIteratee<*>): {}; - merge(object?: ?Object, ...sources?: Array): Object; - mergeWith(): {}; - mergeWith( - object: T, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): Object; - mergeWith( - object: T, - s1: A, - s2: B, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): Object; - mergeWith( - object: T, - s1: A, - s2: B, - s3: C, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C - ) => any | void - ): Object; - mergeWith( - object: T, - s1: A, - s2: B, - s3: C, - s4: D, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C | D - ) => any | void - ): Object; - omit(object?: ?Object, ...props: Array): Object; - omit(object?: ?Object, props: Array): Object; - omitBy( - object: T, - predicate?: ?OPredicate - ): Object; - omitBy( - object: T, - predicate?: ?OPredicate - ): {}; - pick(object?: ?Object, ...props: $ReadOnlyArray): Object; - pick(object?: ?Object, props: $ReadOnlyArray): Object; - pickBy( - object: T, - predicate?: ?OPredicate - ): Object; - pickBy( - object: T, - predicate?: ?OPredicate - ): {}; - result( - object?: ?Object, - path?: ?Array | string, - defaultValue?: any - ): any; - set(object: Object, path?: ?Array | string, value: any): Object; - set( - object: T, - path?: ?Array | string, - value?: ?any): T; - setWith( - object: T, - path?: ?Array | string, - value: any, - customizer?: (nsValue: any, key: string, nsObject: T) => any - ): Object; - setWith( - object: T, - path?: ?Array | string, - value?: ?any, - customizer?: ?(nsValue: any, key: string, nsObject: T) => any - ): T; - toPairs(object?: ?Object | Array<*>): Array<[string, any]>; - toPairsIn(object?: ?Object): Array<[string, any]>; - transform( - collection: Object | Array, - iteratee?: ?OIteratee<*>, - accumulator?: any - ): any; - transform( - collection: void | null, - iteratee?: ?OIteratee<*>, - accumulator?: ?any - ): {}; - unset(object: Object, path?: ?Array | ?string): boolean; - unset(object: void | null, path?: ?Array | ?string): true; - update(object: Object, path: string[] | string, updater: Function): Object; - update( - object: T, - path?: ?string[] | ?string, - updater?: ?Function): T; - updateWith( - object: Object, - path?: ?string[] | ?string, - updater?: ?Function, - customizer?: ?Function - ): Object; - updateWith( - object: T, - path?: ?string[] | ?string, - updater?: ?Function, - customizer?: ?Function - ): T; - values(object?: ?Object): Array; - valuesIn(object?: ?Object): Array; - - // Seq - // harder to read, but this is _() - (value: any): any; - chain(value: T): any; - tap(value: T, interceptor: (value: T) => any): T; - thru(value: T1, interceptor: (value: T1) => T2): T2; - // TODO: _.prototype.* - - // String - camelCase(string: string): string; - camelCase(string: void | null): ''; - capitalize(string: string): string; - capitalize(string: void | null): ''; - deburr(string: string): string; - deburr(string: void | null): ''; - endsWith(string: string, target?: string, position?: ?number): boolean; - endsWith(string: void | null, target?: ?string, position?: ?number): false; - escape(string: string): string; - escape(string: void | null): ''; - escapeRegExp(string: string): string; - escapeRegExp(string: void | null): ''; - kebabCase(string: string): string; - kebabCase(string: void | null): ''; - lowerCase(string: string): string; - lowerCase(string: void | null): ''; - lowerFirst(string: string): string; - lowerFirst(string: void | null): ''; - pad(string?: ?string, length?: ?number, chars?: ?string): string; - padEnd(string?: ?string, length?: ?number, chars?: ?string): string; - padStart(string?: ?string, length?: ?number, chars?: ?string): string; - parseInt(string: string, radix?: ?number): number; - repeat(string: string, n?: ?number): string; - repeat(string: void | null, n?: ?number): ''; - replace( - string: string, - pattern: RegExp | string, - replacement: ((string: string) => string) | string - ): string; - replace( - string: void | null, - pattern?: ?RegExp | ?string, - replacement: ?((string: string) => string) | ?string - ): ''; - snakeCase(string: string): string; - snakeCase(string: void | null): ''; - split( - string?: ?string, - separator?: ?RegExp | ?string, - limit?: ?number - ): Array; - startCase(string: string): string; - startCase(string: void | null): ''; - startsWith(string: string, target?: string, position?: number): boolean; - startsWith(string: void | null, target?: ?string, position?: ?number): false; - template(string?: ?string, options?: ?TemplateSettings): Function; - toLower(string: string): string; - toLower(string: void | null): ''; - toUpper(string: string): string; - toUpper(string: void | null): ''; - trim(string: string, chars?: string): string; - trim(string: void | null, chars?: ?string): ''; - trimEnd(string: string, chars?: ?string): string; - trimEnd(string: void | null, chars?: ?string): ''; - trimStart(string: string, chars?: ?string): string; - trimStart(string: void | null, chars?: ?string): ''; - truncate(string: string, options?: TruncateOptions): string; - truncate(string: void | null, options?: ?TruncateOptions): ''; - unescape(string: string): string; - unescape(string: void | null): ''; - upperCase(string: string): string; - upperCase(string: void | null): ''; - upperFirst(string: string): string; - upperFirst(string: void | null): ''; - words(string?: ?string, pattern?: ?RegExp | ?string): Array; - - // Util - attempt(func: Function, ...args: Array): any; - bindAll(object: Object, methodNames?: ?Array): Object; - bindAll(object: T, methodNames?: ?Array): T; - bindAll(object: Object, ...methodNames: Array): Object; - cond(pairs?: ?NestedArray): Function; - conforms(source?: ?Object): Function; - constant(value: T): () => T; - defaultTo( - value: T1, - defaultValue: T2 - ): T1; - // NaN is a number instead of its own type, otherwise it would behave like null/void - defaultTo(value: T1, defaultValue: T2): T1 | T2; - defaultTo(value: T1, defaultValue: T2): T2; - flow: ($ComposeReverse & (funcs: Array) => Function); - flowRight: ($Compose & (funcs: Array) => Function); - identity(value: T): T; - iteratee(func?: any): Function; - matches(source?: ?Object): Function; - matchesProperty(path?: ?Array | string, srcValue: any): Function; - method(path?: ?Array | string, ...args?: Array): Function; - methodOf(object?: ?Object, ...args?: Array): Function; - mixin( - object?: T, - source: Object, - options?: { chain: boolean } - ): T; - noConflict(): Lodash; - noop(...args: Array): void; - nthArg(n?: ?number): Function; - over(...iteratees: Array): Function; - over(iteratees: Array): Function; - overEvery(...predicates: Array): Function; - overEvery(predicates: Array): Function; - overSome(...predicates: Array): Function; - overSome(predicates: Array): Function; - property(path?: ?Array | string): Function; - propertyOf(object?: ?Object): Function; - range(start: number, end: number, step?: number): Array; - range(end: number, step?: number): Array; - rangeRight(start?: ?number, end?: ?number, step?: ?number): Array; - rangeRight(end?: ?number, step?: ?number): Array; - runInContext(context?: ?Object): Function; - - stubArray(): Array<*>; - stubFalse(): false; - stubObject(): {}; - stubString(): ""; - stubTrue(): true; - times(n?: ?number, ...rest?: Array): Array; - times(n: number, iteratee: (i: number) => T): Array; - toPath(value: any): Array; - uniqueId(prefix?: ?string): string; - - // Properties - VERSION: string; - templateSettings: TemplateSettings; - } - - declare module.exports: Lodash; -} - -declare module "lodash/fp" { - declare type __CurriedFunction1 = (...r: [AA]) => R; - declare type CurriedFunction1 = __CurriedFunction1; - - declare type __CurriedFunction2 = (( - ...r: [AA] - ) => CurriedFunction1) & - ((...r: [AA, BB]) => R); - declare type CurriedFunction2 = __CurriedFunction2; - - declare type __CurriedFunction3 = (( - ...r: [AA] - ) => CurriedFunction2) & - ((...r: [AA, BB]) => CurriedFunction1) & - ((...r: [AA, BB, CC]) => R); - declare type CurriedFunction3 = __CurriedFunction3< - A, - B, - C, - R, - *, - *, - * - >; - - declare type __CurriedFunction4< - A, - B, - C, - D, - R, - AA: A, - BB: B, - CC: C, - DD: D - > = ((...r: [AA]) => CurriedFunction3) & - ((...r: [AA, BB]) => CurriedFunction2) & - ((...r: [AA, BB, CC]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD]) => R); - declare type CurriedFunction4 = __CurriedFunction4< - A, - B, - C, - D, - R, - *, - *, - *, - * - >; - - declare type __CurriedFunction5< - A, - B, - C, - D, - E, - R, - AA: A, - BB: B, - CC: C, - DD: D, - EE: E - > = ((...r: [AA]) => CurriedFunction4) & - ((...r: [AA, BB]) => CurriedFunction3) & - ((...r: [AA, BB, CC]) => CurriedFunction2) & - ((...r: [AA, BB, CC, DD]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD, EE]) => R); - declare type CurriedFunction5 = __CurriedFunction5< - A, - B, - C, - D, - E, - R, - *, - *, - *, - *, - * - >; - - declare type __CurriedFunction6< - A, - B, - C, - D, - E, - F, - R, - AA: A, - BB: B, - CC: C, - DD: D, - EE: E, - FF: F - > = ((...r: [AA]) => CurriedFunction5) & - ((...r: [AA, BB]) => CurriedFunction4) & - ((...r: [AA, BB, CC]) => CurriedFunction3) & - ((...r: [AA, BB, CC, DD]) => CurriedFunction2) & - ((...r: [AA, BB, CC, DD, EE]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD, EE, FF]) => R); - declare type CurriedFunction6 = __CurriedFunction6< - A, - B, - C, - D, - E, - F, - R, - *, - *, - *, - *, - *, - * - >; - - declare type Curry = (((...r: [A]) => R) => CurriedFunction1) & - (((...r: [A, B]) => R) => CurriedFunction2) & - (((...r: [A, B, C]) => R) => CurriedFunction3) & - (( - (...r: [A, B, C, D]) => R - ) => CurriedFunction4) & - (( - (...r: [A, B, C, D, E]) => R - ) => CurriedFunction5) & - (( - (...r: [A, B, C, D, E, F]) => R - ) => CurriedFunction6); - - declare type UnaryFn = (a: A) => R; - - declare type TemplateSettings = { - escape?: RegExp, - evaluate?: RegExp, - imports?: Object, - interpolate?: RegExp, - variable?: string - }; - - declare type TruncateOptions = { - length?: number, - omission?: string, - separator?: RegExp | string - }; - - declare type DebounceOptions = { - leading?: boolean, - maxWait?: number, - trailing?: boolean - }; - - declare type ThrottleOptions = { - leading?: boolean, - trailing?: boolean - }; - - declare type NestedArray = Array>; - - declare type matchesIterateeShorthand = Object; - declare type matchesPropertyIterateeShorthand = [string, any]; - declare type propertyIterateeShorthand = string; - - declare type OPredicate = - | ((value: A) => any) - | matchesIterateeShorthand - | matchesPropertyIterateeShorthand - | propertyIterateeShorthand; - - declare type OIterateeWithResult = Object | string | ((value: V) => R); - declare type OIteratee = OIterateeWithResult; - declare type OFlatMapIteratee = OIterateeWithResult>; - - declare type Predicate = - | ((value: T) => any) - | matchesIterateeShorthand - | matchesPropertyIterateeShorthand - | propertyIterateeShorthand; - - declare type _ValueOnlyIteratee = (value: T) => mixed; - declare type ValueOnlyIteratee = _ValueOnlyIteratee | string; - declare type _Iteratee = (item: T) => mixed; - declare type Iteratee = _Iteratee | Object | string; - declare type FlatMapIteratee = - | ((item: T) => Array) - | Object - | string; - declare type Comparator = (item: T, item2: T) => boolean; - - declare type MapIterator = ((item: T) => U) | propertyIterateeShorthand; - - declare type OMapIterator = - | ((item: T) => U) - | propertyIterateeShorthand; - - declare class Lodash { - // Array - chunk(size: number): (array: Array) => Array>; - chunk(size: number, array: Array): Array>; - compact(array: Array): Array; - concat | T, B: Array | U>( - base: A - ): (elements: B) => Array; - concat | T, B: Array | U>( - base: A, - elements: B - ): Array; - difference(values: Array): (array: Array) => Array; - difference(values: Array, array: Array): Array; - differenceBy( - iteratee: ValueOnlyIteratee - ): ((values: Array) => (array: Array) => T[]) & - ((values: Array, array: Array) => T[]); - differenceBy( - iteratee: ValueOnlyIteratee, - values: Array - ): (array: Array) => T[]; - differenceBy( - iteratee: ValueOnlyIteratee, - values: Array, - array: Array - ): T[]; - differenceWith( - values: T[] - ): ((comparator: Comparator) => (array: T[]) => T[]) & - ((comparator: Comparator, array: T[]) => T[]); - differenceWith( - values: T[], - comparator: Comparator - ): (array: T[]) => T[]; - differenceWith(values: T[], comparator: Comparator, array: T[]): T[]; - drop(n: number): (array: Array) => Array; - drop(n: number, array: Array): Array; - dropLast(n: number): (array: Array) => Array; - dropLast(n: number, array: Array): Array; - dropRight(n: number): (array: Array) => Array; - dropRight(n: number, array: Array): Array; - dropRightWhile(predicate: Predicate): (array: Array) => Array; - dropRightWhile(predicate: Predicate, array: Array): Array; - dropWhile(predicate: Predicate): (array: Array) => Array; - dropWhile(predicate: Predicate, array: Array): Array; - dropLastWhile(predicate: Predicate): (array: Array) => Array; - dropLastWhile(predicate: Predicate, array: Array): Array; - fill( - start: number - ): (( - end: number - ) => ((value: U) => (array: Array) => Array) & - ((value: U, array: Array) => Array)) & - ((end: number, value: U) => (array: Array) => Array) & - ((end: number, value: U, array: Array) => Array); - fill( - start: number, - end: number - ): ((value: U) => (array: Array) => Array) & - ((value: U, array: Array) => Array); - fill( - start: number, - end: number, - value: U - ): (array: Array) => Array; - fill( - start: number, - end: number, - value: U, - array: Array - ): Array; - findIndex(predicate: Predicate): (array: $ReadOnlyArray) => number; - findIndex(predicate: Predicate, array: $ReadOnlyArray): number; - findIndexFrom( - predicate: Predicate - ): ((fromIndex: number) => (array: $ReadOnlyArray) => number) & - ((fromIndex: number, array: $ReadOnlyArray) => number); - findIndexFrom( - predicate: Predicate, - fromIndex: number - ): (array: $ReadOnlyArray) => number; - findIndexFrom( - predicate: Predicate, - fromIndex: number, - array: $ReadOnlyArray - ): number; - findLastIndex( - predicate: Predicate - ): (array: $ReadOnlyArray) => number; - findLastIndex(predicate: Predicate, array: $ReadOnlyArray): number; - findLastIndexFrom( - predicate: Predicate - ): ((fromIndex: number) => (array: $ReadOnlyArray) => number) & - ((fromIndex: number, array: $ReadOnlyArray) => number); - findLastIndexFrom( - predicate: Predicate, - fromIndex: number - ): (array: $ReadOnlyArray) => number; - findLastIndexFrom( - predicate: Predicate, - fromIndex: number, - array: $ReadOnlyArray - ): number; - // alias of _.head - first(array: Array): T; - flatten(array: Array | X>): Array; - unnest(array: Array | X>): Array; - flattenDeep(array: any[]): Array; - flattenDepth(depth: number): (array: any[]) => any[]; - flattenDepth(depth: number, array: any[]): any[]; - fromPairs(pairs: Array<[A, B]>): { [key: A]: B }; - head(array: Array): T; - indexOf(value: T): (array: Array) => number; - indexOf(value: T, array: Array): number; - indexOfFrom( - value: T - ): ((fromIndex: number) => (array: Array) => number) & - ((fromIndex: number, array: Array) => number); - indexOfFrom(value: T, fromIndex: number): (array: Array) => number; - indexOfFrom(value: T, fromIndex: number, array: Array): number; - initial(array: Array): Array; - init(array: Array): Array; - intersection(a1: Array): (a2: Array) => Array; - intersection(a1: Array, a2: Array): Array; - intersectionBy( - iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - intersectionBy( - iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; - intersectionBy( - iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array - ): Array; - intersectionWith( - comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - intersectionWith( - comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - intersectionWith( - comparator: Comparator, - a1: Array, - a2: Array - ): Array; - join(separator: string): (array: Array) => string; - join(separator: string, array: Array): string; - last(array: Array): T; - lastIndexOf(value: T): (array: Array) => number; - lastIndexOf(value: T, array: Array): number; - lastIndexOfFrom( - value: T - ): ((fromIndex: number) => (array: Array) => number) & - ((fromIndex: number, array: Array) => number); - lastIndexOfFrom( - value: T, - fromIndex: number - ): (array: Array) => number; - lastIndexOfFrom(value: T, fromIndex: number, array: Array): number; - nth(n: number): (array: T[]) => T; - nth(n: number, array: T[]): T; - pull(value: T): (array: Array) => Array; - pull(value: T, array: Array): Array; - pullAll(values: Array): (array: Array) => Array; - pullAll(values: Array, array: Array): Array; - pullAllBy( - iteratee: ValueOnlyIteratee - ): ((values: Array) => (array: Array) => Array) & - ((values: Array, array: Array) => Array); - pullAllBy( - iteratee: ValueOnlyIteratee, - values: Array - ): (array: Array) => Array; - pullAllBy( - iteratee: ValueOnlyIteratee, - values: Array, - array: Array - ): Array; - pullAllWith( - comparator: Function - ): ((values: T[]) => (array: T[]) => T[]) & - ((values: T[], array: T[]) => T[]); - pullAllWith(comparator: Function, values: T[]): (array: T[]) => T[]; - pullAllWith(comparator: Function, values: T[], array: T[]): T[]; - pullAt(indexed: Array): (array: Array) => Array; - pullAt(indexed: Array, array: Array): Array; - remove(predicate: Predicate): (array: Array) => Array; - remove(predicate: Predicate, array: Array): Array; - reverse(array: Array): Array; - slice( - start: number - ): ((end: number) => (array: Array) => Array) & - ((end: number, array: Array) => Array); - slice(start: number, end: number): (array: Array) => Array; - slice(start: number, end: number, array: Array): Array; - sortedIndex(value: T): (array: Array) => number; - sortedIndex(value: T, array: Array): number; - sortedIndexBy( - iteratee: ValueOnlyIteratee - ): ((value: T) => (array: Array) => number) & - ((value: T, array: Array) => number); - sortedIndexBy( - iteratee: ValueOnlyIteratee, - value: T - ): (array: Array) => number; - sortedIndexBy( - iteratee: ValueOnlyIteratee, - value: T, - array: Array - ): number; - sortedIndexOf(value: T): (array: Array) => number; - sortedIndexOf(value: T, array: Array): number; - sortedLastIndex(value: T): (array: Array) => number; - sortedLastIndex(value: T, array: Array): number; - sortedLastIndexBy( - iteratee: ValueOnlyIteratee - ): ((value: T) => (array: Array) => number) & - ((value: T, array: Array) => number); - sortedLastIndexBy( - iteratee: ValueOnlyIteratee, - value: T - ): (array: Array) => number; - sortedLastIndexBy( - iteratee: ValueOnlyIteratee, - value: T, - array: Array - ): number; - sortedLastIndexOf(value: T): (array: Array) => number; - sortedLastIndexOf(value: T, array: Array): number; - sortedUniq(array: Array): Array; - sortedUniqBy( - iteratee: (value: T) => mixed - ): (array: Array) => Array; - sortedUniqBy(iteratee: (value: T) => mixed, array: Array): Array; - tail(array: Array): Array; - take(n: number): (array: Array) => Array; - take(n: number, array: Array): Array; - takeRight(n: number): (array: Array) => Array; - takeRight(n: number, array: Array): Array; - takeLast(n: number): (array: Array) => Array; - takeLast(n: number, array: Array): Array; - takeRightWhile(predicate: Predicate): (array: Array) => Array; - takeRightWhile(predicate: Predicate, array: Array): Array; - takeLastWhile(predicate: Predicate): (array: Array) => Array; - takeLastWhile(predicate: Predicate, array: Array): Array; - takeWhile(predicate: Predicate): (array: Array) => Array; - takeWhile(predicate: Predicate, array: Array): Array; - union(a1: Array): (a2: Array) => Array; - union(a1: Array, a2: Array): Array; - unionBy( - iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - unionBy( - iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; - unionBy( - iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array - ): Array; - unionWith( - comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - unionWith( - comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - unionWith( - comparator: Comparator, - a1: Array, - a2: Array - ): Array; - uniq(array: Array): Array; - uniqBy(iteratee: ValueOnlyIteratee): (array: Array) => Array; - uniqBy(iteratee: ValueOnlyIteratee, array: Array): Array; - uniqWith(comparator: Comparator): (array: Array) => Array; - uniqWith(comparator: Comparator, array: Array): Array; - unzip(array: Array): Array; - unzipWith(iteratee: Iteratee): (array: Array) => Array; - unzipWith(iteratee: Iteratee, array: Array): Array; - without(values: Array): (array: Array) => Array; - without(values: Array, array: Array): Array; - xor(a1: Array): (a2: Array) => Array; - xor(a1: Array, a2: Array): Array; - symmetricDifference(a1: Array): (a2: Array) => Array; - symmetricDifference(a1: Array, a2: Array): Array; - xorBy( - iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - xorBy( - iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; - xorBy( - iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array - ): Array; - symmetricDifferenceBy( - iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - symmetricDifferenceBy( - iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; - symmetricDifferenceBy( - iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array - ): Array; - xorWith( - comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - xorWith( - comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - xorWith(comparator: Comparator, a1: Array, a2: Array): Array; - symmetricDifferenceWith( - comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - symmetricDifferenceWith( - comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - symmetricDifferenceWith( - comparator: Comparator, - a1: Array, - a2: Array - ): Array; - zip(a1: A[]): (a2: B[]) => Array<[A, B]>; - zip(a1: A[], a2: B[]): Array<[A, B]>; - zipAll(arrays: Array>): Array; - zipObject(props?: Array): (values?: Array) => { [key: K]: V }; - zipObject(props?: Array, values?: Array): { [key: K]: V }; - zipObj(props: Array): (values: Array) => Object; - zipObj(props: Array, values: Array): Object; - zipObjectDeep(props: any[]): (values: any) => Object; - zipObjectDeep(props: any[], values: any): Object; - zipWith( - iteratee: Iteratee - ): ((a1: NestedArray) => (a2: NestedArray) => Array) & - ((a1: NestedArray, a2: NestedArray) => Array); - zipWith( - iteratee: Iteratee, - a1: NestedArray - ): (a2: NestedArray) => Array; - zipWith( - iteratee: Iteratee, - a1: NestedArray, - a2: NestedArray - ): Array; - // Collection - countBy( - iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [string]: number }; - countBy( - iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } - ): { [string]: number }; - // alias of _.forEach - each( - iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; - each( - iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } - ): Array; - // alias of _.forEachRight - eachRight( - iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; - eachRight( - iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } - ): Array; - every( - iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => boolean; - every( - iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } - ): boolean; - all( - iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => boolean; - all( - iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } - ): boolean; - filter( - predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => Array; - filter( - predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } - ): Array; - find( - predicate: Predicate | OPredicate - ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; - find( - predicate: Predicate | OPredicate, - collection: $ReadOnlyArray | { [id: any]: T } - ): T | void; - findFrom( - predicate: Predicate | OPredicate - ): (( - fromIndex: number - ) => (collection: $ReadOnlyArray | { [id: any]: T }) => T | void) & - (( - fromIndex: number, - collection: $ReadOnlyArray | { [id: any]: T } - ) => T | void); - findFrom( - predicate: Predicate | OPredicate, - fromIndex: number - ): (collection: Array | { [id: any]: T }) => T | void; - findFrom( - predicate: Predicate | OPredicate, - fromIndex: number, - collection: $ReadOnlyArray | { [id: any]: T } - ): T | void; - findLast( - predicate: Predicate | OPredicate - ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; - findLast( - predicate: Predicate | OPredicate, - collection: $ReadOnlyArray | { [id: any]: T } - ): T | void; - findLastFrom( - predicate: Predicate | OPredicate - ): (( - fromIndex: number - ) => (collection: $ReadOnlyArray | { [id: any]: T }) => T | void) & - (( - fromIndex: number, - collection: $ReadOnlyArray | { [id: any]: T } - ) => T | void); - findLastFrom( - predicate: Predicate | OPredicate, - fromIndex: number - ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; - findLastFrom( - predicate: Predicate | OPredicate, - fromIndex: number, - collection: $ReadOnlyArray | { [id: any]: T } - ): T | void; - flatMap( - iteratee: FlatMapIteratee | OFlatMapIteratee - ): (collection: Array | { [id: any]: T }) => Array; - flatMap( - iteratee: FlatMapIteratee | OFlatMapIteratee, - collection: Array | { [id: any]: T } - ): Array; - flatMapDeep( - iteratee: FlatMapIteratee | OFlatMapIteratee - ): (collection: Array | { [id: any]: T }) => Array; - flatMapDeep( - iteratee: FlatMapIteratee | OFlatMapIteratee, - collection: Array | { [id: any]: T } - ): Array; - flatMapDepth( - iteratee: FlatMapIteratee | OFlatMapIteratee - ): (( - depth: number - ) => (collection: Array | { [id: any]: T }) => Array) & - ((depth: number, collection: Array | { [id: any]: T }) => Array); - flatMapDepth( - iteratee: FlatMapIteratee | OFlatMapIteratee, - depth: number - ): (collection: Array | { [id: any]: T }) => Array; - flatMapDepth( - iteratee: FlatMapIteratee | OFlatMapIteratee, - depth: number, - collection: Array | { [id: any]: T } - ): Array; - forEach( - iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; - forEach( - iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } - ): Array; - forEachRight( - iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; - forEachRight( - iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } - ): Array; - groupBy( - iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [key: V]: Array }; - groupBy( - iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } - ): { [key: V]: Array }; - includes(value: string): (str: string) => boolean; - includes(value: string, str: string): boolean; - includes(value: T): (collection: Array | { [id: any]: T }) => boolean; - includes(value: T, collection: Array | { [id: any]: T }): boolean; - contains(value: string): (str: string) => boolean; - contains(value: string, str: string): boolean; - contains(value: T): (collection: Array | { [id: any]: T }) => boolean; - contains(value: T, collection: Array | { [id: any]: T }): boolean; - includesFrom( - value: string - ): ((fromIndex: number) => (str: string) => boolean) & - ((fromIndex: number, str: string) => boolean); - includesFrom(value: string, fromIndex: number): (str: string) => boolean; - includesFrom(value: string, fromIndex: number, str: string): boolean; - includesFrom( - value: T - ): ((fromIndex: number) => (collection: Array) => boolean) & - ((fromIndex: number, collection: Array) => boolean); - includesFrom( - value: T, - fromIndex: number - ): (collection: Array) => boolean; - includesFrom(value: T, fromIndex: number, collection: Array): boolean; - invokeMap( - path: ((value: T) => Array | string) | Array | string - ): (collection: Array | { [id: any]: T }) => Array; - invokeMap( - path: ((value: T) => Array | string) | Array | string, - collection: Array | { [id: any]: T } - ): Array; - invokeArgsMap( - path: ((value: T) => Array | string) | Array | string - ): (( - collection: Array | { [id: any]: T } - ) => (args: Array) => Array) & - (( - collection: Array | { [id: any]: T }, - args: Array - ) => Array); - invokeArgsMap( - path: ((value: T) => Array | string) | Array | string, - collection: Array | { [id: any]: T } - ): (args: Array) => Array; - invokeArgsMap( - path: ((value: T) => Array | string) | Array | string, - collection: Array | { [id: any]: T }, - args: Array - ): Array; - keyBy( - iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [key: V]: T }; - keyBy( - iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } - ): { [key: V]: T }; - indexBy( - iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [key: V]: T }; - indexBy( - iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } - ): { [key: V]: T }; - map( - iteratee: MapIterator | OMapIterator - ): (collection: Array | { [id: any]: T }) => Array; - map( - iteratee: MapIterator | OMapIterator, - collection: Array | { [id: any]: T } - ): Array; - map(iteratee: (char: string) => any): (str: string) => string; - map(iteratee: (char: string) => any, str: string): string; - pluck( - iteratee: MapIterator | OMapIterator - ): (collection: Array | { [id: any]: T }) => Array; - pluck( - iteratee: MapIterator | OMapIterator, - collection: Array | { [id: any]: T } - ): Array; - pluck(iteratee: (char: string) => any): (str: string) => string; - pluck(iteratee: (char: string) => any, str: string): string; - orderBy( - iteratees: Array | OIteratee<*>> | string - ): (( - orders: Array<"asc" | "desc"> | string - ) => (collection: Array | { [id: any]: T }) => Array) & - (( - orders: Array<"asc" | "desc"> | string, - collection: Array | { [id: any]: T } - ) => Array); - orderBy( - iteratees: Array | OIteratee<*>> | string, - orders: Array<"asc" | "desc"> | string - ): (collection: Array | { [id: any]: T }) => Array; - orderBy( - iteratees: Array | OIteratee<*>> | string, - orders: Array<"asc" | "desc"> | string, - collection: Array | { [id: any]: T } - ): Array; - partition( - predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => [Array, Array]; - partition( - predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } - ): [Array, Array]; - reduce( - iteratee: (accumulator: U, value: T) => U - ): ((accumulator: U) => (collection: Array | { [id: any]: T }) => U) & - ((accumulator: U, collection: Array | { [id: any]: T }) => U); - reduce( - iteratee: (accumulator: U, value: T) => U, - accumulator: U - ): (collection: Array | { [id: any]: T }) => U; - reduce( - iteratee: (accumulator: U, value: T) => U, - accumulator: U, - collection: Array | { [id: any]: T } - ): U; - reduceRight( - iteratee: (value: T, accumulator: U) => U - ): ((accumulator: U) => (collection: Array | { [id: any]: T }) => U) & - ((accumulator: U, collection: Array | { [id: any]: T }) => U); - reduceRight( - iteratee: (value: T, accumulator: U) => U, - accumulator: U - ): (collection: Array | { [id: any]: T }) => U; - reduceRight( - iteratee: (value: T, accumulator: U) => U, - accumulator: U, - collection: Array | { [id: any]: T } - ): U; - reject( - predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => Array; - reject( - predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } - ): Array; - sample(collection: Array | { [id: any]: T }): T; - sampleSize( - n: number - ): (collection: Array | { [id: any]: T }) => Array; - sampleSize(n: number, collection: Array | { [id: any]: T }): Array; - shuffle(collection: Array | { [id: any]: T }): Array; - size(collection: Array | Object | string): number; - some( - predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => boolean; - some( - predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } - ): boolean; - any( - predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => boolean; - any( - predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } - ): boolean; - sortBy( - iteratees: Array | OIteratee> | Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; - sortBy( - iteratees: Array | OIteratee> | Iteratee | OIteratee, - collection: Array | { [id: any]: T } - ): Array; - - // Date - now(): number; - - // Function - after(fn: Function): (n: number) => Function; - after(fn: Function, n: number): Function; - ary(func: Function): Function; - nAry(n: number): (func: Function) => Function; - nAry(n: number, func: Function): Function; - before(fn: Function): (n: number) => Function; - before(fn: Function, n: number): Function; - bind(func: Function): (thisArg: any) => Function; - bind(func: Function, thisArg: any): Function; - bindKey(obj: Object): (key: string) => Function; - bindKey(obj: Object, key: string): Function; - curry: Curry; - curryN(arity: number): (func: Function) => Function; - curryN(arity: number, func: Function): Function; - curryRight(func: Function): Function; - curryRightN(arity: number): (func: Function) => Function; - curryRightN(arity: number, func: Function): Function; - debounce(wait: number): (func: F) => F; - debounce(wait: number, func: F): F; - defer(func: Function): number; - delay(wait: number): (func: Function) => number; - delay(wait: number, func: Function): number; - flip(func: Function): Function; - memoize(func: F): F; - negate(predicate: Function): Function; - complement(predicate: Function): Function; - once(func: Function): Function; - overArgs(func: Function): (transforms: Array) => Function; - overArgs(func: Function, transforms: Array): Function; - useWith(func: Function): (transforms: Array) => Function; - useWith(func: Function, transforms: Array): Function; - partial(func: Function): (partials: any[]) => Function; - partial(func: Function, partials: any[]): Function; - partialRight(func: Function): (partials: Array) => Function; - partialRight(func: Function, partials: Array): Function; - rearg(indexes: Array): (func: Function) => Function; - rearg(indexes: Array, func: Function): Function; - rest(func: Function): Function; - unapply(func: Function): Function; - restFrom(start: number): (func: Function) => Function; - restFrom(start: number, func: Function): Function; - spread(func: Function): Function; - apply(func: Function): Function; - spreadFrom(start: number): (func: Function) => Function; - spreadFrom(start: number, func: Function): Function; - throttle(wait: number): (func: Function) => Function; - throttle(wait: number, func: Function): Function; - unary(func: Function): Function; - wrap(wrapper: Function): (value: any) => Function; - wrap(wrapper: Function, value: any): Function; - - // Lang - castArray(value: *): any[]; - clone(value: T): T; - cloneDeep(value: T): T; - cloneDeepWith( - customizer: (value: T, key: number | string, object: T, stack: any) => U - ): (value: T) => U; - cloneDeepWith( - customizer: (value: T, key: number | string, object: T, stack: any) => U, - value: T - ): U; - cloneWith( - customizer: (value: T, key: number | string, object: T, stack: any) => U - ): (value: T) => U; - cloneWith( - customizer: (value: T, key: number | string, object: T, stack: any) => U, - value: T - ): U; - conformsTo( - predicates: T & { [key: string]: (x: any) => boolean } - ): (source: T) => boolean; - conformsTo( - predicates: T & { [key: string]: (x: any) => boolean }, - source: T - ): boolean; - where( - predicates: T & { [key: string]: (x: any) => boolean } - ): (source: T) => boolean; - where( - predicates: T & { [key: string]: (x: any) => boolean }, - source: T - ): boolean; - conforms( - predicates: T & { [key: string]: (x: any) => boolean } - ): (source: T) => boolean; - conforms( - predicates: T & { [key: string]: (x: any) => boolean }, - source: T - ): boolean; - eq(value: any): (other: any) => boolean; - eq(value: any, other: any): boolean; - identical(value: any): (other: any) => boolean; - identical(value: any, other: any): boolean; - gt(value: any): (other: any) => boolean; - gt(value: any, other: any): boolean; - gte(value: any): (other: any) => boolean; - gte(value: any, other: any): boolean; - isArguments(value: any): boolean; - isArray(value: any): boolean; - isArrayBuffer(value: any): boolean; - isArrayLike(value: any): boolean; - isArrayLikeObject(value: any): boolean; - isBoolean(value: any): boolean; - isBuffer(value: any): boolean; - isDate(value: any): boolean; - isElement(value: any): boolean; - isEmpty(value: any): boolean; - isEqual(value: any): (other: any) => boolean; - isEqual(value: any, other: any): boolean; - equals(value: any): (other: any) => boolean; - equals(value: any, other: any): boolean; - isEqualWith( - customizer: ( - objValue: any, - otherValue: any, - key: number | string, - object: T, - other: U, - stack: any - ) => boolean | void - ): ((value: T) => (other: U) => boolean) & - ((value: T, other: U) => boolean); - isEqualWith( - customizer: ( - objValue: any, - otherValue: any, - key: number | string, - object: T, - other: U, - stack: any - ) => boolean | void, - value: T - ): (other: U) => boolean; - isEqualWith( - customizer: ( - objValue: any, - otherValue: any, - key: number | string, - object: T, - other: U, - stack: any - ) => boolean | void, - value: T, - other: U - ): boolean; - isError(value: any): boolean; - isFinite(value: any): boolean; - isFunction(value: Function): true; - isFunction(value: number | string | void | null | Object): false; - isInteger(value: any): boolean; - isLength(value: any): boolean; - isMap(value: any): boolean; - isMatch(source: Object): (object: Object) => boolean; - isMatch(source: Object, object: Object): boolean; - whereEq(source: Object): (object: Object) => boolean; - whereEq(source: Object, object: Object): boolean; - isMatchWith( - customizer: ( - objValue: any, - srcValue: any, - key: number | string, - object: T, - source: U - ) => boolean | void - ): ((source: U) => (object: T) => boolean) & - ((source: U, object: T) => boolean); - isMatchWith( - customizer: ( - objValue: any, - srcValue: any, - key: number | string, - object: T, - source: U - ) => boolean | void, - source: U - ): (object: T) => boolean; - isMatchWith( - customizer: ( - objValue: any, - srcValue: any, - key: number | string, - object: T, - source: U - ) => boolean | void, - source: U, - object: T - ): boolean; - isNaN(value: any): boolean; - isNative(value: any): boolean; - isNil(value: any): boolean; - isNull(value: any): boolean; - isNumber(value: any): boolean; - isObject(value: any): boolean; - isObjectLike(value: any): boolean; - isPlainObject(value: any): boolean; - isRegExp(value: any): boolean; - isSafeInteger(value: any): boolean; - isSet(value: any): boolean; - isString(value: string): true; - isString( - value: number | boolean | Function | void | null | Object | Array - ): false; - isSymbol(value: any): boolean; - isTypedArray(value: any): boolean; - isUndefined(value: any): boolean; - isWeakMap(value: any): boolean; - isWeakSet(value: any): boolean; - lt(value: any): (other: any) => boolean; - lt(value: any, other: any): boolean; - lte(value: any): (other: any) => boolean; - lte(value: any, other: any): boolean; - toArray(value: any): Array; - toFinite(value: any): number; - toInteger(value: any): number; - toLength(value: any): number; - toNumber(value: any): number; - toPlainObject(value: any): Object; - toSafeInteger(value: any): number; - toString(value: any): string; - - // Math - add(augend: number): (addend: number) => number; - add(augend: number, addend: number): number; - ceil(number: number): number; - divide(dividend: number): (divisor: number) => number; - divide(dividend: number, divisor: number): number; - floor(number: number): number; - max(array: Array): T; - maxBy(iteratee: Iteratee): (array: Array) => T; - maxBy(iteratee: Iteratee, array: Array): T; - mean(array: Array<*>): number; - meanBy(iteratee: Iteratee): (array: Array) => number; - meanBy(iteratee: Iteratee, array: Array): number; - min(array: Array): T; - minBy(iteratee: Iteratee): (array: Array) => T; - minBy(iteratee: Iteratee, array: Array): T; - multiply(multiplier: number): (multiplicand: number) => number; - multiply(multiplier: number, multiplicand: number): number; - round(number: number): number; - subtract(minuend: number): (subtrahend: number) => number; - subtract(minuend: number, subtrahend: number): number; - sum(array: Array<*>): number; - sumBy(iteratee: Iteratee): (array: Array) => number; - sumBy(iteratee: Iteratee, array: Array): number; - - // number - clamp( - lower: number - ): ((upper: number) => (number: number) => number) & - ((upper: number, number: number) => number); - clamp(lower: number, upper: number): (number: number) => number; - clamp(lower: number, upper: number, number: number): number; - inRange( - start: number - ): ((end: number) => (number: number) => boolean) & - ((end: number, number: number) => boolean); - inRange(start: number, end: number): (number: number) => boolean; - inRange(start: number, end: number, number: number): boolean; - random(lower: number): (upper: number) => number; - random(lower: number, upper: number): number; - - // Object - assign(object: Object): (source: Object) => Object; - assign(object: Object, source: Object): Object; - assignAll(objects: Array): Object; - assignInAll(objects: Array): Object; - extendAll(objects: Array): Object; - assignIn(a: A): (b: B) => A & B; - assignIn(a: A, b: B): A & B; - assignInWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); - assignInWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T - ): (s1: A) => Object; - assignInWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T, - s1: A - ): Object; - assignWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); - assignWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T - ): (s1: A) => Object; - assignWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T, - s1: A - ): Object; - assignInAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void - ): (objects: Array) => Object; - assignInAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void, - objects: Array - ): Object; - extendAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void - ): (objects: Array) => Object; - extendAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void, - objects: Array - ): Object; - assignAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void - ): (objects: Array) => Object; - assignAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void, - objects: Array - ): Object; - at(paths: Array): (object: Object) => Array; - at(paths: Array, object: Object): Array; - props(paths: Array): (object: Object) => Array; - props(paths: Array, object: Object): Array; - paths(paths: Array): (object: Object) => Array; - paths(paths: Array, object: Object): Array; - create(prototype: T): $Supertype; - defaults(source: Object): (object: Object) => Object; - defaults(source: Object, object: Object): Object; - defaultsAll(objects: Array): Object; - defaultsDeep(source: Object): (object: Object) => Object; - defaultsDeep(source: Object, object: Object): Object; - defaultsDeepAll(objects: Array): Object; - // alias for _.toPairs - entries(object: Object): Array<[string, any]>; - // alias for _.toPairsIn - entriesIn(object: Object): Array<[string, any]>; - // alias for _.assignIn - extend(a: A): (b: B) => A & B; - extend(a: A, b: B): A & B; - // alias for _.assignInWith - extendWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); - extendWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T - ): (s1: A) => Object; - extendWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T, - s1: A - ): Object; - findKey( - predicate: OPredicate - ): (object: T) => string | void; - findKey( - predicate: OPredicate, - object: T - ): string | void; - findLastKey( - predicate: OPredicate - ): (object: T) => string | void; - findLastKey( - predicate: OPredicate, - object: T - ): string | void; - forIn(iteratee: OIteratee<*>): (object: Object) => Object; - forIn(iteratee: OIteratee<*>, object: Object): Object; - forInRight(iteratee: OIteratee<*>): (object: Object) => Object; - forInRight(iteratee: OIteratee<*>, object: Object): Object; - forOwn(iteratee: OIteratee<*>): (object: Object) => Object; - forOwn(iteratee: OIteratee<*>, object: Object): Object; - forOwnRight(iteratee: OIteratee<*>): (object: Object) => Object; - forOwnRight(iteratee: OIteratee<*>, object: Object): Object; - functions(object: Object): Array; - functionsIn(object: Object): Array; - get(path: Array | string): (object: Object | Array) => any; - get(path: Array | string, object: Object | Array): any; - prop(path: Array | string): (object: Object | Array) => any; - prop(path: Array | string, object: Object | Array): any; - path(path: Array | string): (object: Object | Array) => any; - path(path: Array | string, object: Object | Array): any; - getOr( - defaultValue: any - ): (( - path: Array | string - ) => (object: Object | Array) => any) & - ((path: Array | string, object: Object | Array) => any); - getOr( - defaultValue: any, - path: Array | string - ): (object: Object | Array) => any; - getOr( - defaultValue: any, - path: Array | string, - object: Object | Array - ): any; - propOr( - defaultValue: any - ): (( - path: Array | string - ) => (object: Object | Array) => any) & - ((path: Array | string, object: Object | Array) => any); - propOr( - defaultValue: any, - path: Array | string - ): (object: Object | Array) => any; - propOr( - defaultValue: any, - path: Array | string, - object: Object | Array - ): any; - pathOr( - defaultValue: any - ): (( - path: Array | string - ) => (object: Object | Array) => any) & - ((path: Array | string, object: Object | Array) => any); - pathOr( - defaultValue: any, - path: Array | string - ): (object: Object | Array) => any; - pathOr( - defaultValue: any, - path: Array | string, - object: Object | Array - ): any; - has(path: Array | string): (object: Object) => boolean; - has(path: Array | string, object: Object): boolean; - hasIn(path: Array | string): (object: Object) => boolean; - hasIn(path: Array | string, object: Object): boolean; - invert(object: Object): Object; - invertObj(object: Object): Object; - invertBy(iteratee: Function): (object: Object) => Object; - invertBy(iteratee: Function, object: Object): Object; - invoke(path: Array | string): (object: Object) => any; - invoke(path: Array | string, object: Object): any; - invokeArgs( - path: Array | string - ): ((object: Object) => (args: Array) => any) & - ((object: Object, args: Array) => any); - invokeArgs( - path: Array | string, - object: Object - ): (args: Array) => any; - invokeArgs( - path: Array | string, - object: Object, - args: Array - ): any; - keys(object: { [key: K]: any }): Array; - keys(object: Object): Array; - keysIn(object: Object): Array; - mapKeys(iteratee: OIteratee<*>): (object: Object) => Object; - mapKeys(iteratee: OIteratee<*>, object: Object): Object; - mapValues(iteratee: OIteratee<*>): (object: Object) => Object; - mapValues(iteratee: OIteratee<*>, object: Object): Object; - merge(object: Object): (source: Object) => Object; - merge(object: Object, source: Object): Object; - mergeAll(objects: Array): Object; - mergeWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); - mergeWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void, - object: T - ): (s1: A) => Object; - mergeWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void, - object: T, - s1: A - ): Object; - mergeAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void - ): (objects: Array) => Object; - mergeAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void, - objects: Array - ): Object; - omit(props: Array): (object: Object) => Object; - omit(props: Array, object: Object): Object; - omitAll(props: Array): (object: Object) => Object; - omitAll(props: Array, object: Object): Object; - omitBy( - predicate: OPredicate - ): (object: T) => Object; - omitBy(predicate: OPredicate, object: T): Object; - pick(props: Array): (object: Object) => Object; - pick(props: Array, object: Object): Object; - pickAll(props: Array): (object: Object) => Object; - pickAll(props: Array, object: Object): Object; - pickBy( - predicate: OPredicate - ): (object: T) => Object; - pickBy(predicate: OPredicate, object: T): Object; - result(path: Array | string): (object: Object) => any; - result(path: Array | string, object: Object): any; - set( - path: Array | string - ): ((value: any) => (object: Object) => Object) & - ((value: any, object: Object) => Object); - set(path: Array | string, value: any): (object: Object) => Object; - set(path: Array | string, value: any, object: Object): Object; - assoc( - path: Array | string - ): ((value: any) => (object: Object) => Object) & - ((value: any, object: Object) => Object); - assoc(path: Array | string, value: any): (object: Object) => Object; - assoc(path: Array | string, value: any, object: Object): Object; - assocPath( - path: Array | string - ): ((value: any) => (object: Object) => Object) & - ((value: any, object: Object) => Object); - assocPath( - path: Array | string, - value: any - ): (object: Object) => Object; - assocPath(path: Array | string, value: any, object: Object): Object; - setWith( - customizer: (nsValue: any, key: string, nsObject: T) => any - ): (( - path: Array | string - ) => ((value: any) => (object: T) => Object) & - ((value: any, object: T) => Object)) & - ((path: Array | string, value: any) => (object: T) => Object) & - ((path: Array | string, value: any, object: T) => Object); - setWith( - customizer: (nsValue: any, key: string, nsObject: T) => any, - path: Array | string - ): ((value: any) => (object: T) => Object) & - ((value: any, object: T) => Object); - setWith( - customizer: (nsValue: any, key: string, nsObject: T) => any, - path: Array | string, - value: any - ): (object: T) => Object; - setWith( - customizer: (nsValue: any, key: string, nsObject: T) => any, - path: Array | string, - value: any, - object: T - ): Object; - toPairs(object: Object | Array<*>): Array<[string, any]>; - toPairsIn(object: Object): Array<[string, any]>; - transform( - iteratee: OIteratee<*> - ): ((accumulator: any) => (collection: Object | Array) => any) & - ((accumulator: any, collection: Object | Array) => any); - transform( - iteratee: OIteratee<*>, - accumulator: any - ): (collection: Object | Array) => any; - transform( - iteratee: OIteratee<*>, - accumulator: any, - collection: Object | Array - ): any; - unset(path: Array | string): (object: Object) => boolean; - unset(path: Array | string, object: Object): boolean; - dissoc(path: Array | string): (object: Object) => boolean; - dissoc(path: Array | string, object: Object): boolean; - dissocPath(path: Array | string): (object: Object) => boolean; - dissocPath(path: Array | string, object: Object): boolean; - update( - path: string[] | string - ): ((updater: Function) => (object: Object) => Object) & - ((updater: Function, object: Object) => Object); - update( - path: string[] | string, - updater: Function - ): (object: Object) => Object; - update(path: string[] | string, updater: Function, object: Object): Object; - updateWith( - customizer: Function - ): (( - path: string[] | string - ) => ((updater: Function) => (object: Object) => Object) & - ((updater: Function, object: Object) => Object)) & - (( - path: string[] | string, - updater: Function - ) => (object: Object) => Object) & - ((path: string[] | string, updater: Function, object: Object) => Object); - updateWith( - customizer: Function, - path: string[] | string - ): ((updater: Function) => (object: Object) => Object) & - ((updater: Function, object: Object) => Object); - updateWith( - customizer: Function, - path: string[] | string, - updater: Function - ): (object: Object) => Object; - updateWith( - customizer: Function, - path: string[] | string, - updater: Function, - object: Object - ): Object; - values(object: Object): Array; - valuesIn(object: Object): Array; - - tap(interceptor: (value: T) => any): (value: T) => T; - tap(interceptor: (value: T) => any, value: T): T; - thru(interceptor: (value: T1) => T2): (value: T1) => T2; - thru(interceptor: (value: T1) => T2, value: T1): T2; - - // String - camelCase(string: string): string; - capitalize(string: string): string; - deburr(string: string): string; - endsWith(target: string): (string: string) => boolean; - endsWith(target: string, string: string): boolean; - escape(string: string): string; - escapeRegExp(string: string): string; - kebabCase(string: string): string; - lowerCase(string: string): string; - lowerFirst(string: string): string; - pad(length: number): (string: string) => string; - pad(length: number, string: string): string; - padChars( - chars: string - ): ((length: number) => (string: string) => string) & - ((length: number, string: string) => string); - padChars(chars: string, length: number): (string: string) => string; - padChars(chars: string, length: number, string: string): string; - padEnd(length: number): (string: string) => string; - padEnd(length: number, string: string): string; - padCharsEnd( - chars: string - ): ((length: number) => (string: string) => string) & - ((length: number, string: string) => string); - padCharsEnd(chars: string, length: number): (string: string) => string; - padCharsEnd(chars: string, length: number, string: string): string; - padStart(length: number): (string: string) => string; - padStart(length: number, string: string): string; - padCharsStart( - chars: string - ): ((length: number) => (string: string) => string) & - ((length: number, string: string) => string); - padCharsStart(chars: string, length: number): (string: string) => string; - padCharsStart(chars: string, length: number, string: string): string; - parseInt(radix: number): (string: string) => number; - parseInt(radix: number, string: string): number; - repeat(n: number): (string: string) => string; - repeat(n: number, string: string): string; - replace( - pattern: RegExp | string - ): (( - replacement: ((string: string) => string) | string - ) => (string: string) => string) & - (( - replacement: ((string: string) => string) | string, - string: string - ) => string); - replace( - pattern: RegExp | string, - replacement: ((string: string) => string) | string - ): (string: string) => string; - replace( - pattern: RegExp | string, - replacement: ((string: string) => string) | string, - string: string - ): string; - snakeCase(string: string): string; - split(separator: RegExp | string): (string: string) => Array; - split(separator: RegExp | string, string: string): Array; - startCase(string: string): string; - startsWith(target: string): (string: string) => boolean; - startsWith(target: string, string: string): boolean; - template(string: string): Function; - toLower(string: string): string; - toUpper(string: string): string; - trim(string: string): string; - trimChars(chars: string): (string: string) => string; - trimChars(chars: string, string: string): string; - trimEnd(string: string): string; - trimCharsEnd(chars: string): (string: string) => string; - trimCharsEnd(chars: string, string: string): string; - trimStart(string: string): string; - trimCharsStart(chars: string): (string: string) => string; - trimCharsStart(chars: string, string: string): string; - truncate(options: TruncateOptions): (string: string) => string; - truncate(options: TruncateOptions, string: string): string; - unescape(string: string): string; - upperCase(string: string): string; - upperFirst(string: string): string; - words(string: string): Array; - - // Util - attempt(func: Function): any; - bindAll(methodNames: Array): (object: Object) => Object; - bindAll(methodNames: Array, object: Object): Object; - cond(pairs: NestedArray): Function; - constant(value: T): () => T; - always(value: T): () => T; - defaultTo( - defaultValue: T2 - ): (value: T1) => T1; - defaultTo( - defaultValue: T2, - value: T1 - ): T1; - // NaN is a number instead of its own type, otherwise it would behave like null/void - defaultTo(defaultValue: T2): (value: T1) => T1 | T2; - defaultTo(defaultValue: T2, value: T1): T1 | T2; - defaultTo(defaultValue: T2): (value: T1) => T2; - defaultTo(defaultValue: T2, value: T1): T2; - flow: ($ComposeReverse & (funcs: Array) => Function); - pipe: ($ComposeReverse & (funcs: Array) => Function); - flowRight: ($Compose & (funcs: Array) => Function); - compose: ($Compose & (funcs: Array) => Function); - identity(value: T): T; - iteratee(func: any): Function; - matches(source: Object): (object: Object) => boolean; - matches(source: Object, object: Object): boolean; - matchesProperty(path: Array | string): (srcValue: any) => Function; - matchesProperty(path: Array | string, srcValue: any): Function; - propEq(path: Array | string): (srcValue: any) => Function; - propEq(path: Array | string, srcValue: any): Function; - pathEq(path: Array | string): (srcValue: any) => Function; - pathEq(path: Array | string, srcValue: any): Function; - method(path: Array | string): Function; - methodOf(object: Object): Function; - mixin( - object: T - ): ((source: Object) => (options: { chain: boolean }) => T) & - ((source: Object, options: { chain: boolean }) => T); - mixin( - object: T, - source: Object - ): (options: { chain: boolean }) => T; - mixin( - object: T, - source: Object, - options: { chain: boolean } - ): T; - noConflict(): Lodash; - noop(...args: Array): void; - nthArg(n: number): Function; - over(iteratees: Array): Function; - juxt(iteratees: Array): Function; - overEvery(predicates: Array): Function; - allPass(predicates: Array): Function; - overSome(predicates: Array): Function; - anyPass(predicates: Array): Function; - property( - path: Array | string - ): (object: Object | Array) => any; - property(path: Array | string, object: Object | Array): any; - propertyOf(object: Object): (path: Array | string) => Function; - propertyOf(object: Object, path: Array | string): Function; - range(start: number): (end: number) => Array; - range(start: number, end: number): Array; - rangeStep( - step: number - ): ((start: number) => (end: number) => Array) & - ((start: number, end: number) => Array); - rangeStep(step: number, start: number): (end: number) => Array; - rangeStep(step: number, start: number, end: number): Array; - rangeRight(start: number): (end: number) => Array; - rangeRight(start: number, end: number): Array; - rangeStepRight( - step: number - ): ((start: number) => (end: number) => Array) & - ((start: number, end: number) => Array); - rangeStepRight(step: number, start: number): (end: number) => Array; - rangeStepRight(step: number, start: number, end: number): Array; - runInContext(context: Object): Function; - - stubArray(): Array<*>; - stubFalse(): false; - F(): false; - stubObject(): {}; - stubString(): ""; - stubTrue(): true; - T(): true; - times(iteratee: (i: number) => T): (n: number) => Array; - times(iteratee: (i: number) => T, n: number): Array; - toPath(value: any): Array; - uniqueId(prefix: string): string; - - __: any; - placeholder: any; - - convert(options: { - cap?: boolean, - curry?: boolean, - fixed?: boolean, - immutable?: boolean, - rearg?: boolean - }): void; - - // Properties - VERSION: string; - templateSettings: TemplateSettings; - } - - declare module.exports: Lodash; -} - -declare module "lodash/chunk" { - declare module.exports: $PropertyType<$Exports<"lodash">, "chunk">; -} - -declare module "lodash/compact" { - declare module.exports: $PropertyType<$Exports<"lodash">, "compact">; -} - -declare module "lodash/concat" { - declare module.exports: $PropertyType<$Exports<"lodash">, "concat">; -} - -declare module "lodash/difference" { - declare module.exports: $PropertyType<$Exports<"lodash">, "difference">; -} - -declare module "lodash/differenceBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "differenceBy">; -} - -declare module "lodash/differenceWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "differenceWith">; -} - -declare module "lodash/drop" { - declare module.exports: $PropertyType<$Exports<"lodash">, "drop">; -} - -declare module "lodash/dropRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "dropRight">; -} - -declare module "lodash/dropRightWhile" { - declare module.exports: $PropertyType<$Exports<"lodash">, "dropRightWhile">; -} - -declare module "lodash/dropWhile" { - declare module.exports: $PropertyType<$Exports<"lodash">, "dropWhile">; -} - -declare module "lodash/fill" { - declare module.exports: $PropertyType<$Exports<"lodash">, "fill">; -} - -declare module "lodash/findIndex" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findIndex">; -} - -declare module "lodash/findLastIndex" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findLastIndex">; -} - -declare module "lodash/first" { - declare module.exports: $PropertyType<$Exports<"lodash">, "first">; -} - -declare module "lodash/flatten" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flatten">; -} - -declare module "lodash/flattenDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flattenDeep">; -} - -declare module "lodash/flattenDepth" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flattenDepth">; -} - -declare module "lodash/fromPairs" { - declare module.exports: $PropertyType<$Exports<"lodash">, "fromPairs">; -} - -declare module "lodash/head" { - declare module.exports: $PropertyType<$Exports<"lodash">, "head">; -} - -declare module "lodash/indexOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "indexOf">; -} - -declare module "lodash/initial" { - declare module.exports: $PropertyType<$Exports<"lodash">, "initial">; -} - -declare module "lodash/intersection" { - declare module.exports: $PropertyType<$Exports<"lodash">, "intersection">; -} - -declare module "lodash/intersectionBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "intersectionBy">; -} - -declare module "lodash/intersectionWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "intersectionWith">; -} - -declare module "lodash/join" { - declare module.exports: $PropertyType<$Exports<"lodash">, "join">; -} - -declare module "lodash/last" { - declare module.exports: $PropertyType<$Exports<"lodash">, "last">; -} - -declare module "lodash/lastIndexOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lastIndexOf">; -} - -declare module "lodash/nth" { - declare module.exports: $PropertyType<$Exports<"lodash">, "nth">; -} - -declare module "lodash/pull" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pull">; -} - -declare module "lodash/pullAll" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pullAll">; -} - -declare module "lodash/pullAllBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pullAllBy">; -} - -declare module "lodash/pullAllWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pullAllWith">; -} - -declare module "lodash/pullAt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pullAt">; -} - -declare module "lodash/remove" { - declare module.exports: $PropertyType<$Exports<"lodash">, "remove">; -} - -declare module "lodash/reverse" { - declare module.exports: $PropertyType<$Exports<"lodash">, "reverse">; -} - -declare module "lodash/slice" { - declare module.exports: $PropertyType<$Exports<"lodash">, "slice">; -} - -declare module "lodash/sortedIndex" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedIndex">; -} - -declare module "lodash/sortedIndexBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedIndexBy">; -} - -declare module "lodash/sortedIndexOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedIndexOf">; -} - -declare module "lodash/sortedLastIndex" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedLastIndex">; -} - -declare module "lodash/sortedLastIndexBy" { - declare module.exports: $PropertyType< - $Exports<"lodash">, - "sortedLastIndexBy" - >; -} - -declare module "lodash/sortedLastIndexOf" { - declare module.exports: $PropertyType< - $Exports<"lodash">, - "sortedLastIndexOf" - >; -} - -declare module "lodash/sortedUniq" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedUniq">; -} - -declare module "lodash/sortedUniqBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedUniqBy">; -} - -declare module "lodash/tail" { - declare module.exports: $PropertyType<$Exports<"lodash">, "tail">; -} - -declare module "lodash/take" { - declare module.exports: $PropertyType<$Exports<"lodash">, "take">; -} - -declare module "lodash/takeRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "takeRight">; -} - -declare module "lodash/takeRightWhile" { - declare module.exports: $PropertyType<$Exports<"lodash">, "takeRightWhile">; -} - -declare module "lodash/takeWhile" { - declare module.exports: $PropertyType<$Exports<"lodash">, "takeWhile">; -} - -declare module "lodash/union" { - declare module.exports: $PropertyType<$Exports<"lodash">, "union">; -} - -declare module "lodash/unionBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unionBy">; -} - -declare module "lodash/unionWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unionWith">; -} - -declare module "lodash/uniq" { - declare module.exports: $PropertyType<$Exports<"lodash">, "uniq">; -} - -declare module "lodash/uniqBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "uniqBy">; -} - -declare module "lodash/uniqWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "uniqWith">; -} - -declare module "lodash/unzip" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unzip">; -} - -declare module "lodash/unzipWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unzipWith">; -} - -declare module "lodash/without" { - declare module.exports: $PropertyType<$Exports<"lodash">, "without">; -} - -declare module "lodash/xor" { - declare module.exports: $PropertyType<$Exports<"lodash">, "xor">; -} - -declare module "lodash/xorBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "xorBy">; -} - -declare module "lodash/xorWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "xorWith">; -} - -declare module "lodash/zip" { - declare module.exports: $PropertyType<$Exports<"lodash">, "zip">; -} - -declare module "lodash/zipObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "zipObject">; -} - -declare module "lodash/zipObjectDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "zipObjectDeep">; -} - -declare module "lodash/zipWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "zipWith">; -} - -declare module "lodash/countBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "countBy">; -} - -declare module "lodash/each" { - declare module.exports: $PropertyType<$Exports<"lodash">, "each">; -} - -declare module "lodash/eachRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "eachRight">; -} - -declare module "lodash/every" { - declare module.exports: $PropertyType<$Exports<"lodash">, "every">; -} - -declare module "lodash/filter" { - declare module.exports: $PropertyType<$Exports<"lodash">, "filter">; -} - -declare module "lodash/find" { - declare module.exports: $PropertyType<$Exports<"lodash">, "find">; -} - -declare module "lodash/findLast" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findLast">; -} - -declare module "lodash/flatMap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flatMap">; -} - -declare module "lodash/flatMapDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flatMapDeep">; -} - -declare module "lodash/flatMapDepth" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flatMapDepth">; -} - -declare module "lodash/forEach" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forEach">; -} - -declare module "lodash/forEachRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forEachRight">; -} - -declare module "lodash/groupBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "groupBy">; -} - -declare module "lodash/includes" { - declare module.exports: $PropertyType<$Exports<"lodash">, "includes">; -} - -declare module "lodash/invokeMap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "invokeMap">; -} - -declare module "lodash/keyBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "keyBy">; -} - -declare module "lodash/map" { - declare module.exports: $PropertyType<$Exports<"lodash">, "map">; -} - -declare module "lodash/orderBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "orderBy">; -} - -declare module "lodash/partition" { - declare module.exports: $PropertyType<$Exports<"lodash">, "partition">; -} - -declare module "lodash/reduce" { - declare module.exports: $PropertyType<$Exports<"lodash">, "reduce">; -} - -declare module "lodash/reduceRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "reduceRight">; -} - -declare module "lodash/reject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "reject">; -} - -declare module "lodash/sample" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sample">; -} - -declare module "lodash/sampleSize" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sampleSize">; -} - -declare module "lodash/shuffle" { - declare module.exports: $PropertyType<$Exports<"lodash">, "shuffle">; -} - -declare module "lodash/size" { - declare module.exports: $PropertyType<$Exports<"lodash">, "size">; -} - -declare module "lodash/some" { - declare module.exports: $PropertyType<$Exports<"lodash">, "some">; -} - -declare module "lodash/sortBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortBy">; -} - -declare module "lodash/now" { - declare module.exports: $PropertyType<$Exports<"lodash">, "now">; -} - -declare module "lodash/after" { - declare module.exports: $PropertyType<$Exports<"lodash">, "after">; -} - -declare module "lodash/ary" { - declare module.exports: $PropertyType<$Exports<"lodash">, "ary">; -} - -declare module "lodash/before" { - declare module.exports: $PropertyType<$Exports<"lodash">, "before">; -} - -declare module "lodash/bind" { - declare module.exports: $PropertyType<$Exports<"lodash">, "bind">; -} - -declare module "lodash/bindKey" { - declare module.exports: $PropertyType<$Exports<"lodash">, "bindKey">; -} - -declare module "lodash/curry" { - declare module.exports: $PropertyType<$Exports<"lodash">, "curry">; -} - -declare module "lodash/curryRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "curryRight">; -} - -declare module "lodash/debounce" { - declare module.exports: $PropertyType<$Exports<"lodash">, "debounce">; -} - -declare module "lodash/defer" { - declare module.exports: $PropertyType<$Exports<"lodash">, "defer">; -} - -declare module "lodash/delay" { - declare module.exports: $PropertyType<$Exports<"lodash">, "delay">; -} - -declare module "lodash/flip" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flip">; -} - -declare module "lodash/memoize" { - declare module.exports: $PropertyType<$Exports<"lodash">, "memoize">; -} - -declare module "lodash/negate" { - declare module.exports: $PropertyType<$Exports<"lodash">, "negate">; -} - -declare module "lodash/once" { - declare module.exports: $PropertyType<$Exports<"lodash">, "once">; -} - -declare module "lodash/overArgs" { - declare module.exports: $PropertyType<$Exports<"lodash">, "overArgs">; -} - -declare module "lodash/partial" { - declare module.exports: $PropertyType<$Exports<"lodash">, "partial">; -} - -declare module "lodash/partialRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "partialRight">; -} - -declare module "lodash/rearg" { - declare module.exports: $PropertyType<$Exports<"lodash">, "rearg">; -} - -declare module "lodash/rest" { - declare module.exports: $PropertyType<$Exports<"lodash">, "rest">; -} - -declare module "lodash/spread" { - declare module.exports: $PropertyType<$Exports<"lodash">, "spread">; -} - -declare module "lodash/throttle" { - declare module.exports: $PropertyType<$Exports<"lodash">, "throttle">; -} - -declare module "lodash/unary" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unary">; -} - -declare module "lodash/wrap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "wrap">; -} - -declare module "lodash/castArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "castArray">; -} - -declare module "lodash/clone" { - declare module.exports: $PropertyType<$Exports<"lodash">, "clone">; -} - -declare module "lodash/cloneDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "cloneDeep">; -} - -declare module "lodash/cloneDeepWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "cloneDeepWith">; -} - -declare module "lodash/cloneWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "cloneWith">; -} - -declare module "lodash/conformsTo" { - declare module.exports: $PropertyType<$Exports<"lodash">, "conformsTo">; -} - -declare module "lodash/eq" { - declare module.exports: $PropertyType<$Exports<"lodash">, "eq">; -} - -declare module "lodash/gt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "gt">; -} - -declare module "lodash/gte" { - declare module.exports: $PropertyType<$Exports<"lodash">, "gte">; -} - -declare module "lodash/isArguments" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isArguments">; -} - -declare module "lodash/isArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isArray">; -} - -declare module "lodash/isArrayBuffer" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isArrayBuffer">; -} - -declare module "lodash/isArrayLike" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isArrayLike">; -} - -declare module "lodash/isArrayLikeObject" { - declare module.exports: $PropertyType< - $Exports<"lodash">, - "isArrayLikeObject" - >; -} - -declare module "lodash/isBoolean" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isBoolean">; -} - -declare module "lodash/isBuffer" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isBuffer">; -} - -declare module "lodash/isDate" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isDate">; -} - -declare module "lodash/isElement" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isElement">; -} - -declare module "lodash/isEmpty" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isEmpty">; -} - -declare module "lodash/isEqual" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isEqual">; -} - -declare module "lodash/isEqualWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isEqualWith">; -} - -declare module "lodash/isError" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isError">; -} - -declare module "lodash/isFinite" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isFinite">; -} - -declare module "lodash/isFunction" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isFunction">; -} - -declare module "lodash/isInteger" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isInteger">; -} - -declare module "lodash/isLength" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isLength">; -} - -declare module "lodash/isMap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isMap">; -} - -declare module "lodash/isMatch" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isMatch">; -} - -declare module "lodash/isMatchWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isMatchWith">; -} - -declare module "lodash/isNaN" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNaN">; -} - -declare module "lodash/isNative" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNative">; -} - -declare module "lodash/isNil" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNil">; -} - -declare module "lodash/isNull" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNull">; -} - -declare module "lodash/isNumber" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNumber">; -} - -declare module "lodash/isObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isObject">; -} - -declare module "lodash/isObjectLike" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isObjectLike">; -} - -declare module "lodash/isPlainObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isPlainObject">; -} - -declare module "lodash/isRegExp" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isRegExp">; -} - -declare module "lodash/isSafeInteger" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isSafeInteger">; -} - -declare module "lodash/isSet" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isSet">; -} - -declare module "lodash/isString" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isString">; -} - -declare module "lodash/isSymbol" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isSymbol">; -} - -declare module "lodash/isTypedArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isTypedArray">; -} - -declare module "lodash/isUndefined" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isUndefined">; -} - -declare module "lodash/isWeakMap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isWeakMap">; -} - -declare module "lodash/isWeakSet" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isWeakSet">; -} - -declare module "lodash/lt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lt">; -} - -declare module "lodash/lte" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lte">; -} - -declare module "lodash/toArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toArray">; -} - -declare module "lodash/toFinite" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toFinite">; -} - -declare module "lodash/toInteger" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toInteger">; -} - -declare module "lodash/toLength" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toLength">; -} - -declare module "lodash/toNumber" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toNumber">; -} - -declare module "lodash/toPlainObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toPlainObject">; -} - -declare module "lodash/toSafeInteger" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toSafeInteger">; -} - -declare module "lodash/toString" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toString">; -} - -declare module "lodash/add" { - declare module.exports: $PropertyType<$Exports<"lodash">, "add">; -} - -declare module "lodash/ceil" { - declare module.exports: $PropertyType<$Exports<"lodash">, "ceil">; -} - -declare module "lodash/divide" { - declare module.exports: $PropertyType<$Exports<"lodash">, "divide">; -} - -declare module "lodash/floor" { - declare module.exports: $PropertyType<$Exports<"lodash">, "floor">; -} - -declare module "lodash/max" { - declare module.exports: $PropertyType<$Exports<"lodash">, "max">; -} - -declare module "lodash/maxBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "maxBy">; -} - -declare module "lodash/mean" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mean">; -} - -declare module "lodash/meanBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "meanBy">; -} - -declare module "lodash/min" { - declare module.exports: $PropertyType<$Exports<"lodash">, "min">; -} - -declare module "lodash/minBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "minBy">; -} - -declare module "lodash/multiply" { - declare module.exports: $PropertyType<$Exports<"lodash">, "multiply">; -} - -declare module "lodash/round" { - declare module.exports: $PropertyType<$Exports<"lodash">, "round">; -} - -declare module "lodash/subtract" { - declare module.exports: $PropertyType<$Exports<"lodash">, "subtract">; -} - -declare module "lodash/sum" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sum">; -} - -declare module "lodash/sumBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sumBy">; -} - -declare module "lodash/clamp" { - declare module.exports: $PropertyType<$Exports<"lodash">, "clamp">; -} - -declare module "lodash/inRange" { - declare module.exports: $PropertyType<$Exports<"lodash">, "inRange">; -} - -declare module "lodash/random" { - declare module.exports: $PropertyType<$Exports<"lodash">, "random">; -} - -declare module "lodash/assign" { - declare module.exports: $PropertyType<$Exports<"lodash">, "assign">; -} - -declare module "lodash/assignIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "assignIn">; -} - -declare module "lodash/assignInWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "assignInWith">; -} - -declare module "lodash/assignWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "assignWith">; -} - -declare module "lodash/at" { - declare module.exports: $PropertyType<$Exports<"lodash">, "at">; -} - -declare module "lodash/create" { - declare module.exports: $PropertyType<$Exports<"lodash">, "create">; -} - -declare module "lodash/defaults" { - declare module.exports: $PropertyType<$Exports<"lodash">, "defaults">; -} - -declare module "lodash/defaultsDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "defaultsDeep">; -} - -declare module "lodash/entries" { - declare module.exports: $PropertyType<$Exports<"lodash">, "entries">; -} - -declare module "lodash/entriesIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "entriesIn">; -} - -declare module "lodash/extend" { - declare module.exports: $PropertyType<$Exports<"lodash">, "extend">; -} - -declare module "lodash/extendWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "extendWith">; -} - -declare module "lodash/findKey" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findKey">; -} - -declare module "lodash/findLastKey" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findLastKey">; -} - -declare module "lodash/forIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forIn">; -} - -declare module "lodash/forInRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forInRight">; -} - -declare module "lodash/forOwn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forOwn">; -} - -declare module "lodash/forOwnRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forOwnRight">; -} - -declare module "lodash/functions" { - declare module.exports: $PropertyType<$Exports<"lodash">, "functions">; -} - -declare module "lodash/functionsIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "functionsIn">; -} - -declare module "lodash/get" { - declare module.exports: $PropertyType<$Exports<"lodash">, "get">; -} - -declare module "lodash/has" { - declare module.exports: $PropertyType<$Exports<"lodash">, "has">; -} - -declare module "lodash/hasIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "hasIn">; -} - -declare module "lodash/invert" { - declare module.exports: $PropertyType<$Exports<"lodash">, "invert">; -} - -declare module "lodash/invertBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "invertBy">; -} - -declare module "lodash/invoke" { - declare module.exports: $PropertyType<$Exports<"lodash">, "invoke">; -} - -declare module "lodash/keys" { - declare module.exports: $PropertyType<$Exports<"lodash">, "keys">; -} - -declare module "lodash/keysIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "keysIn">; -} - -declare module "lodash/mapKeys" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mapKeys">; -} - -declare module "lodash/mapValues" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mapValues">; -} - -declare module "lodash/merge" { - declare module.exports: $PropertyType<$Exports<"lodash">, "merge">; -} - -declare module "lodash/mergeWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mergeWith">; -} - -declare module "lodash/omit" { - declare module.exports: $PropertyType<$Exports<"lodash">, "omit">; -} - -declare module "lodash/omitBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "omitBy">; -} - -declare module "lodash/pick" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pick">; -} - -declare module "lodash/pickBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pickBy">; -} - -declare module "lodash/result" { - declare module.exports: $PropertyType<$Exports<"lodash">, "result">; -} - -declare module "lodash/set" { - declare module.exports: $PropertyType<$Exports<"lodash">, "set">; -} - -declare module "lodash/setWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "setWith">; -} - -declare module "lodash/toPairs" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toPairs">; -} - -declare module "lodash/toPairsIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toPairsIn">; -} - -declare module "lodash/transform" { - declare module.exports: $PropertyType<$Exports<"lodash">, "transform">; -} - -declare module "lodash/unset" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unset">; -} - -declare module "lodash/update" { - declare module.exports: $PropertyType<$Exports<"lodash">, "update">; -} - -declare module "lodash/updateWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "updateWith">; -} - -declare module "lodash/values" { - declare module.exports: $PropertyType<$Exports<"lodash">, "values">; -} - -declare module "lodash/valuesIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "valuesIn">; -} - -declare module "lodash/chain" { - declare module.exports: $PropertyType<$Exports<"lodash">, "chain">; -} - -declare module "lodash/tap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "tap">; -} - -declare module "lodash/thru" { - declare module.exports: $PropertyType<$Exports<"lodash">, "thru">; -} - -declare module "lodash/camelCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "camelCase">; -} - -declare module "lodash/capitalize" { - declare module.exports: $PropertyType<$Exports<"lodash">, "capitalize">; -} - -declare module "lodash/deburr" { - declare module.exports: $PropertyType<$Exports<"lodash">, "deburr">; -} - -declare module "lodash/endsWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "endsWith">; -} - -declare module "lodash/escape" { - declare module.exports: $PropertyType<$Exports<"lodash">, "escape">; -} - -declare module "lodash/escapeRegExp" { - declare module.exports: $PropertyType<$Exports<"lodash">, "escapeRegExp">; -} - -declare module "lodash/kebabCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "kebabCase">; -} - -declare module "lodash/lowerCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lowerCase">; -} - -declare module "lodash/lowerFirst" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lowerFirst">; -} - -declare module "lodash/pad" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pad">; -} - -declare module "lodash/padEnd" { - declare module.exports: $PropertyType<$Exports<"lodash">, "padEnd">; -} - -declare module "lodash/padStart" { - declare module.exports: $PropertyType<$Exports<"lodash">, "padStart">; -} - -declare module "lodash/parseInt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "parseInt">; -} - -declare module "lodash/repeat" { - declare module.exports: $PropertyType<$Exports<"lodash">, "repeat">; -} - -declare module "lodash/replace" { - declare module.exports: $PropertyType<$Exports<"lodash">, "replace">; -} - -declare module "lodash/snakeCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "snakeCase">; -} - -declare module "lodash/split" { - declare module.exports: $PropertyType<$Exports<"lodash">, "split">; -} - -declare module "lodash/startCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "startCase">; -} - -declare module "lodash/startsWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "startsWith">; -} - -declare module "lodash/template" { - declare module.exports: $PropertyType<$Exports<"lodash">, "template">; -} - -declare module "lodash/toLower" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toLower">; -} - -declare module "lodash/toUpper" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toUpper">; -} - -declare module "lodash/trim" { - declare module.exports: $PropertyType<$Exports<"lodash">, "trim">; -} - -declare module "lodash/trimEnd" { - declare module.exports: $PropertyType<$Exports<"lodash">, "trimEnd">; -} - -declare module "lodash/trimStart" { - declare module.exports: $PropertyType<$Exports<"lodash">, "trimStart">; -} - -declare module "lodash/truncate" { - declare module.exports: $PropertyType<$Exports<"lodash">, "truncate">; -} - -declare module "lodash/unescape" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unescape">; -} - -declare module "lodash/upperCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "upperCase">; -} - -declare module "lodash/upperFirst" { - declare module.exports: $PropertyType<$Exports<"lodash">, "upperFirst">; -} - -declare module "lodash/words" { - declare module.exports: $PropertyType<$Exports<"lodash">, "words">; -} - -declare module "lodash/attempt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "attempt">; -} - -declare module "lodash/bindAll" { - declare module.exports: $PropertyType<$Exports<"lodash">, "bindAll">; -} - -declare module "lodash/cond" { - declare module.exports: $PropertyType<$Exports<"lodash">, "cond">; -} - -declare module "lodash/conforms" { - declare module.exports: $PropertyType<$Exports<"lodash">, "conforms">; -} - -declare module "lodash/constant" { - declare module.exports: $PropertyType<$Exports<"lodash">, "constant">; -} - -declare module "lodash/defaultTo" { - declare module.exports: $PropertyType<$Exports<"lodash">, "defaultTo">; -} - -declare module "lodash/flow" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flow">; -} - -declare module "lodash/flowRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flowRight">; -} - -declare module "lodash/identity" { - declare module.exports: $PropertyType<$Exports<"lodash">, "identity">; -} - -declare module "lodash/iteratee" { - declare module.exports: $PropertyType<$Exports<"lodash">, "iteratee">; -} - -declare module "lodash/matches" { - declare module.exports: $PropertyType<$Exports<"lodash">, "matches">; -} - -declare module "lodash/matchesProperty" { - declare module.exports: $PropertyType<$Exports<"lodash">, "matchesProperty">; -} - -declare module "lodash/method" { - declare module.exports: $PropertyType<$Exports<"lodash">, "method">; -} - -declare module "lodash/methodOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "methodOf">; -} - -declare module "lodash/mixin" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mixin">; -} - -declare module "lodash/noConflict" { - declare module.exports: $PropertyType<$Exports<"lodash">, "noConflict">; -} - -declare module "lodash/noop" { - declare module.exports: $PropertyType<$Exports<"lodash">, "noop">; -} - -declare module "lodash/nthArg" { - declare module.exports: $PropertyType<$Exports<"lodash">, "nthArg">; -} - -declare module "lodash/over" { - declare module.exports: $PropertyType<$Exports<"lodash">, "over">; -} - -declare module "lodash/overEvery" { - declare module.exports: $PropertyType<$Exports<"lodash">, "overEvery">; -} - -declare module "lodash/overSome" { - declare module.exports: $PropertyType<$Exports<"lodash">, "overSome">; -} - -declare module "lodash/property" { - declare module.exports: $PropertyType<$Exports<"lodash">, "property">; -} - -declare module "lodash/propertyOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "propertyOf">; -} - -declare module "lodash/range" { - declare module.exports: $PropertyType<$Exports<"lodash">, "range">; -} - -declare module "lodash/rangeRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "rangeRight">; -} - -declare module "lodash/runInContext" { - declare module.exports: $PropertyType<$Exports<"lodash">, "runInContext">; -} - -declare module "lodash/stubArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubArray">; -} - -declare module "lodash/stubFalse" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubFalse">; -} - -declare module "lodash/stubObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubObject">; -} - -declare module "lodash/stubString" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubString">; -} - -declare module "lodash/stubTrue" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubTrue">; -} - -declare module "lodash/times" { - declare module.exports: $PropertyType<$Exports<"lodash">, "times">; -} - -declare module "lodash/toPath" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toPath">; -} - -declare module "lodash/uniqueId" { - declare module.exports: $PropertyType<$Exports<"lodash">, "uniqueId">; -} diff --git a/flow-typed/npm/native-base_vx.x.x.js b/flow-typed/npm/native-base_vx.x.x.js deleted file mode 100644 index 4bf685155e4..00000000000 --- a/flow-typed/npm/native-base_vx.x.x.js +++ /dev/null @@ -1,1719 +0,0 @@ -// flow-typed signature: 43db03b83dda7e27daccd93bd3d70122 -// flow-typed version: <>/native-base_v^2.3.3/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'native-base' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'native-base' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'native-base/__tests__/basic/Badge.android' { - declare module.exports: any; -} - -declare module 'native-base/__tests__/basic/Badge.ios' { - declare module.exports: any; -} - -declare module 'native-base/__tests__/basic/Button.android' { - declare module.exports: any; -} - -declare module 'native-base/__tests__/basic/Button.ios' { - declare module.exports: any; -} - -declare module 'native-base/__tests__/basic/Header.android' { - declare module.exports: any; -} - -declare module 'native-base/__tests__/basic/Header.ios' { - declare module.exports: any; -} - -declare module 'native-base/addEjectScript' { - declare module.exports: any; -} - -declare module 'native-base/dist/__tests__/basic/Badge.android' { - declare module.exports: any; -} - -declare module 'native-base/dist/__tests__/basic/Badge.ios' { - declare module.exports: any; -} - -declare module 'native-base/dist/__tests__/basic/Button.android' { - declare module.exports: any; -} - -declare module 'native-base/dist/__tests__/basic/Button.ios' { - declare module.exports: any; -} - -declare module 'native-base/dist/__tests__/basic/Header.android' { - declare module.exports: any; -} - -declare module 'native-base/dist/__tests__/basic/Header.ios' { - declare module.exports: any; -} - -declare module 'native-base/dist/addEjectScript' { - declare module.exports: any; -} - -declare module 'native-base/dist/ejectTheme' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Actionsheet' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Badge' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Base/NativeBaseComponent' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Body' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Button' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Card' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/CardItem' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Checkbox' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Container' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Content' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/DeckSwiper' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Drawer/index' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Fab' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Footer' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/FooterTab' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Form' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Gravatar' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/H1' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/H2' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/H3' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Header' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Icon/index' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/IconNB' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Input' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/InputGroup' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Item' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Label' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Left' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/List' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/ListItem' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Picker.android' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Picker.ios' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/PickerItem' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Radio' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Right' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Root' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Segment' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Separator' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Spinner' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Subtitle' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/SwipeRow' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Switch' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tab' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/TabContainer' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/TabHeading' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tabs/Button.android' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tabs/Button.ios' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tabs/Button.windows' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tabs/DefaultTabBar' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tabs/index' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tabs/SceneComponent' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tabs/ScrollableTabBar' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Tabs/StaticContainer' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Text' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Textarea' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Thumbnail' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Title' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/Toast' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/ToastContainer' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/basic/View' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/index' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/init' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Badge' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Body' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Button' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Card' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/CardItem' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/CheckBox' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Container' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Content' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Fab' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Footer' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/FooterTab' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Form' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/H1' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/H2' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/H3' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Header' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Icon' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/index' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Input' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/InputGroup' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Item' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Label' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Left' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/ListItem' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Picker.android' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Picker.ios' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Radio' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Right' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Segment' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Separator' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Spinner' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Subtitle' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/SwipeRow' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Switch' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Tab' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/TabBar' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/TabContainer' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/TabHeading' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Text' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Textarea' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Thumbnail' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Title' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/Toast' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/components/View' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/variables/commonColor' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/variables/material' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/theme/variables/platform' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/Utils/computeProps' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/Utils/index' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/Utils/interactionManager' { - declare module.exports: any; -} - -declare module 'native-base/dist/src/Utils/mapPropsToStyleNames' { - declare module.exports: any; -} - -declare module 'native-base/ejectTheme' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Actionsheet' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Badge' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Base/NativeBaseComponent' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Body' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Button' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Card' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/CardItem' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Checkbox' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Container' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Content' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/DeckSwiper' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Drawer/index' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Fab' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Footer' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/FooterTab' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Form' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Gravatar' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/H1' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/H2' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/H3' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Header' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Icon/index' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/IconNB' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Input' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/InputGroup' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Item' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Label' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Left' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/List' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/ListItem' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Picker.android' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Picker.ios' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/PickerItem' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Radio' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Right' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Root' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Segment' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Separator' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Spinner' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Subtitle' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/SwipeRow' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Switch' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tab' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/TabContainer' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/TabHeading' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tabs/Button.android' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tabs/Button.ios' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tabs/Button.windows' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tabs/DefaultTabBar' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tabs/index' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tabs/SceneComponent' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tabs/ScrollableTabBar' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Tabs/StaticContainer' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Text' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Textarea' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Thumbnail' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Title' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/Toast' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/ToastContainer' { - declare module.exports: any; -} - -declare module 'native-base/src/basic/View' { - declare module.exports: any; -} - -declare module 'native-base/src/index' { - declare module.exports: any; -} - -declare module 'native-base/src/init' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Badge' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Body' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Button' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Card' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/CardItem' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/CheckBox' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Container' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Content' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Fab' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Footer' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/FooterTab' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Form' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/H1' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/H2' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/H3' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Header' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Icon' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/index' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Input' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/InputGroup' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Item' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Label' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Left' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/ListItem' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Picker.android' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Picker.ios' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Radio' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Right' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Segment' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Separator' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Spinner' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Subtitle' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/SwipeRow' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Switch' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Tab' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/TabBar' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/TabContainer' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/TabHeading' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Text' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Textarea' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Thumbnail' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Title' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/Toast' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/components/View' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/variables/commonColor' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/variables/material' { - declare module.exports: any; -} - -declare module 'native-base/src/theme/variables/platform' { - declare module.exports: any; -} - -declare module 'native-base/src/Utils/computeProps' { - declare module.exports: any; -} - -declare module 'native-base/src/Utils/index' { - declare module.exports: any; -} - -declare module 'native-base/src/Utils/interactionManager' { - declare module.exports: any; -} - -declare module 'native-base/src/Utils/mapPropsToStyleNames' { - declare module.exports: any; -} - -// Filename aliases -declare module 'native-base/__tests__/basic/Badge.android.js' { - declare module.exports: $Exports<'native-base/__tests__/basic/Badge.android'>; -} -declare module 'native-base/__tests__/basic/Badge.ios.js' { - declare module.exports: $Exports<'native-base/__tests__/basic/Badge.ios'>; -} -declare module 'native-base/__tests__/basic/Button.android.js' { - declare module.exports: $Exports<'native-base/__tests__/basic/Button.android'>; -} -declare module 'native-base/__tests__/basic/Button.ios.js' { - declare module.exports: $Exports<'native-base/__tests__/basic/Button.ios'>; -} -declare module 'native-base/__tests__/basic/Header.android.js' { - declare module.exports: $Exports<'native-base/__tests__/basic/Header.android'>; -} -declare module 'native-base/__tests__/basic/Header.ios.js' { - declare module.exports: $Exports<'native-base/__tests__/basic/Header.ios'>; -} -declare module 'native-base/addEjectScript.js' { - declare module.exports: $Exports<'native-base/addEjectScript'>; -} -declare module 'native-base/dist/__tests__/basic/Badge.android.js' { - declare module.exports: $Exports<'native-base/dist/__tests__/basic/Badge.android'>; -} -declare module 'native-base/dist/__tests__/basic/Badge.ios.js' { - declare module.exports: $Exports<'native-base/dist/__tests__/basic/Badge.ios'>; -} -declare module 'native-base/dist/__tests__/basic/Button.android.js' { - declare module.exports: $Exports<'native-base/dist/__tests__/basic/Button.android'>; -} -declare module 'native-base/dist/__tests__/basic/Button.ios.js' { - declare module.exports: $Exports<'native-base/dist/__tests__/basic/Button.ios'>; -} -declare module 'native-base/dist/__tests__/basic/Header.android.js' { - declare module.exports: $Exports<'native-base/dist/__tests__/basic/Header.android'>; -} -declare module 'native-base/dist/__tests__/basic/Header.ios.js' { - declare module.exports: $Exports<'native-base/dist/__tests__/basic/Header.ios'>; -} -declare module 'native-base/dist/addEjectScript.js' { - declare module.exports: $Exports<'native-base/dist/addEjectScript'>; -} -declare module 'native-base/dist/ejectTheme.js' { - declare module.exports: $Exports<'native-base/dist/ejectTheme'>; -} -declare module 'native-base/dist/src/basic/Actionsheet.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Actionsheet'>; -} -declare module 'native-base/dist/src/basic/Badge.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Badge'>; -} -declare module 'native-base/dist/src/basic/Base/NativeBaseComponent.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Base/NativeBaseComponent'>; -} -declare module 'native-base/dist/src/basic/Body.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Body'>; -} -declare module 'native-base/dist/src/basic/Button.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Button'>; -} -declare module 'native-base/dist/src/basic/Card.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Card'>; -} -declare module 'native-base/dist/src/basic/CardItem.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/CardItem'>; -} -declare module 'native-base/dist/src/basic/Checkbox.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Checkbox'>; -} -declare module 'native-base/dist/src/basic/Container.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Container'>; -} -declare module 'native-base/dist/src/basic/Content.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Content'>; -} -declare module 'native-base/dist/src/basic/DeckSwiper.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/DeckSwiper'>; -} -declare module 'native-base/dist/src/basic/Drawer/index.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Drawer/index'>; -} -declare module 'native-base/dist/src/basic/Fab.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Fab'>; -} -declare module 'native-base/dist/src/basic/Footer.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Footer'>; -} -declare module 'native-base/dist/src/basic/FooterTab.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/FooterTab'>; -} -declare module 'native-base/dist/src/basic/Form.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Form'>; -} -declare module 'native-base/dist/src/basic/Gravatar.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Gravatar'>; -} -declare module 'native-base/dist/src/basic/H1.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/H1'>; -} -declare module 'native-base/dist/src/basic/H2.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/H2'>; -} -declare module 'native-base/dist/src/basic/H3.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/H3'>; -} -declare module 'native-base/dist/src/basic/Header.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Header'>; -} -declare module 'native-base/dist/src/basic/Icon/index.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Icon/index'>; -} -declare module 'native-base/dist/src/basic/IconNB.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/IconNB'>; -} -declare module 'native-base/dist/src/basic/Input.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Input'>; -} -declare module 'native-base/dist/src/basic/InputGroup.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/InputGroup'>; -} -declare module 'native-base/dist/src/basic/Item.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Item'>; -} -declare module 'native-base/dist/src/basic/Label.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Label'>; -} -declare module 'native-base/dist/src/basic/Left.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Left'>; -} -declare module 'native-base/dist/src/basic/List.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/List'>; -} -declare module 'native-base/dist/src/basic/ListItem.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/ListItem'>; -} -declare module 'native-base/dist/src/basic/Picker.android.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Picker.android'>; -} -declare module 'native-base/dist/src/basic/Picker.ios.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Picker.ios'>; -} -declare module 'native-base/dist/src/basic/PickerItem.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/PickerItem'>; -} -declare module 'native-base/dist/src/basic/Radio.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Radio'>; -} -declare module 'native-base/dist/src/basic/Right.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Right'>; -} -declare module 'native-base/dist/src/basic/Root.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Root'>; -} -declare module 'native-base/dist/src/basic/Segment.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Segment'>; -} -declare module 'native-base/dist/src/basic/Separator.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Separator'>; -} -declare module 'native-base/dist/src/basic/Spinner.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Spinner'>; -} -declare module 'native-base/dist/src/basic/Subtitle.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Subtitle'>; -} -declare module 'native-base/dist/src/basic/SwipeRow.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/SwipeRow'>; -} -declare module 'native-base/dist/src/basic/Switch.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Switch'>; -} -declare module 'native-base/dist/src/basic/Tab.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tab'>; -} -declare module 'native-base/dist/src/basic/TabContainer.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/TabContainer'>; -} -declare module 'native-base/dist/src/basic/TabHeading.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/TabHeading'>; -} -declare module 'native-base/dist/src/basic/Tabs/Button.android.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tabs/Button.android'>; -} -declare module 'native-base/dist/src/basic/Tabs/Button.ios.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tabs/Button.ios'>; -} -declare module 'native-base/dist/src/basic/Tabs/Button.windows.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tabs/Button.windows'>; -} -declare module 'native-base/dist/src/basic/Tabs/DefaultTabBar.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tabs/DefaultTabBar'>; -} -declare module 'native-base/dist/src/basic/Tabs/index.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tabs/index'>; -} -declare module 'native-base/dist/src/basic/Tabs/SceneComponent.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tabs/SceneComponent'>; -} -declare module 'native-base/dist/src/basic/Tabs/ScrollableTabBar.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tabs/ScrollableTabBar'>; -} -declare module 'native-base/dist/src/basic/Tabs/StaticContainer.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Tabs/StaticContainer'>; -} -declare module 'native-base/dist/src/basic/Text.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Text'>; -} -declare module 'native-base/dist/src/basic/Textarea.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Textarea'>; -} -declare module 'native-base/dist/src/basic/Thumbnail.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Thumbnail'>; -} -declare module 'native-base/dist/src/basic/Title.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Title'>; -} -declare module 'native-base/dist/src/basic/Toast.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/Toast'>; -} -declare module 'native-base/dist/src/basic/ToastContainer.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/ToastContainer'>; -} -declare module 'native-base/dist/src/basic/View.js' { - declare module.exports: $Exports<'native-base/dist/src/basic/View'>; -} -declare module 'native-base/dist/src/index.js' { - declare module.exports: $Exports<'native-base/dist/src/index'>; -} -declare module 'native-base/dist/src/init.js' { - declare module.exports: $Exports<'native-base/dist/src/init'>; -} -declare module 'native-base/dist/src/theme/components/Badge.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Badge'>; -} -declare module 'native-base/dist/src/theme/components/Body.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Body'>; -} -declare module 'native-base/dist/src/theme/components/Button.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Button'>; -} -declare module 'native-base/dist/src/theme/components/Card.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Card'>; -} -declare module 'native-base/dist/src/theme/components/CardItem.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/CardItem'>; -} -declare module 'native-base/dist/src/theme/components/CheckBox.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/CheckBox'>; -} -declare module 'native-base/dist/src/theme/components/Container.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Container'>; -} -declare module 'native-base/dist/src/theme/components/Content.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Content'>; -} -declare module 'native-base/dist/src/theme/components/Fab.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Fab'>; -} -declare module 'native-base/dist/src/theme/components/Footer.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Footer'>; -} -declare module 'native-base/dist/src/theme/components/FooterTab.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/FooterTab'>; -} -declare module 'native-base/dist/src/theme/components/Form.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Form'>; -} -declare module 'native-base/dist/src/theme/components/H1.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/H1'>; -} -declare module 'native-base/dist/src/theme/components/H2.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/H2'>; -} -declare module 'native-base/dist/src/theme/components/H3.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/H3'>; -} -declare module 'native-base/dist/src/theme/components/Header.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Header'>; -} -declare module 'native-base/dist/src/theme/components/Icon.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Icon'>; -} -declare module 'native-base/dist/src/theme/components/index.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/index'>; -} -declare module 'native-base/dist/src/theme/components/Input.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Input'>; -} -declare module 'native-base/dist/src/theme/components/InputGroup.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/InputGroup'>; -} -declare module 'native-base/dist/src/theme/components/Item.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Item'>; -} -declare module 'native-base/dist/src/theme/components/Label.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Label'>; -} -declare module 'native-base/dist/src/theme/components/Left.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Left'>; -} -declare module 'native-base/dist/src/theme/components/ListItem.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/ListItem'>; -} -declare module 'native-base/dist/src/theme/components/Picker.android.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Picker.android'>; -} -declare module 'native-base/dist/src/theme/components/Picker.ios.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Picker.ios'>; -} -declare module 'native-base/dist/src/theme/components/Radio.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Radio'>; -} -declare module 'native-base/dist/src/theme/components/Right.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Right'>; -} -declare module 'native-base/dist/src/theme/components/Segment.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Segment'>; -} -declare module 'native-base/dist/src/theme/components/Separator.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Separator'>; -} -declare module 'native-base/dist/src/theme/components/Spinner.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Spinner'>; -} -declare module 'native-base/dist/src/theme/components/Subtitle.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Subtitle'>; -} -declare module 'native-base/dist/src/theme/components/SwipeRow.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/SwipeRow'>; -} -declare module 'native-base/dist/src/theme/components/Switch.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Switch'>; -} -declare module 'native-base/dist/src/theme/components/Tab.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Tab'>; -} -declare module 'native-base/dist/src/theme/components/TabBar.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/TabBar'>; -} -declare module 'native-base/dist/src/theme/components/TabContainer.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/TabContainer'>; -} -declare module 'native-base/dist/src/theme/components/TabHeading.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/TabHeading'>; -} -declare module 'native-base/dist/src/theme/components/Text.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Text'>; -} -declare module 'native-base/dist/src/theme/components/Textarea.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Textarea'>; -} -declare module 'native-base/dist/src/theme/components/Thumbnail.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Thumbnail'>; -} -declare module 'native-base/dist/src/theme/components/Title.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Title'>; -} -declare module 'native-base/dist/src/theme/components/Toast.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/Toast'>; -} -declare module 'native-base/dist/src/theme/components/View.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/components/View'>; -} -declare module 'native-base/dist/src/theme/variables/commonColor.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/variables/commonColor'>; -} -declare module 'native-base/dist/src/theme/variables/material.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/variables/material'>; -} -declare module 'native-base/dist/src/theme/variables/platform.js' { - declare module.exports: $Exports<'native-base/dist/src/theme/variables/platform'>; -} -declare module 'native-base/dist/src/Utils/computeProps.js' { - declare module.exports: $Exports<'native-base/dist/src/Utils/computeProps'>; -} -declare module 'native-base/dist/src/Utils/index.js' { - declare module.exports: $Exports<'native-base/dist/src/Utils/index'>; -} -declare module 'native-base/dist/src/Utils/interactionManager.js' { - declare module.exports: $Exports<'native-base/dist/src/Utils/interactionManager'>; -} -declare module 'native-base/dist/src/Utils/mapPropsToStyleNames.js' { - declare module.exports: $Exports<'native-base/dist/src/Utils/mapPropsToStyleNames'>; -} -declare module 'native-base/ejectTheme.js' { - declare module.exports: $Exports<'native-base/ejectTheme'>; -} -declare module 'native-base/src/basic/Actionsheet.js' { - declare module.exports: $Exports<'native-base/src/basic/Actionsheet'>; -} -declare module 'native-base/src/basic/Badge.js' { - declare module.exports: $Exports<'native-base/src/basic/Badge'>; -} -declare module 'native-base/src/basic/Base/NativeBaseComponent.js' { - declare module.exports: $Exports<'native-base/src/basic/Base/NativeBaseComponent'>; -} -declare module 'native-base/src/basic/Body.js' { - declare module.exports: $Exports<'native-base/src/basic/Body'>; -} -declare module 'native-base/src/basic/Button.js' { - declare module.exports: $Exports<'native-base/src/basic/Button'>; -} -declare module 'native-base/src/basic/Card.js' { - declare module.exports: $Exports<'native-base/src/basic/Card'>; -} -declare module 'native-base/src/basic/CardItem.js' { - declare module.exports: $Exports<'native-base/src/basic/CardItem'>; -} -declare module 'native-base/src/basic/Checkbox.js' { - declare module.exports: $Exports<'native-base/src/basic/Checkbox'>; -} -declare module 'native-base/src/basic/Container.js' { - declare module.exports: $Exports<'native-base/src/basic/Container'>; -} -declare module 'native-base/src/basic/Content.js' { - declare module.exports: $Exports<'native-base/src/basic/Content'>; -} -declare module 'native-base/src/basic/DeckSwiper.js' { - declare module.exports: $Exports<'native-base/src/basic/DeckSwiper'>; -} -declare module 'native-base/src/basic/Drawer/index.js' { - declare module.exports: $Exports<'native-base/src/basic/Drawer/index'>; -} -declare module 'native-base/src/basic/Fab.js' { - declare module.exports: $Exports<'native-base/src/basic/Fab'>; -} -declare module 'native-base/src/basic/Footer.js' { - declare module.exports: $Exports<'native-base/src/basic/Footer'>; -} -declare module 'native-base/src/basic/FooterTab.js' { - declare module.exports: $Exports<'native-base/src/basic/FooterTab'>; -} -declare module 'native-base/src/basic/Form.js' { - declare module.exports: $Exports<'native-base/src/basic/Form'>; -} -declare module 'native-base/src/basic/Gravatar.js' { - declare module.exports: $Exports<'native-base/src/basic/Gravatar'>; -} -declare module 'native-base/src/basic/H1.js' { - declare module.exports: $Exports<'native-base/src/basic/H1'>; -} -declare module 'native-base/src/basic/H2.js' { - declare module.exports: $Exports<'native-base/src/basic/H2'>; -} -declare module 'native-base/src/basic/H3.js' { - declare module.exports: $Exports<'native-base/src/basic/H3'>; -} -declare module 'native-base/src/basic/Header.js' { - declare module.exports: $Exports<'native-base/src/basic/Header'>; -} -declare module 'native-base/src/basic/Icon/index.js' { - declare module.exports: $Exports<'native-base/src/basic/Icon/index'>; -} -declare module 'native-base/src/basic/IconNB.js' { - declare module.exports: $Exports<'native-base/src/basic/IconNB'>; -} -declare module 'native-base/src/basic/Input.js' { - declare module.exports: $Exports<'native-base/src/basic/Input'>; -} -declare module 'native-base/src/basic/InputGroup.js' { - declare module.exports: $Exports<'native-base/src/basic/InputGroup'>; -} -declare module 'native-base/src/basic/Item.js' { - declare module.exports: $Exports<'native-base/src/basic/Item'>; -} -declare module 'native-base/src/basic/Label.js' { - declare module.exports: $Exports<'native-base/src/basic/Label'>; -} -declare module 'native-base/src/basic/Left.js' { - declare module.exports: $Exports<'native-base/src/basic/Left'>; -} -declare module 'native-base/src/basic/List.js' { - declare module.exports: $Exports<'native-base/src/basic/List'>; -} -declare module 'native-base/src/basic/ListItem.js' { - declare module.exports: $Exports<'native-base/src/basic/ListItem'>; -} -declare module 'native-base/src/basic/Picker.android.js' { - declare module.exports: $Exports<'native-base/src/basic/Picker.android'>; -} -declare module 'native-base/src/basic/Picker.ios.js' { - declare module.exports: $Exports<'native-base/src/basic/Picker.ios'>; -} -declare module 'native-base/src/basic/PickerItem.js' { - declare module.exports: $Exports<'native-base/src/basic/PickerItem'>; -} -declare module 'native-base/src/basic/Radio.js' { - declare module.exports: $Exports<'native-base/src/basic/Radio'>; -} -declare module 'native-base/src/basic/Right.js' { - declare module.exports: $Exports<'native-base/src/basic/Right'>; -} -declare module 'native-base/src/basic/Root.js' { - declare module.exports: $Exports<'native-base/src/basic/Root'>; -} -declare module 'native-base/src/basic/Segment.js' { - declare module.exports: $Exports<'native-base/src/basic/Segment'>; -} -declare module 'native-base/src/basic/Separator.js' { - declare module.exports: $Exports<'native-base/src/basic/Separator'>; -} -declare module 'native-base/src/basic/Spinner.js' { - declare module.exports: $Exports<'native-base/src/basic/Spinner'>; -} -declare module 'native-base/src/basic/Subtitle.js' { - declare module.exports: $Exports<'native-base/src/basic/Subtitle'>; -} -declare module 'native-base/src/basic/SwipeRow.js' { - declare module.exports: $Exports<'native-base/src/basic/SwipeRow'>; -} -declare module 'native-base/src/basic/Switch.js' { - declare module.exports: $Exports<'native-base/src/basic/Switch'>; -} -declare module 'native-base/src/basic/Tab.js' { - declare module.exports: $Exports<'native-base/src/basic/Tab'>; -} -declare module 'native-base/src/basic/TabContainer.js' { - declare module.exports: $Exports<'native-base/src/basic/TabContainer'>; -} -declare module 'native-base/src/basic/TabHeading.js' { - declare module.exports: $Exports<'native-base/src/basic/TabHeading'>; -} -declare module 'native-base/src/basic/Tabs/Button.android.js' { - declare module.exports: $Exports<'native-base/src/basic/Tabs/Button.android'>; -} -declare module 'native-base/src/basic/Tabs/Button.ios.js' { - declare module.exports: $Exports<'native-base/src/basic/Tabs/Button.ios'>; -} -declare module 'native-base/src/basic/Tabs/Button.windows.js' { - declare module.exports: $Exports<'native-base/src/basic/Tabs/Button.windows'>; -} -declare module 'native-base/src/basic/Tabs/DefaultTabBar.js' { - declare module.exports: $Exports<'native-base/src/basic/Tabs/DefaultTabBar'>; -} -declare module 'native-base/src/basic/Tabs/index.js' { - declare module.exports: $Exports<'native-base/src/basic/Tabs/index'>; -} -declare module 'native-base/src/basic/Tabs/SceneComponent.js' { - declare module.exports: $Exports<'native-base/src/basic/Tabs/SceneComponent'>; -} -declare module 'native-base/src/basic/Tabs/ScrollableTabBar.js' { - declare module.exports: $Exports<'native-base/src/basic/Tabs/ScrollableTabBar'>; -} -declare module 'native-base/src/basic/Tabs/StaticContainer.js' { - declare module.exports: $Exports<'native-base/src/basic/Tabs/StaticContainer'>; -} -declare module 'native-base/src/basic/Text.js' { - declare module.exports: $Exports<'native-base/src/basic/Text'>; -} -declare module 'native-base/src/basic/Textarea.js' { - declare module.exports: $Exports<'native-base/src/basic/Textarea'>; -} -declare module 'native-base/src/basic/Thumbnail.js' { - declare module.exports: $Exports<'native-base/src/basic/Thumbnail'>; -} -declare module 'native-base/src/basic/Title.js' { - declare module.exports: $Exports<'native-base/src/basic/Title'>; -} -declare module 'native-base/src/basic/Toast.js' { - declare module.exports: $Exports<'native-base/src/basic/Toast'>; -} -declare module 'native-base/src/basic/ToastContainer.js' { - declare module.exports: $Exports<'native-base/src/basic/ToastContainer'>; -} -declare module 'native-base/src/basic/View.js' { - declare module.exports: $Exports<'native-base/src/basic/View'>; -} -declare module 'native-base/src/index.js' { - declare module.exports: $Exports<'native-base/src/index'>; -} -declare module 'native-base/src/init.js' { - declare module.exports: $Exports<'native-base/src/init'>; -} -declare module 'native-base/src/theme/components/Badge.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Badge'>; -} -declare module 'native-base/src/theme/components/Body.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Body'>; -} -declare module 'native-base/src/theme/components/Button.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Button'>; -} -declare module 'native-base/src/theme/components/Card.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Card'>; -} -declare module 'native-base/src/theme/components/CardItem.js' { - declare module.exports: $Exports<'native-base/src/theme/components/CardItem'>; -} -declare module 'native-base/src/theme/components/CheckBox.js' { - declare module.exports: $Exports<'native-base/src/theme/components/CheckBox'>; -} -declare module 'native-base/src/theme/components/Container.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Container'>; -} -declare module 'native-base/src/theme/components/Content.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Content'>; -} -declare module 'native-base/src/theme/components/Fab.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Fab'>; -} -declare module 'native-base/src/theme/components/Footer.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Footer'>; -} -declare module 'native-base/src/theme/components/FooterTab.js' { - declare module.exports: $Exports<'native-base/src/theme/components/FooterTab'>; -} -declare module 'native-base/src/theme/components/Form.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Form'>; -} -declare module 'native-base/src/theme/components/H1.js' { - declare module.exports: $Exports<'native-base/src/theme/components/H1'>; -} -declare module 'native-base/src/theme/components/H2.js' { - declare module.exports: $Exports<'native-base/src/theme/components/H2'>; -} -declare module 'native-base/src/theme/components/H3.js' { - declare module.exports: $Exports<'native-base/src/theme/components/H3'>; -} -declare module 'native-base/src/theme/components/Header.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Header'>; -} -declare module 'native-base/src/theme/components/Icon.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Icon'>; -} -declare module 'native-base/src/theme/components/index.js' { - declare module.exports: $Exports<'native-base/src/theme/components/index'>; -} -declare module 'native-base/src/theme/components/Input.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Input'>; -} -declare module 'native-base/src/theme/components/InputGroup.js' { - declare module.exports: $Exports<'native-base/src/theme/components/InputGroup'>; -} -declare module 'native-base/src/theme/components/Item.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Item'>; -} -declare module 'native-base/src/theme/components/Label.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Label'>; -} -declare module 'native-base/src/theme/components/Left.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Left'>; -} -declare module 'native-base/src/theme/components/ListItem.js' { - declare module.exports: $Exports<'native-base/src/theme/components/ListItem'>; -} -declare module 'native-base/src/theme/components/Picker.android.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Picker.android'>; -} -declare module 'native-base/src/theme/components/Picker.ios.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Picker.ios'>; -} -declare module 'native-base/src/theme/components/Radio.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Radio'>; -} -declare module 'native-base/src/theme/components/Right.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Right'>; -} -declare module 'native-base/src/theme/components/Segment.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Segment'>; -} -declare module 'native-base/src/theme/components/Separator.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Separator'>; -} -declare module 'native-base/src/theme/components/Spinner.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Spinner'>; -} -declare module 'native-base/src/theme/components/Subtitle.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Subtitle'>; -} -declare module 'native-base/src/theme/components/SwipeRow.js' { - declare module.exports: $Exports<'native-base/src/theme/components/SwipeRow'>; -} -declare module 'native-base/src/theme/components/Switch.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Switch'>; -} -declare module 'native-base/src/theme/components/Tab.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Tab'>; -} -declare module 'native-base/src/theme/components/TabBar.js' { - declare module.exports: $Exports<'native-base/src/theme/components/TabBar'>; -} -declare module 'native-base/src/theme/components/TabContainer.js' { - declare module.exports: $Exports<'native-base/src/theme/components/TabContainer'>; -} -declare module 'native-base/src/theme/components/TabHeading.js' { - declare module.exports: $Exports<'native-base/src/theme/components/TabHeading'>; -} -declare module 'native-base/src/theme/components/Text.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Text'>; -} -declare module 'native-base/src/theme/components/Textarea.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Textarea'>; -} -declare module 'native-base/src/theme/components/Thumbnail.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Thumbnail'>; -} -declare module 'native-base/src/theme/components/Title.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Title'>; -} -declare module 'native-base/src/theme/components/Toast.js' { - declare module.exports: $Exports<'native-base/src/theme/components/Toast'>; -} -declare module 'native-base/src/theme/components/View.js' { - declare module.exports: $Exports<'native-base/src/theme/components/View'>; -} -declare module 'native-base/src/theme/variables/commonColor.js' { - declare module.exports: $Exports<'native-base/src/theme/variables/commonColor'>; -} -declare module 'native-base/src/theme/variables/material.js' { - declare module.exports: $Exports<'native-base/src/theme/variables/material'>; -} -declare module 'native-base/src/theme/variables/platform.js' { - declare module.exports: $Exports<'native-base/src/theme/variables/platform'>; -} -declare module 'native-base/src/Utils/computeProps.js' { - declare module.exports: $Exports<'native-base/src/Utils/computeProps'>; -} -declare module 'native-base/src/Utils/index.js' { - declare module.exports: $Exports<'native-base/src/Utils/index'>; -} -declare module 'native-base/src/Utils/interactionManager.js' { - declare module.exports: $Exports<'native-base/src/Utils/interactionManager'>; -} -declare module 'native-base/src/Utils/mapPropsToStyleNames.js' { - declare module.exports: $Exports<'native-base/src/Utils/mapPropsToStyleNames'>; -} diff --git a/flow-typed/npm/option_vx.x.x.js b/flow-typed/npm/option_vx.x.x.js deleted file mode 100644 index ac10ac64eb5..00000000000 --- a/flow-typed/npm/option_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: f046b437683b982f4087e4bac0c50497 -// flow-typed version: <>/option_v^0.2.3/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'option' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'option' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'option/test/options.test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'option/index' { - declare module.exports: $Exports<'option'>; -} -declare module 'option/index.js' { - declare module.exports: $Exports<'option'>; -} -declare module 'option/test/options.test.js' { - declare module.exports: $Exports<'option/test/options.test'>; -} diff --git a/flow-typed/npm/prettier_v1.x.x.js b/flow-typed/npm/prettier_v1.x.x.js deleted file mode 100644 index 0c244915255..00000000000 --- a/flow-typed/npm/prettier_v1.x.x.js +++ /dev/null @@ -1,178 +0,0 @@ -// flow-typed signature: 4eed8da2dc730dc33e7710b465eaa44b -// flow-typed version: cc7a557b34/prettier_v1.x.x/flow_>=v0.56.x - -declare module "prettier" { - declare type AST = Object; - declare type Doc = Object; - declare type FastPath = Object; - - declare type PrettierParserName = - | "babylon" - | "flow" - | "typescript" - | "postcss" - | "css" - | "less" - | "scss" - | "json" - | "graphql" - | "markdown" - | "vue"; - - declare type PrettierParser = { - [name: PrettierParserName]: (text: string, options?: Object) => AST - }; - - declare type CustomParser = ( - text: string, - parsers: PrettierParser, - options: Options - ) => AST; - - declare type Options = {| - printWidth?: number, - tabWidth?: number, - useTabs?: boolean, - semi?: boolean, - singleQuote?: boolean, - trailingComma?: "none" | "es5" | "all", - bracketSpacing?: boolean, - jsxBracketSameLine?: boolean, - arrowParens?: "avoid" | "always", - rangeStart?: number, - rangeEnd?: number, - parser?: PrettierParserName | CustomParser, - filepath?: string, - requirePragma?: boolean, - insertPragma?: boolean, - proseWrap?: "always" | "never" | "preserve", - plugins?: Array - |}; - - declare type Plugin = { - languages: SupportLanguage, - parsers: { [parserName: string]: Parser }, - printers: { [astFormat: string]: Printer } - }; - - declare type Parser = { - parse: ( - text: string, - parsers: { [parserName: string]: Parser }, - options: Object - ) => AST, - astFormat: string - }; - - declare type Printer = { - print: ( - path: FastPath, - options: Object, - print: (path: FastPath) => Doc - ) => Doc, - embed: ( - path: FastPath, - print: (path: FastPath) => Doc, - textToDoc: (text: string, options: Object) => Doc, - options: Object - ) => ?Doc - }; - - declare type CursorOptions = {| - cursorOffset: number, - printWidth?: $PropertyType, - tabWidth?: $PropertyType, - useTabs?: $PropertyType, - semi?: $PropertyType, - singleQuote?: $PropertyType, - trailingComma?: $PropertyType, - bracketSpacing?: $PropertyType, - jsxBracketSameLine?: $PropertyType, - arrowParens?: $PropertyType, - parser?: $PropertyType, - filepath?: $PropertyType, - requirePragma?: $PropertyType, - insertPragma?: $PropertyType, - proseWrap?: $PropertyType, - plugins?: $PropertyType - |}; - - declare type CursorResult = {| - formatted: string, - cursorOffset: number - |}; - - declare type ResolveConfigOptions = {| - useCache?: boolean, - config?: string, - editorconfig?: boolean - |}; - - declare type SupportLanguage = { - name: string, - since: string, - parsers: Array, - group?: string, - tmScope: string, - aceMode: string, - codemirrorMode: string, - codemirrorMimeType: string, - aliases?: Array, - extensions: Array, - filenames?: Array, - linguistLanguageId: number, - vscodeLanguageIds: Array - }; - - declare type SupportOption = {| - since: string, - type: "int" | "boolean" | "choice" | "path", - deprecated?: string, - redirect?: SupportOptionRedirect, - description: string, - oppositeDescription?: string, - default: SupportOptionValue, - range?: SupportOptionRange, - choices?: SupportOptionChoice - |}; - - declare type SupportOptionRedirect = {| - options: string, - value: SupportOptionValue - |}; - - declare type SupportOptionRange = {| - start: number, - end: number, - step: number - |}; - - declare type SupportOptionChoice = {| - value: boolean | string, - description?: string, - since?: string, - deprecated?: string, - redirect?: SupportOptionValue - |}; - - declare type SupportOptionValue = number | boolean | string; - - declare type SupportInfo = {| - languages: Array, - options: Array - |}; - - declare type Prettier = {| - format: (source: string, options?: Options) => string, - check: (source: string, options?: Options) => boolean, - formatWithCursor: (source: string, options: CursorOptions) => CursorResult, - resolveConfig: { - (filePath: string, options?: ResolveConfigOptions): Promise, - sync(filePath: string, options?: ResolveConfigOptions): Promise - }, - clearConfigCache: () => void, - getSupportInfo: (version?: string) => SupportInfo - |}; - - declare export default Prettier; -} diff --git a/flow-typed/npm/prettier_vx.x.x.js b/flow-typed/npm/prettier_vx.x.x.js deleted file mode 100644 index 22a9df6805e..00000000000 --- a/flow-typed/npm/prettier_vx.x.x.js +++ /dev/null @@ -1,87 +0,0 @@ -// flow-typed signature: 957162a2c871c36a14ed9baa685d4498 -// flow-typed version: <>/prettier_v1.8.2/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'prettier' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'prettier' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'prettier/bin/prettier' { - declare module.exports: any; -} - -declare module 'prettier/parser-babylon' { - declare module.exports: any; -} - -declare module 'prettier/parser-flow' { - declare module.exports: any; -} - -declare module 'prettier/parser-graphql' { - declare module.exports: any; -} - -declare module 'prettier/parser-markdown' { - declare module.exports: any; -} - -declare module 'prettier/parser-parse5' { - declare module.exports: any; -} - -declare module 'prettier/parser-postcss' { - declare module.exports: any; -} - -declare module 'prettier/parser-typescript' { - declare module.exports: any; -} - -// Filename aliases -declare module 'prettier/bin/prettier.js' { - declare module.exports: $Exports<'prettier/bin/prettier'>; -} -declare module 'prettier/index' { - declare module.exports: $Exports<'prettier'>; -} -declare module 'prettier/index.js' { - declare module.exports: $Exports<'prettier'>; -} -declare module 'prettier/parser-babylon.js' { - declare module.exports: $Exports<'prettier/parser-babylon'>; -} -declare module 'prettier/parser-flow.js' { - declare module.exports: $Exports<'prettier/parser-flow'>; -} -declare module 'prettier/parser-graphql.js' { - declare module.exports: $Exports<'prettier/parser-graphql'>; -} -declare module 'prettier/parser-markdown.js' { - declare module.exports: $Exports<'prettier/parser-markdown'>; -} -declare module 'prettier/parser-parse5.js' { - declare module.exports: $Exports<'prettier/parser-parse5'>; -} -declare module 'prettier/parser-postcss.js' { - declare module.exports: $Exports<'prettier/parser-postcss'>; -} -declare module 'prettier/parser-typescript.js' { - declare module.exports: $Exports<'prettier/parser-typescript'>; -} diff --git a/flow-typed/npm/react-native-config_vx.x.x.js b/flow-typed/npm/react-native-config_vx.x.x.js deleted file mode 100644 index 54f652a8fd7..00000000000 --- a/flow-typed/npm/react-native-config_vx.x.x.js +++ /dev/null @@ -1,33 +0,0 @@ -// flow-typed signature: c3df1d2f5f4bbe4f53b0848dd1994e84 -// flow-typed version: <>/react-native-config_v^0.11.2/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-native-config' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-native-config' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ - - -// Filename aliases -declare module 'react-native-config/index' { - declare module.exports: $Exports<'react-native-config'>; -} -declare module 'react-native-config/index.js' { - declare module.exports: $Exports<'react-native-config'>; -} diff --git a/flow-typed/npm/react-native-fs_vx.x.x.js b/flow-typed/npm/react-native-fs_vx.x.x.js deleted file mode 100644 index 4573bff1704..00000000000 --- a/flow-typed/npm/react-native-fs_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: 1579c037030f7ddeb33c5b2bcaa53c78 -// flow-typed version: <>/react-native-fs_v^2.9/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-native-fs' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-native-fs' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-native-fs/FS.common' { - declare module.exports: any; -} - -declare module 'react-native-fs/IntegrationTests/FSTest' { - declare module.exports: any; -} - -declare module 'react-native-fs/IntegrationTests/IntegrationTestHarnessTest' { - declare module.exports: any; -} - -declare module 'react-native-fs/IntegrationTests/IntegrationTestsApp' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-native-fs/FS.common.js' { - declare module.exports: $Exports<'react-native-fs/FS.common'>; -} -declare module 'react-native-fs/IntegrationTests/FSTest.js' { - declare module.exports: $Exports<'react-native-fs/IntegrationTests/FSTest'>; -} -declare module 'react-native-fs/IntegrationTests/IntegrationTestHarnessTest.js' { - declare module.exports: $Exports<'react-native-fs/IntegrationTests/IntegrationTestHarnessTest'>; -} -declare module 'react-native-fs/IntegrationTests/IntegrationTestsApp.js' { - declare module.exports: $Exports<'react-native-fs/IntegrationTests/IntegrationTestsApp'>; -} diff --git a/flow-typed/npm/react-native-i18n_vx.x.x.js b/flow-typed/npm/react-native-i18n_vx.x.x.js deleted file mode 100644 index 462ebe01909..00000000000 --- a/flow-typed/npm/react-native-i18n_vx.x.x.js +++ /dev/null @@ -1,33 +0,0 @@ -// flow-typed signature: a784d311b394a59957d1c5573e56bfa8 -// flow-typed version: <>/react-native-i18n_v^2.0.10/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-native-i18n' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-native-i18n' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ - - -// Filename aliases -declare module 'react-native-i18n/index' { - declare module.exports: $Exports<'react-native-i18n'>; -} -declare module 'react-native-i18n/index.js' { - declare module.exports: $Exports<'react-native-i18n'>; -} diff --git a/flow-typed/npm/react-native-mixpanel_vx.x.x.js b/flow-typed/npm/react-native-mixpanel_vx.x.x.js deleted file mode 100644 index 85a437e6141..00000000000 --- a/flow-typed/npm/react-native-mixpanel_vx.x.x.js +++ /dev/null @@ -1,33 +0,0 @@ -// flow-typed signature: d2dd31d8bc95567a19a9f6a82aef494c -// flow-typed version: <>/react-native-mixpanel_v^0.0.16/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-native-mixpanel' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-native-mixpanel' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ - - -// Filename aliases -declare module 'react-native-mixpanel/index' { - declare module.exports: $Exports<'react-native-mixpanel'>; -} -declare module 'react-native-mixpanel/index.js' { - declare module.exports: $Exports<'react-native-mixpanel'>; -} diff --git a/flow-typed/npm/react-native-offline_vx.x.x.js b/flow-typed/npm/react-native-offline_vx.x.x.js deleted file mode 100644 index 7dfd68d590c..00000000000 --- a/flow-typed/npm/react-native-offline_vx.x.x.js +++ /dev/null @@ -1,130 +0,0 @@ -// flow-typed signature: 50a879fe1b4ddd4fed18c4da9a6e1f46 -// flow-typed version: <>/react-native-offline_v^3.7.2/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-native-offline' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-native-offline' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-native-offline/src/__tests__/createNetworkMiddleware.spec' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/__tests__/reducer.spec' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/actionCreators' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/actionTypes' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/checkConnectivityInterval' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/checkInternetAccess' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/ConnectivityRenderer' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/createNetworkMiddleware' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/index' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/makeHttpRequest' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/reactConnectionStore' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/reducer' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/sagas' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/types' { - declare module.exports: any; -} - -declare module 'react-native-offline/src/withNetworkConnectivity' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-native-offline/src/__tests__/createNetworkMiddleware.spec.js' { - declare module.exports: $Exports<'react-native-offline/src/__tests__/createNetworkMiddleware.spec'>; -} -declare module 'react-native-offline/src/__tests__/reducer.spec.js' { - declare module.exports: $Exports<'react-native-offline/src/__tests__/reducer.spec'>; -} -declare module 'react-native-offline/src/actionCreators.js' { - declare module.exports: $Exports<'react-native-offline/src/actionCreators'>; -} -declare module 'react-native-offline/src/actionTypes.js' { - declare module.exports: $Exports<'react-native-offline/src/actionTypes'>; -} -declare module 'react-native-offline/src/checkConnectivityInterval.js' { - declare module.exports: $Exports<'react-native-offline/src/checkConnectivityInterval'>; -} -declare module 'react-native-offline/src/checkInternetAccess.js' { - declare module.exports: $Exports<'react-native-offline/src/checkInternetAccess'>; -} -declare module 'react-native-offline/src/ConnectivityRenderer.js' { - declare module.exports: $Exports<'react-native-offline/src/ConnectivityRenderer'>; -} -declare module 'react-native-offline/src/createNetworkMiddleware.js' { - declare module.exports: $Exports<'react-native-offline/src/createNetworkMiddleware'>; -} -declare module 'react-native-offline/src/index.js' { - declare module.exports: $Exports<'react-native-offline/src/index'>; -} -declare module 'react-native-offline/src/makeHttpRequest.js' { - declare module.exports: $Exports<'react-native-offline/src/makeHttpRequest'>; -} -declare module 'react-native-offline/src/reactConnectionStore.js' { - declare module.exports: $Exports<'react-native-offline/src/reactConnectionStore'>; -} -declare module 'react-native-offline/src/reducer.js' { - declare module.exports: $Exports<'react-native-offline/src/reducer'>; -} -declare module 'react-native-offline/src/sagas.js' { - declare module.exports: $Exports<'react-native-offline/src/sagas'>; -} -declare module 'react-native-offline/src/types.js' { - declare module.exports: $Exports<'react-native-offline/src/types'>; -} -declare module 'react-native-offline/src/withNetworkConnectivity.js' { - declare module.exports: $Exports<'react-native-offline/src/withNetworkConnectivity'>; -} diff --git a/flow-typed/npm/react-native-sha256_vx.x.x.js b/flow-typed/npm/react-native-sha256_vx.x.x.js deleted file mode 100644 index b975f6ac01b..00000000000 --- a/flow-typed/npm/react-native-sha256_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 0b978d49362f9b357d715b427b0fdd74 -// flow-typed version: <>/react-native-sha256_v^1.0.1/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-native-sha256' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-native-sha256' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-native-sha256/sha256' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-native-sha256/sha256.js' { - declare module.exports: $Exports<'react-native-sha256/sha256'>; -} diff --git a/flow-typed/npm/react-navigation_v1.x.x.js b/flow-typed/npm/react-navigation_v1.x.x.js deleted file mode 100644 index 52600b720dd..00000000000 --- a/flow-typed/npm/react-navigation_v1.x.x.js +++ /dev/null @@ -1,1142 +0,0 @@ -// flow-typed signature: bd2c69866f7180eb05f435316ca832a4 -// flow-typed version: 6475dcc6d1/react-navigation_v1.x.x/flow_>=v0.60.x - -// @flow - -declare module 'react-navigation' { - /** - * First, a bunch of things we would love to import but instead must - * reconstruct (mostly copy-pasted). - */ - - // This is a bastardization of the true StyleObj type located in - // react-native/Libraries/StyleSheet/StyleSheetTypes. We unfortunately can't - // import that here, and it's too lengthy (and consequently too brittle) to - // copy-paste here either. - declare type StyleObj = - | null - | void - | number - | false - | '' - | $ReadOnlyArray - | { [name: string]: any }; - declare type ViewStyleProp = StyleObj; - declare type TextStyleProp = StyleObj; - declare type AnimatedViewStyleProp = StyleObj; - declare type AnimatedTextStyleProp = StyleObj; - - // This is copied from the Layout type in - // react-native-tab-view/src/TabViewTypeDefinitions - declare type TabViewLayout = { - height: number, - width: number, - }; - - // This is copied from react-native/Libraries/Image/ImageSource.js - declare type ImageURISource = { - uri?: string, - bundle?: string, - method?: string, - headers?: Object, - body?: string, - cache?: 'default' | 'reload' | 'force-cache' | 'only-if-cached', - width?: number, - height?: number, - scale?: number, - }; - declare type ImageSource = ImageURISource | number | Array; - - // This one is too large to copy. Actual definition is in - // react-native/Libraries/Animated/src/nodes/AnimatedValue.js - declare type AnimatedValue = Object; - - /** - * Next, all the type declarations - */ - - /** - * Navigation State + Action - */ - - declare export type NavigationParams = { - [key: string]: mixed, - }; - - declare export type NavigationNavigateAction = {| - type: 'Navigation/NAVIGATE', - routeName: string, - params?: NavigationParams, - - // The action to run inside the sub-router - action?: NavigationNavigateAction, - - key?: string, - |}; - - declare type DeprecatedNavigationNavigateAction = {| - type: 'Navigate', - routeName: string, - params?: NavigationParams, - - // The action to run inside the sub-router - action?: NavigationNavigateAction | DeprecatedNavigationNavigateAction, - |}; - - declare export type NavigationBackAction = {| - type: 'Navigation/BACK', - key?: ?string, - |}; - - declare type DeprecatedNavigationBackAction = {| - type: 'Back', - key?: ?string, - |}; - - declare export type NavigationSetParamsAction = {| - type: 'Navigation/SET_PARAMS', - - // The key of the route where the params should be set - key: string, - - // The new params to merge into the existing route params - params: NavigationParams, - |}; - - declare type DeprecatedNavigationSetParamsAction = {| - type: 'SetParams', - - // The key of the route where the params should be set - key: string, - - // The new params to merge into the existing route params - params: NavigationParams, - |}; - - declare export type NavigationInitAction = {| - type: 'Navigation/INIT', - params?: NavigationParams, - |}; - - declare type DeprecatedNavigationInitAction = {| - type: 'Init', - params?: NavigationParams, - |}; - - declare export type NavigationResetAction = {| - type: 'Navigation/RESET', - index: number, - key?: ?string, - actions: Array, - |}; - - declare type DeprecatedNavigationResetAction = {| - type: 'Reset', - index: number, - key?: ?string, - actions: Array< - NavigationNavigateAction | DeprecatedNavigationNavigateAction - >, - |}; - - declare export type NavigationUriAction = {| - type: 'Navigation/URI', - uri: string, - |}; - - declare type DeprecatedNavigationUriAction = {| - type: 'Uri', - uri: string, - |}; - - declare export type NavigationReplaceAction = {| - +type: 'Navigation/REPLACE', - +key: string, - +routeName: string, - +params?: NavigationParams, - +action?: NavigationNavigateAction, - |}; - declare export type NavigationPopAction = {| - +type: 'Navigation/POP', - +n?: number, - +immediate?: boolean, - |}; - declare export type NavigationPopToTopAction = {| - +type: 'Navigation/POP_TO_TOP', - +immediate?: boolean, - |}; - declare export type NavigationPushAction = {| - +type: 'Navigation/PUSH', - +routeName: string, - +params?: NavigationParams, - +action?: NavigationNavigateAction, - +key?: string, - |}; - - declare export type NavigationAction = - | NavigationInitAction - | NavigationNavigateAction - | NavigationReplaceAction - | NavigationPopAction - | NavigationPopToTopAction - | NavigationPushAction - | NavigationBackAction - | NavigationSetParamsAction - | NavigationResetAction; - - declare type DeprecatedNavigationAction = - | DeprecatedNavigationInitAction - | DeprecatedNavigationNavigateAction - | DeprecatedNavigationBackAction - | DeprecatedNavigationSetParamsAction - | DeprecatedNavigationResetAction; - - declare export type PossiblyDeprecatedNavigationAction = - | NavigationAction - | DeprecatedNavigationAction; - - /** - * NavigationState is a tree of routes for a single navigator, where each - * child route may either be a NavigationScreenRoute or a - * NavigationRouterRoute. NavigationScreenRoute represents a leaf screen, - * while the NavigationRouterRoute represents the state of a child navigator. - * - * NOTE: NavigationState is a state tree local to a single navigator and - * its child navigators (via the routes field). - * If we're in navigator nested deep inside the app, the state will only be - * the state for that navigator. - * The state for the root navigator of our app represents the whole navigation - * state for the whole app. - */ - declare export type NavigationState = { - /** - * Index refers to the active child route in the routes array. - */ - index: number, - routes: Array, - }; - - declare export type NavigationRoute = - | NavigationLeafRoute - | NavigationStateRoute; - - declare export type NavigationLeafRoute = { - /** - * React's key used by some navigators. No need to specify these manually, - * they will be defined by the router. - */ - key: string, - /** - * For example 'Home'. - * This is used as a key in a route config when creating a navigator. - */ - routeName: string, - /** - * Path is an advanced feature used for deep linking and on the web. - */ - path?: string, - /** - * Params passed to this route when navigating to it, - * e.g. `{ car_id: 123 }` in a route that displays a car. - */ - params?: NavigationParams, - }; - - declare export type NavigationStateRoute = NavigationLeafRoute & - NavigationState; - - /** - * Router - */ - - declare export type NavigationScreenOptionsGetter = ( - navigation: NavigationScreenProp, - screenProps?: {} - ) => Options; - - declare export type NavigationRouter = { - /** - * The reducer that outputs the new navigation state for a given action, - * with an optional previous state. When the action is considered handled - * but the state is unchanged, the output state is null. - */ - getStateForAction: (action: NavigationAction, lastState: ?State) => ?State, - - getInitialState: () => State, - - /** - * Maps a URI-like string to an action. This can be mapped to a state - * using `getStateForAction`. - */ - getActionForPathAndParams: ( - path: string, - params?: NavigationParams - ) => ?NavigationAction, - - getPathAndParamsForState: ( - state: State - ) => { - path: string, - params?: NavigationParams, - }, - - getComponentForRouteName: (routeName: string) => NavigationComponent, - - getComponentForState: (state: State) => NavigationComponent, - - /** - * Gets the screen navigation options for a given screen. - * - * For example, we could get the config for the 'Foo' screen when the - * `navigation.state` is: - * - * {routeName: 'Foo', key: '123'} - */ - getScreenOptions: NavigationScreenOptionsGetter, - }; - - declare export type NavigationScreenDetails = { - options: T, - state: NavigationRoute, - navigation: NavigationScreenProp, - }; - - declare export type NavigationScreenOptions = { - title?: string, - }; - - declare export type NavigationScreenConfigProps = $Shape<{ - navigation: NavigationScreenProp, - screenProps: {}, - }>; - - declare export type NavigationScreenConfig = - | Options - | (({ - ...$Exact, - navigationOptions: Options, - }) => Options); - - declare export type NavigationComponent = - | NavigationScreenComponent - | NavigationContainer; - - declare export type NavigationScreenComponent< - Route: NavigationRoute, - Options: {}, - Props: {} - > = React$ComponentType & Props> & - ({} | { navigationOptions: NavigationScreenConfig }); - - declare export type NavigationNavigator< - State: NavigationState, - Options: {}, - Props: {} - > = React$ComponentType & Props> & { - router: NavigationRouter, - navigationOptions?: ?NavigationScreenConfig, - }; - - declare export type NavigationRouteConfig = { - navigationOptions?: NavigationScreenConfig<*>, - path?: string, - } & NavigationScreenRouteConfig; - - declare export type NavigationScreenRouteConfig = - | { - screen: NavigationComponent, - } - | { - getScreen: () => NavigationComponent, - }; - - declare export type NavigationPathsConfig = { - [routeName: string]: string, - }; - - declare export type NavigationRouteConfigMap = { - [routeName: string]: NavigationRouteConfig, - }; - - /** - * Header - */ - - declare export type HeaderMode = 'float' | 'screen' | 'none'; - - declare export type HeaderProps = $Shape< - NavigationSceneRendererProps & { - mode: HeaderMode, - router: NavigationRouter, - getScreenDetails: NavigationScene => NavigationScreenDetails< - NavigationStackScreenOptions - >, - leftInterpolator: (props: NavigationSceneRendererProps) => {}, - titleInterpolator: (props: NavigationSceneRendererProps) => {}, - rightInterpolator: (props: NavigationSceneRendererProps) => {}, - } - >; - - /** - * Stack Navigator - */ - - declare export type NavigationStackScreenOptions = NavigationScreenOptions & { - header?: ?(React$Node | (HeaderProps => React$Node)), - headerTitle?: string | React$Node | React$ElementType, - headerTitleStyle?: AnimatedTextStyleProp, - headerTitleAllowFontScaling?: boolean, - headerTintColor?: string, - headerLeft?: React$Node | React$ElementType, - headerBackTitle?: string, - headerBackImage?: ImageSource, - headerTruncatedBackTitle?: string, - headerBackTitleStyle?: TextStyleProp, - headerPressColorAndroid?: string, - headerRight?: React$Node, - headerStyle?: ViewStyleProp, - gesturesEnabled?: boolean, - gestureResponseDistance?: { vertical?: number, horizontal?: number }, - gestureDirection?: 'default' | 'inverted', - }; - - declare export type NavigationStackRouterConfig = {| - initialRouteName?: string, - initialRouteParams?: NavigationParams, - paths?: NavigationPathsConfig, - navigationOptions?: NavigationScreenConfig<*>, - |}; - - declare export type NavigationStackViewConfig = {| - mode?: 'card' | 'modal', - headerMode?: HeaderMode, - cardStyle?: ViewStyleProp, - transitionConfig?: () => TransitionConfig, - onTransitionStart?: () => void, - onTransitionEnd?: () => void, - |}; - - declare export type StackNavigatorConfig = {| - ...NavigationStackViewConfig, - ...NavigationStackRouterConfig, - |}; - - /** - * Switch Navigator - */ - - declare export type NavigationSwitchRouterConfig = {| - initialRouteName?: string, - initialRouteParams?: NavigationParams, - paths?: NavigationPathsConfig, - navigationOptions?: NavigationScreenConfig<*>, - order?: Array, - backBehavior?: 'none' | 'initialRoute', // defaults to `'none'` - resetOnBlur?: boolean, // defaults to `true` - |}; - - /** - * Tab Navigator - */ - - declare export type NavigationTabRouterConfig = {| - initialRouteName?: string, - initialRouteParams?: NavigationParams, - paths?: NavigationPathsConfig, - navigationOptions?: NavigationScreenConfig<*>, - // todo: type these as the real route names rather than 'string' - order?: Array, - // Does the back button cause the router to switch to the initial tab - backBehavior?: 'none' | 'initialRoute', // defaults `initialRoute` - |}; - - declare type TabScene = { - route: NavigationRoute, - focused: boolean, - index: number, - tintColor?: ?string, - }; - - declare export type NavigationTabScreenOptions = {| - ...$Exact, - tabBarIcon?: - | React$Node - | ((options: { tintColor: ?string, focused: boolean }) => ?React$Node), - tabBarLabel?: - | string - | React$Node - | ((options: { tintColor: ?string, focused: boolean }) => ?React$Node), - tabBarVisible?: boolean, - tabBarTestIDProps?: { testID?: string, accessibilityLabel?: string }, - tabBarOnPress?: ( - scene: TabScene, - jumpToIndex: (index: number) => void - ) => void, - |}; - - /** - * Drawer - */ - - declare export type NavigationDrawerScreenOptions = {| - ...$Exact, - drawerIcon?: - | React$Node - | ((options: { tintColor: ?string, focused: boolean }) => ?React$Node), - drawerLabel?: - | React$Node - | ((options: { tintColor: ?string, focused: boolean }) => ?React$Node), - drawerLockMode?: 'unlocked' | 'locked-closed' | 'locked-open', - |}; - - /** - * Navigator Prop - */ - - declare export type NavigationDispatch = ( - action: PossiblyDeprecatedNavigationAction - ) => boolean; - - declare export type NavigationProp = { - +state: S, - dispatch: NavigationDispatch, - }; - - declare export type EventType = - | 'willFocus' - | 'didFocus' - | 'willBlur' - | 'didBlur' - | 'action'; - - declare export type NavigationEventPayload = { - type: EventType, - action: NavigationAction, - state: NavigationState, - lastState: ?NavigationState, - }; - - declare export type NavigationEventCallback = ( - payload: NavigationEventPayload - ) => void; - - declare export type NavigationEventSubscription = { - remove: () => void, - }; - - declare export type NavigationScreenProp<+S> = { - +state: S, - dispatch: NavigationDispatch, - goBack: (routeKey?: ?string) => boolean, - navigate: ( - routeName: string, - params?: NavigationParams, - action?: NavigationNavigateAction - ) => boolean, - setParams: (newParams: NavigationParams) => boolean, - addListener: ( - eventName: string, - callback: NavigationEventCallback - ) => NavigationEventSubscription, - push: ( - routeName: string, - params?: NavigationParams, - action?: NavigationNavigateAction - ) => boolean, - replace: ( - routeName: string, - params?: NavigationParams, - action?: NavigationNavigateAction - ) => boolean, - pop: (n?: number, params?: { immediate?: boolean }) => boolean, - popToTop: (params?: { immediate?: boolean }) => boolean, - }; - - declare export type NavigationNavigatorProps = $Shape<{ - navigation: NavigationScreenProp, - screenProps?: {}, - navigationOptions?: O, - }>; - - //declare export type NavigationNavigatorProps = - // | {} - // | { navigation: NavigationScreenProp } - // | { screenProps: {} } - // | { navigationOptions: O } - // | { - // navigation: NavigationScreenProp, - // screenProps: {}, - // } - // | { - // navigation: NavigationScreenProp, - // navigationOptions: O, - // } - // | { - // screenProps: {}, - // navigationOptions: O, - // } - // | { - // navigation: NavigationScreenProp, - // screenProps: {}, - // navigationOptions: O, - // }; - - /** - * Navigation container - */ - - declare export type NavigationContainer< - State: NavigationState, - Options: {}, - Props: {} - > = React$ComponentType & Props> & { - router: NavigationRouter, - navigationOptions?: ?NavigationScreenConfig, - }; - - declare export type NavigationContainerProps = $Shape<{ - uriPrefix?: string | RegExp, - onNavigationStateChange?: ?( - NavigationState, - NavigationState, - NavigationAction - ) => void, - navigation?: NavigationScreenProp, - screenProps?: *, - navigationOptions?: O, - }>; - - /** - * Gestures, Animations, and Interpolators - */ - - declare export type NavigationGestureDirection = 'horizontal' | 'vertical'; - - declare export type NavigationLayout = { - height: AnimatedValue, - initHeight: number, - initWidth: number, - isMeasured: boolean, - width: AnimatedValue, - }; - - declare export type NavigationScene = { - index: number, - isActive: boolean, - isStale: boolean, - key: string, - route: NavigationRoute, - }; - - declare export type NavigationTransitionProps = $Shape<{ - // The layout of the screen container - layout: NavigationLayout, - - // The destination navigation state of the transition - navigation: NavigationScreenProp, - - // The progressive index of the transitioner's navigation state. - position: AnimatedValue, - - // The value that represents the progress of the transition when navigation - // state changes from one to another. Its numeric value will range from 0 - // to 1. - // progress.__getAnimatedValue() < 1 : transtion is happening. - // progress.__getAnimatedValue() == 1 : transtion completes. - progress: AnimatedValue, - - // All the scenes of the transitioner. - scenes: Array, - - // The active scene, corresponding to the route at - // `navigation.state.routes[navigation.state.index]`. When rendering - // NavigationSceneRendererPropsIndex, the scene does not refer to the active - // scene, but instead the scene that is being rendered. The index always - // is the index of the scene - scene: NavigationScene, - index: number, - - screenProps?: {}, - }>; - - // The scene renderer props are nearly identical to the props used for - // rendering a transition. The exception is that the passed scene is not the - // active scene but is instead the scene that the renderer should render - // content for. - declare export type NavigationSceneRendererProps = NavigationTransitionProps; - - declare export type NavigationTransitionSpec = { - duration?: number, - // An easing function from `Easing`. - easing?: (t: number) => number, - // A timing function such as `Animated.timing`. - timing?: (value: AnimatedValue, config: any) => any, - }; - - /** - * Describes a visual transition from one screen to another. - */ - declare export type TransitionConfig = { - // The basics properties of the animation, such as duration and easing - transitionSpec?: NavigationTransitionSpec, - // How to animate position and opacity of the screen - // based on the value generated by the transitionSpec - screenInterpolator?: (props: NavigationSceneRendererProps) => {}, - // How to animate position and opacity of the header componetns - // based on the value generated by the transitionSpec - headerLeftInterpolator?: (props: NavigationSceneRendererProps) => {}, - headerTitleInterpolator?: (props: NavigationSceneRendererProps) => {}, - headerRightInterpolator?: (props: NavigationSceneRendererProps) => {}, - // The style of the container. Useful when a scene doesn't have - // 100% opacity and the underlying container is visible. - containerStyle?: ViewStyleProp, - }; - - declare export type NavigationAnimationSetter = ( - position: AnimatedValue, - newState: NavigationState, - lastState: NavigationState - ) => void; - - declare export type NavigationSceneRenderer = () => React$Node; - - declare export type NavigationStyleInterpolator = ( - props: NavigationSceneRendererProps - ) => AnimatedViewStyleProp; - - declare export type LayoutEvent = { - nativeEvent: { - layout: { - x: number, - y: number, - width: number, - height: number, - }, - }, - }; - - declare export type SceneIndicesForInterpolationInputRange = { - first: number, - last: number, - }; - - /** - * Now we type the actual exported module - */ - - declare export function createNavigationContainer( - Component: NavigationNavigator - ): NavigationContainer; - - declare export var StateUtils: { - get: (state: NavigationState, key: string) => ?NavigationRoute, - indexOf: (state: NavigationState, key: string) => number, - has: (state: NavigationState, key: string) => boolean, - push: (state: NavigationState, route: NavigationRoute) => NavigationState, - pop: (state: NavigationState) => NavigationState, - jumpToIndex: (state: NavigationState, index: number) => NavigationState, - jumpTo: (state: NavigationState, key: string) => NavigationState, - back: (state: NavigationState) => NavigationState, - forward: (state: NavigationState) => NavigationState, - replaceAt: ( - state: NavigationState, - key: string, - route: NavigationRoute - ) => NavigationState, - replaceAtIndex: ( - state: NavigationState, - index: number, - route: NavigationRoute - ) => NavigationState, - reset: ( - state: NavigationState, - routes: Array, - index?: number - ) => NavigationState, - }; - - declare export function addNavigationHelpers( - navigation: { - state: S, - dispatch: (action: NavigationAction) => any, - addListener?: ( - eventName: string, - callback: NavigationEventCallback - ) => NavigationEventSubscription; - } - ): NavigationScreenProp; - - declare export var NavigationActions: { - BACK: 'Navigation/BACK', - INIT: 'Navigation/INIT', - NAVIGATE: 'Navigation/NAVIGATE', - RESET: 'Navigation/RESET', - SET_PARAMS: 'Navigation/SET_PARAMS', - URI: 'Navigation/URI', - back: { - (payload?: { key?: ?string }): NavigationBackAction, - toString: () => string, - }, - init: { - (payload?: { params?: NavigationParams }): NavigationInitAction, - toString: () => string, - }, - navigate: { - (payload: { - routeName: string, - params?: ?NavigationParams, - action?: ?NavigationNavigateAction, - }): NavigationNavigateAction, - toString: () => string, - }, - reset: { - (payload: { - index: number, - key?: ?string, - actions: Array, - }): NavigationResetAction, - toString: () => string, - }, - setParams: { - (payload: { - key: string, - params: NavigationParams, - }): NavigationSetParamsAction, - toString: () => string, - }, - uri: { - (payload: { uri: string }): NavigationUriAction, - toString: () => string, - }, - mapDeprecatedActionAndWarn: ( - action: PossiblyDeprecatedNavigationAction - ) => NavigationAction, - }; - - declare type _RouterProp = { - router: NavigationRouter, - }; - declare type _NavigatorCreator< - NavigationViewProps: {}, - S: NavigationState, - O: {} - > = ( - NavigationView: React$ComponentType<_RouterProp & NavigationViewProps> - ) => NavigationNavigator; - declare export function createNavigator< - S: NavigationState, - O: {}, - NavigatorConfig: {}, - NavigationViewProps: NavigationNavigatorProps - >( - router: NavigationRouter, - routeConfigs?: NavigationRouteConfigMap, - navigatorConfig?: NavigatorConfig - ): _NavigatorCreator; - - declare export function StackNavigator( - routeConfigMap: NavigationRouteConfigMap, - stackConfig?: StackNavigatorConfig - ): NavigationContainer<*, *, *>; - - declare type _TabViewConfig = {| - tabBarComponent?: React$ElementType, - tabBarPosition?: 'top' | 'bottom', - tabBarOptions?: {}, - swipeEnabled?: boolean, - animationEnabled?: boolean, - configureTransition?: ( - currentTransitionProps: Object, - nextTransitionProps: Object - ) => Object, - initialLayout?: TabViewLayout, - |}; - declare type _TabNavigatorConfig = {| - ...NavigationTabRouterConfig, - ..._TabViewConfig, - lazy?: boolean, - removeClippedSubviews?: boolean, - containerOptions?: void, - |}; - declare export function TabNavigator( - routeConfigs: NavigationRouteConfigMap, - config?: _TabNavigatorConfig - ): NavigationContainer<*, *, *>; - declare type _SwitchNavigatorConfig = {| - ...NavigationSwitchRouterConfig, - |}; - declare export function SwitchNavigator( - routeConfigs: NavigationRouteConfigMap, - config?: _SwitchNavigatorConfig - ): NavigationContainer<*, *, *>; - declare export function createSwitchNavigator( - routeConfigs: NavigationRouteConfigMap, - config?: _SwitchNavigatorConfig - ): NavigationContainer<*, *, *>; - - declare type _DrawerViewConfig = {| - drawerLockMode?: 'unlocked' | 'locked-closed' | 'locked-open', - drawerWidth?: number | (() => number), - drawerPosition?: 'left' | 'right', - drawerOpenRoute?: string, - drawerCloseRoute?: string, - drawerToggleRoute?: string, - contentComponent?: React$ElementType, - contentOptions?: {}, - style?: ViewStyleProp, - useNativeAnimations?: boolean, - drawerBackgroundColor?: string, - screenProps?: {}, - |}; - declare type _DrawerNavigatorConfig = $Exact<{ - ...NavigationTabRouterConfig, - ..._DrawerViewConfig, - containerConfig?: void, - }>; - declare export function DrawerNavigator( - routeConfigs: NavigationRouteConfigMap, - config?: _DrawerNavigatorConfig - ): NavigationContainer<*, *, *>; - - declare export function StackRouter( - routeConfigs: NavigationRouteConfigMap, - stackConfig?: NavigationStackRouterConfig - ): NavigationRouter<*, NavigationStackScreenOptions>; - - declare export function TabRouter( - routeConfigs: NavigationRouteConfigMap, - config?: NavigationTabRouterConfig - ): NavigationRouter<*, *>; - - declare type _TransitionerProps = { - configureTransition: ( - transitionProps: NavigationTransitionProps, - prevTransitionProps: ?NavigationTransitionProps - ) => NavigationTransitionSpec, - navigation: NavigationScreenProp, - onTransitionEnd?: (...args: Array) => void, - onTransitionStart?: (...args: Array) => void, - render: ( - transitionProps: NavigationTransitionProps, - prevTransitionProps: ?NavigationTransitionProps - ) => React$Node, - }; - declare export var Transitioner: React$ComponentType<_TransitionerProps>; - - declare type _CardStackTransitionerProps = { - headerMode: HeaderMode, - mode: 'card' | 'modal', - router: NavigationRouter, - cardStyle?: ViewStyleProp, - onTransitionStart?: () => void, - onTransitionEnd?: () => void, - /** - * Optional custom animation when transitioning between screens. - */ - transitionConfig?: () => TransitionConfig, - } & NavigationNavigatorProps; - declare export var CardStackTransitioner: React$ComponentType< - _CardStackTransitionerProps - >; - - declare type _CardStackProps = { - screenProps?: {}, - headerMode: HeaderMode, - headerComponent?: React$ElementType, - mode: 'card' | 'modal', - router: NavigationRouter, - cardStyle?: ViewStyleProp, - onTransitionStart?: () => void, - onTransitionEnd?: () => void, - /** - * Optional custom animation when transitioning between screens. - */ - transitionConfig?: () => TransitionConfig, - // NavigationTransitionProps: - layout: NavigationLayout, - navigation: NavigationScreenProp, - position: AnimatedValue, - progress: AnimatedValue, - scenes: Array, - scene: NavigationScene, - index: number, - }; - declare export var CardStack: React$ComponentType<_CardStackProps>; - - declare type _CardProps = { - ...$Exact, - children: React$Node, - onComponentRef: React$Ref<*>, - pointerEvents: string, - style: any, - }; - declare export var Card: React$ComponentType<_CardProps>; - - declare type _SafeAreaViewForceInsetValue = 'always' | 'never' | number; - declare type _SafeAreaViewProps = { - forceInset?: { - top?: _SafeAreaViewForceInsetValue, - bottom?: _SafeAreaViewForceInsetValue, - left?: _SafeAreaViewForceInsetValue, - right?: _SafeAreaViewForceInsetValue, - vertical?: _SafeAreaViewForceInsetValue, - horizontal?: _SafeAreaViewForceInsetValue, - }, - children?: React$Node, - style?: AnimatedViewStyleProp, - }; - declare export var SafeAreaView: React$ComponentType<_SafeAreaViewProps>; - - declare export class Header extends React$Component { - static HEIGHT: number - } - - declare type _HeaderTitleProps = { - children: React$Node, - selectionColor?: string | number, - style?: AnimatedTextStyleProp, - }; - declare export var HeaderTitle: React$ComponentType<_HeaderTitleProps>; - - declare type _HeaderBackButtonProps = { - onPress?: () => void, - pressColorAndroid?: string, - title?: ?string, - titleStyle?: ?TextStyleProp, - tintColor?: ?string, - truncatedTitle?: ?string, - width?: ?number, - }; - declare export var HeaderBackButton: React$ComponentType< - _HeaderBackButtonProps - >; - - declare type _DrawerViewProps = { - drawerLockMode?: 'unlocked' | 'locked-closed' | 'locked-open', - drawerWidth: number | (() => number), - drawerPosition: 'left' | 'right', - drawerOpenRoute: string, - drawerCloseRoute: string, - drawerToggleRoute: string, - contentComponent: React$ElementType, - contentOptions?: {}, - style?: ViewStyleProp, - useNativeAnimations: boolean, - drawerBackgroundColor: string, - screenProps?: {}, - navigation: NavigationScreenProp, - router: NavigationRouter, - }; - declare export var DrawerView: React$ComponentType<_DrawerViewProps>; - - declare type _DrawerScene = { - route: NavigationRoute, - focused: boolean, - index: number, - tintColor?: string, - }; - declare type _DrawerItem = { - route: NavigationRoute, - focused: boolean, - }; - declare type _DrawerItemsProps = { - navigation: NavigationScreenProp, - items: Array, - activeItemKey?: ?string, - activeTintColor?: string, - activeBackgroundColor?: string, - inactiveTintColor?: string, - inactiveBackgroundColor?: string, - getLabel: (scene: _DrawerScene) => ?(React$Node | string), - renderIcon: (scene: _DrawerScene) => ?React$Node, - onItemPress: (info: _DrawerItem) => void, - itemsContainerForceInset?: Object, - itemsContainerStyle?: ViewStyleProp, - itemStyle?: ViewStyleProp, - labelStyle?: TextStyleProp, - iconContainerStyle?: ViewStyleProp, - drawerPosition: 'left' | 'right', - }; - declare export var DrawerItems: React$ComponentType<_DrawerItemsProps>; - - declare type _TabViewProps = { - tabBarComponent?: React$ElementType, - tabBarPosition?: 'top' | 'bottom', - tabBarOptions?: {}, - swipeEnabled?: boolean, - animationEnabled?: boolean, - configureTransition?: ( - currentTransitionProps: Object, - nextTransitionProps: Object - ) => Object, - initialLayout: TabViewLayout, - screenProps?: {}, - navigation: NavigationScreenProp, - router: NavigationRouter, - }; - declare export var TabView: React$ComponentType<_TabViewProps>; - - declare type _TabBarTopProps = { - activeTintColor: string, - inactiveTintColor: string, - showIcon: boolean, - showLabel: boolean, - upperCaseLabel: boolean, - allowFontScaling: boolean, - position: AnimatedValue, - tabBarPosition: string, - navigation: NavigationScreenProp, - jumpToIndex: (index: number) => void, - getLabel: (scene: TabScene) => ?(React$Node | string), - getOnPress: ( - previousScene: NavigationRoute, - scene: TabScene - ) => ({ - previousScene: NavigationRoute, - scene: TabScene, - jumpToIndex: (index: number) => void, - }) => void, - renderIcon: (scene: TabScene) => React$Element<*>, - labelStyle?: TextStyleProp, - iconStyle?: ViewStyleProp, - }; - declare export var TabBarTop: React$ComponentType<_TabBarTopProps>; - - declare type _TabBarBottomProps = { - activeTintColor: string, - activeBackgroundColor: string, - adaptive?: boolean, - inactiveTintColor: string, - inactiveBackgroundColor: string, - showLabel: boolean, - showIcon: boolean, - allowFontScaling: boolean, - position: AnimatedValue, - navigation: NavigationScreenProp, - jumpToIndex: (index: number) => void, - getLabel: (scene: TabScene) => ?(React$Node | string), - getOnPress: ( - previousScene: NavigationRoute, - scene: TabScene - ) => ({ - previousScene: NavigationRoute, - scene: TabScene, - jumpToIndex: (index: number) => void, - }) => void, - getTestIDProps: (scene: TabScene) => (scene: TabScene) => any, - renderIcon: (scene: TabScene) => React$Node, - style?: ViewStyleProp, - animateStyle?: ViewStyleProp, - labelStyle?: TextStyleProp, - tabStyle?: ViewStyleProp, - showIcon?: boolean, - }; - declare export var TabBarBottom: React$ComponentType<_TabBarBottomProps>; - - declare type _NavigationInjectedProps = { - navigation: NavigationScreenProp, - }; - declare export function withNavigation( - Component: React$ComponentType - ): React$ComponentType; -} diff --git a/flow-typed/npm/react-redux_v5.x.x.js b/flow-typed/npm/react-redux_v5.x.x.js deleted file mode 100644 index e0c8bc04a12..00000000000 --- a/flow-typed/npm/react-redux_v5.x.x.js +++ /dev/null @@ -1,132 +0,0 @@ -// flow-typed signature: 59b0c4be0e1408f21e2446be96c79804 -// flow-typed version: 9092387fd2/react-redux_v5.x.x/flow_>=v0.54.x - -import type { Dispatch, Store } from "redux"; - -declare module "react-redux" { - /* - - S = State - A = Action - OP = OwnProps - SP = StateProps - DP = DispatchProps - - */ - - declare type MapStateToProps = ( - state: S, - ownProps: OP - ) => ((state: S, ownProps: OP) => SP) | SP; - - declare type MapDispatchToProps = - | ((dispatch: Dispatch, ownProps: OP) => DP) - | DP; - - declare type MergeProps = ( - stateProps: SP, - dispatchProps: DP, - ownProps: OP - ) => P; - - declare type Context = { store: Store<*, *> }; - - declare type ComponentWithDefaultProps = Class< - React$Component - > & { defaultProps: DP }; - - declare class ConnectedComponentWithDefaultProps< - OP, - DP, - CP - > extends React$Component { - static defaultProps: DP, // <= workaround for https://github.com/facebook/flow/issues/4644 - static WrappedComponent: Class>, - getWrappedInstance(): React$Component, - props: OP, - state: void - } - - declare class ConnectedComponent extends React$Component { - static WrappedComponent: Class>, - getWrappedInstance(): React$Component

, - props: OP, - state: void - } - - declare type ConnectedComponentWithDefaultPropsClass = Class< - ConnectedComponentWithDefaultProps - >; - - declare type ConnectedComponentClass = Class< - ConnectedComponent - >; - - declare type Connector = (( - component: ComponentWithDefaultProps - ) => ConnectedComponentWithDefaultPropsClass) & - ((component: React$ComponentType

) => ConnectedComponentClass); - - declare class Provider extends React$Component<{ - store: Store, - children?: any - }> {} - - declare function createProvider( - storeKey?: string, - subKey?: string - ): Provider<*, *>; - - declare type ConnectOptions = { - pure?: boolean, - withRef?: boolean - }; - - declare type Null = null | void; - - declare function connect( - ...rest: Array // <= workaround for https://github.com/facebook/flow/issues/2360 - ): Connector } & OP>>; - - declare function connect( - mapStateToProps: Null, - mapDispatchToProps: Null, - mergeProps: Null, - options: ConnectOptions - ): Connector } & OP>>; - - declare function connect( - mapStateToProps: MapStateToProps, - mapDispatchToProps: Null, - mergeProps: Null, - options?: ConnectOptions - ): Connector } & OP>>; - - declare function connect( - mapStateToProps: Null, - mapDispatchToProps: MapDispatchToProps, - mergeProps: Null, - options?: ConnectOptions - ): Connector>; - - declare function connect( - mapStateToProps: MapStateToProps, - mapDispatchToProps: MapDispatchToProps, - mergeProps: Null, - options?: ConnectOptions - ): Connector>; - - declare function connect( - mapStateToProps: MapStateToProps, - mapDispatchToProps: Null, - mergeProps: MergeProps, - options?: ConnectOptions - ): Connector; - - declare function connect( - mapStateToProps: MapStateToProps, - mapDispatchToProps: MapDispatchToProps, - mergeProps: MergeProps, - options?: ConnectOptions - ): Connector; -} diff --git a/flow-typed/npm/react-test-renderer_v16.x.x.js b/flow-typed/npm/react-test-renderer_v16.x.x.js deleted file mode 100644 index 1f9a271c6cb..00000000000 --- a/flow-typed/npm/react-test-renderer_v16.x.x.js +++ /dev/null @@ -1,62 +0,0 @@ -// flow-typed signature: 2d946f2ec4aba5210b19d053c411a59d -// flow-typed version: 95b3e05165/react-test-renderer_v16.x.x/flow_>=v0.47.x - -// Type definitions for react-test-renderer 16.x.x -// Ported from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-test-renderer - -type ReactTestRendererJSON = { - type: string, - props: { [propName: string]: any }, - children: null | ReactTestRendererJSON[] -}; - -type ReactTestRendererTree = ReactTestRendererJSON & { - nodeType: "component" | "host", - instance: any, - rendered: null | ReactTestRendererTree -}; - -type ReactTestInstance = { - instance: any, - type: string, - props: { [propName: string]: any }, - parent: null | ReactTestInstance, - children: Array, - - find(predicate: (node: ReactTestInstance) => boolean): ReactTestInstance, - findByType(type: React$ElementType): ReactTestInstance, - findByProps(props: { [propName: string]: any }): ReactTestInstance, - - findAll( - predicate: (node: ReactTestInstance) => boolean, - options?: { deep: boolean } - ): ReactTestInstance[], - findAllByType( - type: React$ElementType, - options?: { deep: boolean } - ): ReactTestInstance[], - findAllByProps( - props: { [propName: string]: any }, - options?: { deep: boolean } - ): ReactTestInstance[] -}; - -type ReactTestRenderer = { - toJSON(): null | ReactTestRendererJSON, - toTree(): null | ReactTestRendererTree, - unmount(nextElement?: React$Element): void, - update(nextElement: React$Element): void, - getInstance(): null | ReactTestInstance, - root: ReactTestInstance -}; - -type TestRendererOptions = { - createNodeMock(element: React$Element): any -}; - -declare module "react-test-renderer" { - declare function create( - nextElement: React$Element, - options?: TestRendererOptions - ): ReactTestRenderer; -} diff --git a/flow-typed/npm/react-test-renderer_vx.x.x.js b/flow-typed/npm/react-test-renderer_vx.x.x.js deleted file mode 100644 index bb446e83ee2..00000000000 --- a/flow-typed/npm/react-test-renderer_vx.x.x.js +++ /dev/null @@ -1,745 +0,0 @@ -// flow-typed signature: c19fbc9dd4cbe5477b73153dd75a2520 -// flow-typed version: <>/react-test-renderer_v16.0.0-alpha.6/flow_v0.44.2 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-test-renderer' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-test-renderer' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-test-renderer/lib/accumulate' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/accumulateInto' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/adler32' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/CallbackQueue' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/canDefineProperty' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/checkReactTypeSpec' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/deprecated' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/EventConstants' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/EventPluginHub' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/EventPluginRegistry' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/EventPluginUtils' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/EventPropagators' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/flattenChildren' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/forEachAccumulated' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/getComponentName' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/getContextForSubtree' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/getHostComponentFromComposite' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/getIteratorFn' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/getNextDebugID' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/instantiateReactComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/isTextInputElement' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/KeyEscapeUtils' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/PluginModuleType' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/PooledClass' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactChildFiber' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactChildReconciler' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactComponentEnvironment' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactCompositeComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactCompositeComponentTypes' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactControlledComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactCoroutine' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactDebugCurrentFiber' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactDebugFiberPerf' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactDebugTool' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactDefaultBatchingStrategy' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactElementSymbol' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactElementType' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactEmptyComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactErrorUtils' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactEventEmitterMixin' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFeatureFlags' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiber' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberBeginWork' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberClassComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberCommitWork' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberCompleteWork' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberComponentTreeHook' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberContext' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberDevToolsHook' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberErrorLogger' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberHostContext' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberInstrumentation' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberReconciler' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberRoot' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberScheduler' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberStack' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberTreeReflection' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactFiberUpdateQueue' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactGenericBatching' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactHostComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactHostOperationHistoryHook' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactInstanceMap' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactInstanceType' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactInstrumentation' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactInvalidSetStateWarningHook' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactMultiChild' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactMultiChildUpdateTypes' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactNodeTypes' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactOwner' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactPerf' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactPortal' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactPriorityLevel' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/reactProdInvariant' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactPropTypesSecret' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactReconciler' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactRef' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactSimpleEmptyComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactSyntheticEventType' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTestEmptyComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTestMount' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTestReconcileTransaction' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTestRenderer' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTestRendererFeatureFlags' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTestRendererFiber' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTestRendererStack' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTestTextComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTreeTraversal' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTypeOfSideEffect' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTypeOfWork' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactTypes' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactUpdateQueue' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactUpdates' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ReactVersion' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ResponderEventPlugin' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ResponderSyntheticEvent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/ResponderTouchHistoryStore' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/shouldUpdateReactComponent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/SyntheticEvent' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/TouchHistoryMath' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/Transaction' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/traverseAllChildren' { - declare module.exports: any; -} - -declare module 'react-test-renderer/lib/validateCallback' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-test-renderer/index' { - declare module.exports: $Exports<'react-test-renderer'>; -} -declare module 'react-test-renderer/index.js' { - declare module.exports: $Exports<'react-test-renderer'>; -} -declare module 'react-test-renderer/lib/accumulate.js' { - declare module.exports: $Exports<'react-test-renderer/lib/accumulate'>; -} -declare module 'react-test-renderer/lib/accumulateInto.js' { - declare module.exports: $Exports<'react-test-renderer/lib/accumulateInto'>; -} -declare module 'react-test-renderer/lib/adler32.js' { - declare module.exports: $Exports<'react-test-renderer/lib/adler32'>; -} -declare module 'react-test-renderer/lib/CallbackQueue.js' { - declare module.exports: $Exports<'react-test-renderer/lib/CallbackQueue'>; -} -declare module 'react-test-renderer/lib/canDefineProperty.js' { - declare module.exports: $Exports<'react-test-renderer/lib/canDefineProperty'>; -} -declare module 'react-test-renderer/lib/checkReactTypeSpec.js' { - declare module.exports: $Exports<'react-test-renderer/lib/checkReactTypeSpec'>; -} -declare module 'react-test-renderer/lib/deprecated.js' { - declare module.exports: $Exports<'react-test-renderer/lib/deprecated'>; -} -declare module 'react-test-renderer/lib/EventConstants.js' { - declare module.exports: $Exports<'react-test-renderer/lib/EventConstants'>; -} -declare module 'react-test-renderer/lib/EventPluginHub.js' { - declare module.exports: $Exports<'react-test-renderer/lib/EventPluginHub'>; -} -declare module 'react-test-renderer/lib/EventPluginRegistry.js' { - declare module.exports: $Exports<'react-test-renderer/lib/EventPluginRegistry'>; -} -declare module 'react-test-renderer/lib/EventPluginUtils.js' { - declare module.exports: $Exports<'react-test-renderer/lib/EventPluginUtils'>; -} -declare module 'react-test-renderer/lib/EventPropagators.js' { - declare module.exports: $Exports<'react-test-renderer/lib/EventPropagators'>; -} -declare module 'react-test-renderer/lib/flattenChildren.js' { - declare module.exports: $Exports<'react-test-renderer/lib/flattenChildren'>; -} -declare module 'react-test-renderer/lib/forEachAccumulated.js' { - declare module.exports: $Exports<'react-test-renderer/lib/forEachAccumulated'>; -} -declare module 'react-test-renderer/lib/getComponentName.js' { - declare module.exports: $Exports<'react-test-renderer/lib/getComponentName'>; -} -declare module 'react-test-renderer/lib/getContextForSubtree.js' { - declare module.exports: $Exports<'react-test-renderer/lib/getContextForSubtree'>; -} -declare module 'react-test-renderer/lib/getHostComponentFromComposite.js' { - declare module.exports: $Exports<'react-test-renderer/lib/getHostComponentFromComposite'>; -} -declare module 'react-test-renderer/lib/getIteratorFn.js' { - declare module.exports: $Exports<'react-test-renderer/lib/getIteratorFn'>; -} -declare module 'react-test-renderer/lib/getNextDebugID.js' { - declare module.exports: $Exports<'react-test-renderer/lib/getNextDebugID'>; -} -declare module 'react-test-renderer/lib/instantiateReactComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/instantiateReactComponent'>; -} -declare module 'react-test-renderer/lib/isTextInputElement.js' { - declare module.exports: $Exports<'react-test-renderer/lib/isTextInputElement'>; -} -declare module 'react-test-renderer/lib/KeyEscapeUtils.js' { - declare module.exports: $Exports<'react-test-renderer/lib/KeyEscapeUtils'>; -} -declare module 'react-test-renderer/lib/PluginModuleType.js' { - declare module.exports: $Exports<'react-test-renderer/lib/PluginModuleType'>; -} -declare module 'react-test-renderer/lib/PooledClass.js' { - declare module.exports: $Exports<'react-test-renderer/lib/PooledClass'>; -} -declare module 'react-test-renderer/lib/ReactChildFiber.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactChildFiber'>; -} -declare module 'react-test-renderer/lib/ReactChildReconciler.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactChildReconciler'>; -} -declare module 'react-test-renderer/lib/ReactComponentEnvironment.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactComponentEnvironment'>; -} -declare module 'react-test-renderer/lib/ReactCompositeComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactCompositeComponent'>; -} -declare module 'react-test-renderer/lib/ReactCompositeComponentTypes.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactCompositeComponentTypes'>; -} -declare module 'react-test-renderer/lib/ReactControlledComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactControlledComponent'>; -} -declare module 'react-test-renderer/lib/ReactCoroutine.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactCoroutine'>; -} -declare module 'react-test-renderer/lib/ReactDebugCurrentFiber.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactDebugCurrentFiber'>; -} -declare module 'react-test-renderer/lib/ReactDebugFiberPerf.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactDebugFiberPerf'>; -} -declare module 'react-test-renderer/lib/ReactDebugTool.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactDebugTool'>; -} -declare module 'react-test-renderer/lib/ReactDefaultBatchingStrategy.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactDefaultBatchingStrategy'>; -} -declare module 'react-test-renderer/lib/ReactElementSymbol.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactElementSymbol'>; -} -declare module 'react-test-renderer/lib/ReactElementType.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactElementType'>; -} -declare module 'react-test-renderer/lib/ReactEmptyComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactEmptyComponent'>; -} -declare module 'react-test-renderer/lib/ReactErrorUtils.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactErrorUtils'>; -} -declare module 'react-test-renderer/lib/ReactEventEmitterMixin.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactEventEmitterMixin'>; -} -declare module 'react-test-renderer/lib/ReactFeatureFlags.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFeatureFlags'>; -} -declare module 'react-test-renderer/lib/ReactFiber.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiber'>; -} -declare module 'react-test-renderer/lib/ReactFiberBeginWork.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberBeginWork'>; -} -declare module 'react-test-renderer/lib/ReactFiberClassComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberClassComponent'>; -} -declare module 'react-test-renderer/lib/ReactFiberCommitWork.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberCommitWork'>; -} -declare module 'react-test-renderer/lib/ReactFiberCompleteWork.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberCompleteWork'>; -} -declare module 'react-test-renderer/lib/ReactFiberComponentTreeHook.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberComponentTreeHook'>; -} -declare module 'react-test-renderer/lib/ReactFiberContext.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberContext'>; -} -declare module 'react-test-renderer/lib/ReactFiberDevToolsHook.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberDevToolsHook'>; -} -declare module 'react-test-renderer/lib/ReactFiberErrorLogger.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberErrorLogger'>; -} -declare module 'react-test-renderer/lib/ReactFiberHostContext.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberHostContext'>; -} -declare module 'react-test-renderer/lib/ReactFiberInstrumentation.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberInstrumentation'>; -} -declare module 'react-test-renderer/lib/ReactFiberReconciler.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberReconciler'>; -} -declare module 'react-test-renderer/lib/ReactFiberRoot.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberRoot'>; -} -declare module 'react-test-renderer/lib/ReactFiberScheduler.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberScheduler'>; -} -declare module 'react-test-renderer/lib/ReactFiberStack.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberStack'>; -} -declare module 'react-test-renderer/lib/ReactFiberTreeReflection.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberTreeReflection'>; -} -declare module 'react-test-renderer/lib/ReactFiberUpdateQueue.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactFiberUpdateQueue'>; -} -declare module 'react-test-renderer/lib/ReactGenericBatching.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactGenericBatching'>; -} -declare module 'react-test-renderer/lib/ReactHostComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactHostComponent'>; -} -declare module 'react-test-renderer/lib/ReactHostOperationHistoryHook.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactHostOperationHistoryHook'>; -} -declare module 'react-test-renderer/lib/ReactInstanceMap.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactInstanceMap'>; -} -declare module 'react-test-renderer/lib/ReactInstanceType.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactInstanceType'>; -} -declare module 'react-test-renderer/lib/ReactInstrumentation.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactInstrumentation'>; -} -declare module 'react-test-renderer/lib/ReactInvalidSetStateWarningHook.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactInvalidSetStateWarningHook'>; -} -declare module 'react-test-renderer/lib/ReactMultiChild.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactMultiChild'>; -} -declare module 'react-test-renderer/lib/ReactMultiChildUpdateTypes.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactMultiChildUpdateTypes'>; -} -declare module 'react-test-renderer/lib/ReactNodeTypes.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactNodeTypes'>; -} -declare module 'react-test-renderer/lib/ReactOwner.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactOwner'>; -} -declare module 'react-test-renderer/lib/ReactPerf.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactPerf'>; -} -declare module 'react-test-renderer/lib/ReactPortal.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactPortal'>; -} -declare module 'react-test-renderer/lib/ReactPriorityLevel.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactPriorityLevel'>; -} -declare module 'react-test-renderer/lib/reactProdInvariant.js' { - declare module.exports: $Exports<'react-test-renderer/lib/reactProdInvariant'>; -} -declare module 'react-test-renderer/lib/ReactPropTypesSecret.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactPropTypesSecret'>; -} -declare module 'react-test-renderer/lib/ReactReconciler.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactReconciler'>; -} -declare module 'react-test-renderer/lib/ReactRef.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactRef'>; -} -declare module 'react-test-renderer/lib/ReactSimpleEmptyComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactSimpleEmptyComponent'>; -} -declare module 'react-test-renderer/lib/ReactSyntheticEventType.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactSyntheticEventType'>; -} -declare module 'react-test-renderer/lib/ReactTestEmptyComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTestEmptyComponent'>; -} -declare module 'react-test-renderer/lib/ReactTestMount.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTestMount'>; -} -declare module 'react-test-renderer/lib/ReactTestReconcileTransaction.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTestReconcileTransaction'>; -} -declare module 'react-test-renderer/lib/ReactTestRenderer.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTestRenderer'>; -} -declare module 'react-test-renderer/lib/ReactTestRendererFeatureFlags.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTestRendererFeatureFlags'>; -} -declare module 'react-test-renderer/lib/ReactTestRendererFiber.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTestRendererFiber'>; -} -declare module 'react-test-renderer/lib/ReactTestRendererStack.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTestRendererStack'>; -} -declare module 'react-test-renderer/lib/ReactTestTextComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTestTextComponent'>; -} -declare module 'react-test-renderer/lib/ReactTreeTraversal.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTreeTraversal'>; -} -declare module 'react-test-renderer/lib/ReactTypeOfSideEffect.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTypeOfSideEffect'>; -} -declare module 'react-test-renderer/lib/ReactTypeOfWork.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTypeOfWork'>; -} -declare module 'react-test-renderer/lib/ReactTypes.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactTypes'>; -} -declare module 'react-test-renderer/lib/ReactUpdateQueue.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactUpdateQueue'>; -} -declare module 'react-test-renderer/lib/ReactUpdates.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactUpdates'>; -} -declare module 'react-test-renderer/lib/ReactVersion.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ReactVersion'>; -} -declare module 'react-test-renderer/lib/ResponderEventPlugin.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ResponderEventPlugin'>; -} -declare module 'react-test-renderer/lib/ResponderSyntheticEvent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ResponderSyntheticEvent'>; -} -declare module 'react-test-renderer/lib/ResponderTouchHistoryStore.js' { - declare module.exports: $Exports<'react-test-renderer/lib/ResponderTouchHistoryStore'>; -} -declare module 'react-test-renderer/lib/shouldUpdateReactComponent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/shouldUpdateReactComponent'>; -} -declare module 'react-test-renderer/lib/SyntheticEvent.js' { - declare module.exports: $Exports<'react-test-renderer/lib/SyntheticEvent'>; -} -declare module 'react-test-renderer/lib/TouchHistoryMath.js' { - declare module.exports: $Exports<'react-test-renderer/lib/TouchHistoryMath'>; -} -declare module 'react-test-renderer/lib/Transaction.js' { - declare module.exports: $Exports<'react-test-renderer/lib/Transaction'>; -} -declare module 'react-test-renderer/lib/traverseAllChildren.js' { - declare module.exports: $Exports<'react-test-renderer/lib/traverseAllChildren'>; -} -declare module 'react-test-renderer/lib/validateCallback.js' { - declare module.exports: $Exports<'react-test-renderer/lib/validateCallback'>; -} diff --git a/flow-typed/npm/redux-logger_vx.x.x.js b/flow-typed/npm/redux-logger_vx.x.x.js deleted file mode 100644 index cd009dde016..00000000000 --- a/flow-typed/npm/redux-logger_vx.x.x.js +++ /dev/null @@ -1,67 +0,0 @@ -// flow-typed signature: d8d29e9160164d6ecfb8fd7dd7acebfb -// flow-typed version: <>/redux-logger_v^3.0.6/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'redux-logger' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'redux-logger' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'redux-logger/dist/redux-logger' { - declare module.exports: any; -} - -declare module 'redux-logger/src/core' { - declare module.exports: any; -} - -declare module 'redux-logger/src/defaults' { - declare module.exports: any; -} - -declare module 'redux-logger/src/diff' { - declare module.exports: any; -} - -declare module 'redux-logger/src/helpers' { - declare module.exports: any; -} - -declare module 'redux-logger/src/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'redux-logger/dist/redux-logger.js' { - declare module.exports: $Exports<'redux-logger/dist/redux-logger'>; -} -declare module 'redux-logger/src/core.js' { - declare module.exports: $Exports<'redux-logger/src/core'>; -} -declare module 'redux-logger/src/defaults.js' { - declare module.exports: $Exports<'redux-logger/src/defaults'>; -} -declare module 'redux-logger/src/diff.js' { - declare module.exports: $Exports<'redux-logger/src/diff'>; -} -declare module 'redux-logger/src/helpers.js' { - declare module.exports: $Exports<'redux-logger/src/helpers'>; -} -declare module 'redux-logger/src/index.js' { - declare module.exports: $Exports<'redux-logger/src/index'>; -} diff --git a/flow-typed/npm/redux-persist_vx.x.x.js b/flow-typed/npm/redux-persist_vx.x.x.js deleted file mode 100644 index c124df82c21..00000000000 --- a/flow-typed/npm/redux-persist_vx.x.x.js +++ /dev/null @@ -1,488 +0,0 @@ -// flow-typed signature: bc94156da70d456b7fb070ceea6b0d23 -// flow-typed version: <>/redux-persist_v5.9.1/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'redux-persist' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'redux-persist' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'redux-persist/dist/redux-persist' { - declare module.exports: any; -} - -declare module 'redux-persist/dist/redux-persist.min' { - declare module.exports: any; -} - -declare module 'redux-persist/es/constants' { - declare module.exports: any; -} - -declare module 'redux-persist/es/createMigrate' { - declare module.exports: any; -} - -declare module 'redux-persist/es/createPersistoid' { - declare module.exports: any; -} - -declare module 'redux-persist/es/createTransform' { - declare module.exports: any; -} - -declare module 'redux-persist/es/getStoredState' { - declare module.exports: any; -} - -declare module 'redux-persist/es/index' { - declare module.exports: any; -} - -declare module 'redux-persist/es/integration/getStoredStateMigrateV4' { - declare module.exports: any; -} - -declare module 'redux-persist/es/integration/react' { - declare module.exports: any; -} - -declare module 'redux-persist/es/persistCombineReducers' { - declare module.exports: any; -} - -declare module 'redux-persist/es/persistReducer' { - declare module.exports: any; -} - -declare module 'redux-persist/es/persistStore' { - declare module.exports: any; -} - -declare module 'redux-persist/es/purgeStoredState' { - declare module.exports: any; -} - -declare module 'redux-persist/es/stateReconciler/autoMergeLevel1' { - declare module.exports: any; -} - -declare module 'redux-persist/es/stateReconciler/autoMergeLevel2' { - declare module.exports: any; -} - -declare module 'redux-persist/es/stateReconciler/hardSet' { - declare module.exports: any; -} - -declare module 'redux-persist/es/storage/createWebStorage' { - declare module.exports: any; -} - -declare module 'redux-persist/es/storage/getStorage' { - declare module.exports: any; -} - -declare module 'redux-persist/es/storage/index' { - declare module.exports: any; -} - -declare module 'redux-persist/es/storage/index.native' { - declare module.exports: any; -} - -declare module 'redux-persist/es/storage/session' { - declare module.exports: any; -} - -declare module 'redux-persist/es/types' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/constants' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/createMigrate' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/createPersistoid' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/createTransform' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/getStoredState' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/index' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/integration/getStoredStateMigrateV4' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/integration/react' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/persistCombineReducers' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/persistReducer' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/persistStore' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/purgeStoredState' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/stateReconciler/autoMergeLevel1' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/stateReconciler/autoMergeLevel2' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/stateReconciler/hardSet' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/storage/createWebStorage' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/storage/getStorage' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/storage/index' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/storage/index.native' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/storage/session' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/types' { - declare module.exports: any; -} - -declare module 'redux-persist/src/constants' { - declare module.exports: any; -} - -declare module 'redux-persist/src/createMigrate' { - declare module.exports: any; -} - -declare module 'redux-persist/src/createPersistoid' { - declare module.exports: any; -} - -declare module 'redux-persist/src/createTransform' { - declare module.exports: any; -} - -declare module 'redux-persist/src/getStoredState' { - declare module.exports: any; -} - -declare module 'redux-persist/src/index' { - declare module.exports: any; -} - -declare module 'redux-persist/src/integration/getStoredStateMigrateV4' { - declare module.exports: any; -} - -declare module 'redux-persist/src/integration/react' { - declare module.exports: any; -} - -declare module 'redux-persist/src/persistCombineReducers' { - declare module.exports: any; -} - -declare module 'redux-persist/src/persistReducer' { - declare module.exports: any; -} - -declare module 'redux-persist/src/persistStore' { - declare module.exports: any; -} - -declare module 'redux-persist/src/purgeStoredState' { - declare module.exports: any; -} - -declare module 'redux-persist/src/stateReconciler/autoMergeLevel1' { - declare module.exports: any; -} - -declare module 'redux-persist/src/stateReconciler/autoMergeLevel2' { - declare module.exports: any; -} - -declare module 'redux-persist/src/stateReconciler/hardSet' { - declare module.exports: any; -} - -declare module 'redux-persist/src/storage/createWebStorage' { - declare module.exports: any; -} - -declare module 'redux-persist/src/storage/getStorage' { - declare module.exports: any; -} - -declare module 'redux-persist/src/storage/index' { - declare module.exports: any; -} - -declare module 'redux-persist/src/storage/index.native' { - declare module.exports: any; -} - -declare module 'redux-persist/src/storage/session' { - declare module.exports: any; -} - -declare module 'redux-persist/src/types' { - declare module.exports: any; -} - -declare module 'redux-persist/integration/react' { - declare module.exports: any; -} - -declare module 'redux-persist/lib/storage' { - declare module.exports: any; -} - -// Filename aliases -declare module 'redux-persist/dist/redux-persist.js' { - declare module.exports: $Exports<'redux-persist/dist/redux-persist'>; -} -declare module 'redux-persist/dist/redux-persist.min.js' { - declare module.exports: $Exports<'redux-persist/dist/redux-persist.min'>; -} -declare module 'redux-persist/es/constants.js' { - declare module.exports: $Exports<'redux-persist/es/constants'>; -} -declare module 'redux-persist/es/createMigrate.js' { - declare module.exports: $Exports<'redux-persist/es/createMigrate'>; -} -declare module 'redux-persist/es/createPersistoid.js' { - declare module.exports: $Exports<'redux-persist/es/createPersistoid'>; -} -declare module 'redux-persist/es/createTransform.js' { - declare module.exports: $Exports<'redux-persist/es/createTransform'>; -} -declare module 'redux-persist/es/getStoredState.js' { - declare module.exports: $Exports<'redux-persist/es/getStoredState'>; -} -declare module 'redux-persist/es/index.js' { - declare module.exports: $Exports<'redux-persist/es/index'>; -} -declare module 'redux-persist/es/integration/getStoredStateMigrateV4.js' { - declare module.exports: $Exports<'redux-persist/es/integration/getStoredStateMigrateV4'>; -} -declare module 'redux-persist/es/integration/react.js' { - declare module.exports: $Exports<'redux-persist/es/integration/react'>; -} -declare module 'redux-persist/es/persistCombineReducers.js' { - declare module.exports: $Exports<'redux-persist/es/persistCombineReducers'>; -} -declare module 'redux-persist/es/persistReducer.js' { - declare module.exports: $Exports<'redux-persist/es/persistReducer'>; -} -declare module 'redux-persist/es/persistStore.js' { - declare module.exports: $Exports<'redux-persist/es/persistStore'>; -} -declare module 'redux-persist/es/purgeStoredState.js' { - declare module.exports: $Exports<'redux-persist/es/purgeStoredState'>; -} -declare module 'redux-persist/es/stateReconciler/autoMergeLevel1.js' { - declare module.exports: $Exports<'redux-persist/es/stateReconciler/autoMergeLevel1'>; -} -declare module 'redux-persist/es/stateReconciler/autoMergeLevel2.js' { - declare module.exports: $Exports<'redux-persist/es/stateReconciler/autoMergeLevel2'>; -} -declare module 'redux-persist/es/stateReconciler/hardSet.js' { - declare module.exports: $Exports<'redux-persist/es/stateReconciler/hardSet'>; -} -declare module 'redux-persist/es/storage/createWebStorage.js' { - declare module.exports: $Exports<'redux-persist/es/storage/createWebStorage'>; -} -declare module 'redux-persist/es/storage/getStorage.js' { - declare module.exports: $Exports<'redux-persist/es/storage/getStorage'>; -} -declare module 'redux-persist/es/storage/index.js' { - declare module.exports: $Exports<'redux-persist/es/storage/index'>; -} -declare module 'redux-persist/es/storage/index.native.js' { - declare module.exports: $Exports<'redux-persist/es/storage/index.native'>; -} -declare module 'redux-persist/es/storage/session.js' { - declare module.exports: $Exports<'redux-persist/es/storage/session'>; -} -declare module 'redux-persist/es/types.js' { - declare module.exports: $Exports<'redux-persist/es/types'>; -} -declare module 'redux-persist/lib/constants.js' { - declare module.exports: $Exports<'redux-persist/lib/constants'>; -} -declare module 'redux-persist/lib/createMigrate.js' { - declare module.exports: $Exports<'redux-persist/lib/createMigrate'>; -} -declare module 'redux-persist/lib/createPersistoid.js' { - declare module.exports: $Exports<'redux-persist/lib/createPersistoid'>; -} -declare module 'redux-persist/lib/createTransform.js' { - declare module.exports: $Exports<'redux-persist/lib/createTransform'>; -} -declare module 'redux-persist/lib/getStoredState.js' { - declare module.exports: $Exports<'redux-persist/lib/getStoredState'>; -} -declare module 'redux-persist/lib/index.js' { - declare module.exports: $Exports<'redux-persist/lib/index'>; -} -declare module 'redux-persist/lib/integration/getStoredStateMigrateV4.js' { - declare module.exports: $Exports<'redux-persist/lib/integration/getStoredStateMigrateV4'>; -} -declare module 'redux-persist/lib/integration/react.js' { - declare module.exports: $Exports<'redux-persist/lib/integration/react'>; -} -declare module 'redux-persist/lib/persistCombineReducers.js' { - declare module.exports: $Exports<'redux-persist/lib/persistCombineReducers'>; -} -declare module 'redux-persist/lib/persistReducer.js' { - declare module.exports: $Exports<'redux-persist/lib/persistReducer'>; -} -declare module 'redux-persist/lib/persistStore.js' { - declare module.exports: $Exports<'redux-persist/lib/persistStore'>; -} -declare module 'redux-persist/lib/purgeStoredState.js' { - declare module.exports: $Exports<'redux-persist/lib/purgeStoredState'>; -} -declare module 'redux-persist/lib/stateReconciler/autoMergeLevel1.js' { - declare module.exports: $Exports<'redux-persist/lib/stateReconciler/autoMergeLevel1'>; -} -declare module 'redux-persist/lib/stateReconciler/autoMergeLevel2.js' { - declare module.exports: $Exports<'redux-persist/lib/stateReconciler/autoMergeLevel2'>; -} -declare module 'redux-persist/lib/stateReconciler/hardSet.js' { - declare module.exports: $Exports<'redux-persist/lib/stateReconciler/hardSet'>; -} -declare module 'redux-persist/lib/storage/createWebStorage.js' { - declare module.exports: $Exports<'redux-persist/lib/storage/createWebStorage'>; -} -declare module 'redux-persist/lib/storage/getStorage.js' { - declare module.exports: $Exports<'redux-persist/lib/storage/getStorage'>; -} -declare module 'redux-persist/lib/storage/index.js' { - declare module.exports: $Exports<'redux-persist/lib/storage/index'>; -} -declare module 'redux-persist/lib/storage/index.native.js' { - declare module.exports: $Exports<'redux-persist/lib/storage/index.native'>; -} -declare module 'redux-persist/lib/storage/session.js' { - declare module.exports: $Exports<'redux-persist/lib/storage/session'>; -} -declare module 'redux-persist/lib/types.js' { - declare module.exports: $Exports<'redux-persist/lib/types'>; -} -declare module 'redux-persist/src/constants.js' { - declare module.exports: $Exports<'redux-persist/src/constants'>; -} -declare module 'redux-persist/src/createMigrate.js' { - declare module.exports: $Exports<'redux-persist/src/createMigrate'>; -} -declare module 'redux-persist/src/createPersistoid.js' { - declare module.exports: $Exports<'redux-persist/src/createPersistoid'>; -} -declare module 'redux-persist/src/createTransform.js' { - declare module.exports: $Exports<'redux-persist/src/createTransform'>; -} -declare module 'redux-persist/src/getStoredState.js' { - declare module.exports: $Exports<'redux-persist/src/getStoredState'>; -} -declare module 'redux-persist/src/index.js' { - declare module.exports: $Exports<'redux-persist/src/index'>; -} -declare module 'redux-persist/src/integration/getStoredStateMigrateV4.js' { - declare module.exports: $Exports<'redux-persist/src/integration/getStoredStateMigrateV4'>; -} -declare module 'redux-persist/src/integration/react.js' { - declare module.exports: $Exports<'redux-persist/src/integration/react'>; -} -declare module 'redux-persist/src/persistCombineReducers.js' { - declare module.exports: $Exports<'redux-persist/src/persistCombineReducers'>; -} -declare module 'redux-persist/src/persistReducer.js' { - declare module.exports: $Exports<'redux-persist/src/persistReducer'>; -} -declare module 'redux-persist/src/persistStore.js' { - declare module.exports: $Exports<'redux-persist/src/persistStore'>; -} -declare module 'redux-persist/src/purgeStoredState.js' { - declare module.exports: $Exports<'redux-persist/src/purgeStoredState'>; -} -declare module 'redux-persist/src/stateReconciler/autoMergeLevel1.js' { - declare module.exports: $Exports<'redux-persist/src/stateReconciler/autoMergeLevel1'>; -} -declare module 'redux-persist/src/stateReconciler/autoMergeLevel2.js' { - declare module.exports: $Exports<'redux-persist/src/stateReconciler/autoMergeLevel2'>; -} -declare module 'redux-persist/src/stateReconciler/hardSet.js' { - declare module.exports: $Exports<'redux-persist/src/stateReconciler/hardSet'>; -} -declare module 'redux-persist/src/storage/createWebStorage.js' { - declare module.exports: $Exports<'redux-persist/src/storage/createWebStorage'>; -} -declare module 'redux-persist/src/storage/getStorage.js' { - declare module.exports: $Exports<'redux-persist/src/storage/getStorage'>; -} -declare module 'redux-persist/src/storage/index.js' { - declare module.exports: $Exports<'redux-persist/src/storage/index'>; -} -declare module 'redux-persist/src/storage/index.native.js' { - declare module.exports: $Exports<'redux-persist/src/storage/index.native'>; -} -declare module 'redux-persist/src/storage/session.js' { - declare module.exports: $Exports<'redux-persist/src/storage/session'>; -} -declare module 'redux-persist/src/types.js' { - declare module.exports: $Exports<'redux-persist/src/types'>; -} diff --git a/flow-typed/npm/redux-saga_v0.16.x.js b/flow-typed/npm/redux-saga_v0.16.x.js deleted file mode 100644 index 8140b33a061..00000000000 --- a/flow-typed/npm/redux-saga_v0.16.x.js +++ /dev/null @@ -1,1475 +0,0 @@ -// flow-typed signature: ed8e53f40d350cb63a7f201d38c0e1ec -// flow-typed version: fd6d313c44/redux-saga_v0.16.x/flow_>=v0.56.0 - -// @flow - -declare module "redux-saga" { - import typeof * as _effects from "redux-saga/effects"; - declare export var effects: _effects; - - declare export interface Channel { - take: (cb: (msg: mixed) => void) => void; - put: (msg: mixed) => void; - flush: (cb: (msgs: mixed) => void) => void; - close: () => void; - } - - declare export interface Task { - isRunning: () => boolean; - isCancelled: () => boolean; - result: () => T | void; - error: () => Error | void; - cancel: () => void; - done: Promise; - } - - declare export interface Buffer { - isEmpty: () => boolean; - put: (msg: mixed) => void; - take(): mixed; - } - - declare export interface SagaMonitor { - effectTriggered: (options: { - +effectId: number, - +parentEffectId: number, - +label: string, - +effect: Effect - }) => void; - effectResolved: (effectId: number, result: mixed) => void; - effectRejected: (effectId: number, error: Error) => void; - effectCancelled: (effectId: number) => void; - actionDispatched: (action: mixed) => void; - } - - declare export type Saga = Generator; - - declare export var eventChannel: ( - sub: (emit: (msg: any) => void) => () => void, - buffer?: Buffer, - matcher?: (msg: mixed) => boolean - ) => Channel; - - declare export var buffers: { - +none: () => Buffer, - +fixed: (limit?: number) => Buffer, - +dropping: (limit?: number) => Buffer, - +sliding: (limit?: number) => Buffer, - +expanding: (initialSize?: number) => Buffer - }; - - declare export var channel: (buffer?: Buffer) => Channel; - declare export var END: { +type: "@@redux-saga/CHANNEL_END" }; - declare export var CANCEL: Symbol; - declare export var delay: (timeout: number) => Promise; - - declare type RunSagaOptions = { - +subscribe?: (emit: (input: any) => any) => () => void, - +dispatch?: (output: any) => any, - +getState?: () => any, - +sagaMonitor?: SagaMonitor, - +logger?: ( - level: "info" | "warning" | "error", - ...args: Array - ) => void, - +onError?: (error: Error) => void - }; - - declare export var runSaga: { - Saga>(options: RunSagaOptions, saga: Fn): Task, - Saga>( - options: RunSagaOptions, - saga: Fn, - t1: T1 - ): Task, - Saga>( - options: RunSagaOptions, - saga: Fn, - t1: T1, - t2: T2 - ): Task, - Saga>( - options: RunSagaOptions, - saga: Fn, - t1: T1, - t2: T2, - t3: T3 - ): Task, - Saga>( - options: RunSagaOptions, - saga: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): Task, - < - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => Saga - >( - options: RunSagaOptions, - saga: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): Task, - < - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => Saga - >( - options: RunSagaOptions, - saga: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): Task - }; - - declare interface SagaMiddleware { - // TODO: This should be aligned with the official redux typings sometime - (api: any): (next: any) => any; - run: { - Saga>(saga: Fn): Task, - Saga>(saga: Fn, t1: T1): Task, - Saga>( - saga: Fn, - t1: T1, - t2: T2 - ): Task, - Saga>( - saga: Fn, - t1: T1, - t2: T2, - t3: T3 - ): Task, - Saga>( - saga: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): Task, - < - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => Saga - >( - saga: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): Task, - < - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => Saga - >( - saga: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): Task - }; - } - - declare type createSagaMiddleware = (options?: { - +sagaMonitor?: SagaMonitor, - +logger?: ( - level: "info" | "warning" | "error", - ...args: Array - ) => void, - +onError?: (error: Error) => void - }) => SagaMiddleware; - - declare export default createSagaMiddleware - - // Effect types - declare export type PatternPart = string | (any => boolean); - declare export type Pattern = PatternPart | $ReadOnlyArray; - - declare export type TakeEffect< - P: Pattern | void, - C: Channel | void, - M: true | void - > = { - +"@@redux-saga/IO": true, - +TAKE: { - +pattern: P, - +channel: C, - +maybe: M - } - }; - - declare export type PutEffect = { - +"@@redux-saga/IO": true, - +PUT: { - +action: A, - +channel: C - } - }; - - declare export type CallEffect> = { - +"@@redux-saga/IO": true, - +CALL: { - +context: Ctx, - +fn: Fn, - +args: Args - } - }; - - declare export type ForkEffect> = { - +"@@redux-saga/IO": true, - +FORK: { - +context: Ctx, - +fn: Fn, - +args: Args - } - }; - - declare export type CpsEffect> = { - +"@@redux-saga/IO": true, - +CPS: { - +context: Ctx, - +fn: Fn, - +args: Args - } - }; - - declare export type SpawnEffect< - Ctx, - Fn: Function, - Args: $ReadOnlyArray<*> - > = { - +"@@redux-saga/IO": true, - +SPAWN: { - +context: Ctx, - +fn: Fn, - +args: Args - } - }; - - declare export type JoinEffect> = { - +"@@redux-saga/IO": true, - +JOIN: T - }; - - declare export type CancelEffect< - T: Task<*> | "@@redux-saga/SELF_CANCELLATION" - > = { - +"@@redux-saga/IO": true, - +CANCEL: T - }; - - declare export type SelectEffect> = { - +"@@redux-saga/IO": true, - +SELECT: { - +selector: Fn, - +args: Args - } - }; - - declare export type ActionChannelEffect = { - +"@@redux-saga/IO": true, - +ACTION_CHANNEL: { - +buffer: B, - +pattern: P - } - }; - - declare export type FlushEffect = { - +"@@redux-saga/IO": true, - +FLUSH: Channel - }; - - declare export type CancelledEffect = { - +"@@redux-saga/IO": true, - +CANCELLED: {} - }; - - declare export type SetContextEffect = { - +"@@redux-saga/IO": true, - +SET_CONTEXT: T - }; - - declare export type GetContextEffect = { - +"@@redux-saga/IO": true, - +GET_CONTEXT: string - }; - - declare export type RaceEffect< - R: { +[name: string]: Effect } | $ReadOnlyArray - > = { - +"@@redux-saga/IO": true, - +RACE: R - }; - - declare export type AllEffect = { - +"@@redux-saga/IO": true, - +ALL: { +[name: string]: Effect } | $ReadOnlyArray - }; - - declare export type Effect = - | TakeEffect<*, *, *> - | PutEffect<*, *> - | CallEffect<*, *, *> - | ForkEffect<*, *, *> - | CpsEffect<*, *, *> - | SpawnEffect<*, *, *> - | JoinEffect<*> - | CancelEffect<*> - | SelectEffect<*, *> - | ActionChannelEffect<*, *> - | FlushEffect - | CancelledEffect - | SetContextEffect<*> - | GetContextEffect - | RaceEffect<*> - | AllEffect; -} - -declare module "redux-saga/effects" { - import type { - ActionChannelEffect, - AllEffect, - Buffer, - CallEffect, - CancelEffect, - CancelledEffect, - Channel, - CpsEffect, - Effect, - FlushEffect, - ForkEffect, - GetContextEffect, - JoinEffect, - Pattern, - PutEffect, - RaceEffect, - Saga, - SelectEffect, - SetContextEffect, - SpawnEffect, - TakeEffect, - Task - } from "redux-saga"; - - declare export var take: { - (pattern: P): TakeEffect, - (channel: Channel): TakeEffect, - +maybe: { - (pattern: P): TakeEffect, - (channel: Channel): TakeEffect - } - }; - - declare export var put: { - (action: A): PutEffect, - (channel: Channel, action: A): PutEffect - }; - - declare export var call: { - // normal calls - R>(fn: Fn): CallEffect, - R>(fn: Fn, t1: T1): CallEffect, - R>( - fn: Fn, - t1: T1, - t2: T2 - ): CallEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): CallEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): CallEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): CallEffect, - < - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R - >( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): CallEffect, - - // with context - R>(cfn: [Ctx, Fn]): CallEffect, - R>( - cfn: [Ctx, Fn], - t1: T1 - ): CallEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2 - ): CallEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3 - ): CallEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): CallEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): CallEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): CallEffect - }; - - declare export var apply: { - R>(ctx: Ctx, fn: Fn): CallEffect, - R>( - ctx: Ctx, - fn: Fn, - t1: T1 - ): CallEffect, - R>( - ctx: Ctx, - fn: Fn, - t1: T1, - t2: T2 - ): CallEffect, - R>( - ctx: Ctx, - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): CallEffect, - R>( - ctx: Ctx, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): CallEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R - >( - ctx: Ctx, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): CallEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R - >( - ctx: Ctx, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): CallEffect - }; - - declare type NodeCallback = { - (err: Error): void, - (err: null | void | false, result: R): void - }; - - declare export var cps: { - // normal calls - ) => void>(fn: Fn): CpsEffect, - ) => void>( - fn: Fn, - t1: T1 - ): CpsEffect, - ) => void>( - fn: Fn, - t1: T1, - t2: T2 - ): CpsEffect, - ) => void>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): CpsEffect, - < - R, - T1, - T2, - T3, - T4, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, cb: NodeCallback) => void - >( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): CpsEffect, - < - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, cb: NodeCallback) => void - >( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): CpsEffect, - < - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: ( - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6, - cb: NodeCallback - ) => void - >( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): CpsEffect, - - // with context - ) => void>( - cfn: [Ctx, Fn] - ): CpsEffect, - ) => void>( - cfn: [Ctx, Fn], - t1: T1 - ): CpsEffect, - ) => void>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2 - ): CpsEffect, - < - Ctx, - R, - T1, - T2, - T3, - Fn: (t1: T1, t2: T2, t3: T3, cb: NodeCallback) => void - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3 - ): CpsEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, cb: NodeCallback) => void - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): CpsEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, cb: NodeCallback) => void - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): CpsEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: ( - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6, - cb: NodeCallback - ) => void - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): CpsEffect - }; - - declare export var fork: { - // normal calls - R>(fn: Fn): ForkEffect, - R>(fn: Fn, t1: T1): ForkEffect, - R>( - fn: Fn, - t1: T1, - t2: T2 - ): ForkEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): ForkEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): ForkEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): ForkEffect, - < - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R - >( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): ForkEffect, - - // with context - R>(cfn: [Ctx, Fn]): ForkEffect, - R>( - cfn: [Ctx, Fn], - t1: T1 - ): ForkEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2 - ): ForkEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3 - ): ForkEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): ForkEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): ForkEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): ForkEffect - }; - - declare export var spawn: { - // normal calls - R>(fn: Fn): SpawnEffect, - R>(fn: Fn, t1: T1): SpawnEffect, - R>( - fn: Fn, - t1: T1, - t2: T2 - ): SpawnEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): SpawnEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): SpawnEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): SpawnEffect, - < - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R - >( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): SpawnEffect, - - // with context - R>(cfn: [Ctx, Fn]): SpawnEffect, - R>( - cfn: [Ctx, Fn], - t1: T1 - ): SpawnEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2 - ): SpawnEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3 - ): SpawnEffect, - R>( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): SpawnEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): SpawnEffect, - < - Ctx, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R - >( - cfn: [Ctx, Fn], - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): SpawnEffect - }; - - declare export var join: { - >(task: T): JoinEffect, - (task: Task<*>, ...tasks: $ReadOnlyArray>): AllEffect - }; - - declare export var cancel: { - (): CancelEffect<"@@redux-saga/SELF_CANCELLATION">, - >(task: T): CancelEffect, - (task: Task<*>, ...tasks: $ReadOnlyArray>): AllEffect - }; - - declare export var select: { - R>(fn: Fn): SelectEffect, - R>( - fn: Fn, - t1: T1 - ): SelectEffect, - R>( - fn: Fn, - t1: T1, - t2: T2 - ): SelectEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): SelectEffect, - R>( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): SelectEffect, - < - S, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (state: S, t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R - >( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): SelectEffect, - < - S, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (state: S, t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R - >( - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): SelectEffect - }; - - declare export var actionChannel: { - (pattern: P): ActionChannelEffect, - (pattern: P, buffer: B): ActionChannelEffect - }; - - declare export var flush: { - (channel: Channel): FlushEffect - }; - - declare export var cancelled: { - (): CancelledEffect - }; - - declare export var setContext: { - (ctx: T): SetContextEffect - }; - - declare export var getContext: { - (prop: string): GetContextEffect - }; - - declare export var race: { - >( - effects: R - ): RaceEffect - }; - - declare export var all: { - (effects: { +[name: string]: Effect }): AllEffect, - (effects: $ReadOnlyArray): AllEffect - }; - - declare export var takeEvery: { - // normal calls - Saga>( - pattern: Pattern, - fn: Fn - ): ForkEffect>, - Saga>( - pattern: Pattern, - fn: Fn, - t1: T1 - ): ForkEffect>, - Saga>( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2 - ): ForkEffect>, - Saga>( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, action: A) => Saga - >( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, action: A) => Saga - >( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, action: A) => Saga - >( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): ForkEffect>, - - // with channel - Saga>( - channel: Channel, - fn: Fn - ): ForkEffect>, - Saga>( - channel: Channel, - fn: Fn, - t1: T1 - ): ForkEffect>, - Saga>( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2 - ): ForkEffect>, - Saga>( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, action: A) => Saga - >( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, action: A) => Saga - >( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, action: A) => Saga - >( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): ForkEffect> - }; - - declare export var takeLatest: { - // normal calls - Saga>( - pattern: Pattern, - fn: Fn - ): ForkEffect>, - Saga>( - pattern: Pattern, - fn: Fn, - t1: T1 - ): ForkEffect>, - Saga>( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2 - ): ForkEffect>, - Saga>( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, action: A) => Saga - >( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, action: A) => Saga - >( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, action: A) => Saga - >( - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): ForkEffect>, - - // with channel - Saga>( - channel: Channel, - fn: Fn - ): ForkEffect>, - Saga>( - channel: Channel, - fn: Fn, - t1: T1 - ): ForkEffect>, - Saga>( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2 - ): ForkEffect>, - Saga>( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, action: A) => Saga - >( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, action: A) => Saga - >( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): ForkEffect>, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, action: A) => Saga - >( - channel: Channel, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): ForkEffect> - }; - - declare export var throttle: { - // normal calls - Saga>( - ms: number, - pattern: Pattern, - fn: Fn - ): ForkEffect, - Saga>( - ms: number, - pattern: Pattern, - fn: Fn, - t1: T1 - ): ForkEffect, - Saga>( - ms: number, - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2 - ): ForkEffect, - Saga>( - ms: number, - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3 - ): ForkEffect, - < - A, - R, - T1, - T2, - T3, - T4, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, action: A) => Saga - >( - ms: number, - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4 - ): ForkEffect, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, action: A) => Saga - >( - ms: number, - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5 - ): ForkEffect, - < - A, - R, - T1, - T2, - T3, - T4, - T5, - T6, - Fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, action: A) => Saga - >( - ms: number, - pattern: Pattern, - fn: Fn, - t1: T1, - t2: T2, - t3: T3, - t4: T4, - t5: T5, - t6: T6 - ): ForkEffect - }; -} diff --git a/flow-typed/npm/redux-thunk_vx.x.x.js b/flow-typed/npm/redux-thunk_vx.x.x.js deleted file mode 100644 index ae2ff78b2c5..00000000000 --- a/flow-typed/npm/redux-thunk_vx.x.x.js +++ /dev/null @@ -1,60 +0,0 @@ -// flow-typed signature: 0530be43006f29dc7476c902ea600f47 -// flow-typed version: <>/redux-thunk_v^2.2.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'redux-thunk' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'redux-thunk' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'redux-thunk/dist/redux-thunk' { - declare module.exports: any; -} - -declare module 'redux-thunk/dist/redux-thunk.min' { - declare module.exports: any; -} - -declare module 'redux-thunk/es/index' { - declare module.exports: any; -} - -declare module 'redux-thunk/lib/index' { - declare module.exports: any; -} - -declare module 'redux-thunk/src/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'redux-thunk/dist/redux-thunk.js' { - declare module.exports: $Exports<'redux-thunk/dist/redux-thunk'>; -} -declare module 'redux-thunk/dist/redux-thunk.min.js' { - declare module.exports: $Exports<'redux-thunk/dist/redux-thunk.min'>; -} -declare module 'redux-thunk/es/index.js' { - declare module.exports: $Exports<'redux-thunk/es/index'>; -} -declare module 'redux-thunk/lib/index.js' { - declare module.exports: $Exports<'redux-thunk/lib/index'>; -} -declare module 'redux-thunk/src/index.js' { - declare module.exports: $Exports<'redux-thunk/src/index'>; -} diff --git a/flow-typed/npm/redux_v3.x.x.js b/flow-typed/npm/redux_v3.x.x.js deleted file mode 100644 index 97fec81e512..00000000000 --- a/flow-typed/npm/redux_v3.x.x.js +++ /dev/null @@ -1,59 +0,0 @@ -// flow-typed signature: ec7daead5cb4fec5ab25fedbedef29e8 -// flow-typed version: 2c04631d20/redux_v3.x.x/flow_>=v0.55.x - -declare module 'redux' { - - /* - - S = State - A = Action - D = Dispatch - - */ - - declare export type DispatchAPI = (action: A) => A; - declare export type Dispatch }> = DispatchAPI; - - declare export type MiddlewareAPI> = { - dispatch: D; - getState(): S; - }; - - declare export type Store> = { - // rewrite MiddlewareAPI members in order to get nicer error messages (intersections produce long messages) - dispatch: D; - getState(): S; - subscribe(listener: () => void): () => void; - replaceReducer(nextReducer: Reducer): void - }; - - declare export type Reducer = (state: S, action: A) => S; - - declare export type CombinedReducer = (state: $Shape & {} | void, action: A) => S; - - declare export type Middleware> = - (api: MiddlewareAPI) => - (next: D) => D; - - declare export type StoreCreator> = { - (reducer: Reducer, enhancer?: StoreEnhancer): Store; - (reducer: Reducer, preloadedState: S, enhancer?: StoreEnhancer): Store; - }; - - declare export type StoreEnhancer> = (next: StoreCreator) => StoreCreator; - - declare export function createStore(reducer: Reducer, enhancer?: StoreEnhancer): Store; - declare export function createStore(reducer: Reducer, preloadedState: S, enhancer?: StoreEnhancer): Store; - - declare export function applyMiddleware(...middlewares: Array>): StoreEnhancer; - - declare export type ActionCreator = (...args: Array) => A; - declare export type ActionCreators = { [key: K]: ActionCreator }; - - declare export function bindActionCreators, D: DispatchAPI>(actionCreator: C, dispatch: D): C; - declare export function bindActionCreators, D: DispatchAPI>(actionCreators: C, dispatch: D): C; - - declare export function combineReducers(reducers: O): CombinedReducer<$ObjMap(r: Reducer) => S>, A>; - - declare export var compose: $Compose; -} \ No newline at end of file diff --git a/flow-typed/npm/source-map_vx.x.x.js b/flow-typed/npm/source-map_vx.x.x.js deleted file mode 100644 index 469b7a30162..00000000000 --- a/flow-typed/npm/source-map_vx.x.x.js +++ /dev/null @@ -1,123 +0,0 @@ -// flow-typed signature: f0157108a30e62703fdd6dadcd8f800b -// flow-typed version: <>/source-map_v^0.6.1/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'source-map' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'source-map' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'source-map/dist/source-map.debug' { - declare module.exports: any; -} - -declare module 'source-map/dist/source-map' { - declare module.exports: any; -} - -declare module 'source-map/dist/source-map.min' { - declare module.exports: any; -} - -declare module 'source-map/lib/array-set' { - declare module.exports: any; -} - -declare module 'source-map/lib/base64-vlq' { - declare module.exports: any; -} - -declare module 'source-map/lib/base64' { - declare module.exports: any; -} - -declare module 'source-map/lib/binary-search' { - declare module.exports: any; -} - -declare module 'source-map/lib/mapping-list' { - declare module.exports: any; -} - -declare module 'source-map/lib/quick-sort' { - declare module.exports: any; -} - -declare module 'source-map/lib/source-map-consumer' { - declare module.exports: any; -} - -declare module 'source-map/lib/source-map-generator' { - declare module.exports: any; -} - -declare module 'source-map/lib/source-node' { - declare module.exports: any; -} - -declare module 'source-map/lib/util' { - declare module.exports: any; -} - -declare module 'source-map/source-map' { - declare module.exports: any; -} - -// Filename aliases -declare module 'source-map/dist/source-map.debug.js' { - declare module.exports: $Exports<'source-map/dist/source-map.debug'>; -} -declare module 'source-map/dist/source-map.js' { - declare module.exports: $Exports<'source-map/dist/source-map'>; -} -declare module 'source-map/dist/source-map.min.js' { - declare module.exports: $Exports<'source-map/dist/source-map.min'>; -} -declare module 'source-map/lib/array-set.js' { - declare module.exports: $Exports<'source-map/lib/array-set'>; -} -declare module 'source-map/lib/base64-vlq.js' { - declare module.exports: $Exports<'source-map/lib/base64-vlq'>; -} -declare module 'source-map/lib/base64.js' { - declare module.exports: $Exports<'source-map/lib/base64'>; -} -declare module 'source-map/lib/binary-search.js' { - declare module.exports: $Exports<'source-map/lib/binary-search'>; -} -declare module 'source-map/lib/mapping-list.js' { - declare module.exports: $Exports<'source-map/lib/mapping-list'>; -} -declare module 'source-map/lib/quick-sort.js' { - declare module.exports: $Exports<'source-map/lib/quick-sort'>; -} -declare module 'source-map/lib/source-map-consumer.js' { - declare module.exports: $Exports<'source-map/lib/source-map-consumer'>; -} -declare module 'source-map/lib/source-map-generator.js' { - declare module.exports: $Exports<'source-map/lib/source-map-generator'>; -} -declare module 'source-map/lib/source-node.js' { - declare module.exports: $Exports<'source-map/lib/source-node'>; -} -declare module 'source-map/lib/util.js' { - declare module.exports: $Exports<'source-map/lib/util'>; -} -declare module 'source-map/source-map.js' { - declare module.exports: $Exports<'source-map/source-map'>; -} diff --git a/flow-typed/npm/stacktrace-js_vx.x.x.js b/flow-typed/npm/stacktrace-js_vx.x.x.js deleted file mode 100644 index 2a98ece7daf..00000000000 --- a/flow-typed/npm/stacktrace-js_vx.x.x.js +++ /dev/null @@ -1,60 +0,0 @@ -// flow-typed signature: c6ce056634c803a169fc14b05510ab05 -// flow-typed version: <>/stacktrace-js_v^2.0.0/flow_v0.56.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'stacktrace-js' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'stacktrace-js' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills' { - declare module.exports: any; -} - -declare module 'stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min' { - declare module.exports: any; -} - -declare module 'stacktrace-js/dist/stacktrace' { - declare module.exports: any; -} - -declare module 'stacktrace-js/dist/stacktrace.min' { - declare module.exports: any; -} - -declare module 'stacktrace-js/stacktrace' { - declare module.exports: any; -} - -// Filename aliases -declare module 'stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.js' { - declare module.exports: $Exports<'stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills'>; -} -declare module 'stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js' { - declare module.exports: $Exports<'stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min'>; -} -declare module 'stacktrace-js/dist/stacktrace.js' { - declare module.exports: $Exports<'stacktrace-js/dist/stacktrace'>; -} -declare module 'stacktrace-js/dist/stacktrace.min.js' { - declare module.exports: $Exports<'stacktrace-js/dist/stacktrace.min'>; -} -declare module 'stacktrace-js/stacktrace.js' { - declare module.exports: $Exports<'stacktrace-js/stacktrace'>; -} diff --git a/index.js b/index.js index 32c307b938c..bfc19260653 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,8 @@ /** - * @flow + * Main app entrypoint */ -'use strict' -require('./js/index') +import { AppRegistry } from 'react-native' +import App from './ts/App' + +AppRegistry.registerComponent('ItaliaApp', () => App) diff --git a/js/actions/index.js b/js/actions/index.js deleted file mode 100644 index 76dfed11a43..00000000000 --- a/js/actions/index.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Aggregates all the actions available to components. - * - * @flow - */ - -export * from './login' -export * from './user' diff --git a/js/actions/login.js b/js/actions/login.js deleted file mode 100644 index bf71541251e..00000000000 --- a/js/actions/login.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Implements login/logout actions. - * - * @flow - */ - -import type { Action, Thunk, Dispatch, GetState } from './types' -import type { IdentityProvider } from '../utils/api' -import { requestUserProfile } from './user' -import { loadProfile } from '../store/actions/profile' - -// The User is about to Login (taps on the SPID Login button) -const USER_WILL_LOGIN_ACTION = 'USER_WILL_LOGIN_ACTION' -// The User selects the SPID Provider from the list -const USER_SELECTED_SPID_PROVIDER_ACTION = 'USER_SELECTED_SPID_PROVIDER_ACTION' -// The User successfully performs a proper Login -const USER_LOGGED_IN_ACTION = 'USER_LOGGED_IN_ACTION' -// An error is returned from the Login Webview -const USER_LOGIN_ERROR_ACTION = 'USER_LOGIN_ERROR_ACTION' -// The User successfully performs a proper Logout -const USER_LOGGED_OUT_ACTION = 'USER_LOGGED_OUT_ACTION' - -/** - * Dispatched when the user taps on SPID Login - */ -function logInIntent(): Action { - return { - type: USER_WILL_LOGIN_ACTION - } -} - -/** - * Dispatched when the user selects the SPID provider - */ -function selectIdp(idp: IdentityProvider): Action { - return { - type: USER_SELECTED_SPID_PROVIDER_ACTION, - data: { - idp - } - } -} - -/** - * Logs the user in, setting the provided auth token and SPID IdP - */ -function logIn(token: string, idpId: string): Thunk { - return (dispatch: Dispatch, getState: GetState) => { - dispatch({ - type: USER_LOGGED_IN_ACTION, - data: { - token, - idpId - } - }) - requestUserProfile()(dispatch, getState) - // TODO: Saga test: remove this before merging into master - dispatch(loadProfile()) - } -} - -function logInError(error: string): Action { - return { - type: USER_LOGIN_ERROR_ACTION, - data: { - error - } - } -} - -/** - * Logs the user out - */ -function logOut(): Action { - return { - type: USER_LOGGED_OUT_ACTION - } -} - -module.exports = { - logInIntent, - selectIdp, - logIn, - logInError, - logOut, - - USER_WILL_LOGIN_ACTION, - USER_SELECTED_SPID_PROVIDER_ACTION, - USER_LOGGED_IN_ACTION, - USER_LOGIN_ERROR_ACTION, - USER_LOGGED_OUT_ACTION -} diff --git a/js/actions/types.js b/js/actions/types.js deleted file mode 100644 index b2f89f7f042..00000000000 --- a/js/actions/types.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Defines Flow types for the available actions and store related stuff. - * - * @flow - */ - -import { - type Store as ReduxStore, - type DispatchAPI, - type MiddlewareAPI as ReduxMiddlewareAPI, - type StoreEnhancer as ReduxStoreEnhancer -} from 'redux' -import { type NavigationAction } from 'react-navigation' - -import { type GlobalState } from '../reducers/types' -import { type ApiUserProfile, type IdentityProvider } from '../utils/api' -import { type SessionActions } from '../store/actions/session' -import { type OnboardingActions } from '../store/actions/onboarding' -import { type ProfileActions } from '../store/actions/profile' -import { APP_STATE_CHANGE_ACTION } from '../store/actions/constants' - -export type ApplicationState = 'background' | 'inactive' | 'active' - -export type ApplicationStateAction = { - type: typeof APP_STATE_CHANGE_ACTION, - payload: ApplicationState -} - -export type Action = - | { type: 'USER_WILL_LOGIN_ACTION' } - | { - type: 'USER_SELECTED_SPID_PROVIDER_ACTION', - data: { idp: IdentityProvider } - } - | { type: 'USER_LOGGED_IN_ACTION', data: { token: string, idpId: string } } - | { type: 'USER_LOGIN_ERROR_ACTION', data: { error: string } } - | { type: 'USER_LOGGED_OUT_ACTION' } - | { type: 'REQUEST_USER_PROFILE_ACTION' } - | { - type: 'RECEIVE_USER_PROFILE_ACTION', - profile: ApiUserProfile, - receivedAt: number - } - | { type: 'UPDATE_USER_PROFILE_REQUEST_ACTION' } - | { type: 'UPDATE_USER_PROFILE_ERROR_ACTION', data: { error: string } } - | ApplicationStateAction - | NavigationAction - | SessionActions - | OnboardingActions - | ProfileActions - -/* eslint-disable no-use-before-define */ -// We need to disable the eslint rule because of a problem described here @https://github.com/babel/babel-eslint/issues/485 -export type GetState = () => GlobalState - -export type Thunk = (dispatch: Dispatch, getState: GetState) => void - -export type AnyAction = Action | Thunk - -export type Dispatch = DispatchAPI - -export type Store = ReduxStore - -export type StoreEnhancer = ReduxStoreEnhancer - -export type MiddlewareAPI = ReduxMiddlewareAPI - -// Props injected by react-redux connect() function -export type ReduxProps = { - dispatch: Dispatch -} diff --git a/js/actions/user.js b/js/actions/user.js deleted file mode 100644 index c53871f6425..00000000000 --- a/js/actions/user.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Defines actions related to the user profile and preferences. - * - * @flow - */ - -import { type GetState, type Dispatch, type Action, type Thunk } from './types' -import { type ApiUserProfile, type ApiNewUserProfile } from '../utils/api' -import { getUserProfile } from '../utils/api' -import { setUserProfile } from '../utils/api' - -import I18n from '../i18n' - -const REQUEST_USER_PROFILE_ACTION = 'REQUEST_USER_PROFILE_ACTION' -const RECEIVE_USER_PROFILE_ACTION = 'RECEIVE_USER_PROFILE_ACTION' -const UPDATE_USER_PROFILE_REQUEST_ACTION = 'UPDATE_USER_PROFILE_REQUEST_ACTION' -const UPDATE_USER_PROFILE_ERROR_ACTION = 'UPDATE_USER_PROFILE_ERROR_ACTION' - -// Creators -function receiveUserProfile(profile: ApiUserProfile): Action { - return { - type: RECEIVE_USER_PROFILE_ACTION, - profile: profile, - receivedAt: Date.now() - } -} - -function updateUserProfileError(): Action { - return { - type: UPDATE_USER_PROFILE_ERROR_ACTION, - data: { - error: I18n.t('errors.profileUpdateError') - } - } -} - -/** - * Begins an API requests for the user profile to the backend. - */ -function requestUserProfile(): Thunk { - return (dispatch: Dispatch, getState: GetState) => { - const user = getState().user - // If the user is not logged in we can't request the profile - if (!user.isLoggedIn) { - return - } - - // First we dispatch the request action - dispatch({ - type: REQUEST_USER_PROFILE_ACTION - }) - const { apiUrlPrefix, token, idpId } = user - - // if the idp is the demo one do not call the backend - if (idpId === 'demo') { - dispatch( - receiveUserProfile({ - family_name: 'demo', - fiscal_code: 'TNTDME00A01H501K', - has_profile: false, - name: 'demo', - version: 0 - }) - ) - } else { - // else make the API call to the backend - getUserProfile(apiUrlPrefix, token).then(profile => { - // once we get back the user profile, we trigger the receive action - // TODO handle unsuccessful retrieval of profile - // @see https://www.pivotaltracker.com/story/show/153245807 - if (profile) { - dispatch(receiveUserProfile(profile)) - } - }) - } - } -} - -/** - * Begins an API requests update inbox for the user profile to the backend. - */ -function updateUserProfile(newProfile: ApiNewUserProfile): Thunk { - return (dispatch: Dispatch, getState: GetState) => { - const user = getState().user - // If the user is not logged in we can't request the profile - if (!user.isLoggedIn) { - return - } - - // First we dispatch the request action - dispatch({ - type: UPDATE_USER_PROFILE_REQUEST_ACTION - }) - const { apiUrlPrefix, token } = user - setUserProfile(apiUrlPrefix, token, newProfile).then(profile => { - if (profile) { - if (typeof profile === 'number') { - dispatch(updateUserProfileError()) - } else { - dispatch(receiveUserProfile(profile)) - } - } - }) - } -} - -module.exports = { - requestUserProfile, - updateUserProfile, - receiveUserProfile, - updateUserProfileError, - - REQUEST_USER_PROFILE_ACTION, - RECEIVE_USER_PROFILE_ACTION, - UPDATE_USER_PROFILE_REQUEST_ACTION, - UPDATE_USER_PROFILE_ERROR_ACTION -} diff --git a/js/components/MessagesComponent.js b/js/components/MessagesComponent.js deleted file mode 100644 index da9ef925042..00000000000 --- a/js/components/MessagesComponent.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @flow - */ - -import * as React from 'react' - -import { Content, Button, Text, View } from 'native-base' - -import type { Dispatch } from '../actions/types' -import type { LoggedInUserState } from '../reducers/user' - -import { updateUserProfile } from '../actions' -import { updateProfile } from '../store/actions/profile' - -import I18n from '../i18n' - -type Props = { - user: LoggedInUserState, - dispatch: Dispatch -} - -/** - * A component to show the Messages of the logged user. - * If the user inbox is still not enabled a CTA button is rendered to enable it. - */ -export default class MessagesComponent extends React.Component { - render(): React.Node { - const user = this.props.user - - if (!user.profile) { - return ( - - - - ) - } - - const profile = user.profile - - return ( - - {!profile.is_inbox_enabled ? ( - - {I18n.t('inbox.enableCallToActionDescription')} - - - ) : ( - - - - )} - - ) - } -} diff --git a/js/components/ProfileComponent.js b/js/components/ProfileComponent.js deleted file mode 100644 index cdffabcbfb6..00000000000 --- a/js/components/ProfileComponent.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * @flow - */ - -import * as React from 'react' - -import { StyleSheet, Linking } from 'react-native' - -import { - Content, - ListItem, - Text, - Right, - Icon, - Body, - Grid, - Row, - Col -} from 'native-base' - -import I18n from '../i18n' - -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' -import { type Dispatch } from '../actions/types' -import { type LoggedInUserState } from '../reducers/user' - -import { VERSION } from '../utils/constants' - -import { ProfileStyles } from './styles' - -import { getIdpInfo } from './SpidLoginButton' - -import config from '../config' - -const profileRowStyles = StyleSheet.flatten(ProfileStyles.profileRow) -const profileHeaderStyles = StyleSheet.flatten(ProfileStyles.profileHeader) -const profileHeaderTextStyles = StyleSheet.flatten( - ProfileStyles.profileHeaderText -) -const preferenceHeaderTextStyles = StyleSheet.flatten( - ProfileStyles.preferenceHeaderText -) -const profileRowIconStyles = StyleSheet.flatten(ProfileStyles.profileRowIcon) -const profileRowTextStyles = StyleSheet.flatten(ProfileStyles.profileRowText) - -const { logOut } = require('../actions') - -/** - * Opens the IdP profile page as an external link. - * - * This usually triggers the switch to the web browser - * configured on the os. - * TODO handle the error thrown by openURL - * TODO we could check whether a specific IdP app is installed - * and switch to that. - */ -const openIdpProfile = function(idpUrl: string) { - Linking.openURL(idpUrl) //.catch(err => { }) -} - -type Props = { - navigation: NavigationScreenProp, - dispatch: Dispatch, - user: LoggedInUserState -} - -/** - * Implements the content of the user profile screen. - */ -class ProfileComponent extends React.Component { - render(): React.Node { - const profile = this.props.user.profile - const idpId = this.props.user.idpId - const idpInfo = getIdpInfo(idpId) - - const name = profile && profile.name ? profile.name : '' - const familyName = - profile && profile.family_name ? profile.family_name : '-' - const fullName = `${name} ${familyName}` - const fiscalNumber = - profile && profile.fiscal_code - ? profile.fiscal_code.replace('TINIT-', '') - : '-' - const preferred_email = - profile && profile.preferred_email ? profile.preferred_email : '-' - const mobilePhone = - profile && profile.mobilephone ? profile.mobilephone : '-' - - return ( - - - - - - - - {fullName.toUpperCase()} - - - - - - - {fiscalNumber} - - - - - - {preferred_email} - - - - - - {mobilePhone} - - - - - - - - - - - {I18n.t('profile.sections.spid')} - - - { - if (idpInfo && idpInfo.profileUrl) { - openIdpProfile(idpInfo.profileUrl) - } - }} - > - - {idpInfo ? idpInfo.name : I18n.t('profile.unknown')} - - - - - - - - - { - this.props.dispatch(logOut()) - }} - > - - {I18n.t('profile.logout')} - - - - - - - - - - - - {`${I18n.t('global.app.version')} ${VERSION} (${ - config.environment - })`} - - - - - ) - } -} - -module.exports = ProfileComponent diff --git a/js/components/SpidLoginButton.js b/js/components/SpidLoginButton.js deleted file mode 100644 index 651b49c14f7..00000000000 --- a/js/components/SpidLoginButton.js +++ /dev/null @@ -1,468 +0,0 @@ -/** - * Implements the SPID Login button - * - * @providesModule SpidLoginButton - * @flow - */ - -import { CommonStyles } from './styles' - -import * as React from 'react' -import { StyleSheet, View, WebView, Image, Modal } from 'react-native' - -import config from '../config' -import I18n from '../i18n' - -import { - Container, - Header, - Body, - Title, - Content, - Button, - Text, - Left, - Right, - Icon -} from 'native-base' - -import type { IdentityProvider } from '../utils/api' -import { isDemoIdp } from '../utils/api' -import type { UserState } from '../reducers/user' - -// prefix for recognizing auth token -const TOKEN_PATH_PREFIX = '/profile.html?token=' - -// TODO dynamically build this list -const idps: $ReadOnlyArray = [ - { - id: 'infocert', - name: 'Infocert', - logo: require('../../img/spid-idp-infocertid.png'), - entityID: 'https://identity.infocert.it', - profileUrl: 'https://my.infocert.it/selfcare' - }, - { - id: 'poste', - name: 'Poste Italiane', - logo: require('../../img/spid-idp-posteid.png'), - entityID: 'https://posteid.poste.it', - profileUrl: 'https://posteid.poste.it/private/cruscotto.shtml' - }, - { - id: 'sielte', - name: 'Sielte', - logo: require('../../img/spid-idp-sielteid.png'), - entityID: 'https://identity.sieltecloud.it', - profileUrl: 'https://myid.sieltecloud.it/profile/' - }, - { - id: 'tim', - name: 'Telecom Italia', - logo: require('../../img/spid-idp-timid.png'), - entityID: 'https://login.id.tim.it/affwebservices/public/saml2sso', - profileUrl: 'https://id.tim.it/identity/private/' - }, - { - id: 'aruba', - name: 'Aruba.it', - logo: require('../../img/spid-idp-arubaid.png'), - entityID: 'https://loginspid.aruba.it', - profileUrl: 'http://selfcarespid.aruba.it' - } -] - -const testIdp = { - id: 'test', - name: 'Test', - logo: require('../../img/spid.png'), - entityID: 'spid-testenv-identityserver', - profileUrl: 'https://italia-backend/profile.html' -} - -const enabledIdps = config.enableTestIdp ? [...idps, testIdp] : idps - -const demoIdp: IdentityProvider = { - id: 'demo', - name: 'Demo', - logo: require('../../img/spid.png'), - entityID: '', - profileUrl: '' -} - -const WEBVIEW_REF = 'webview' -const LOGIN_BASE_URL = `${config.apiUrlPrefix}/login?entityID=` - -const styles = StyleSheet.create({ - container: { - flex: 1 - }, - selectIdpContainer: { - backgroundColor: '#0066CC', - paddingLeft: 40, - paddingRight: 40 - }, - selectIdpHelpText: { - marginTop: 20, - marginBottom: 20, - color: '#fff' - }, - selectDemoHelpText: { - marginTop: 30, - marginBottom: 20, - color: '#fff' - }, - spidLogo: { - height: 54, - width: 70, - resizeMode: 'contain' - }, - idpButton: { - backgroundColor: '#fff', - justifyContent: 'space-between', - marginBottom: 10 - }, - idpName: { - color: '#0066CC', - fontSize: 15 - }, - idpLogo: { - width: 80, - height: 20, - resizeMode: 'contain' - }, - webViewContainer: { - flex: 1 - }, - webView: { - flex: 1, - backgroundColor: 'rgba(255,255,255,0.8)' - }, - statusBar: { - flexDirection: 'row', - alignItems: 'center', - paddingLeft: 5, - height: 40, - backgroundColor: '#ccc' - }, - statusBarText: { - color: '#eee', - fontSize: 13 - }, - spinner: { - width: 20, - marginRight: 6 - } -}) - -/** - * Restituisce le proprietà dell'IdP associato all'identificativo - * idpId. Restituisce undefined in caso non esista nessun IdP - * con quell'identificativo. - * @param {string} idpId - L'identificativo dell'IdP - */ -export function getIdpInfo(idpId: string): ?IdentityProvider { - return enabledIdps.find((idp: IdentityProvider): boolean => idp.id === idpId) -} - -type SpidLoginWebviewProps = { - idp: IdentityProvider, - onSuccess: (token: string) => void, - onError: (err: string) => void -} - -type SpidLoginWebviewState = { - url: string, - status: string, - isLoading: boolean -} - -/** - * Webview usata per la pagina di login dell'IdP - * - * TODO aggiungere animazione di loading - */ -class SpidLoginWebview extends React.Component< - SpidLoginWebviewProps, - SpidLoginWebviewState -> { - constructor(props) { - super(props) - this.state = { - url: LOGIN_BASE_URL + this.props.idp.entityID, - status: '', - isLoading: true - } - } - - render(): React.Node { - return ( - - - - - {this.state.status} - - - - ) - } - - _onNavigationStateChange = (navState): boolean => { - const url = navState.url - const tokenPathPos = url.indexOf(TOKEN_PATH_PREFIX) - // eslint-disable-next-line no-magic-numbers - if (tokenPathPos === -1) { - this.setState({ - status: navState.title, - isLoading: navState.loading - }) - } else { - const token = url.substr(tokenPathPos + TOKEN_PATH_PREFIX.length) - // eslint-disable-next-line no-magic-numbers - if (token && token.length > 0) { - this.props.onSuccess(token) - } else { - this.props.onError('NO_AUTH_TOKEN') - } - } - return true - } -} - -type IdpSelectionScreenProps = { - closeModal: () => void, - onSelectIdp: IdentityProvider => void, - onSpidLogin: (string, string) => void, - onSpidLoginError: string => void, - userState: UserState -} - -type IdpSelectionScreenState = { - selectedIdp: ?IdentityProvider -} - -/** - * Schermata di selezione dell'Identiry Provider SPID - */ -class IdpSelectionScreen extends React.Component< - IdpSelectionScreenProps, - IdpSelectionScreenState -> { - constructor(props) { - super(props) - - this.state = { - selectedIdp: null - } - } - - selectIdp(idp: IdentityProvider) { - this.setState({ - selectedIdp: idp - }) - } - - resetIdp() { - this.setState({ - selectedIdp: null - }) - } - - createButton = (idp: IdentityProvider, onPress: () => void): React.Node => { - return ( - - ) - } - - createButtons = (): $ReadOnlyArray => { - return enabledIdps.map((idp: IdentityProvider): React.Node => - this.createButton(idp, () => { - this.props.onSelectIdp(idp) - this.selectIdp(idp) - }) - ) - } - - createDemoButton(): React.Node { - return this.createButton(demoIdp, () => { - this.props.onSelectIdp(demoIdp) - }) - } - - createErrorMessage = (): React.Node => { - return ( - - - {I18n.t('errors.loginError')} - - - ) - } - - // Handler per il bottone back dello schermo di selezione dell'IdP - _handleBack() { - if (this.state.selectedIdp !== null) { - // se è già stato scelto un IdP, torniamo alla scelta - this.resetIdp() - } else { - // se non è ancora stato scelto un IdP - // chiudiamo la modal di selezione - this.props.closeModal() - } - } - - render(): React.Node { - const { selectedIdp } = this.state - return ( - -

- - - - - {I18n.t('spid.login')} - - -
- {selectedIdp ? ( - this._handleSpidSuccess(token)} - onError={(err: string): void => this._handleSpidError(err)} - /> - ) : ( - - {this.props.userState.isError && this.createErrorMessage()} - - {I18n.t('spid.selectIdp')} - - {this.createButtons()} - - {I18n.t('spid.selectDemoIdp')} - - {this.createDemoButton()} - - )} - - ) - } - - _handleSpidSuccess(token) { - const selectedIdp = this.state.selectedIdp - if (selectedIdp) { - this.props.closeModal() - // ad autenticazione avvenuta, viene chiamata onSpidLogin - // passando il token di sessione e l'idendificativo dell'IdP - this.props.onSpidLogin(token, selectedIdp.id) - } - } - - _handleSpidError(err) { - this.props.onSpidLoginError(err) - this.resetIdp() - } -} - -type SpidLoginButtonProps = { - disabled: boolean, - onSpidLoginIntent: () => void, - onSelectIdp: IdentityProvider => void, - onSpidLogin: (string, string) => void, - onSpidLoginError: string => void, - userState: UserState -} - -type SpidLoginButtonState = { - isModalVisible: boolean -} - -/** - * Bottone di login SPID. - */ -export class SpidLoginButton extends React.Component< - SpidLoginButtonProps, - SpidLoginButtonState -> { - state = { - isModalVisible: false - } - - setModalVisible(isVisible: boolean) { - this.setState({ - isModalVisible: isVisible - }) - } - - handleSelectIdp = (idp: IdentityProvider) => { - if (isDemoIdp(idp)) { - this.setModalVisible(false) - } - this.props.onSelectIdp(idp) - } - - render(): React.Node { - return ( - - - { - this.setModalVisible(false) - }} - userState={this.props.userState} - /> - - - - - ) - } -} diff --git a/js/components/SpidSubscribeComponent.js b/js/components/SpidSubscribeComponent.js deleted file mode 100644 index fef8c10d141..00000000000 --- a/js/components/SpidSubscribeComponent.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @providesModule SpidSubscribeComponent - * @flow - */ - -import * as React from 'react' - -import { Text, Icon, View, Item, Input } from 'native-base' - -import EmailValidator from 'email-validator' - -import I18n from '../i18n' - -type State = { - isEmailValid: boolean -} - -type Props = {} - -/** - * Implements the component for helping the user to subscribe to SPID. - */ -export default class SpidSubscribeComponent extends React.Component< - Props, - State -> { - constructor(props: Props) { - super(props) - this.state = { - isEmailValid: false - } - } - - _onEmailChange(text: string) { - this.setState({ - isEmailValid: EmailValidator.validate(text) - }) - } - - render(): React.Node { - return ( - - - {I18n.t('spid.subscription.line1')} - - - {I18n.t('spid.subscription.line2')} - - - - - - - ) - } -} diff --git a/js/components/ui/AppHeader.js b/js/components/ui/AppHeader.js deleted file mode 100644 index d4a1cd97ac5..00000000000 --- a/js/components/ui/AppHeader.js +++ /dev/null @@ -1,27 +0,0 @@ -// @flow - -import * as React from 'react' -import { type ViewProps } from 'ViewPropTypes' -import variables from '../../theme/variables' -import { Header } from 'native-base' - -// Mapped from PropTypes @https://github.com/GeekyAnts/NativeBase/blob/master/src/basic/Header.js -type OwnProps = { - searchBar: boolean, - rounded: boolean -} - -type Props = ViewProps | OwnProps - -/** - * A customized Header component. - */ -export default function AppHeader(props: Props): React.Node { - return ( -
- ) -} diff --git a/js/config.js b/js/config.js deleted file mode 100644 index fb08e3a0292..00000000000 --- a/js/config.js +++ /dev/null @@ -1,10 +0,0 @@ -// Main config file. Mostly read the configuration from .env files - -import Config from 'react-native-config' - -module.exports = { - environment: Config.ENVIRONMENT, - apiUrlPrefix: Config.API_URL_PREFIX, - mixpanelToken: Config.MIXPANEL_TOKEN, - enableTestIdp: Config.ENABLE_TEST_IDP === 'YES' -} diff --git a/js/index.js b/js/index.js deleted file mode 100644 index 6d36e8651bc..00000000000 --- a/js/index.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Main app entrypoint - * - * @flow - */ - -import * as React from 'react' -import { AppRegistry } from 'react-native' -import App from './App' - -AppRegistry.registerComponent('ItaliaApp', (): React.ComponentType<*> => App) diff --git a/js/lib/react-native/types.js b/js/lib/react-native/types.js deleted file mode 100644 index 6eeafdf3bfb..00000000000 --- a/js/lib/react-native/types.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * A file with useful types for React Native - * - * @flow - */ - -import * as React from 'react' - -export type ListRenderItemInfo = { - item: ItemT, - - index: number, - - separators: { - highlight: () => void, - unhighlight: () => void, - // eslint-disable-next-line flowtype/no-weak-types - updateProps: (select: 'leading' | 'trailing', newProps: any) => void - } -} - -export type ListRenderItem = ( - info: ListRenderItemInfo - // eslint-disable-next-line flowtype/no-weak-types -) => ?React.Element diff --git a/js/middlewares/index.js b/js/middlewares/index.js deleted file mode 100644 index 7ed6a5f81e8..00000000000 --- a/js/middlewares/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import analytics from './analytics' - -module.exports = { - analytics -} diff --git a/js/reducers/__tests__/user.test.js b/js/reducers/__tests__/user.test.js deleted file mode 100644 index 553dc3ccb2d..00000000000 --- a/js/reducers/__tests__/user.test.js +++ /dev/null @@ -1,55 +0,0 @@ -import user, { initialUserState } from '../user' -import { - USER_LOGGED_IN_ACTION, - USER_LOGGED_OUT_ACTION, - receiveUserProfile -} from '../../actions' - -const token = '1c730ae6-f8e8-43ce-971a-2661c808cf92' -const idpId = 'test' -const profile = { - email: 'account@email.com' -} -const loggedInState = { - isLoggedIn: true, - apiUrlPrefix: initialUserState.apiUrlPrefix, - token: token, - idpId: idpId -} -const loggedInWithProfileState = { - ...loggedInState, - profile: profile -} - -describe('user reducer', () => { - it('should have a valid initial state', () => { - expect(user(undefined, {})).toEqual(initialUserState) - }) - - it('should handle USER_LOGGED_IN_ACTION', () => { - const token = '1c730ae6-f8e8-43ce-971a-2661c808cf92' - const idpId = 'test' - const testAction = { - type: USER_LOGGED_IN_ACTION, - data: { - token, - idpId - } - } - - expect(user(undefined, testAction)).toEqual(loggedInState) - }) - - it('should handle USER_LOGGED_OUT_ACTION', () => { - const testAction = { - type: USER_LOGGED_OUT_ACTION - } - expect(user(loggedInState, testAction)).toEqual(initialUserState) - }) - - it('should handle RECEIVE_USER_PROFILE_ACTION', () => { - expect(user(loggedInState, receiveUserProfile(profile))).toEqual( - loggedInWithProfileState - ) - }) -}) diff --git a/js/reducers/types.js b/js/reducers/types.js deleted file mode 100644 index 4913c4c83fb..00000000000 --- a/js/reducers/types.js +++ /dev/null @@ -1,29 +0,0 @@ -// @flow - -import { type NavigationState } from 'react-navigation' - -import { type Action } from '../actions/types' -import { type AppState } from './appState' -import { type UserState } from './user' -import { type LoadingState } from '../store/reducers/loading' -import { type ErrorState } from '../store/reducers/error' -import { type SessionState } from '../store/reducers/session' -import { type OnboardingState } from '../store/reducers/onboarding' -import { type ProfileState } from '../store/reducers/profile' - -export type NetworkState = { - isConnected: boolean, - actionQueue: $ReadOnlyArray -} - -export type GlobalState = { - appState: AppState, - network: NetworkState, - navigation: NavigationState, - user: UserState, - loading: LoadingState, - error: ErrorState, - session: SessionState, - onboarding: OnboardingState, - profile: ProfileState -} diff --git a/js/reducers/user.js b/js/reducers/user.js deleted file mode 100644 index e4a96de1a61..00000000000 --- a/js/reducers/user.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Implements the user state reducers. - * - * Handles login, logout and user profile actions. - * - * @flow - */ - -import { - USER_LOGGED_IN_ACTION, - USER_LOGGED_OUT_ACTION, - USER_LOGIN_ERROR_ACTION, - RECEIVE_USER_PROFILE_ACTION -} from '../actions' -import { type Action } from '../actions/types' -import { type ApiUserProfile } from '../utils/api' - -import config from '../config' - -// user state when logged out -export type DefaultLoggedOutUserState = { - isLoggedIn: false, - isError: false, - apiUrlPrefix: string -} - -// user state when there is an error, tracing by isError=true -export type ErrorLoggedOutUserState = { - isLoggedIn: false, - isError: true, - apiUrlPrefix: string, - errorMessage: string -} - -// user state when logged in -export type LoggedInUserState = { - isLoggedIn: true, - apiUrlPrefix: string, - token: string, - idpId: string, - profile?: ApiUserProfile -} - -// combined user state -export type UserState = - | DefaultLoggedOutUserState - | LoggedInUserState - | ErrorLoggedOutUserState - -// initial user state -export const initialUserState: DefaultLoggedOutUserState = { - isLoggedIn: false, - isError: false, - // TODO move URL to config js - apiUrlPrefix: config.apiUrlPrefix -} - -/** - * Reducer for the user state - */ -export default function user( - state: UserState = initialUserState, - action: Action -): UserState { - // on login, save token and IdP - if (action.type === USER_LOGGED_IN_ACTION && state.isLoggedIn === false) { - return { - isLoggedIn: true, - apiUrlPrefix: state.apiUrlPrefix, - token: action.data.token, - idpId: action.data.idpId - } - } - - // on logout, reset state - if (action.type === USER_LOGGED_OUT_ACTION && state.isLoggedIn === true) { - return initialUserState - } - - // on receive of user profile data, save in the use state - if ( - action.type === RECEIVE_USER_PROFILE_ACTION && - state.isLoggedIn === true - ) { - return { - isLoggedIn: true, - apiUrlPrefix: state.apiUrlPrefix, - token: state.token, - idpId: state.idpId, - profile: action.profile - } - } - - if (action.type === USER_LOGIN_ERROR_ACTION && state.isLoggedIn === false) { - return { - isLoggedIn: false, - isError: true, - errorMessage: action.data.error, - apiUrlPrefix: state.apiUrlPrefix - } - } - - return state -} diff --git a/js/screens/authentication/LoginScreen.js b/js/screens/authentication/LoginScreen.js deleted file mode 100644 index 7af2679bcfc..00000000000 --- a/js/screens/authentication/LoginScreen.js +++ /dev/null @@ -1,205 +0,0 @@ -/** - - * @flow - */ - -import * as React from 'react' -import { connect } from 'react-redux' - -import { - StyleSheet, - View, - Text, - KeyboardAvoidingView, - Keyboard, - Animated -} from 'react-native' - -import I18n from '../../i18n' - -import { H1, H2 } from 'native-base' - -import type EmitterSubscription from 'EmitterSubscription' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' - -import { SpidLoginButton } from '../../components/SpidLoginButton' -import SpidSubscribeComponent from '../../components/SpidSubscribeComponent' - -import { logInIntent, selectIdp, logIn, logInError } from '../../actions' - -import { VERSION } from '../../utils/constants' - -import { type IdentityProvider, isDemoIdp } from '../../utils/api' - -import { type ReduxProps } from '../../actions/types' -import { type GlobalState } from '../../reducers/types' -import { type UserState } from '../../reducers/user' - -// Due to a bug, the following style must be wrapped -// with a call to StyleSheet.flatten() -// https://github.com/shoutem/ui/issues/51 -const styles = StyleSheet.create({ - container: { - flex: 1, - padding: 30, - backgroundColor: '#0066CC', - alignItems: 'center', - justifyContent: 'center' - }, - titleContainer: { - flex: 1, - justifyContent: 'center' - }, - titleText: { - textAlign: 'center', - color: '#fff' - }, - version: { - position: 'absolute', - bottom: 10, - right: 10 - } -}) - -const titleTextStyles = StyleSheet.flatten(styles.titleText) - -// height of the logo at start and end of the animation -// that makes space for the keyboard when inputing the -// user email -const ANIMATION_START_LOGO_HEIGHT = 70 -const ANIMATION_END_LOGO_HEIGHT = 0 - -type ReduxMappedProps = { - isConnected: boolean, - user: UserState -} - -type OwnProps = { - navigation: NavigationScreenProp -} - -type Props = ReduxMappedProps & ReduxProps & OwnProps - -type State = { - imageHeight: Animated.Value -} - -/** - * Implements the login screen. - */ -class LoginScreen extends React.Component { - // called when keyboard appears - keyboardWillShowSub: EmitterSubscription - // called when keyboard disappears - keyboardWillHideSub: EmitterSubscription - - constructor(props) { - super(props) - this.state = { - imageHeight: new Animated.Value(ANIMATION_START_LOGO_HEIGHT) - } - } - - componentWillMount() { - // setup keyboard event handlers - this.keyboardWillShowSub = Keyboard.addListener( - 'keyboardWillShow', - this.keyboardWillShow - ) - this.keyboardWillHideSub = Keyboard.addListener( - 'keyboardWillHide', - this.keyboardWillHide - ) - } - - componentWillUnmount() { - // remove keyboard event handlers - this.keyboardWillShowSub.remove() - this.keyboardWillHideSub.remove() - } - - // when keyboard appears, we shrink the logo - keyboardWillShow = event => { - Animated.timing(this.state.imageHeight, { - duration: event.duration, - toValue: ANIMATION_END_LOGO_HEIGHT - }).start() - } - - // when keyboard disappears we expand the logo to original size - keyboardWillHide = event => { - Animated.timing(this.state.imageHeight, { - duration: event.duration, - toValue: ANIMATION_START_LOGO_HEIGHT - }).start() - } - - handleIpdSelection = (idp: IdentityProvider) => { - // if the selected idp is the demo one simulate a sucessfull login - if (isDemoIdp(idp)) { - this.props.dispatch(selectIdp(idp)) - this.props.dispatch(logIn('demo', idp.id)) - } else { - this.props.dispatch(selectIdp(idp)) - } - } - - handleLoginIntent = () => { - this.props.dispatch(logInIntent()) - } - - render(): React.Node { - // When we have no connectivity disable the SpidLoginButton - const { isConnected } = this.props - return ( - - - - -

{I18n.t('login.welcome.line1')}

-

{I18n.t('login.welcome.line2')}

-
- - this.handleIpdSelection(idp) - } - onSpidLoginIntent={(): void => this.handleLoginIntent()} - onSpidLogin={(token, idpId) => { - this.props.dispatch(logIn(token, idpId)) - }} - onSpidLoginError={error => { - this.props.dispatch(logInError(error)) - }} - /> - - - - - - {I18n.t('global.app.version')} {VERSION} - - -
- ) - } -} - -const mapStateToProps = (state: GlobalState): ReduxMappedProps => ({ - isConnected: state.network.isConnected, - user: state.user -}) - -module.exports = connect(mapStateToProps)(LoginScreen) diff --git a/js/screens/main/MessagesScreen.js b/js/screens/main/MessagesScreen.js deleted file mode 100644 index dd7b45ebbae..00000000000 --- a/js/screens/main/MessagesScreen.js +++ /dev/null @@ -1,60 +0,0 @@ -// @flow - -import * as React from 'react' -import { connect } from 'react-redux' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' - -import { Container } from 'native-base' - -import { type ReduxProps } from '../../actions/types' -import { type UserState } from '../../reducers/user' -import MessagesComponent from '../../components/MessagesComponent' - -import { type GlobalState } from '../../reducers/types' - -type ReduxMappedProps = { - user: UserState -} - -type OwnProps = { - navigation: NavigationScreenProp -} - -type Props = ReduxMappedProps & ReduxProps & OwnProps - -/** - * This screen show the messages to the authenticated user. - */ -class MessagesScreen extends React.Component { - constructor(props) { - super(props) - } - - render(): React.Node { - const { user, navigation, dispatch } = this.props - - if (!user.isLoggedIn) { - return null - } - - return ( - - - - ) - } -} - -const mapStateToProps = (state: GlobalState): ReduxMappedProps => ({ - user: state.user, - navigation: state.navigation -}) - -export default connect(mapStateToProps)(MessagesScreen) diff --git a/js/screens/main/ProfileScreen.js b/js/screens/main/ProfileScreen.js deleted file mode 100644 index 9d9c1c9cf7c..00000000000 --- a/js/screens/main/ProfileScreen.js +++ /dev/null @@ -1,55 +0,0 @@ -// @flow - -import * as React from 'react' -import { connect } from 'react-redux' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' - -import { Container } from 'native-base' - -import { type GlobalState } from '../../reducers/types' -import { type ReduxProps } from '../../actions/types' -import { type UserState } from '../../reducers/user' -import ProfileComponent from '../../components/ProfileComponent' - -type ReduxMappedProps = { - user: UserState -} - -type OwnProps = { - navigation: NavigationScreenProp -} - -type Props = ReduxMappedProps & ReduxProps & OwnProps - -/** - * This screen show the profile to the authenticated user. - */ -class ProfileScreen extends React.Component { - render(): React.Node { - const { user, navigation, dispatch } = this.props - - if (!user.isLoggedIn) { - return null - } - - return ( - - - - ) - } -} - -const mapStateToProps = (state: GlobalState): ReduxMappedProps => ({ - user: state.user, - navigation: state.navigation -}) - -export default connect(mapStateToProps)(ProfileScreen) diff --git a/js/utils/constants.js b/js/utils/constants.js deleted file mode 100644 index 5f734207049..00000000000 --- a/js/utils/constants.js +++ /dev/null @@ -1,9 +0,0 @@ -// @flow - -import DeviceInfo from 'react-native-device-info' - -module.exports = { - VERSION: DeviceInfo.getReadableVersion(), - // A key to identify the Set of the listeners of the navigtion middleware. - NAVIGATION_MIDDLEWARE_LISTENERS_KEY: 'root' -} diff --git a/package.json b/package.json index 87fa3d1a6d3..8efe8d6d962 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,17 @@ { - "name": "ItaliaApp", - "version": "0.0.1", + "name": "italia-app", + "version": "0.1.0", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "postinstall": "chmod +x ./bin/add-ios-source-maps.sh && ./bin/add-ios-source-maps.sh && chmod +x ./bin/add-ios-env-config.sh && ./bin/add-ios-env-config.sh", "test": "jest", - "prettify": "prettier --write 'js/**/*.js'", - "lint": "eslint 'js/**/*.js'", - "flow": "flow check", + "prettify": "prettier --write 'ts/**/*.ts'", "packager:clear": "rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-*", - "bundle:android": "node node_modules/react-native/local-cli/cli.js bundle --platform android --dev true --entry-file index.js --bundle-output ./bundles/index.android.bundle" + "bundle:android": "node node_modules/react-native/local-cli/cli.js bundle --platform android --dev true --entry-file index.js --bundle-output ./bundles/index.android.bundle", + "tsc:noemit": "tsc --noemit", + "lint": "tslint -p . -c tslint.json -t verbose", + "lint-autofix": "tslint -p . -c tslint.json -t verbose --fix" }, "dependencies": { "color": "^2.0.0", @@ -29,9 +30,9 @@ "react-native-offline": "^3.7.3", "react-native-sha256": "^1.0.1", "react-navigation": "^1.5.11", - "react-navigation-redux-helpers": "^1.0.3", + "react-navigation-redux-helpers": "^1.0.5", "react-redux": "5.0.7", - "redux": "3.7.2", + "redux": "4.0.0", "redux-form": "^7.3.0", "redux-logger": "3.0.6", "redux-persist": "5.9.1", @@ -39,32 +40,57 @@ "redux-thunk": "2.2.0", "source-map": "^0.6.1", "stacktrace-js": "^2.0.0", + "tslib": "^1.9.0", "validator": "^9.4.1" }, "devDependencies": { - "babel-eslint": "^8.2.3", + "@types/color": "^3.0.0", + "@types/jest": "^22.2.3", + "@types/lodash": "^4.14.108", + "@types/react": "^16.3.0-alpha", + "@types/react-native": "^0.55.0", + "@types/react-native-fs": "^2.8.1", + "@types/react-native-i18n": "^2.0.0", + "@types/react-native-mixpanel": "^0.1.0", + "@types/react-navigation": "^1.5.7", + "@types/react-redux": "^5.0.18", + "@types/redux-form": "^7.2.4", + "@types/redux-logger": "^3.0.6", + "@types/redux-saga": "^0.10.5", + "@types/stacktrace-js": "^0.0.32", + "@types/validator": "^9.4.1", "babel-jest": "22.4.1", "babel-preset-react-native": "4.0.0", "danger": "^3.5.1", "danger-plugin-digitalcitizenship": "^0.2.0", - "eslint": "^4.16.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-config-google": "^0.9.1", - "eslint-config-prettier": "^2.9.0", - "eslint-plugin-flowtype": "^2.42.0", - "eslint-plugin-import": "^2.11.0", - "eslint-plugin-jest": "^21.15.1", - "eslint-plugin-jsx-a11y": "^6.0.3", - "eslint-plugin-prettier": "^2.5.0", - "eslint-plugin-react": "^7.7.0", - "flow-bin": "0.65.0", - "flow-typed": "^2.3.0", "jest": "22.4.2", "prettier": "1.12.1", - "react-test-renderer": "16.3.0-alpha.1" + "react-native-typescript-transformer": "^1.2.5", + "react-test-renderer": "16.3.0-alpha.1", + "ts-jest": "^22.4.4", + "tslint": "^5.9.1", + "tslint-config-prettier": "^1.12.0", + "tslint-immutable": "^4.5.4", + "tslint-plugin-prettier": "^1.3.0", + "tslint-react": "^3.5.1", + "tslint-sonarts": "^1.6.0", + "typescript": "^2.8.3" }, "jest": { "preset": "react-native", + "modulePaths": [ + "" + ], + "moduleFileExtensions": [ + "ts", + "js" + ], + "transform": { + "^.+\\.(ts|tsx)$": "/node_modules/ts-jest/preprocessor.js" + }, + "testMatch": [ + "**/__tests__/*.ts" + ], "collectCoverage": true }, "rnpm": { diff --git a/rn-cli.config.js b/rn-cli.config.js new file mode 100644 index 00000000000..8aeae33c0e5 --- /dev/null +++ b/rn-cli.config.js @@ -0,0 +1,8 @@ +module.exports = { + getTransformModulePath() { + return require.resolve('react-native-typescript-transformer') + }, + getSourceExts() { + return ['ts', 'tsx'] + } +} diff --git a/js/App.js b/ts/App.tsx similarity index 67% rename from js/App.js rename to ts/App.tsx index 798ab8efe79..9701aa139c7 100644 --- a/js/App.js +++ b/ts/App.tsx @@ -1,5 +1,3 @@ -// @flow - import * as React from 'react' import { Provider } from 'react-redux' import { StyleProvider } from 'native-base' @@ -8,7 +6,7 @@ import Mixpanel from 'react-native-mixpanel' import theme from './theme' -import config from './config' +import * as config from './config' import configureErrorHandler from './boot/configureErrorHandler' import configureStoreAndPersistor from './boot/configureStoreAndPersistor' import RootContainer from './RootContainer' @@ -24,16 +22,16 @@ const { store, persistor } = configureStoreAndPersistor() * * TODO: Add a loading screen @https://www.pivotaltracker.com/story/show/155583084 */ -const App = (): React.Node => { - return ( - - - - - - - - ) +export default class App extends React.Component { + render() { + return ( + + + + + + + + ) + } } - -export default App diff --git a/js/RootContainer.js b/ts/RootContainer.tsx similarity index 91% rename from js/RootContainer.js rename to ts/RootContainer.tsx index e9ccb0fd61d..b882877c27c 100644 --- a/js/RootContainer.js +++ b/ts/RootContainer.tsx @@ -1,14 +1,13 @@ -// @flow - import * as React from 'react' import { AppState, StatusBar } from 'react-native' import { connect } from 'react-redux' import { Root } from 'native-base' -import { type ReduxProps, type ApplicationState } from './actions/types' -import { APP_STATE_CHANGE_ACTION } from './store/actions/constants' import ConnectionBar from './components/ConnectionBar' + +import { ReduxProps, ApplicationState } from './actions/types' +import { APP_STATE_CHANGE_ACTION } from './store/actions/constants' import Navigation from './navigation' type ReduxMappedProps = {} @@ -29,7 +28,7 @@ class RootContainer extends React.Component { AppState.removeEventListener('change', this.onApplicationActivityChange) } - render(): React.Node { + render() { return ( diff --git a/ts/actions/types.ts b/ts/actions/types.ts new file mode 100644 index 00000000000..d3be9cf3d3d --- /dev/null +++ b/ts/actions/types.ts @@ -0,0 +1,51 @@ +/** + * Defines Flow types for the available actions and store related stuff. + */ + +import { + Store as ReduxStore, + Dispatch as DispatchAPI, + MiddlewareAPI as ReduxMiddlewareAPI, + StoreEnhancer as ReduxStoreEnhancer +} from 'redux' +import { NavigationAction } from 'react-navigation' + +import { GlobalState } from '../reducers/types' +import { ApiUserProfile, IdentityProvider } from '../utils/api' +import { ApplicationActions } from '../store/actions/application' +import { SessionActions } from '../store/actions/session' +import { OnboardingActions } from '../store/actions/onboarding' +import { ProfileActions } from '../store/actions/profile' +import { APP_STATE_CHANGE_ACTION } from '../store/actions/constants' + +export type ApplicationState = 'background' | 'inactive' | 'active' + +export type ApplicationStateAction = { + type: typeof APP_STATE_CHANGE_ACTION + payload: ApplicationState +} + +export type Action = + | ApplicationActions + | ApplicationStateAction + | NavigationAction + | SessionActions + | OnboardingActions + | ProfileActions + +/* eslint-disable no-use-before-define */ +// We need to disable the eslint rule because of a problem described here @https://github.com/babel/babel-eslint/issues/485 +export type GetState = () => GlobalState + +export type Dispatch = DispatchAPI + +export type Store = ReduxStore + +export type StoreEnhancer = ReduxStoreEnhancer + +export type MiddlewareAPI = ReduxMiddlewareAPI + +// Props injected by react-redux connect() function +export type ReduxProps = { + dispatch: Dispatch +} diff --git a/js/api/index.js b/ts/api/index.ts similarity index 89% rename from js/api/index.js rename to ts/api/index.ts index d542d811fe5..36003c97b1a 100644 --- a/js/api/index.js +++ b/ts/api/index.ts @@ -1,7 +1,5 @@ /** * This file collects all the functions/types required to interact with the Proxy API. - * - * @flow */ import { apiUrlPrefix } from '../config' @@ -10,25 +8,31 @@ import { apiUrlPrefix } from '../config' * Describes a SPID Identity Provider */ export type IdentityProvider = { - id: string, - logo: mixed, - name: string, - entityID: string, + id: string + logo: any + name: string + entityID: string profileUrl: string } export type ApiFetchSuccess = { - isError: false, + isError: false result: T } export type ApiFetchFailure = { - isError: true, + isError: true error: Error } export type ApiFetchResult = ApiFetchSuccess | ApiFetchFailure +export function isApiFetchFailure( + r: ApiFetchResult +): r is ApiFetchFailure { + return r.isError +} + // Utility type to add a required version property export type Versionable = { version: number @@ -38,7 +42,7 @@ export type Versionable = { * A type that makes all fields of type T optional, then adds `version` as the only * required field. This type is used mostly to update an API entity. */ -export type WithOnlyVersionRequired = $Shape & Versionable +export type WithOnlyVersionRequired = Partial & Versionable // A type to store all the properties of the user Profile export type ApiProfile = { @@ -46,7 +50,7 @@ export type ApiProfile = { } & Versionable export type LoginSuccess = { - success: true, + success: true token: string } @@ -60,7 +64,7 @@ export type LoginResult = LoginSuccess | LoginFailure const LOGIN_SUCCESS_PREFIX = '/profile.html?token=' const LOGIN_FAILURE_PREFIX = '/error.html' -export const extractLoginResult = (url: string): ?LoginResult => { +export const extractLoginResult = (url: string): LoginResult | null => { // Check for LOGIN_SUCCESS let tokenPathPos = url.indexOf(LOGIN_SUCCESS_PREFIX) // eslint-disable-next-line no-magic-numbers diff --git a/js/boot/configureErrorHandler.js b/ts/boot/configureErrorHandler.ts similarity index 89% rename from js/boot/configureErrorHandler.js rename to ts/boot/configureErrorHandler.ts index 3ff57d640a4..6a6f4074b95 100644 --- a/js/boot/configureErrorHandler.js +++ b/ts/boot/configureErrorHandler.ts @@ -2,8 +2,6 @@ * Implements a custom generic error handler that keeps track of JavaScript exceptions * * TODO: Improve this using external libraries @https://www.pivotaltracker.com/story/show/155392873 - * - * @flow */ import { Alert } from 'react-native' @@ -17,7 +15,10 @@ const isDev = __DEV__ const version = DeviceInfo.getReadableVersion() // Custom error handler for unhandled js exceptions -const customErrorHandler = async (error, isFatal): Promise => { +const customErrorHandler = async ( + error: any, + isFatal: boolean +): Promise => { if (isFatal) { error.stack = await getStackTrace(error) // Send a remote event that contains the error stack trace @@ -39,7 +40,7 @@ const configureErrorHandler = () => { if (!isDev) { initSourceMaps({ sourceMapBundle: 'main.jsbundle.map' }) // Overrides the default error handler in BUNDLED MODE - global.ErrorUtils.setGlobalHandler(customErrorHandler) + ErrorUtils.setGlobalHandler(customErrorHandler) } } diff --git a/js/boot/configureStoreAndPersistor.js b/ts/boot/configureStoreAndPersistor.ts similarity index 77% rename from js/boot/configureStoreAndPersistor.js rename to ts/boot/configureStoreAndPersistor.ts index 1da87766c6a..433c4eebb75 100644 --- a/js/boot/configureStoreAndPersistor.js +++ b/ts/boot/configureStoreAndPersistor.ts @@ -1,7 +1,5 @@ -// @flow - import { applyMiddleware, compose, createStore } from 'redux' -import { type Persistor, persistStore, persistReducer } from 'redux-persist' +import { Persistor, persistStore, persistReducer } from 'redux-persist' import { createLogger } from 'redux-logger' import { analytics } from '../middlewares' import { createReactNavigationReduxMiddleware } from 'react-navigation-redux-helpers' @@ -12,9 +10,10 @@ import thunk from 'redux-thunk' import { NAVIGATION_MIDDLEWARE_LISTENERS_KEY } from '../utils/constants' import rootReducer from '../reducers' import rootSaga from '../sagas' -import { type Store, type StoreEnhancer } from '../actions/types' -import { type GlobalState } from '../reducers/types' -import { type NavigationState } from 'react-navigation' +import { Store, StoreEnhancer } from '../actions/types' +import { GlobalState } from '../reducers/types' +import { NavigationState } from 'react-navigation' +import { AnyAction } from 'redux' const isDebuggingInChrome = __DEV__ && !!window.navigator.userAgent @@ -27,7 +26,10 @@ const persistConfig = { blacklist: ['navigation', 'loading', 'error'] } -const persistedReducer = persistReducer(persistConfig, rootReducer) +const persistedReducer = persistReducer( + persistConfig, + rootReducer +) const logger = createLogger({ predicate: (): boolean => isDebuggingInChrome, @@ -51,16 +53,16 @@ const navigation = createReactNavigationReduxMiddleware( (state: GlobalState): NavigationState => state.navigation ) -const configureStoreAndPersistor = (): { - store: Store, +function configureStoreAndPersistor(): { + store: Store persistor: Persistor -} => { +} { /** * If available use redux-devtool version of the compose function that allow * the inspection of the store from the devtool. */ const composeEnhancers = - window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose + (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose const enhancer: StoreEnhancer = composeEnhancers( applyMiddleware( thunk, @@ -72,11 +74,14 @@ const configureStoreAndPersistor = (): { ) ) - const store: Store = createStore(persistedReducer, enhancer) + const store: Store = createStore( + persistedReducer, + enhancer + ) const persistor = persistStore(store) if (isDebuggingInChrome) { - window.store = store + ;(window as any).store = store } // Run the main saga diff --git a/js/components/ConnectionBar.js b/ts/components/ConnectionBar.tsx similarity index 71% rename from js/components/ConnectionBar.js rename to ts/components/ConnectionBar.tsx index 8bc15ce3037..2a990de7fa7 100644 --- a/js/components/ConnectionBar.js +++ b/ts/components/ConnectionBar.tsx @@ -1,24 +1,14 @@ -/** - * @flow - */ - import * as React from 'react' import { StyleSheet, View, Text } from 'react-native' import { connect } from 'react-redux' - import I18n from '../i18n' - -import { type ReduxProps } from '../actions/types' -import { type GlobalState } from '../reducers/types' - -type ReduxMappedProps = { +import { ReduxProps } from '../actions/types' +import { GlobalState } from '../reducers/types' +export type ReduxMappedProps = { isConnected: boolean } - -type OwnProps = {} - -type Props = ReduxMappedProps & ReduxProps & OwnProps - +export type OwnProps = {} +export type Props = ReduxMappedProps & ReduxProps & OwnProps const styles = StyleSheet.create({ container: { display: 'flex', @@ -27,12 +17,11 @@ const styles = StyleSheet.create({ paddingLeft: 20 } }) - /** * Implements a component that show a message when there is no network connection */ -class ConnectionBar extends React.PureComponent { - render(): React.Node { +class ConnectionBar extends React.PureComponent { + render() { const { isConnected } = this.props if (isConnected) { return null @@ -44,9 +33,7 @@ class ConnectionBar extends React.PureComponent { ) } } - const mapStateToProps = (state: GlobalState): ReduxMappedProps => ({ isConnected: state.network.isConnected }) - export default connect(mapStateToProps)(ConnectionBar) diff --git a/js/components/IdpsGrid.js b/ts/components/IdpsGrid.tsx similarity index 82% rename from js/components/IdpsGrid.js rename to ts/components/IdpsGrid.tsx index 81d5ba2e5c5..90cfddd7d74 100644 --- a/js/components/IdpsGrid.js +++ b/ts/components/IdpsGrid.tsx @@ -1,22 +1,25 @@ -// @flow - import * as React from 'react' -import { Dimensions, StyleSheet, FlatList, Image } from 'react-native' +import { + Dimensions, + StyleSheet, + FlatList, + Image, + ListRenderItemInfo +} from 'react-native' import { View, Button } from 'native-base' -import { type ListRenderItemInfo } from '../lib/react-native/types' -import { type IdentityProvider } from '../utils/api' +import { IdentityProvider } from '../utils/api' import variables from '../theme/variables' -type OwnProps = { +export type OwnProps = { // Array of Identity Provider to show in the grid. - idps: $ReadOnlyArray, + idps: ReadonlyArray // A callback function called when an Identity Provider is selected - onIdpSelected: IdentityProvider => void + onIdpSelected: (_: IdentityProvider) => void } -type Props = OwnProps +export type Props = OwnProps const { width: windowWidth } = Dimensions.get('window') @@ -48,7 +51,7 @@ const styles = StyleSheet.create({ * array property. When an Identity Provider is selected a callback function is called. */ class IdpsGrid extends React.Component { - render(): React.Node { + render() { const { idps } = this.props return ( { data={idps} keyExtractor={this.keyExtractor} renderItem={this.renderItem} - onPress /> ) } @@ -69,7 +71,7 @@ class IdpsGrid extends React.Component { /* eslint-disable flowtype/no-weak-types */ renderItem = ( info: ListRenderItemInfo - ): ?React.Element => { + ): React.ReactElement => { const { onIdpSelected } = this.props const idp = info.item return ( diff --git a/js/components/forms/SpidInformationForm.js b/ts/components/forms/SpidInformationForm.tsx similarity index 62% rename from js/components/forms/SpidInformationForm.js rename to ts/components/forms/SpidInformationForm.tsx index 04967d847ca..3a1c69882d7 100644 --- a/js/components/forms/SpidInformationForm.js +++ b/ts/components/forms/SpidInformationForm.tsx @@ -1,21 +1,25 @@ -// @flow - import * as React from 'react' -import { type FormProps, reduxForm, Field } from 'redux-form' +import { + reduxForm, + Field, + FormProps, + FormErrors, + WrappedFieldProps, + BaseFieldsProps, + BaseFieldProps, + InjectedFormProps +} from 'redux-form' import { Form } from 'native-base' - import { renderNativeBaseInput, validators, getTraslatedFormFieldPropertyValue } from './utils' - -type OwnProps = {} - -type Props = FormProps & OwnProps +import { Dispatch, ReduxProps } from '../../actions/types' +import { connect } from 'react-redux' +import IdpSelectionScreen from '../../screens/authentication/IdpSelectionScreen' export const FORM_NAME = 'spidInformation' - const getCurrentFormFieldProperty = getTraslatedFormFieldPropertyValue( FORM_NAME ) @@ -23,8 +27,8 @@ const getCurrentFormFieldProperty = getTraslatedFormFieldPropertyValue( /** * A form to collect the user email address */ -class SpidInformationForm extends React.Component { - render(): React.Node { +class SpidInformationForm extends React.Component { + render() { return (
{ ) } } - export default reduxForm({ form: FORM_NAME })(SpidInformationForm) diff --git a/js/components/forms/utils.js b/ts/components/forms/utils.tsx similarity index 62% rename from js/components/forms/utils.js rename to ts/components/forms/utils.tsx index 0887dcfbe65..b73788a83e6 100644 --- a/js/components/forms/utils.js +++ b/ts/components/forms/utils.tsx @@ -1,11 +1,9 @@ /** * Useful methods to interact with redux-form - * - * @flow */ import * as React from 'react' -import { type FieldProps } from 'redux-form' +import { WrappedFieldProps, BaseFieldProps } from 'redux-form' import { Item, Input, View, Text } from 'native-base' import { isEmail } from 'validator' @@ -15,10 +13,10 @@ const getValidatorMessage = (validatorId: string): string => { return I18n.t(`forms.validators.${validatorId}`) } -const required = (value: string): ?string => +const required = (value: string): string | undefined => value ? undefined : getValidatorMessage('required') -const email = (value: string): ?string => +const email = (value: string): string | undefined => value && !isEmail(value) ? getValidatorMessage('email') : undefined /** @@ -26,9 +24,9 @@ const email = (value: string): ?string => */ export const getTraslatedFormFieldPropertyValue = ( formId: string -): (string => string => string) => (fieldId: string): (string => string) => ( - propertyId: string -): string => { +): ((_: string) => (_: string) => string) => ( + fieldId: string +): ((_: string) => string) => (propertyId: string): string => { return I18n.t(`forms.${formId}.fields.${fieldId}.${propertyId}`) } @@ -42,21 +40,30 @@ export const validators = { email } +export interface NativeBaseInputProps { + placeholder?: string + showError?: boolean +} + /** * This method is used by redux-form `Field` components. * It takes as input the field properties and return a native-base `Input`. */ -export const renderNativeBaseInput = ({ - input, - meta: { touched, error, active }, - ...rest -}: FieldProps): React.Node => { +export const renderNativeBaseInput = ( + props: WrappedFieldProps & BaseFieldProps & NativeBaseInputProps +) => { + const { + input, + meta: { touched, error, active }, + placeholder, + showError + } = props return ( - + - {rest.showError && error && touched && {error}} + {showError && error && touched && {error}} ) } diff --git a/js/components/styles.js b/ts/components/styles.ts similarity index 89% rename from js/components/styles.js rename to ts/components/styles.ts index 31bf46a3f13..37c940aefbe 100644 --- a/js/components/styles.js +++ b/ts/components/styles.ts @@ -1,7 +1,5 @@ /** * Common styles used across the components - * - * @flow */ import { Platform, NativeModules, StyleSheet } from 'react-native' @@ -15,7 +13,7 @@ const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : StatusBarManager.HEIGHT // with a call to StyleSheet.flatten() // https://github.com/shoutem/ui/issues/51 -const CommonStyles = StyleSheet.create({ +export const CommonStyles = StyleSheet.create({ fullContainer: { marginTop: STATUSBAR_HEIGHT, backgroundColor: '#fafafa' @@ -29,7 +27,7 @@ const CommonStyles = StyleSheet.create({ } }) -const ProfileStyles = StyleSheet.create({ +export const ProfileStyles = StyleSheet.create({ profileHeader: { backgroundColor: '#0066CC' }, @@ -65,8 +63,3 @@ const ProfileStyles = StyleSheet.create({ textAlign: 'right' } }) - -module.exports = { - CommonStyles, - ProfileStyles -} diff --git a/ts/components/ui/AppHeader.tsx b/ts/components/ui/AppHeader.tsx new file mode 100644 index 00000000000..2b9fd1a3161 --- /dev/null +++ b/ts/components/ui/AppHeader.tsx @@ -0,0 +1,20 @@ +import * as React from 'react' +import variables from '../../theme/variables' +import { Header, NativeBase } from 'native-base' + +export type Props = NativeBase.Header + +/** + * A customized Header component. + */ +const AppHeader: React.SFC = (props) => { + return ( +
+ ) +} + +export default AppHeader diff --git a/js/components/ui/Modal.js b/ts/components/ui/Modal.tsx similarity index 90% rename from js/components/ui/Modal.js rename to ts/components/ui/Modal.tsx index 16ab5df731c..7570c3956ad 100644 --- a/js/components/ui/Modal.js +++ b/ts/components/ui/Modal.tsx @@ -1,26 +1,21 @@ -// @flow - import * as React from 'react' import RNModal, { ModalProps } from 'react-native-modal' import mapPropsToStyleNames from 'native-base/src/Utils/mapPropsToStyleNames.js' import { connectStyle } from 'native-base-shoutem-theme' -type Props = ModalProps - +export type Props = ModalProps /** * A customized react-native-modal component. * The class is connected with the native-base StyleProvider using the `connectStyle(...)` method. */ class Modal extends React.Component { - render(): React.Node { + render(): React.ReactNode { return } } - const StyledModal = connectStyle( 'UIComponents.Modal', {}, mapPropsToStyleNames )(Modal) - export default StyledModal diff --git a/ts/config.ts b/ts/config.ts new file mode 100644 index 00000000000..db9dc61ff9e --- /dev/null +++ b/ts/config.ts @@ -0,0 +1,8 @@ +// Main config file. Mostly read the configuration from .env files + +import Config from 'react-native-config' + +export const environment = Config.ENVIRONMENT +export const apiUrlPrefix = Config.API_URL_PREFIX +export const mixpanelToken = Config.MIXPANEL_TOKEN +export const enableTestIdp = Config.ENABLE_TEST_IDP === 'YES' diff --git a/js/i18n.js b/ts/i18n.ts similarity index 74% rename from js/i18n.js rename to ts/i18n.ts index c6187a97f80..538fc1e6718 100644 --- a/js/i18n.js +++ b/ts/i18n.ts @@ -1,8 +1,8 @@ import I18n from 'react-native-i18n' // Import all locales -import en from '../locales/en.json' -import it from '../locales/it.json' +const en = require('../locales/en.json') +const it = require('../locales/it.json') // Should the app fallback to English if user locale doesn't exists I18n.fallbacks = true diff --git a/js/middlewares/analytics.js b/ts/middlewares/analytics.ts similarity index 68% rename from js/middlewares/analytics.js rename to ts/middlewares/analytics.ts index f5dd57c3ffe..0b9e90b88cb 100644 --- a/js/middlewares/analytics.js +++ b/ts/middlewares/analytics.ts @@ -1,45 +1,27 @@ /** * Implements a Redux middleware that translates actions into Mixpanel events - * - * @flow */ import Mixpanel from 'react-native-mixpanel' import { - type NavigationState, - type NavigationLeafRoute, + NavigationState, + NavigationLeafRoute, NavigationActions } from 'react-navigation' import { has } from 'lodash' import { sha256 } from 'react-native-sha256' import { REHYDRATE } from 'redux-persist/lib/constants' -import { - USER_WILL_LOGIN_ACTION, - USER_SELECTED_SPID_PROVIDER_ACTION, - USER_LOGGED_IN_ACTION, - USER_LOGIN_ERROR_ACTION -} from '../actions' -import { - type MiddlewareAPI, - type Action, - type AnyAction, - type Thunk, - type Dispatch -} from '../actions/types' +import { MiddlewareAPI, Action, Dispatch } from '../actions/types' import { APP_STATE_CHANGE_ACTION } from '../store/actions/constants' /* - The middleware acts as a general hook in order to track any meaningful action -*/ -function actionTracking(): Dispatch => AnyAction => AnyAction { - return (next: Dispatch): (AnyAction => AnyAction) => { - return (action: AnyAction): AnyAction => { - const result: Action | Thunk = next(action) - - if (typeof action === 'function') { - return result - } + * The middleware acts as a general hook in order to track any meaningful action + */ +export function actionTracking(): (_: Dispatch) => (Action) => Action { + return (next: Dispatch): ((_: Action) => Action) => { + return (action: Action): Action => { + const result: Action = next(action) switch (result.type) { case APP_STATE_CHANGE_ACTION: { @@ -48,6 +30,8 @@ function actionTracking(): Dispatch => AnyAction => AnyAction { }) break } + + /* case USER_WILL_LOGIN_ACTION: { Mixpanel.track('USER_WILL_LOGIN') break @@ -88,6 +72,8 @@ function actionTracking(): Dispatch => AnyAction => AnyAction { }) break } + */ + default: { break } @@ -100,34 +86,33 @@ function actionTracking(): Dispatch => AnyAction => AnyAction { // gets the current screen from navigation state // TODO: Need to be fixed -function getCurrentRouteName( - navNode: NavigationState | NavigationLeafRoute -): ?string { +export function getCurrentRouteName(navNode: any): string | null { if (!navNode) { return null } - if (typeof navNode.routeName === 'string') { + if (navNode.routeName && typeof navNode.routeName === 'string') { // navNode is a NavigationLeafRoute return navNode.routeName } - // navNode is a NavigationState - // eslint-disable-next-line flowtype/no-weak-types - const navState = ((navNode: any): NavigationState) - const route = navState.routes[navState.index] - return getCurrentRouteName(route) + if (navNode.routes && navNode.index && navNode.routes[navNode.index]) { + const route = navNode.routes[navNode.index] + return getCurrentRouteName(route) + } + + return null } /* The middleware acts as a general hook in order to track any meaningful navigation action https://reactnavigation.org/docs/guides/screen-tracking#Screen-tracking-with-Redux */ -function screenTracking( +export function screenTracking( store: MiddlewareAPI -): Dispatch => AnyAction => AnyAction { - return (next: Dispatch): (AnyAction => AnyAction) => { - return (action: AnyAction): AnyAction => { +): (Dispatch) => (AnyAction) => Action { + return (next: Dispatch): ((Action) => Action) => { + return (action: Action): Action => { if ( action.type !== NavigationActions.NAVIGATE && action.type !== NavigationActions.BACK @@ -148,8 +133,3 @@ function screenTracking( } } } - -module.exports = { - actionTracking, - screenTracking -} diff --git a/ts/middlewares/index.ts b/ts/middlewares/index.ts new file mode 100644 index 00000000000..55629a12b1d --- /dev/null +++ b/ts/middlewares/index.ts @@ -0,0 +1,3 @@ +import * as analytics from './analytics' + +export { analytics } diff --git a/js/navigation/AppNavigator.js b/ts/navigation/AppNavigator.ts similarity index 93% rename from js/navigation/AppNavigator.js rename to ts/navigation/AppNavigator.ts index 833d5237735..61977f8a644 100644 --- a/js/navigation/AppNavigator.js +++ b/ts/navigation/AppNavigator.ts @@ -1,6 +1,4 @@ -// @flow - -import { SwitchNavigator } from 'react-navigation' +import { SwitchNavigator, NavigationContainer } from 'react-navigation' import ROUTES from './routes' import IngressScreen from '../screens/IngressScreen' diff --git a/js/navigation/AuthenticationNavigator.js b/ts/navigation/AuthenticationNavigator.ts similarity index 82% rename from js/navigation/AuthenticationNavigator.js rename to ts/navigation/AuthenticationNavigator.ts index b55a64da080..ea8c77f965d 100644 --- a/js/navigation/AuthenticationNavigator.js +++ b/ts/navigation/AuthenticationNavigator.ts @@ -1,12 +1,9 @@ -// @flow - -import { StackNavigator } from 'react-navigation' +import { StackNavigator, NavigationContainer } from 'react-navigation' import ROUTES from './routes' import LandingScreen from '../screens/authentication/LandingScreen' import IdpSelectionScreen from '../screens/authentication/IdpSelectionScreen' import IdpLoginScreen from '../screens/authentication/IdpLoginScreen' -import LoginScreen from '../screens/authentication/LoginScreen' import SpidInformationRequestScreen from '../screens/authentication/SpidInformationRequestScreen' /** @@ -23,9 +20,6 @@ const navigator = StackNavigator( [ROUTES.AUTHENTICATION_IDP_LOGIN]: { screen: IdpLoginScreen }, - [ROUTES.AUTHENTICATION_LOGIN]: { - screen: LoginScreen - }, [ROUTES.AUTHENTICATION_SPID_INFORMATION_REQUEST]: { screen: SpidInformationRequestScreen } diff --git a/js/navigation/MainNavigator.js b/ts/navigation/MainNavigator.ts similarity index 88% rename from js/navigation/MainNavigator.js rename to ts/navigation/MainNavigator.ts index 445f9f0c513..9d1ff60a5a8 100644 --- a/js/navigation/MainNavigator.js +++ b/ts/navigation/MainNavigator.ts @@ -1,6 +1,4 @@ -// @flow - -import { TabNavigator } from 'react-navigation' +import { TabNavigator, NavigationContainer } from 'react-navigation' import ROUTES from './routes' import MessagesScreen from '../screens/main/MessagesScreen' diff --git a/js/navigation/OnboardingNavigator.js b/ts/navigation/OnboardingNavigator.ts similarity index 87% rename from js/navigation/OnboardingNavigator.js rename to ts/navigation/OnboardingNavigator.ts index 6696113c8f1..b6c7acf9de5 100644 --- a/js/navigation/OnboardingNavigator.js +++ b/ts/navigation/OnboardingNavigator.ts @@ -1,6 +1,4 @@ -// @flow - -import { StackNavigator } from 'react-navigation' +import { StackNavigator, NavigationContainer } from 'react-navigation' import ROUTES from './routes' import TosScreen from '../screens/onboarding/TosScreen' diff --git a/js/navigation/index.js b/ts/navigation/index.tsx similarity index 92% rename from js/navigation/index.js rename to ts/navigation/index.tsx index 90909468065..ae5e3fdf8be 100644 --- a/js/navigation/index.js +++ b/ts/navigation/index.tsx @@ -1,18 +1,16 @@ -// @flow - import * as React from 'react' import { BackHandler } from 'react-native' import { connect } from 'react-redux' import { - type NavigationState, + NavigationState, addNavigationHelpers, NavigationActions } from 'react-navigation' import { createReduxBoundAddListener } from 'react-navigation-redux-helpers' import { NAVIGATION_MIDDLEWARE_LISTENERS_KEY } from '../utils/constants' -import { type ReduxProps } from '../actions/types' -import { type GlobalState } from '../reducers/types' +import { ReduxProps } from '../actions/types' +import { GlobalState } from '../reducers/types' import AppNavigator from './AppNavigator' /** @@ -61,7 +59,7 @@ class Navigation extends React.Component { return true } - render(): React.Node { + render() { return ( { it('should have a valid initial state', () => { - expect(appState(undefined, {})).toEqual(initialAppState) + expect(appState(undefined, {} as any)).toEqual(initialAppState) }) it('should handle APPLICATION_STATE_CHANGE_ACTION', () => { - const action = { + const action: ApplicationStateAction = { type: APP_STATE_CHANGE_ACTION, payload: 'inactive' } diff --git a/js/reducers/appState.js b/ts/reducers/appState.ts similarity index 89% rename from js/reducers/appState.js rename to ts/reducers/appState.ts index 78d7bc068eb..96272882a88 100644 --- a/js/reducers/appState.js +++ b/ts/reducers/appState.ts @@ -2,13 +2,11 @@ * Implements the AppState reducers. * * Handles React Native's AppState changes. - * - * @flow */ import { - type ApplicationStateAction, - type ApplicationState + ApplicationStateAction, + ApplicationState } from '../actions/types' import { APP_STATE_CHANGE_ACTION } from '../store/actions/constants' diff --git a/js/reducers/index.js b/ts/reducers/index.ts similarity index 81% rename from js/reducers/index.js rename to ts/reducers/index.ts index 4edead531fe..f2a7e303bdf 100644 --- a/js/reducers/index.js +++ b/ts/reducers/index.ts @@ -1,22 +1,21 @@ /** * Aggregates all defined reducers - * - * @flow */ -import { combineReducers } from 'redux' -import { reducer as network } from 'react-native-offline' +import { combineReducers, AnyAction } from 'redux' +import { reducer as networkReducer } from 'react-native-offline' import { reducer as formReducer } from 'redux-form' import appStateReducer from './appState' import navigationReducer from './navigation' -import userReducer from './user' import loadingReducer from '../store/reducers/loading' import errorReducer from '../store/reducers/error' import sessionReducer from '../store/reducers/session' import onboardingReducer from '../store/reducers/onboarding' import profileReducer from '../store/reducers/profile' +import { GlobalState } from './types' +export { AnyAction } /** * Here we combine all the reducers. * We use the best practice of separating UI state from the DATA state. @@ -24,11 +23,10 @@ import profileReducer from '../store/reducers/profile' * DATA state is where we store real data fetched from the API (ex. profile/messages). * More at @https://medium.com/statuscode/dissecting-twitters-redux-store-d7280b62c6b1 */ -export default combineReducers({ +export default combineReducers({ appState: appStateReducer, - network, + network: networkReducer, navigation: navigationReducer, - user: userReducer, // UI loading: loadingReducer, diff --git a/js/reducers/navigation.js b/ts/reducers/navigation.ts similarity index 68% rename from js/reducers/navigation.js rename to ts/reducers/navigation.ts index fa396a6090a..13929f58d39 100644 --- a/js/reducers/navigation.js +++ b/ts/reducers/navigation.ts @@ -1,13 +1,16 @@ -// @flow +import { NavigationState, NavigationActions } from 'react-navigation' -import { type NavigationState, NavigationActions } from 'react-navigation' - -import { type Action } from '../actions/types' +import { Action } from '../actions/types' import AppNavigator from '../navigation/AppNavigator' -const INITIAL_STATE: NavigationState = AppNavigator.router.getInitialState() +const INITIAL_STATE: NavigationState = AppNavigator.router.getStateForAction( + NavigationActions.init() +) -function nextState(state: NavigationState, action: Action): ?NavigationState { +function nextState( + state: NavigationState, + action: Action +): NavigationState | null { switch (action.type) { /** * The getStateForAction method only accepts NavigationActions so we need to diff --git a/ts/reducers/types.ts b/ts/reducers/types.ts new file mode 100644 index 00000000000..a6ee4c97241 --- /dev/null +++ b/ts/reducers/types.ts @@ -0,0 +1,27 @@ +import { NavigationState } from 'react-navigation' +import { FormStateMap } from 'redux-form'; + +import { Action } from '../actions/types' +import { AppState } from './appState' +import { LoadingState } from '../store/reducers/loading' +import { ErrorState } from '../store/reducers/error' +import { SessionState } from '../store/reducers/session' +import { OnboardingState } from '../store/reducers/onboarding' +import { ProfileState } from '../store/reducers/profile' + +export type NetworkState = { + isConnected: boolean, + actionQueue: ReadonlyArray +} + +export type GlobalState = { + appState: AppState, + network: NetworkState, + navigation: NavigationState, + loading: LoadingState, + error: ErrorState, + form: FormStateMap + session: SessionState, + onboarding: OnboardingState, + profile: ProfileState +} diff --git a/js/sagas/index.js b/ts/sagas/index.ts similarity index 85% rename from js/sagas/index.js rename to ts/sagas/index.ts index 30e41b7c510..471dc67588e 100644 --- a/js/sagas/index.js +++ b/ts/sagas/index.ts @@ -1,11 +1,8 @@ /** * The root saga that forks and includes all the other sagas. - * - * @flow */ -import { type Saga } from 'redux-saga' -import { all, fork } from 'redux-saga/effects' +import { all, fork, Effect } from 'redux-saga/effects' import { networkEventsListenerSaga } from 'react-native-offline' import sessionSaga from './session' @@ -23,7 +20,7 @@ const connectionMonitorParameters = { checkConnectionInterval: 2500 } -export default function* root(): Saga { +export default function* root(): Iterator { yield all([ fork(sessionSaga), fork(onboardingSaga), diff --git a/js/sagas/onboarding.js b/ts/sagas/onboarding.ts similarity index 89% rename from js/sagas/onboarding.js rename to ts/sagas/onboarding.ts index 48bac53d47e..ae4322aa16f 100644 --- a/js/sagas/onboarding.js +++ b/ts/sagas/onboarding.ts @@ -2,12 +2,9 @@ * A saga that manages the Onboarding. * * For a detailed view of the flow check @https://docs.google.com/document/d/1le-IdjcGWtmfrMzh6d_qTwsnhVNCExbCd6Pt4gX7VGo/edit - * - * @flow */ -import { type Saga } from 'redux-saga' -import { takeLatest, fork, take, select, put } from 'redux-saga/effects' +import { takeLatest, fork, take, select, put, Effect } from 'redux-saga/effects' import { NavigationActions } from 'react-navigation' import { @@ -27,7 +24,7 @@ import { /** * The PIN step of the Onboarding */ -function* pinCheckSaga(): Saga { +function* pinCheckSaga(): Iterator { yield take(ONBOARDING_CHECK_PIN) // From the state we check whether the user has already created a PIN @@ -52,7 +49,7 @@ function* pinCheckSaga(): Saga { /** * The ToS step of the Onboarding */ -function* tosCheckSaga(): Saga { +function* tosCheckSaga(): Iterator { yield take(ONBOARDING_CHECK_TOS) // From the state we check whether the user has already accepted the ToS @@ -84,7 +81,7 @@ function* tosCheckSaga(): Saga { }) } -function* onboardingSaga(): Saga { +function* onboardingSaga(): Iterator { yield fork(tosCheckSaga) yield fork(pinCheckSaga) @@ -93,7 +90,7 @@ function* onboardingSaga(): Saga { }) } -export default function* root(): Saga { +export default function* root(): Iterator { /** * The Onboarding saga need to be started only after the Session saga is fully finished. * The SESSION_INITIALIZE_SUCCESS action is dispatched only when the Session is established and valid. diff --git a/js/sagas/profile.js b/ts/sagas/profile.ts similarity index 80% rename from js/sagas/profile.js rename to ts/sagas/profile.ts index 0a75c8e5f7d..2613cd7d6e0 100644 --- a/js/sagas/profile.js +++ b/ts/sagas/profile.ts @@ -1,11 +1,8 @@ /** * A saga that manages the Profile. - * - * @flow */ -import { type Saga } from 'redux-saga' -import { takeLatest, call, put, select } from 'redux-saga/effects' +import { takeLatest, call, put, select, Effect } from 'redux-saga/effects' import { PROFILE_LOAD_REQUEST, @@ -15,21 +12,22 @@ import { PROFILE_UPDATE_FAILURE, PROFILE_UPDATE_SUCCESS } from '../store/actions/constants' -import { type ProfileUpdateRequest } from '../store/actions/profile' +import { ProfileUpdateRequest } from '../store/actions/profile' import { - type ApiFetchResult, - type ApiProfile, + ApiFetchResult, + ApiProfile, fetchProfile, - postProfile + postProfile, + isApiFetchFailure } from '../api' -import { type GlobalState } from '../reducers/types' +import { GlobalState } from '../reducers/types' // A selector to get the token from the state -const getSessionToken = (state: GlobalState): ?string => +const getSessionToken = (state: GlobalState): string | null => state.session.isAuthenticated ? state.session.token : null // A saga to load the Profile. -function* loadProfile(): Saga { +function* loadProfile(): Iterator { try { // Get the token from the state const token: string = yield select(getSessionToken) @@ -37,7 +35,7 @@ function* loadProfile(): Saga { // Fetch the profile from the proxy const response: ApiFetchResult = yield call(fetchProfile, token) - if (response.isError) { + if (isApiFetchFailure(response)) { // If the api response is an error then dispatch the PROFILE_LOAD_FAILURE action. yield put({ type: PROFILE_LOAD_FAILURE, @@ -54,7 +52,7 @@ function* loadProfile(): Saga { } // A saga to update the Profile. -function* updateProfile(action: ProfileUpdateRequest): Saga { +function* updateProfile(action: ProfileUpdateRequest): Iterator { try { // Get the new Profile from the action payload const newProfile = action.payload @@ -68,7 +66,7 @@ function* updateProfile(action: ProfileUpdateRequest): Saga { token, newProfile ) - if (response.isError) { + if (isApiFetchFailure(response)) { // If the api response is an error then dispatch the PROFILE_UPDATE_FAILURE action. yield put({ type: PROFILE_UPDATE_FAILURE, @@ -88,7 +86,7 @@ function* updateProfile(action: ProfileUpdateRequest): Saga { } // This function listens for Profile related requests and calls the needed saga. -export default function* root(): Saga { +export default function* root(): Iterator { yield takeLatest(PROFILE_LOAD_REQUEST, loadProfile) yield takeLatest(PROFILE_UPDATE_REQUEST, updateProfile) } diff --git a/js/sagas/session.js b/ts/sagas/session.ts similarity index 86% rename from js/sagas/session.js rename to ts/sagas/session.ts index a9b37139e70..5dbeded412b 100644 --- a/js/sagas/session.js +++ b/ts/sagas/session.ts @@ -1,11 +1,8 @@ /** * A saga that manages the Session. - * - * @flow */ -import { type Saga } from 'redux-saga' -import { takeLatest, put, select, call } from 'redux-saga/effects' +import { takeLatest, put, select, call, Effect } from 'redux-saga/effects' import { NavigationActions } from 'react-navigation' import { @@ -18,7 +15,7 @@ import { loadProfile } from '../store/actions/profile' import ROUTES from '../navigation/routes' import { isAuthenticatedSelector } from '../store/reducers/session' -function* loginStep(): Saga { +function* loginStep(): Iterator { // The user loggedin successfully // Fetch the Profile @@ -30,7 +27,7 @@ function* loginStep(): Saga { }) } -function* idpSelectionStep(): Saga { +function* idpSelectionStep(): Iterator { // When the IDP is selected we must show the user the IdpLoginScreen const navigateAction = NavigationActions.navigate({ routeName: ROUTES.AUTHENTICATION_IDP_LOGIN @@ -41,7 +38,7 @@ function* idpSelectionStep(): Saga { yield takeLatest(LOGIN_SUCCESS, loginStep) } -function* landingStep(): Saga { +function* landingStep(): Iterator { // We must show the LandingScreen to the user const navigateAction = NavigationActions.reset({ index: 0, @@ -56,7 +53,7 @@ function* landingStep(): Saga { yield takeLatest(IDP_SELECTED, idpSelectionStep) } -function* sessionSaga(): Saga { +function* sessionSaga(): Iterator { // From the state we check if the session is already established const isAuthenticated: boolean = yield select(isAuthenticatedSelector) @@ -76,7 +73,7 @@ function* sessionSaga(): Saga { } } -export default function* root(): Saga { +export default function* root(): Iterator { /** * The Session saga is the first started on application startup. * The APPLICATION_INITIALIZED action is dispatched by the IngressScreen. diff --git a/js/screens/IngressScreen.js b/ts/screens/IngressScreen.tsx similarity index 77% rename from js/screens/IngressScreen.js rename to ts/screens/IngressScreen.tsx index 239da597c79..41b6516a665 100644 --- a/js/screens/IngressScreen.js +++ b/ts/screens/IngressScreen.tsx @@ -1,31 +1,20 @@ -// @flow - import * as React from 'react' import { connect } from 'react-redux' import { StyleSheet, ActivityIndicator } from 'react-native' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' - +import { NavigationScreenProp, NavigationState } from 'react-navigation' import { Container } from 'native-base' import variables from '../theme/variables' - -import { type ReduxProps } from '../actions/types' -import { type GlobalState } from '../reducers/types' -import { type SessionState } from '../store/reducers/session' +import { ReduxProps } from '../actions/types' +import { GlobalState } from '../reducers/types' +import { SessionState } from '../store/reducers/session' import { applicationInitialized } from '../store/actions/application' - type ReduxMappedProps = { session: SessionState } - type OwnProps = { navigation: NavigationScreenProp } - type Props = ReduxMappedProps & ReduxProps & OwnProps - const styles = StyleSheet.create({ container: { flex: 1, @@ -34,17 +23,15 @@ const styles = StyleSheet.create({ backgroundColor: variables.brandPrimary } }) - /** * An ingress screen to choose the real first screen the user must navigate to. */ -class IngressScreen extends React.Component { +class IngressScreen extends React.Component { componentDidMount() { // Dispatch APPLICATION_INITIALIZED to start the Autentication saga this.props.dispatch(applicationInitialized()) } - - render(): React.Node { + render() { return ( @@ -52,9 +39,7 @@ class IngressScreen extends React.Component { ) } } - const mapStateToProps = (state: GlobalState): ReduxMappedProps => ({ session: state.session }) - export default connect(mapStateToProps)(IngressScreen) diff --git a/js/screens/authentication/IdpLoginScreen.js b/ts/screens/authentication/IdpLoginScreen.tsx similarity index 81% rename from js/screens/authentication/IdpLoginScreen.js rename to ts/screens/authentication/IdpLoginScreen.tsx index 4fef3875f2d..76ec259742d 100644 --- a/js/screens/authentication/IdpLoginScreen.js +++ b/ts/screens/authentication/IdpLoginScreen.tsx @@ -1,46 +1,37 @@ -// @flow - import * as React from 'react' import { connect } from 'react-redux' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' +import { NavigationScreenProp, NavigationState } from 'react-navigation' import { WebView } from 'react-native' import { Container, Left, Button, Icon, Text, Body } from 'native-base' - -import { type ReduxProps } from '../../actions/types' -import { type GlobalState } from '../../reducers/types' -import { type SessionState } from '../../store/reducers/session' -import config from '../../config' +import { ReduxProps } from '../../actions/types' +import { GlobalState } from '../../reducers/types' +import { + SessionState, + isUnauthenticatedWithoutIdpSessionState +} from '../../store/reducers/session' +import * as config from '../../config' import I18n from '../../i18n' import AppHeader from '../../components/ui/AppHeader' import { extractLoginResult } from '../../api' import { loginSuccess, loginFailure } from '../../store/actions/session' - type ReduxMappedProps = { session: SessionState } - type OwnProps = { navigation: NavigationScreenProp } - type Props = ReduxMappedProps & ReduxProps & OwnProps - const LOGIN_BASE_URL = `${config.apiUrlPrefix}/login?entityID=` - /** * A screen that allow the user to login with an IDP. * The IDP page is opened in a WebView */ -class IdpLoginScreen extends React.Component { - render(): React.Node { +class IdpLoginScreen extends React.Component { + render() { const { session } = this.props - if (!session.idp) { + if (isUnauthenticatedWithoutIdpSessionState(session)) { return null } - const loginUri = LOGIN_BASE_URL + session.idp.entityID return ( @@ -66,14 +57,11 @@ class IdpLoginScreen extends React.Component { ) } - - onNavigationStateChange = navState => { + onNavigationStateChange = (navState: any) => { const url = navState.url - // Extract the login result from the url. // If the url is not related to login this will be `null` const loginResult = extractLoginResult(url) - if (loginResult) { if (loginResult.success) { // In case of successful login @@ -85,9 +73,7 @@ class IdpLoginScreen extends React.Component { } } } - const mapStateToProps = (state: GlobalState): ReduxMappedProps => ({ session: state.session }) - export default connect(mapStateToProps)(IdpLoginScreen) diff --git a/js/screens/authentication/IdpSelectionScreen.js b/ts/screens/authentication/IdpSelectionScreen.tsx similarity index 89% rename from js/screens/authentication/IdpSelectionScreen.js rename to ts/screens/authentication/IdpSelectionScreen.tsx index 44581dde92f..5575080e4af 100644 --- a/js/screens/authentication/IdpSelectionScreen.js +++ b/ts/screens/authentication/IdpSelectionScreen.tsx @@ -1,11 +1,6 @@ -// @flow - import * as React from 'react' import { connect } from 'react-redux' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' +import { NavigationScreenProp, NavigationState } from 'react-navigation' import { StyleSheet, Image } from 'react-native' import { Container, @@ -18,24 +13,19 @@ import { Left, Icon } from 'native-base' - -import { type ReduxProps } from '../../actions/types' -import { type IdentityProvider } from '../../utils/api' -import config from '../../config' +import { ReduxProps } from '../../actions/types' +import { IdentityProvider } from '../../utils/api' +import * as config from '../../config' import I18n from '../../i18n' import AppHeader from '../../components/ui/AppHeader' import IdpsGrid from '../../components/IdpsGrid' import { selectIdp } from '../../store/actions/session' - type ReduxMappedProps = {} - type OwnProps = { navigation: NavigationScreenProp } - type Props = ReduxMappedProps & ReduxProps & OwnProps - -const idps: $ReadOnlyArray = [ +const idps: ReadonlyArray = [ { id: 'infocertid', name: 'Infocert', @@ -72,7 +62,6 @@ const idps: $ReadOnlyArray = [ profileUrl: 'http://selfcarespid.aruba.it' } ] - const testIdp = { id: 'test', name: 'Test', @@ -80,9 +69,7 @@ const testIdp = { entityID: 'spid-testenv-identityserver', profileUrl: 'https://italia-backend/profile.html' } - const enabledIdps = config.enableTestIdp ? [...idps, testIdp] : idps - const styles = StyleSheet.create({ spidLogo: { width: 80, @@ -93,12 +80,11 @@ const styles = StyleSheet.create({ padding: 24 } }) - /** * A screen where the user choose the SPID IPD to login with. */ -class IdpSelectionScreen extends React.Component { - render(): React.Node { +class IdpSelectionScreen extends React.Component { + render() { return ( @@ -148,5 +134,4 @@ class IdpSelectionScreen extends React.Component { ) } } - export default connect()(IdpSelectionScreen) diff --git a/js/screens/authentication/LandingScreen.js b/ts/screens/authentication/LandingScreen.tsx similarity index 87% rename from js/screens/authentication/LandingScreen.js rename to ts/screens/authentication/LandingScreen.tsx index 33bf4c682b5..b5fa4bc03cf 100644 --- a/js/screens/authentication/LandingScreen.js +++ b/ts/screens/authentication/LandingScreen.tsx @@ -1,31 +1,21 @@ -// @flow - import * as React from 'react' import { connect } from 'react-redux' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' +import { NavigationScreenProp, NavigationState } from 'react-navigation' import { Container, Content, Text, View, Button, Icon, Body } from 'native-base' - -import { type ReduxProps } from '../../actions/types' +import { ReduxProps } from '../../actions/types' import ROUTES from '../../navigation/routes' import I18n from '../../i18n' import AppHeader from '../../components/ui/AppHeader' - type ReduxMappedProps = {} - type OwnProps = { navigation: NavigationScreenProp } - type Props = ReduxMappedProps & ReduxProps & OwnProps - /** * A screen where the user can choose to login with SPID or get more informations. */ -class LandingScreen extends React.Component { - render(): React.Node { +class LandingScreen extends React.Component { + render() { return ( @@ -66,5 +56,4 @@ class LandingScreen extends React.Component { ) } } - export default connect()(LandingScreen) diff --git a/js/screens/authentication/SpidInformationRequestScreen.js b/ts/screens/authentication/SpidInformationRequestScreen.tsx similarity index 94% rename from js/screens/authentication/SpidInformationRequestScreen.js rename to ts/screens/authentication/SpidInformationRequestScreen.tsx index 71f9a2d6aae..f2c83cd5e27 100644 --- a/js/screens/authentication/SpidInformationRequestScreen.js +++ b/ts/screens/authentication/SpidInformationRequestScreen.tsx @@ -1,12 +1,7 @@ -// @flow - import * as React from 'react' import { connect } from 'react-redux' import { isValid } from 'redux-form' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' +import { NavigationScreenProp, NavigationState } from 'react-navigation' import { Container, Content, @@ -18,29 +13,23 @@ import { Body, H1 } from 'native-base' - -import { type GlobalState } from '../../reducers/types' +import { GlobalState } from '../../reducers/types' import I18n from '../../i18n' import AppHeader from '../../components/ui/AppHeader' import Modal from '../../components/ui/Modal' import SpidInformationForm, { FORM_NAME as SPID_INFORMATION_FORM_NAME } from '../../components/forms/SpidInformationForm' - type ReduxMappedProps = { isFormValid: boolean } - type OwnProps = { navigation: NavigationScreenProp } - type Props = ReduxMappedProps & OwnProps - type State = { isTosModalVisible: boolean } - /** * A screen where the user can insert an email to receive information about SPID. */ @@ -48,8 +37,7 @@ class SpidInformationRequestScreen extends React.Component { state: State = { isTosModalVisible: false } - - render(): React.Node { + render() { return ( @@ -118,7 +106,6 @@ class SpidInformationRequestScreen extends React.Component { ) } } - const mapStateToProps = (state: GlobalState): ReduxMappedProps => ({ /** * Our form submit button is outside the `Form` itself so we need to use @@ -126,5 +113,4 @@ const mapStateToProps = (state: GlobalState): ReduxMappedProps => ({ */ isFormValid: isValid(SPID_INFORMATION_FORM_NAME)(state) }) - export default connect(mapStateToProps)(SpidInformationRequestScreen) diff --git a/ts/screens/main/MessagesScreen.tsx b/ts/screens/main/MessagesScreen.tsx new file mode 100644 index 00000000000..cde49a64860 --- /dev/null +++ b/ts/screens/main/MessagesScreen.tsx @@ -0,0 +1,27 @@ +import * as React from 'react' +import { connect } from 'react-redux' +import { NavigationScreenProp, NavigationState } from 'react-navigation' +import { Container } from 'native-base' +import { ReduxProps } from '../../actions/types' +import { GlobalState } from '../../reducers/types' + +export type OwnProps = { + navigation: NavigationScreenProp +} + +export type Props = OwnProps + +/** + * This screen show the messages to the authenticated user. + */ +class MessagesScreen extends React.Component { + constructor(props: Props) { + super(props) + } + + render() { + return + } +} + +export default MessagesScreen diff --git a/ts/screens/main/ProfileScreen.tsx b/ts/screens/main/ProfileScreen.tsx new file mode 100644 index 00000000000..2ddbf6d887e --- /dev/null +++ b/ts/screens/main/ProfileScreen.tsx @@ -0,0 +1,22 @@ +import * as React from 'react' +import { connect } from 'react-redux' +import { NavigationScreenProp, NavigationState } from 'react-navigation' +import { Container } from 'native-base' +import { GlobalState } from '../../reducers/types' +import { ReduxProps } from '../../actions/types' + +export type OwnProps = { + navigation: NavigationScreenProp +} + +export type Props = OwnProps +/** + * This screen show the profile to the authenticated user. + */ +class ProfileScreen extends React.Component { + render() { + return + } +} + +export default ProfileScreen diff --git a/js/screens/onboarding/PinScreen.js b/ts/screens/onboarding/PinScreen.tsx similarity index 68% rename from js/screens/onboarding/PinScreen.js rename to ts/screens/onboarding/PinScreen.tsx index 96dd150f0aa..026edc1dce1 100644 --- a/js/screens/onboarding/PinScreen.js +++ b/ts/screens/onboarding/PinScreen.tsx @@ -1,30 +1,20 @@ -// @flow - import * as React from 'react' import { connect } from 'react-redux' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' +import { NavigationScreenProp, NavigationState } from 'react-navigation' import { Container, Content } from 'native-base' - -import { type ReduxProps } from '../../actions/types' - +import { ReduxProps } from '../../actions/types' type ReduxMappedProps = {} - type OwnProps = { navigation: NavigationScreenProp } - type Props = ReduxMappedProps & ReduxProps & OwnProps - /** * A screen that allows the user to set the PIN. * * NOTE: Currently an empty screen just to test the navigation. */ -class PinScreen extends React.Component { - render(): React.Node { +class PinScreen extends React.Component { + render() { return ( @@ -32,5 +22,4 @@ class PinScreen extends React.Component { ) } } - export default connect()(PinScreen) diff --git a/js/screens/onboarding/TosScreen.js b/ts/screens/onboarding/TosScreen.tsx similarity index 87% rename from js/screens/onboarding/TosScreen.js rename to ts/screens/onboarding/TosScreen.tsx index 06ab96fadd1..b969a59c55b 100644 --- a/js/screens/onboarding/TosScreen.js +++ b/ts/screens/onboarding/TosScreen.tsx @@ -1,11 +1,6 @@ -// @flow - import * as React from 'react' import { connect } from 'react-redux' -import { - type NavigationScreenProp, - type NavigationState -} from 'react-navigation' +import { NavigationScreenProp, NavigationState } from 'react-navigation' import { Container, Content, @@ -18,29 +13,23 @@ import { H1, H3 } from 'native-base' - -import { type ReduxProps } from '../../actions/types' +import { ReduxProps } from '../../actions/types' import I18n from '../../i18n' import AppHeader from '../../components/ui/AppHeader' import { acceptTos } from '../../store/actions/onboarding' - type ReduxMappedProps = {} - type OwnProps = { navigation: NavigationScreenProp } - type Props = ReduxMappedProps & ReduxProps & OwnProps - /** * A screen to show the ToS to the user. */ -class TosScreen extends React.Component { +class TosScreen extends React.Component { acceptTos = () => { this.props.dispatch(acceptTos()) } - - render(): React.Node { + render() { return ( @@ -76,5 +65,4 @@ class TosScreen extends React.Component { ) } } - export default connect()(TosScreen) diff --git a/js/store/actions/application.js b/ts/store/actions/application.ts similarity index 97% rename from js/store/actions/application.js rename to ts/store/actions/application.ts index 356933e1085..3dcb61b12da 100644 --- a/js/store/actions/application.js +++ b/ts/store/actions/application.ts @@ -2,8 +2,6 @@ import { APPLICATION_INITIALIZED } from './constants' /** * Action types and action creator related to the Application. - * - * @flow */ // Actions diff --git a/js/store/actions/constants.js b/ts/store/actions/constants.ts similarity index 95% rename from js/store/actions/constants.js rename to ts/store/actions/constants.ts index d319d737195..c4cf7095f29 100644 --- a/js/store/actions/constants.js +++ b/ts/store/actions/constants.ts @@ -1,7 +1,5 @@ /** * All the actions related costants. - * - * @flow */ // Application @@ -48,4 +46,4 @@ export const FetchRequestActions = { } // Extract keys from object and create a new union type -export type FetchRequestActionsType = $Keys +export type FetchRequestActionsType = keyof typeof FetchRequestActions diff --git a/js/store/actions/onboarding.js b/ts/store/actions/onboarding.ts similarity index 97% rename from js/store/actions/onboarding.js rename to ts/store/actions/onboarding.ts index 9b9e0b39159..b10db2ca128 100644 --- a/js/store/actions/onboarding.js +++ b/ts/store/actions/onboarding.ts @@ -1,7 +1,5 @@ /** * Action types and action creator related to the Onboarding. - * - * @flow */ import { TOS_ACCEPT_REQUEST, TOS_ACCEPT_SUCCESS } from './constants' diff --git a/js/store/actions/profile.js b/ts/store/actions/profile.ts similarity index 93% rename from js/store/actions/profile.js rename to ts/store/actions/profile.ts index 3996fe77024..fd160d57b9c 100644 --- a/js/store/actions/profile.js +++ b/ts/store/actions/profile.ts @@ -1,10 +1,8 @@ /** * Action types and action creator related to the Profile. - * - * @flow */ -import { type ApiProfile, type WithOnlyVersionRequired } from '../../api' +import { ApiProfile, WithOnlyVersionRequired } from '../../api' import { PROFILE_LOAD_REQUEST, PROFILE_LOAD_SUCCESS, diff --git a/js/store/actions/session.js b/ts/store/actions/session.ts similarity index 93% rename from js/store/actions/session.js rename to ts/store/actions/session.ts index f9600bd675b..29524ae4c85 100644 --- a/js/store/actions/session.js +++ b/ts/store/actions/session.ts @@ -4,7 +4,7 @@ * @flow */ -import { type IdentityProvider } from '../../api' +import { IdentityProvider } from '../../api' import { IDP_SELECTED, LOGIN_SUCCESS, LOGIN_FAILURE } from './constants' // Actions diff --git a/js/store/reducers/error.js b/ts/store/reducers/error.ts similarity index 73% rename from js/store/reducers/error.js rename to ts/store/reducers/error.ts index 86920ab3d97..6c74f1dae7d 100644 --- a/js/store/reducers/error.js +++ b/ts/store/reducers/error.ts @@ -3,19 +3,15 @@ * To work the actions need to use the conventional flux/redux naming: * * - ACTION_NAME_(REQUEST|SUCCESS|FAILURE) - * - * @flow */ import get from 'lodash/get' -import { type GlobalState } from '../../reducers/types' -import { type Action } from '../../actions/types' -import { type FetchRequestActionsType } from '../actions/constants' +import { GlobalState } from '../../reducers/types' +import { Action } from '../../actions/types' +import { FetchRequestActionsType } from '../actions/constants' -export type ErrorState = { - [key: FetchRequestActionsType]: string -} +export type ErrorState = { [key in FetchRequestActionsType]?: string } export const INITIAL_STATE: ErrorState = {} @@ -25,8 +21,8 @@ export const INITIAL_STATE: ErrorState = {} * USAGE: `createErrorSelector(['PROFILE_LOAD', 'PREFERENCES_LOAD'])` */ export const createErrorSelector = ( - actions: $ReadOnlyArray -): (GlobalState => ?string) => (state: GlobalState): ?string => { + actions: ReadonlyArray +): ((_: GlobalState) => string) => (state: GlobalState): string => { // Returns first error message found if any return ( actions @@ -34,7 +30,7 @@ export const createErrorSelector = ( get(state, `error.${action}`) ) // eslint-disable-next-line no-magic-numbers - .filter((message: ?string): boolean => !!message)[0] + .filter((message: string): boolean => !!message)[0] ) } @@ -56,7 +52,7 @@ const reducer = ( // We need to set the error message return { ...state, - [requestName]: action.payload ? action.payload : 'Generic error' + [requestName]: (action as any).payload || 'Generic error' } } else { // We need to remove the error message diff --git a/js/store/reducers/loading.js b/ts/store/reducers/loading.ts similarity index 77% rename from js/store/reducers/loading.js rename to ts/store/reducers/loading.ts index 2c51bb03eb1..d33b720e36d 100644 --- a/js/store/reducers/loading.js +++ b/ts/store/reducers/loading.ts @@ -3,19 +3,15 @@ * To work the actions need to use the conventional flux/redux naming: * * - ACTION_NAME_(REQUEST|SUCCESS|FAILURE) - * - * @flow */ import get from 'lodash/get' -import { type GlobalState } from '../../reducers/types' -import { type Action } from '../../actions/types' -import { type FetchRequestActionsType } from '../actions/constants' +import { GlobalState } from '../../reducers/types' +import { Action } from '../../actions/types' +import { FetchRequestActionsType } from '../actions/constants' -export type LoadingState = { - [key: FetchRequestActionsType]: boolean -} +export type LoadingState = { [key in FetchRequestActionsType]?: boolean } export const INITIAL_STATE: LoadingState = {} @@ -25,8 +21,8 @@ export const INITIAL_STATE: LoadingState = {} * USAGE: `createLoadingSelector(['PROFILE_LOAD', 'PREFERENCES_LOAD'])` */ export const createLoadingSelector = ( - actions: $ReadOnlyArray -): (GlobalState => ?boolean) => (state: GlobalState): boolean => { + actions: ReadonlyArray +): ((_: GlobalState) => boolean | null) => (state: GlobalState): boolean => { // Returns true only when all actions are not loading return actions.some((action: FetchRequestActionsType): boolean => get(state, `loading.${action}`) diff --git a/js/store/reducers/onboarding.js b/ts/store/reducers/onboarding.ts similarity index 88% rename from js/store/reducers/onboarding.js rename to ts/store/reducers/onboarding.ts index 1f5ceecf3aa..2892de817b0 100644 --- a/js/store/reducers/onboarding.js +++ b/ts/store/reducers/onboarding.ts @@ -4,8 +4,8 @@ */ import { TOS_ACCEPT_SUCCESS } from '../actions/constants' -import { type Action } from '../../actions/types' -import { type GlobalState } from '../../reducers/types' +import { Action } from '../../actions/types' +import { GlobalState } from '../../reducers/types' export type OnboardingState = { isTosAccepted: boolean, diff --git a/js/store/reducers/profile.js b/ts/store/reducers/profile.ts similarity index 82% rename from js/store/reducers/profile.js rename to ts/store/reducers/profile.ts index efd1044cff4..8df4c3f63e2 100644 --- a/js/store/reducers/profile.js +++ b/ts/store/reducers/profile.ts @@ -10,12 +10,12 @@ import { PROFILE_LOAD_SUCCESS, PROFILE_UPDATE_SUCCESS } from '../actions/constants' -import { type Action } from '../../actions/types' -import { type ApiProfile } from '../../api' +import { Action } from '../../actions/types' +import { ApiProfile } from '../../api' export type ProfileState = ApiProfile | null -export const INITIAL_STATE = null +export const INITIAL_STATE: ProfileState = null const reducer = ( state: ProfileState = INITIAL_STATE, diff --git a/js/store/reducers/session.js b/ts/store/reducers/session.ts similarity index 59% rename from js/store/reducers/session.js rename to ts/store/reducers/session.ts index 7bb1463b688..eb22ba7c6b0 100644 --- a/js/store/reducers/session.js +++ b/ts/store/reducers/session.ts @@ -1,20 +1,18 @@ /** * A reducer for the Session. - * - * @flow */ -import { type IdentityProvider } from '../../api' -import { type Action } from '../../actions/types' -import { type GlobalState } from '../../reducers/types' +import { IdentityProvider } from '../../api' +import { Action } from '../../actions/types' +import { GlobalState } from '../../reducers/types' import { IDP_SELECTED, LOGIN_SUCCESS } from '../actions/constants' -export type UnauthenticatedWithoutIdpSessionState = {| +export type UnauthenticatedWithoutIdpSessionState = { isAuthenticated: false -|} +} export type UnauthenticatedWithIdpSessionState = { - isAuthenticated: false, + isAuthenticated: false idp: IdentityProvider } @@ -23,9 +21,9 @@ export type UnauthenticatedSessionState = | UnauthenticatedWithIdpSessionState export type AuthenticatedSessionState = { - isAuthenticated: true, - idp: IdentityProvider, - token: string, + isAuthenticated: true + idp: IdentityProvider + token: string expiredAt?: number } @@ -37,6 +35,19 @@ export const INITIAL_STATE: UnauthenticatedWithoutIdpSessionState = { isAuthenticated: false } +// Type guards +export function isUnauthenticatedWithIdpSessionState( + state: any +): state is UnauthenticatedWithIdpSessionState { + return !state.isAuthenticated && state.idp +} + +export function isUnauthenticatedWithoutIdpSessionState( + state: any +): state is UnauthenticatedWithoutIdpSessionState { + return !state.isAuthenticated && !state.idp +} + // Selectors export const isAuthenticatedSelector = (state: GlobalState): boolean => state.session.isAuthenticated @@ -49,7 +60,10 @@ const reducer = ( return { ...state, idp: action.payload } } - if (action.type === LOGIN_SUCCESS && !state.isAuthenticated && state.idp) { + if ( + action.type === LOGIN_SUCCESS && + isUnauthenticatedWithIdpSessionState(state) + ) { return { isAuthenticated: true, idp: state.idp, diff --git a/js/theme/components/Button.js b/ts/theme/components/Button.ts similarity index 84% rename from js/theme/components/Button.js rename to ts/theme/components/Button.ts index 4035c7bb683..b2521e45def 100644 --- a/js/theme/components/Button.js +++ b/ts/theme/components/Button.ts @@ -1,13 +1,20 @@ -// @flow - import { Platform } from 'react-native' - -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' import { makeFontStyleObject } from '../fonts' +import * as ReactNative from 'react-native' + +declare module 'native-base' { + namespace NativeBase { + interface Button extends ReactNative.TouchableOpacityProperties, BsStyle { + white?: boolean + } + } +} + export default (): Theme => { - const theme = { + return { '.block': { '.iconVeryLeft': { 'NativeBase.Icon': { @@ -19,47 +26,38 @@ export default (): Theme => { paddingLeft: 15, paddingRight: 15 }, - 'NativeBase.Text': { flex: 1, textAlign: 'center' }, - padding: 0, display: 'flex', justifyContent: 'flex-start' } }, - '.small': { height: variables.btnSmallHeight, - 'NativeBase.Text': { fontSize: variables.btnSmallFontSize } }, - '.light': { '.bordered': { 'NativeBase.Text': { color: variables.btnLightTextColor }, - borderWidth: 1, borderColor: variables.btnLightBorderColor, backgroundColor: variables.brandLight } }, - '.white': { backgroundColor: '#FFFFFF' }, - 'NativeBase.Text': { ...makeFontStyleObject(Platform.select, variables.btnTextFontWeight), fontSize: variables.btnFontSize }, - borderRadius: variables.borderRadiusBase, height: variables.btnHeight, elevation: 0, @@ -68,6 +66,4 @@ export default (): Theme => { shadowRadius: null, shadowOpacity: null } - - return theme } diff --git a/js/theme/components/Content.js b/ts/theme/components/Content.ts similarity index 65% rename from js/theme/components/Content.js rename to ts/theme/components/Content.ts index c8ad2a932dc..88495bea3f6 100644 --- a/js/theme/components/Content.js +++ b/ts/theme/components/Content.ts @@ -1,8 +1,15 @@ -// @flow - -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' + +declare module 'native-base' { + namespace NativeBase { + interface Content { + alternative?: boolean + } + } +} + export default (): Theme => { const theme = { '.alternative': { diff --git a/js/theme/components/H1.js b/ts/theme/components/H1.ts similarity index 85% rename from js/theme/components/H1.js rename to ts/theme/components/H1.ts index 65829e42feb..30bfa602be4 100644 --- a/js/theme/components/H1.js +++ b/ts/theme/components/H1.ts @@ -1,8 +1,6 @@ -// @flow - import { Platform } from 'react-native' -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' import { makeFontStyleObject } from '../fonts' diff --git a/js/theme/components/H3.js b/ts/theme/components/H3.ts similarity index 88% rename from js/theme/components/H3.js rename to ts/theme/components/H3.ts index 3b7cc4df49c..f3f22577dae 100644 --- a/js/theme/components/H3.js +++ b/ts/theme/components/H3.ts @@ -1,8 +1,6 @@ -// @flow - import { Platform } from 'react-native' -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' import { makeFontStyleObject } from '../fonts' diff --git a/js/theme/components/Header.js b/ts/theme/components/Header.ts similarity index 94% rename from js/theme/components/Header.js rename to ts/theme/components/Header.ts index 6a8fdb1d030..dacdfade55c 100644 --- a/js/theme/components/Header.js +++ b/ts/theme/components/Header.ts @@ -1,8 +1,6 @@ -// @flow - import { Platform } from 'react-native' -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' import { makeFontStyleObject } from '../fonts' diff --git a/js/theme/components/Item.js b/ts/theme/components/Item.ts similarity index 73% rename from js/theme/components/Item.js rename to ts/theme/components/Item.ts index 6436b73cc4c..80eccda1525 100644 --- a/js/theme/components/Item.js +++ b/ts/theme/components/Item.ts @@ -1,10 +1,16 @@ -// @flow - import color from 'color' -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' +declare module 'native-base' { + namespace NativeBase { + interface Item { + active?: boolean + } + } +} + export default (): Theme => { const theme = { '.active': { diff --git a/js/theme/components/Modal.js b/ts/theme/components/Modal.ts similarity index 90% rename from js/theme/components/Modal.js rename to ts/theme/components/Modal.ts index c2d43e93af9..fb884e303a6 100644 --- a/js/theme/components/Modal.js +++ b/ts/theme/components/Modal.ts @@ -1,6 +1,4 @@ -// @flow - -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' export default (): Theme => { diff --git a/js/theme/components/Text.js b/ts/theme/components/Text.ts similarity index 62% rename from js/theme/components/Text.js rename to ts/theme/components/Text.ts index 7881a205a4c..673ebbfa57c 100644 --- a/js/theme/components/Text.js +++ b/ts/theme/components/Text.ts @@ -1,11 +1,19 @@ -// @flow - import { Platform } from 'react-native' -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' import { makeFontStyleObject } from '../fonts' +import * as ReactNative from 'react-native' + +declare module 'native-base' { + namespace NativeBase { + interface Text extends ReactNative.TextProperties { + link?: boolean + } + } +} + export default (): Theme => { const theme = { '.link': { diff --git a/js/theme/components/View.js b/ts/theme/components/View.ts similarity index 75% rename from js/theme/components/View.js rename to ts/theme/components/View.ts index afb38ef50c5..4e419771eb7 100644 --- a/js/theme/components/View.js +++ b/ts/theme/components/View.ts @@ -1,8 +1,21 @@ -// @flow - -import { type Theme } from '../types' +import { Theme } from '../types' import variables from '../variables' +import * as ReactNative from 'react-native' + +declare module 'native-base' { + namespace NativeBase { + interface View extends ReactNative.ViewProperties { + spacer?: boolean + large?: boolean + extralarge?: boolean + modal?: boolean + footer?: boolean + header?: boolean + } + } +} + export default (): Theme => { const theme = { '.spacer': { diff --git a/js/theme/fonts.js b/ts/theme/fonts.ts similarity index 68% rename from js/theme/fonts.js rename to ts/theme/fonts.ts index 3939978a36a..5fc25c9be70 100644 --- a/js/theme/fonts.js +++ b/ts/theme/fonts.ts @@ -2,40 +2,39 @@ * Utility functions to manage font properties to style mapping for both iOS and Android * Fonts are managed differently on Android and iOS. Read the Font section of the * README file included in this repository. - * - * @flow */ -import { Platform } from 'react-native' -import { type PlatformSelectSpec } from 'PlatformOS' +import { Platform, PlatformOSType, PlatformStatic } from 'react-native' + +type PlatformSelectType = PlatformStatic['select'] const font = Platform.select({ android: 'TitilliumWeb', ios: 'Titillium Web' }) -const fontWeights = { +export const fontWeights = { '300': 'Light', '400': 'Regular', '600': 'SemiBold', '700': 'Bold' } -export type FontWeight = $Keys +export type FontWeight = keyof typeof fontWeights export type FontStyleObject = { - fontFamily: string, - fontWeight?: string, - style?: 'normal' | 'italic' + fontFamily: string + fontWeight?: string + fontStyle?: string } /** * Get the correct fontFamily name on both Android and iOS */ export const makeFontFamilyName = ( - osSelect: (spec: PlatformSelectSpec) => A | I, - weight?: FontWeight = '400', - isItalic?: boolean = false + osSelect: PlatformSelectType, + weight: FontWeight | null = '400', + isItalic: boolean | null = false ): string => osSelect({ android: `${font}-${fontWeights[weight]}${isItalic ? 'Italic' : ''}`, @@ -47,9 +46,9 @@ export const makeFontFamilyName = ( * a Font correctly on both Android and iOS. */ export const makeFontStyleObject = ( - osSelect: (spec: PlatformSelectSpec) => A | I, - weight?: FontWeight = '400', - isItalic?: boolean = false + osSelect: PlatformSelectType, + weight: FontWeight | null = '400', + isItalic: boolean | null = false ): FontStyleObject => osSelect({ android: { diff --git a/js/theme/index.js b/ts/theme/index.ts similarity index 96% rename from js/theme/index.js rename to ts/theme/index.ts index e176a8e5213..cdbeeaddf95 100644 --- a/js/theme/index.js +++ b/ts/theme/index.ts @@ -1,13 +1,12 @@ /** * This file exports a function to create the whole theme of the application. * It takes our custom variables and mixes them with each defined component theme. - * @flow */ import merge from 'lodash/merge' import getTheme from 'native-base/src/theme/components' -import { type Theme } from './types' +import { Theme } from './types' import variables from './variables' import buttonTheme from './components/Button' import contentTheme from './components/Content' diff --git a/js/theme/types.js b/ts/theme/types.ts similarity index 94% rename from js/theme/types.js rename to ts/theme/types.ts index e2f7731bb2d..00e40910703 100644 --- a/js/theme/types.js +++ b/ts/theme/types.ts @@ -1,5 +1,3 @@ -// @flow - export type ThemeSimpleValue = null | number | string // A generic recursive type for the theme diff --git a/js/theme/variables.js b/ts/theme/variables.ts similarity index 97% rename from js/theme/variables.js rename to ts/theme/variables.ts index 5012de66d44..5523d371a1b 100644 --- a/js/theme/variables.js +++ b/ts/theme/variables.ts @@ -2,14 +2,12 @@ * This file imports all the variables defined inside the native-base material * theme than overwrites or add more variables. The combined variables are * exported to be used in our components theme files (check `./components` directory). - * - * @flow */ import { Platform } from 'react-native' import materialVariables from 'native-base/src/theme/variables/material' -import { type ThemeSimpleValue } from './types' +import { ThemeSimpleValue } from './types' import { makeFontStyleObject } from './fonts' const customVariables = Object.assign(materialVariables, { diff --git a/js/utils/api.js b/ts/utils/api.ts similarity index 95% rename from js/utils/api.js rename to ts/utils/api.ts index 2cbf57d829b..adfa3415e77 100644 --- a/js/utils/api.js +++ b/ts/utils/api.ts @@ -1,7 +1,5 @@ /** * Implements the APIs to interact with the backend. - * - * @flow */ /** @@ -30,7 +28,7 @@ export type ApiNewUserProfile = { export async function getUserProfile( apiUrlPrefix: string, token: string -): Promise { +): Promise { try { const response = await fetch(`${apiUrlPrefix}/api/v1/profile`, { method: 'get', @@ -51,7 +49,7 @@ export async function setUserProfile( apiUrlPrefix: string, token: string, newProfile: ApiNewUserProfile -): Promise { +): Promise { try { const response = await fetch(`${apiUrlPrefix}/api/v1/profile`, { method: 'post', @@ -82,7 +80,7 @@ export async function setUserProfile( */ export type IdentityProvider = { id: string, - logo: mixed, + logo: any, name: string, entityID: string, profileUrl: string diff --git a/ts/utils/constants.ts b/ts/utils/constants.ts new file mode 100644 index 00000000000..458b16fdcd2 --- /dev/null +++ b/ts/utils/constants.ts @@ -0,0 +1,6 @@ +import DeviceInfo from 'react-native-device-info' + +export const VERSION: string = DeviceInfo.getReadableVersion(); + +// A key to identify the Set of the listeners of the navigtion middleware. +export const NAVIGATION_MIDDLEWARE_LISTENERS_KEY: string = 'root'; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000000..26a1d01be53 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "target": "es2015", + "module": "es2015", + "jsx": "react", + "noEmit": true, + "moduleResolution": "node", + "importHelpers": true, + "allowSyntheticDefaultImports": true, + "noImplicitAny": false, + "preserveConstEnums": true, + "allowJs": false, + "strict": false, + "noImplicitReturns": false, + "noUnusedParameters": false, + "noUnusedLocals": false, + "skipLibCheck": true + }, + "lib": [ "dom", "es2015", "es2016" ], + "exclude": [ + "android", + "ios", + "node_modules" + ] +} diff --git a/tslint.json b/tslint.json new file mode 100644 index 00000000000..a7abb4256a9 --- /dev/null +++ b/tslint.json @@ -0,0 +1,37 @@ +{ + "defaultSeverity": "off", + "extends": [ + "tslint:recommended" + // "typestrict", + // "tslint-react", + // "tslint-sonarts", + // "tslint-immutable", + // "tslint-plugin-prettier", + // "tslint-config-prettier" + ], + "jsRules": {}, + "rules": { + // Disallows use of the null keyword literal. + // "no-null-keyword": true, + // Disallows usages of any as a type declaration. + // "no-any": true, + + // tslint-immutable: Recommended built-in rules + // "no-var-keyword": true, + // "typedef": [true, "call-signature"], + + // tslint-immutable: Immutability rules + // "readonly-keyword": true, + // "readonly-array": true, + // "no-let": true, +// "no-object-mutation": true, +// "no-method-signature": true, + + // tslint-immutable: Functional style rules + // "no-this": true, + // "no-class": true, + // "no-mixed-interface": false, + // "no-import-side-effect": true, + // "prettier": true + } +} diff --git a/yarn.lock b/yarn.lock index ae527ddd5a6..0db93a710ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,21 +2,13 @@ # yarn lockfile v1 -"@babel/code-frame@7.0.0-beta.36": - version "7.0.0-beta.36" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.36.tgz#2349d7ec04b3a06945ae173280ef8579b63728e4" - dependencies: - chalk "^2.0.0" - esutils "^2.0.2" - js-tokens "^3.0.0" - -"@babel/code-frame@7.0.0-beta.40", "@babel/code-frame@^7.0.0-beta.35": +"@babel/code-frame@7.0.0-beta.40": version "7.0.0-beta.40" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.40.tgz#37e2b0cf7c56026b4b21d3927cadf81adec32ac6" dependencies: "@babel/highlight" "7.0.0-beta.40" -"@babel/code-frame@7.0.0-beta.44": +"@babel/code-frame@7.0.0-beta.44", "@babel/code-frame@^7.0.0-beta.35": version "7.0.0-beta.44" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz#2a02643368de80916162be70865c97774f3adbd9" dependencies: @@ -90,14 +82,6 @@ "@babel/types" "7.0.0-beta.40" lodash "^4.2.0" -"@babel/helper-function-name@7.0.0-beta.36": - version "7.0.0-beta.36" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.36.tgz#366e3bc35147721b69009f803907c4d53212e88d" - dependencies: - "@babel/helper-get-function-arity" "7.0.0-beta.36" - "@babel/template" "7.0.0-beta.36" - "@babel/types" "7.0.0-beta.36" - "@babel/helper-function-name@7.0.0-beta.40": version "7.0.0-beta.40" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.40.tgz#9d033341ab16517f40d43a73f2d81fc431ccd7b6" @@ -114,12 +98,6 @@ "@babel/template" "7.0.0-beta.44" "@babel/types" "7.0.0-beta.44" -"@babel/helper-get-function-arity@7.0.0-beta.36": - version "7.0.0-beta.36" - resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.36.tgz#f5383bac9a96b274828b10d98900e84ee43e32b8" - dependencies: - "@babel/types" "7.0.0-beta.36" - "@babel/helper-get-function-arity@7.0.0-beta.40": version "7.0.0-beta.40" resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.40.tgz#ac0419cf067b0ec16453e1274f03878195791c6e" @@ -372,15 +350,6 @@ dependencies: "@babel/helper-annotate-as-pure" "7.0.0-beta.40" -"@babel/template@7.0.0-beta.36": - version "7.0.0-beta.36" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.36.tgz#02e903de5d68bd7899bce3c5b5447e59529abb00" - dependencies: - "@babel/code-frame" "7.0.0-beta.36" - "@babel/types" "7.0.0-beta.36" - babylon "7.0.0-beta.36" - lodash "^4.2.0" - "@babel/template@7.0.0-beta.40", "@babel/template@^7.0.0-beta": version "7.0.0-beta.40" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.40.tgz#034988c6424eb5c3268fe6a608626de1f4410fc8" @@ -413,7 +382,7 @@ invariant "^2.2.0" lodash "^4.2.0" -"@babel/traverse@7.0.0-beta.44": +"@babel/traverse@^7.0.0-beta": version "7.0.0-beta.44" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.44.tgz#a970a2c45477ad18017e2e465a0606feee0d2966" dependencies: @@ -428,27 +397,6 @@ invariant "^2.2.0" lodash "^4.2.0" -"@babel/traverse@^7.0.0-beta": - version "7.0.0-beta.36" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.36.tgz#1dc6f8750e89b6b979de5fe44aa993b1a2192261" - dependencies: - "@babel/code-frame" "7.0.0-beta.36" - "@babel/helper-function-name" "7.0.0-beta.36" - "@babel/types" "7.0.0-beta.36" - babylon "7.0.0-beta.36" - debug "^3.0.1" - globals "^11.1.0" - invariant "^2.2.0" - lodash "^4.2.0" - -"@babel/types@7.0.0-beta.36", "@babel/types@^7.0.0-beta": - version "7.0.0-beta.36" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.36.tgz#64f2004353de42adb72f9ebb4665fc35b5499d23" - dependencies: - esutils "^2.0.2" - lodash "^4.2.0" - to-fast-properties "^2.0.0" - "@babel/types@7.0.0-beta.40": version "7.0.0-beta.40" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.40.tgz#25c3d7aae14126abe05fcb098c65a66b6d6b8c14" @@ -457,7 +405,7 @@ lodash "^4.2.0" to-fast-properties "^2.0.0" -"@babel/types@7.0.0-beta.44": +"@babel/types@7.0.0-beta.44", "@babel/types@^7.0.0-beta": version "7.0.0-beta.44" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.44.tgz#6b1b164591f77dec0a0342aca995f2d046b3a757" dependencies: @@ -478,6 +426,103 @@ node-fetch "^2.1.1" url-template "^2.0.8" +"@types/color-convert@*": + version "1.9.0" + resolved "https://registry.yarnpkg.com/@types/color-convert/-/color-convert-1.9.0.tgz#bfa8203e41e7c65471e9841d7e306a7cd8b5172d" + dependencies: + "@types/color-name" "*" + +"@types/color-name@*": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.0.tgz#926f76f7e66f49cc59ad880bb15b030abbf0b66d" + +"@types/color@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/color/-/color-3.0.0.tgz#40f8a6bf2fd86e969876b339a837d8ff1b0a6e30" + dependencies: + "@types/color-convert" "*" + +"@types/i18n-js@*": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/i18n-js/-/i18n-js-3.0.0.tgz#48a6be13cbe0e56904b301d1f58ce8847f731c44" + +"@types/jest@^22.2.3": + version "22.2.3" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-22.2.3.tgz#0157c0316dc3722c43a7b71de3fdf3acbccef10d" + +"@types/lodash@^4.14.108": + version "4.14.108" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.108.tgz#02656af3add2e5b3174f830862c47421c00ef817" + +"@types/react-native-fs@^2.8.1": + version "2.8.1" + resolved "https://registry.yarnpkg.com/@types/react-native-fs/-/react-native-fs-2.8.1.tgz#cbe5d5b733490fd75b96b9733dbbc37479b91c23" + dependencies: + "@types/react-native" "*" + +"@types/react-native-i18n@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@types/react-native-i18n/-/react-native-i18n-2.0.0.tgz#2df92b3392d813b39530bd126aad429eedc9c3de" + dependencies: + "@types/i18n-js" "*" + +"@types/react-native-mixpanel@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@types/react-native-mixpanel/-/react-native-mixpanel-0.1.0.tgz#6726c38ca6e11b798e1b5ac146da362baaec7024" + +"@types/react-native@*", "@types/react-native@^0.55.0": + version "0.55.4" + resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.55.4.tgz#866005d86490e2fd60543b143b2a5ac208aa925b" + dependencies: + "@types/react" "*" + +"@types/react-navigation@^1.5.7": + version "1.5.7" + resolved "https://registry.yarnpkg.com/@types/react-navigation/-/react-navigation-1.5.7.tgz#58acf549a65ec5d5c50602dcf705358c257251b2" + dependencies: + "@types/react" "*" + "@types/react-native" "*" + +"@types/react-redux@^5.0.18": + version "5.0.18" + resolved "https://registry.yarnpkg.com/@types/react-redux/-/react-redux-5.0.18.tgz#95fdcce00b617b93c98a3684ed6666e75d8a669e" + dependencies: + "@types/react" "*" + redux "^4.0.0" + +"@types/react@*", "@types/react@^16.3.0-alpha": + version "16.3.12" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.3.12.tgz#68d9146f3e9797e38ffbf22f7ed1dde91a2cfd2e" + dependencies: + csstype "^2.2.0" + +"@types/redux-form@^7.2.4": + version "7.2.4" + resolved "https://registry.yarnpkg.com/@types/redux-form/-/redux-form-7.2.4.tgz#253053bfc010b9675c4db089246cf7ec05bb4da1" + dependencies: + "@types/react" "*" + redux "^3.6.0" + +"@types/redux-logger@^3.0.6": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@types/redux-logger/-/redux-logger-3.0.6.tgz#4cf9d5b596b576b030a4bb671547f0ab63f81a73" + dependencies: + redux "^3.6.0" + +"@types/redux-saga@^0.10.5": + version "0.10.5" + resolved "https://registry.yarnpkg.com/@types/redux-saga/-/redux-saga-0.10.5.tgz#80bf21078379ebc97387dbe56e44467b5677fa85" + dependencies: + redux-saga "*" + +"@types/stacktrace-js@^0.0.32": + version "0.0.32" + resolved "https://registry.yarnpkg.com/@types/stacktrace-js/-/stacktrace-js-0.0.32.tgz#d23e4a36a5073d39487fbea8234cc6186862d389" + +"@types/validator@^9.4.1": + version "9.4.1" + resolved "https://registry.yarnpkg.com/@types/validator/-/validator-9.4.1.tgz#bea5a290e61f1cbf12af3fd878706aeec2ba0087" + abab@^1.0.0, abab@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e" @@ -509,21 +554,11 @@ acorn-globals@^4.1.0: dependencies: acorn "^5.0.0" -acorn-jsx@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" - dependencies: - acorn "^3.0.4" - acorn@^2.1.0, acorn@^2.4.0: version "2.7.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-2.7.0.tgz#ab6e7d9d886aaca8b085bc3312b79a198433f0e7" -acorn@^3.0.4: - version "3.3.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" - -acorn@^5.0.0, acorn@^5.2.1, acorn@^5.3.0: +acorn@^5.0.0, acorn@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.3.0.tgz#7446d39459c54fb49a80e6ee6478149b940ec822" @@ -533,10 +568,6 @@ agent-base@4, agent-base@^4.1.0: dependencies: es6-promisify "^5.0.0" -ajv-keywords@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762" - ajv@^4.9.1: version "4.11.8" resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" @@ -544,7 +575,7 @@ ajv@^4.9.1: co "^4.6.0" json-stable-stringify "^1.0.1" -ajv@^5.1.0, ajv@^5.2.3, ajv@^5.3.0: +ajv@^5.1.0: version "5.5.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" dependencies: @@ -587,12 +618,18 @@ ansi-styles@^2.1.0, ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" -ansi-styles@^3.1.0, ansi-styles@^3.2.0: +ansi-styles@^3.1.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" dependencies: color-convert "^1.9.0" +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + dependencies: + color-convert "^1.9.0" + ansi-wrap@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf" @@ -635,12 +672,6 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" -aria-query@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-0.7.0.tgz#4af10a1e61573ddea0cf3b99b51c52c05b424d24" - dependencies: - ast-types-flow "0.0.7" - arr-diff@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" @@ -663,13 +694,6 @@ array-filter@~0.0.0: version "0.0.1" resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" -array-includes@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d" - dependencies: - define-properties "^1.1.2" - es-abstract "^1.7.0" - array-map@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662" @@ -678,13 +702,7 @@ array-reduce@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" -array-union@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - dependencies: - array-uniq "^1.0.1" - -array-uniq@^1.0.1, array-uniq@^1.0.2: +array-uniq@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" @@ -692,7 +710,7 @@ array-unique@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" @@ -716,14 +734,14 @@ assert-plus@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" -ast-types-flow@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" - astral-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" +async-each@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + async-limiter@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" @@ -754,12 +772,6 @@ aws4@^1.2.1, aws4@^1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" -axobject-query@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-0.1.0.tgz#62f59dbc59c9f9242759ca349960e7a2fe3c36c0" - dependencies: - ast-types-flow "0.0.7" - babel-code-frame@^6.22.0, babel-code-frame@^6.26.0, babel-code-frame@^6.8.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" @@ -792,17 +804,6 @@ babel-core@^6.0.0, babel-core@^6.24.1, babel-core@^6.26.0, babel-core@^6.7.2: slash "^1.0.0" source-map "^0.5.6" -babel-eslint@^8.2.3: - version "8.2.3" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.3.tgz#1a2e6681cc9bc4473c32899e59915e19cd6733cf" - dependencies: - "@babel/code-frame" "7.0.0-beta.44" - "@babel/traverse" "7.0.0-beta.44" - "@babel/types" "7.0.0-beta.44" - babylon "7.0.0-beta.44" - eslint-scope "~3.7.1" - eslint-visitor-keys "^1.0.0" - babel-generator@6.11.4: version "6.11.4" resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.11.4.tgz#14f6933abb20c62666d27e3b7b9f5b9dc0712a9a" @@ -961,7 +962,7 @@ babel-plugin-external-helpers@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-istanbul@^4.1.5: +babel-plugin-istanbul@^4.1.4, babel-plugin-istanbul@^4.1.5: version "4.1.5" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.5.tgz#6760cdd977f411d3e175bb064f2bc327d99b2b6e" dependencies: @@ -1097,7 +1098,7 @@ babel-plugin-transform-es2015-literals@^6.5.0, babel-plugin-transform-es2015-lit dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0: +babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.26.0, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" dependencies: @@ -1233,7 +1234,7 @@ babel-plugin-transform-strict-mode@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-polyfill@^6.23.0, babel-polyfill@^6.26.0: +babel-polyfill@^6.23.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" dependencies: @@ -1288,7 +1289,7 @@ babel-preset-fbjs@^2.1.2, babel-preset-fbjs@^2.1.4: babel-plugin-transform-react-display-name "^6.8.0" babel-plugin-transform-react-jsx "^6.8.0" -babel-preset-jest@^22.4.1: +babel-preset-jest@^22.4.0, babel-preset-jest@^22.4.1: version "22.4.1" resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-22.4.1.tgz#efa2e5f5334242a9457a068452d7d09735db172a" dependencies: @@ -1343,7 +1344,7 @@ babel-register@^6.24.1, babel-register@^6.26.0: mkdirp "^0.5.1" source-map-support "^0.4.15" -babel-runtime@^6.0.0, babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0, babel-runtime@^6.9.0: +babel-runtime@^6.0.0, babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0, babel-runtime@^6.9.0, babel-runtime@^6.9.2: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: @@ -1401,15 +1402,11 @@ babylon@6.14.1: version "6.14.1" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.14.1.tgz#956275fab72753ad9b3435d7afe58f8bf0a29815" -babylon@7.0.0-beta.36: - version "7.0.0-beta.36" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.36.tgz#3a3683ba6a9a1e02b0aa507c8e63435e39305b9e" - -babylon@7.0.0-beta.40, babylon@^7.0.0-beta: +babylon@7.0.0-beta.40: version "7.0.0-beta.40" resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.40.tgz#91fc8cd56d5eb98b28e6fde41045f2957779940a" -babylon@7.0.0-beta.44: +babylon@7.0.0-beta.44, babylon@^7.0.0-beta: version "7.0.0-beta.44" resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.44.tgz#89159e15e6e30c5096e22d738d8c0af8a0e8ca1d" @@ -1461,12 +1458,9 @@ big-integer@^1.6.7: version "1.6.26" resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.26.tgz#3af1672fa62daf2d5ecafacf6e5aa0d25e02c1c8" -"binary@>= 0.3.0 < 1": - version "0.3.0" - resolved "https://registry.yarnpkg.com/binary/-/binary-0.3.0.tgz#9f60553bc5ce8c3386f3b553cff47462adecaa79" - dependencies: - buffers "~0.1.1" - chainsaw "~0.1.0" +binary-extensions@^1.0.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" block-stream@*: version "0.0.9" @@ -1547,11 +1541,7 @@ btoa-lite@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337" -buffers@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/buffers/-/buffers-0.1.1.tgz#b24579c3bed4d6d396aeee6d9a8ae7f5482ab7bb" - -builtin-modules@^1.0.0: +builtin-modules@^1.0.0, builtin-modules@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" @@ -1559,16 +1549,6 @@ bytes@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" -caller-path@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" - dependencies: - callsites "^0.2.0" - -callsites@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" - callsites@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" @@ -1577,10 +1557,6 @@ camelcase@^1.0.2: version "1.2.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" -camelcase@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" - camelcase@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" @@ -1596,12 +1572,6 @@ center-align@^0.1.1: align-text "^0.1.3" lazy-cache "^1.0.3" -chainsaw@~0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/chainsaw/-/chainsaw-0.1.0.tgz#5eab50b28afe58074d0d58291388828b5e5fbc98" - dependencies: - traverse ">=0.3.0 <0.4" - chalk@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.1.tgz#509afb67066e7499f7eb3535c77445772ae2d019" @@ -1622,7 +1592,15 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0: +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba" dependencies: @@ -1634,10 +1612,6 @@ chardet@^0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" -charenc@~0.0.1: - version "0.0.2" - resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" - cheerio@0.20.0: version "0.20.0" resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-0.20.0.tgz#5c710f2bab95653272842ba01c6ea61b3545ec35" @@ -1671,14 +1645,25 @@ cheerio@0.22.0: lodash.reject "^4.4.0" lodash.some "^4.4.0" +chokidar@^1.6.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" + dependencies: + anymatch "^1.3.0" + async-each "^1.0.0" + glob-parent "^2.0.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^2.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + optionalDependencies: + fsevents "^1.0.0" + ci-info@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.1.2.tgz#03561259db48d0474c8bdc90f5b47b068b6bbfb4" -circular-json@^0.3.1: - version "0.3.3" - resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66" - clamp@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/clamp/-/clamp-1.0.1.tgz#66a0e64011816e37196828fdc8c8c147312c8634" @@ -1779,16 +1764,16 @@ color@~1.0.3: color-convert "^1.8.2" color-string "^1.4.0" -colors@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" - combined-stream@^1.0.5, combined-stream@~1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" dependencies: delayed-stream "~1.0.0" +commander@^2.12.1: + version "2.15.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" + commander@^2.13.0, commander@^2.9.0, commander@~2.13.0: version "2.13.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c" @@ -1836,10 +1821,6 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" -contains-path@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" - content-type-parser@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.2.tgz#caabe80623e63638b2502fd4c7f12ff4ce2352e7" @@ -1860,6 +1841,22 @@ core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" +cpx@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/cpx/-/cpx-1.5.0.tgz#185be018511d87270dedccc293171e37655ab88f" + dependencies: + babel-runtime "^6.9.2" + chokidar "^1.6.0" + duplexer "^0.1.1" + glob "^7.0.5" + glob2base "^0.0.12" + minimatch "^3.0.2" + mkdirp "^0.5.1" + resolve "^1.1.7" + safe-buffer "^5.0.1" + shell-quote "^1.6.1" + subarg "^1.0.0" + create-react-class@^15.6.3: version "15.6.3" resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.3.tgz#2d73237fb3f970ae6ebe011a9e66f46dbca80036" @@ -1876,10 +1873,6 @@ cross-spawn@^5.0.1, cross-spawn@^5.1.0: shebang-command "^1.2.0" which "^1.2.9" -crypt@~0.0.1: - version "0.0.2" - resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" - cryptiles@2.x.x: version "2.0.5" resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" @@ -1915,9 +1908,9 @@ cssom@0.3.x, "cssom@>= 0.3.0 < 0.4.0", "cssom@>= 0.3.2 < 0.4.0": dependencies: cssom "0.3.x" -damerau-levenshtein@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.4.tgz#03191c432cb6eea168bb77f3a55ffdccb8978514" +csstype@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.3.0.tgz#062e141c78345cf814da0e0b716ad777931b08af" danger-plugin-digitalcitizenship@^0.2.0: version "0.2.0" @@ -1984,7 +1977,7 @@ dateformat@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-2.2.0.tgz#4065e2013cf9fb916ddfd82efb506ad4c6769062" -debug@2.6.9, debug@^2.2.0, debug@^2.6.8, debug@^2.6.9: +debug@2.6.9, debug@^2.2.0, debug@^2.6.8: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" dependencies: @@ -2000,12 +1993,6 @@ decamelize@^1.0.0, decamelize@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" -decompress-response@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" - dependencies: - mimic-response "^1.0.0" - deep-diff@^0.3.5: version "0.3.8" resolved "https://registry.yarnpkg.com/deep-diff/-/deep-diff-0.3.8.tgz#c01de63efb0eec9798801d40c7e0dae25b582c84" @@ -2035,18 +2022,6 @@ define-properties@^1.1.2: foreach "^2.0.5" object-keys "^1.0.8" -del@^2.0.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" - dependencies: - globby "^5.0.0" - is-path-cwd "^1.0.0" - is-path-in-cwd "^1.0.0" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - rimraf "^2.2.8" - delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -2097,19 +2072,6 @@ diff@^3.2.0: version "3.4.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.4.0.tgz#b1d85507daf3964828de54b37d0d73ba67dda56c" -doctrine@1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" - dependencies: - esutils "^2.0.2" - isarray "^1.0.0" - -doctrine@^2.0.2, doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" - dependencies: - esutils "^2.0.2" - dom-serializer@0, dom-serializer@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.0.tgz#073c697546ce0780ce23be4a28e293e40bc30c82" @@ -2160,9 +2122,9 @@ duplexer2@0.0.2: dependencies: readable-stream "~1.1.9" -duplexer3@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" +duplexer@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" ecc-jsbn@~0.1.1: version "0.1.1" @@ -2178,10 +2140,6 @@ email-validator@^1.0.7: version "1.1.1" resolved "https://registry.yarnpkg.com/email-validator/-/email-validator-1.1.1.tgz#b07f3be7bac1dc099bc43e75f6ae399f552d5a80" -emoji-regex@^6.1.0: - version "6.5.1" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-6.5.1.tgz#9baea929b155565c11ea41c6626eaa65cef992c2" - encodeurl@~1.0.1, encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" @@ -2229,7 +2187,7 @@ errorhandler@^1.5.0: accepts "~1.3.3" escape-html "~1.0.3" -es-abstract@^1.5.1, es-abstract@^1.7.0: +es-abstract@^1.5.1: version "1.10.0" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864" dependencies: @@ -2296,159 +2254,13 @@ esdoc@^0.5.2: minimist "1.2.0" taffydb "2.7.2" -eslint-config-airbnb-base@^12.1.0: - version "12.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-12.1.0.tgz#386441e54a12ccd957b0a92564a4bafebd747944" - dependencies: - eslint-restricted-globals "^0.1.1" - -eslint-config-airbnb@^16.1.0: - version "16.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-16.1.0.tgz#2546bfb02cc9fe92284bf1723ccf2e87bc45ca46" - dependencies: - eslint-config-airbnb-base "^12.1.0" - -eslint-config-google@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/eslint-config-google/-/eslint-config-google-0.9.1.tgz#83353c3dba05f72bb123169a4094f4ff120391eb" - -eslint-config-prettier@^2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.9.0.tgz#5ecd65174d486c22dff389fe036febf502d468a3" - dependencies: - get-stdin "^5.0.1" - -eslint-import-resolver-node@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a" - dependencies: - debug "^2.6.9" - resolve "^1.5.0" - -eslint-module-utils@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.2.0.tgz#b270362cd88b1a48ad308976ce7fa54e98411746" - dependencies: - debug "^2.6.8" - pkg-dir "^1.0.0" - -eslint-plugin-flowtype@^2.42.0: - version "2.42.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.42.0.tgz#7fcc98df4ed9482a22ac10ba4ca48d649c4c733a" - dependencies: - lodash "^4.15.0" - -eslint-plugin-import@^2.11.0: - version "2.11.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.11.0.tgz#15aeea37a67499d848e8e981806d4627b5503816" - dependencies: - contains-path "^0.1.0" - debug "^2.6.8" - doctrine "1.5.0" - eslint-import-resolver-node "^0.3.1" - eslint-module-utils "^2.2.0" - has "^1.0.1" - lodash "^4.17.4" - minimatch "^3.0.3" - read-pkg-up "^2.0.0" - resolve "^1.6.0" - -eslint-plugin-jest@^21.15.1: - version "21.15.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.15.1.tgz#662a3f0888002878f0f388efd09c190a95c33d82" - -eslint-plugin-jsx-a11y@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.0.3.tgz#54583d1ae442483162e040e13cc31865465100e5" - dependencies: - aria-query "^0.7.0" - array-includes "^3.0.3" - ast-types-flow "0.0.7" - axobject-query "^0.1.0" - damerau-levenshtein "^1.0.0" - emoji-regex "^6.1.0" - jsx-ast-utils "^2.0.0" - -eslint-plugin-prettier@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.5.0.tgz#39a91dd7528eaf19cd42c0ee3f2c1f684606a05f" +eslint-plugin-prettier@^2.2.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.0.tgz#33e4e228bdb06142d03c560ce04ec23f6c767dd7" dependencies: fast-diff "^1.1.1" jest-docblock "^21.0.0" -eslint-plugin-react@^7.7.0: - version "7.7.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.7.0.tgz#f606c719dbd8a1a2b3d25c16299813878cca0160" - dependencies: - doctrine "^2.0.2" - has "^1.0.1" - jsx-ast-utils "^2.0.1" - prop-types "^15.6.0" - -eslint-restricted-globals@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz#35f0d5cbc64c2e3ed62e93b4b1a7af05ba7ed4d7" - -eslint-scope@^3.7.1, eslint-scope@~3.7.1: - version "3.7.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" - dependencies: - esrecurse "^4.1.0" - estraverse "^4.1.1" - -eslint-visitor-keys@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" - -eslint@^4.16.0: - version "4.16.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.16.0.tgz#934ada9e98715e1d7bbfd6f6f0519ed2fab35cc1" - dependencies: - ajv "^5.3.0" - babel-code-frame "^6.22.0" - chalk "^2.1.0" - concat-stream "^1.6.0" - cross-spawn "^5.1.0" - debug "^3.1.0" - doctrine "^2.1.0" - eslint-scope "^3.7.1" - eslint-visitor-keys "^1.0.0" - espree "^3.5.2" - esquery "^1.0.0" - esutils "^2.0.2" - file-entry-cache "^2.0.0" - functional-red-black-tree "^1.0.1" - glob "^7.1.2" - globals "^11.0.1" - ignore "^3.3.3" - imurmurhash "^0.1.4" - inquirer "^3.0.6" - is-resolvable "^1.0.0" - js-yaml "^3.9.1" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.3.0" - lodash "^4.17.4" - minimatch "^3.0.2" - mkdirp "^0.5.1" - natural-compare "^1.4.0" - optionator "^0.8.2" - path-is-inside "^1.0.2" - pluralize "^7.0.0" - progress "^2.0.0" - require-uncached "^1.0.3" - semver "^5.3.0" - strip-ansi "^4.0.0" - strip-json-comments "~2.0.1" - table "^4.0.1" - text-table "~0.2.0" - -espree@^3.5.2: - version "3.5.2" - resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.2.tgz#756ada8b979e9dcfcdb30aad8d1a9304a905e1ca" - dependencies: - acorn "^5.2.1" - acorn-jsx "^3.0.0" - esprima@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" @@ -2457,20 +2269,7 @@ esprima@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" -esquery@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.0.tgz#cfba8b57d7fba93f17298a8a006a04cda13d80fa" - dependencies: - estraverse "^4.0.0" - -esrecurse@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.0.tgz#fa9568d98d3823f9a41d91e902dcab9ea6e5b163" - dependencies: - estraverse "^4.1.0" - object-assign "^4.0.1" - -estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: +estraverse@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" @@ -2642,13 +2441,6 @@ figures@^2.0.0: dependencies: escape-string-regexp "^1.0.5" -file-entry-cache@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" - dependencies: - flat-cache "^1.2.1" - object-assign "^4.0.1" - filename-regex@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" @@ -2682,6 +2474,14 @@ finalhandler@1.1.0: statuses "~1.3.1" unpipe "~1.0.0" +find-index@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4" + +find-root@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" + find-up@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" @@ -2695,39 +2495,6 @@ find-up@^2.0.0, find-up@^2.1.0: dependencies: locate-path "^2.0.0" -flat-cache@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.3.0.tgz#d3030b32b38154f4e3b7e9c709f490f7ef97c481" - dependencies: - circular-json "^0.3.1" - del "^2.0.2" - graceful-fs "^4.1.2" - write "^0.2.1" - -flow-bin@0.65.0: - version "0.65.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.65.0.tgz#64ffeca27211c786e2d68508c65686ba1b8a2169" - -flow-typed@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/flow-typed/-/flow-typed-2.3.0.tgz#0f8604faab60691b885024e16ec0e3256e3b680e" - dependencies: - babel-polyfill "^6.26.0" - colors "^1.1.2" - fs-extra "^5.0.0" - github "0.2.4" - glob "^7.1.2" - got "^7.1.0" - md5 "^2.1.0" - mkdirp "^0.5.1" - rimraf "^2.6.2" - semver "^5.5.0" - table "^4.0.2" - through "^2.3.8" - unzip "^0.1.11" - which "^1.3.0" - yargs "^4.2.0" - for-in@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" @@ -2778,6 +2545,14 @@ fs-extra@1.0.0, fs-extra@^1.0.0: jsonfile "^2.1.0" klaw "^1.0.0" +fs-extra@4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94" + dependencies: + graceful-fs "^4.1.2" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs-extra@^2.0.0: version "2.1.2" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-2.1.2.tgz#046c70163cef9aad46b0e4a7fa467fb22d71de35" @@ -2785,19 +2560,11 @@ fs-extra@^2.0.0: graceful-fs "^4.1.2" jsonfile "^2.1.0" -fs-extra@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd" - dependencies: - graceful-fs "^4.1.2" - jsonfile "^4.0.0" - universalify "^0.1.0" - fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" -fsevents@^1.1.1: +fsevents@^1.0.0, fsevents@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8" dependencies: @@ -2812,15 +2579,6 @@ fstream-ignore@^1.0.5: inherits "2" minimatch "^3.0.0" -"fstream@>= 0.1.30 < 1": - version "0.1.31" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-0.1.31.tgz#7337f058fbbbbefa8c9f561a28cab0849202c988" - dependencies: - graceful-fs "~3.0.2" - inherits "~2.0.0" - mkdirp "0.5" - rimraf "2" - fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: version "1.0.11" resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" @@ -2834,10 +2592,6 @@ function-bind@^1.0.2, function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - gauge@~1.2.5: version "1.2.7" resolved "https://registry.yarnpkg.com/gauge/-/gauge-1.2.7.tgz#e9cec5483d3d4ee0ef44b60a7d99e4935e136d93" @@ -2869,10 +2623,6 @@ get-stdin@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" -get-stdin@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398" - get-stdin@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" @@ -2895,12 +2645,6 @@ git-config-path@^1.0.1: fs-exists-sync "^0.1.0" homedir-polyfill "^1.0.0" -github@0.2.4: - version "0.2.4" - resolved "https://registry.yarnpkg.com/github/-/github-0.2.4.tgz#24fa7f0e13fa11b946af91134c51982a91ce538b" - dependencies: - mime "^1.2.11" - glob-base@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" @@ -2914,6 +2658,12 @@ glob-parent@^2.0.0: dependencies: is-glob "^2.0.0" +glob2base@^0.0.12: + version "0.0.12" + resolved "https://registry.yarnpkg.com/glob2base/-/glob2base-0.0.12.tgz#9d419b3e28f12e83a362164a277055922c9c0d56" + dependencies: + find-index "^0.1.1" + glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" @@ -2932,7 +2682,7 @@ global@^4.3.0: min-document "^2.19.0" process "~0.5.1" -globals@^11.0.1, globals@^11.1.0: +globals@^11.1.0: version "11.2.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.2.0.tgz#aa2ece052a787563ba70a3dcd9dc2eb8a9a0488c" @@ -2944,52 +2694,16 @@ globals@^9.18.0: version "9.18.0" resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" -globby@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" - dependencies: - array-union "^1.0.1" - arrify "^1.0.0" - glob "^7.0.3" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - glogg@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/glogg/-/glogg-1.0.1.tgz#dcf758e44789cc3f3d32c1f3562a3676e6a34810" dependencies: sparkles "^1.0.0" -got@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/got/-/got-7.1.0.tgz#05450fd84094e6bbea56f451a43a9c289166385a" - dependencies: - decompress-response "^3.2.0" - duplexer3 "^0.1.4" - get-stream "^3.0.0" - is-plain-obj "^1.1.0" - is-retry-allowed "^1.0.0" - is-stream "^1.0.0" - isurl "^1.0.0-alpha5" - lowercase-keys "^1.0.0" - p-cancelable "^0.3.0" - p-timeout "^1.1.1" - safe-buffer "^5.0.1" - timed-out "^4.0.0" - url-parse-lax "^1.0.0" - url-to-options "^1.0.1" - graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" -graceful-fs@~3.0.2: - version "3.0.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-3.0.11.tgz#7613c778a1afea62f25c630a086d7f3acbbdd818" - dependencies: - natives "^1.1.0" - growly@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" @@ -3079,16 +2793,6 @@ has-gulplog@^0.1.0: dependencies: sparkles "^1.0.0" -has-symbol-support-x@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.1.tgz#66ec2e377e0c7d7ccedb07a3a84d77510ff1bc4c" - -has-to-string-tag-x@^1.2.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d" - dependencies: - has-symbol-support-x "^1.4.1" - has-unicode@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" @@ -3235,14 +2939,14 @@ iconv-lite@0.4.19, iconv-lite@^0.4.17, iconv-lite@~0.4.13: version "0.4.19" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" -ignore@^3.3.3: - version "3.3.7" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021" - image-size@^0.6.0: version "0.6.2" resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.2.tgz#8ee316d4298b028b965091b673d5f1537adee5b4" +immutable@^3.8.2: + version "3.8.2" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" + import-local@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" @@ -3306,7 +3010,13 @@ is-arrayish@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.1.tgz#c2dfc386abaa0c3e33c48db3fe87059e69065efd" -is-buffer@^1.1.5, is-buffer@~1.1.1: +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + dependencies: + binary-extensions "^1.0.0" + +is-buffer@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" @@ -3386,30 +3096,6 @@ is-number@^3.0.0: dependencies: kind-of "^3.0.2" -is-object@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.1.tgz#8952688c5ec2ffd6b03ecc85e769e02903083470" - -is-path-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" - -is-path-in-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" - dependencies: - is-path-inside "^1.0.0" - -is-path-inside@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" - dependencies: - path-is-inside "^1.0.1" - -is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - is-posix-bracket@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" @@ -3428,15 +3114,7 @@ is-regex@^1.0.4: dependencies: has "^1.0.1" -is-resolvable@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88" - -is-retry-allowed@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" - -is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0: +is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" @@ -3456,7 +3134,7 @@ isarray@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" -isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: +isarray@1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" @@ -3544,13 +3222,6 @@ istanbul-reports@^1.1.3: dependencies: handlebars "^4.0.3" -isurl@^1.0.0-alpha5: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" - dependencies: - has-to-string-tag-x "^1.2.0" - is-object "^1.0.1" - jest-changed-files@^22.2.0: version "22.2.0" resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-22.2.0.tgz#517610c4a8ca0925bdc88b0ca53bd678aa8d019e" @@ -3814,11 +3485,15 @@ jest@22.4.2: import-local "^1.0.0" jest-cli "^22.4.2" +jju@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jju/-/jju-1.3.0.tgz#dadd9ef01924bc728b03f2f7979bdbd62f7a2aaa" + js-tokens@^3.0.0, js-tokens@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" -js-yaml@^3.7.0, js-yaml@^3.9.1: +js-yaml@^3.7.0: version "3.10.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc" dependencies: @@ -3908,10 +3583,6 @@ json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - json-stable-stringify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" @@ -3965,12 +3636,6 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" -jsx-ast-utils@^2.0.0, jsx-ast-utils@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz#e801b1b39985e20fffc87b40e3748080e2dcac7f" - dependencies: - array-includes "^3.0.3" - kind-of@^3.0.2: version "3.2.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" @@ -4007,7 +3672,7 @@ leven@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" -levn@^0.3.0, levn@~0.3.0: +levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" dependencies: @@ -4040,10 +3705,14 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" -lodash-es@^4.17.5, lodash-es@^4.2.1: +lodash-es@^4.17.5: version "4.17.5" resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.5.tgz#9fc6e737b1c4d151d8f9cae2247305d552ce748f" +lodash-es@^4.2.1: + version "4.17.10" + resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.10.tgz#62cd7104cdf5dd87f235a837f0ede0e8e5117e05" + lodash._basecopy@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" @@ -4080,10 +3749,6 @@ lodash._root@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692" -lodash.assign@^4.0.3, lodash.assign@^4.0.6: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" - lodash.assignin@^4.0.9: version "4.2.0" resolved "https://registry.yarnpkg.com/lodash.assignin/-/lodash.assignin-4.2.0.tgz#ba8df5fb841eb0a3e8044232b0e263a8dc6a28a2" @@ -4219,7 +3884,7 @@ lodash@^3.5.0: version "3.10.1" resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" -lodash@^4.0.0, lodash@^4.1.0, lodash@^4.10.1, lodash@^4.11.1, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.6.1: +lodash@^4.0.0, lodash@^4.1.0, lodash@^4.10.1, lodash@^4.11.1, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.6.1: version "4.17.5" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" @@ -4227,6 +3892,10 @@ lodash@^4.17.4: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" +lodash@^4.2.1: + version "4.17.10" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" + lodash@~4.11.1: version "4.11.2" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.11.2.tgz#d6b4338b110a58e21dae5cebcfdbbfd2bc4cdb3b" @@ -4241,10 +3910,6 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: dependencies: js-tokens "^3.0.0" -lowercase-keys@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" - lru-cache@^4.0.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" @@ -4266,21 +3931,6 @@ marked@0.3.6: version "0.3.6" resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7" -"match-stream@>= 0.0.2 < 1": - version "0.0.2" - resolved "https://registry.yarnpkg.com/match-stream/-/match-stream-0.0.2.tgz#99eb050093b34dffade421b9ac0b410a9cfa17cf" - dependencies: - buffers "~0.1.1" - readable-stream "~1.0.0" - -md5@^2.1.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9" - dependencies: - charenc "~0.0.1" - crypt "~0.0.1" - is-buffer "~1.1.1" - mem@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" @@ -4459,7 +4109,7 @@ mime@1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" -mime@^1.2.11, mime@^1.3.4: +mime@^1.3.4: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" @@ -4467,10 +4117,6 @@ mimic-fn@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18" -mimic-response@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.0.tgz#df3d3652a73fded6b9b0b24146e6fd052353458e" - min-document@^2.19.0: version "2.19.0" resolved "https://registry.yarnpkg.com/min-document/-/min-document-2.19.0.tgz#7bd282e3f5842ed295bb748cdd9f1ffa2c824685" @@ -4491,7 +4137,7 @@ minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" -mkdirp@0.5, "mkdirp@>=0.5 0", mkdirp@^0.5.1: +"mkdirp@>=0.5 0", mkdirp@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" dependencies: @@ -4552,10 +4198,6 @@ native-base@^2.4.2: react-tween-state "^0.1.5" tween-functions "^1.0.1" -natives@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/natives/-/natives-1.1.1.tgz#011acce1f7cbd87f7ba6b3093d6cd9392be1c574" - natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -4736,7 +4378,7 @@ option@^0.2.3: version "0.2.4" resolved "https://registry.yarnpkg.com/option/-/option-0.2.4.tgz#fd475cdf98dcabb3cb397a3ba5284feb45edbfe4" -optionator@^0.8.1, optionator@^0.8.2: +optionator@^0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" dependencies: @@ -4755,12 +4397,6 @@ os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" -os-locale@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" - dependencies: - lcid "^1.0.0" - os-locale@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" @@ -4787,14 +4423,6 @@ osenv@^0.1.4: os-homedir "^1.0.0" os-tmpdir "^1.0.0" -"over@>= 0.0.5 < 1": - version "0.0.5" - resolved "https://registry.yarnpkg.com/over/-/over-0.0.5.tgz#f29852e70fd7e25f360e013a8ec44c82aedb5708" - -p-cancelable@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-0.3.0.tgz#b9e123800bcebb7ac13a479be195b507b98d30fa" - p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" @@ -4811,12 +4439,6 @@ p-locate@^2.0.0: dependencies: p-limit "^1.1.0" -p-timeout@^1.1.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-1.2.1.tgz#5eb3b353b7fce99f101a1038880bb054ebbea386" - dependencies: - p-finally "^1.0.0" - p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -4888,10 +4510,6 @@ path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" -path-is-inside@^1.0.1, path-is-inside@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" - path-key@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" @@ -4957,12 +4575,6 @@ pivotaljs@^1.0.3: request latest underscore latest -pkg-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" - dependencies: - find-up "^1.0.0" - pkg-dir@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" @@ -4986,10 +4598,6 @@ plist@^1.2.0: xmlbuilder "4.0.0" xmldom "0.1.x" -pluralize@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777" - pn@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" @@ -4998,10 +4606,6 @@ prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" -prepend-http@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" - preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" @@ -5039,10 +4643,6 @@ process@~0.5.1: version "0.5.2" resolved "https://registry.yarnpkg.com/process/-/process-0.5.2.tgz#1638d8a8e34c2f440a91db95ab9aeb677fc185cf" -progress@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f" - promise@^7.1.1: version "7.3.1" resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" @@ -5069,15 +4669,6 @@ pseudomap@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" -"pullstream@>= 0.4.1 < 1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/pullstream/-/pullstream-0.4.1.tgz#d6fb3bf5aed697e831150eb1002c25a3f8ae1314" - dependencies: - over ">= 0.0.5 < 1" - readable-stream "~1.0.31" - setimmediate ">= 1.0.2 < 2" - slice-stream ">= 1.0.0 < 2" - punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" @@ -5241,6 +4832,16 @@ react-native-sha256@^1.0.1: dependencies: prop-types "^15.6.0" +react-native-typescript-transformer@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/react-native-typescript-transformer/-/react-native-typescript-transformer-1.2.5.tgz#3e3b94fca705bcf40c7a99540bca47598f75a01b" + dependencies: + chalk "^2.4.0" + find-root "^1.1.0" + jju "^1.3.0" + semver "^5.4.1" + source-map "^0.5.6" + react-native-vector-icons@~4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/react-native-vector-icons/-/react-native-vector-icons-4.5.0.tgz#6b95619e64f62f05f579f74a01fe5640df95158b" @@ -5312,9 +4913,9 @@ react-native@0.54.2: xmldoc "^0.4.0" yargs "^9.0.0" -react-navigation-redux-helpers@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/react-navigation-redux-helpers/-/react-navigation-redux-helpers-1.0.3.tgz#46dd9f83bf4ba74ca43d346575c169137f2eaac9" +react-navigation-redux-helpers@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/react-navigation-redux-helpers/-/react-navigation-redux-helpers-1.0.5.tgz#b4b3ddeccf9f996f305a1b2e5475065c2b3e6c56" dependencies: invariant "^2.2.2" @@ -5435,14 +5036,14 @@ readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable string_decoder "~1.0.3" util-deprecate "~1.0.1" -readable-stream@~1.0.0, readable-stream@~1.0.31: - version "1.0.34" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" +readdirp@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" dependencies: - core-util-is "~1.0.0" - inherits "~2.0.1" - isarray "0.0.1" - string_decoder "~0.10.x" + graceful-fs "^4.1.2" + minimatch "^3.0.2" + readable-stream "^2.0.2" + set-immediate-shim "^1.0.1" readline-sync@^1.4.7: version "1.4.9" @@ -5477,7 +5078,7 @@ redux-persist@5.9.1: version "5.9.1" resolved "https://registry.yarnpkg.com/redux-persist/-/redux-persist-5.9.1.tgz#83bd4abd526ef768f63fceee338fa9d8ed6552d6" -redux-saga@^0.16.0: +redux-saga@*, redux-saga@^0.16.0: version "0.16.0" resolved "https://registry.yarnpkg.com/redux-saga/-/redux-saga-0.16.0.tgz#0a231db0a1489301dd980f6f2f88d8ced418f724" @@ -5485,7 +5086,14 @@ redux-thunk@2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-2.2.0.tgz#e615a16e16b47a19a515766133d1e3e99b7852e5" -redux@3.7.2: +redux@4.0.0, redux@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.0.tgz#aa698a92b729315d22b34a0553d7e6533555cc03" + dependencies: + loose-envify "^1.1.0" + symbol-observable "^1.2.0" + +redux@^3.6.0: version "3.7.2" resolved "https://registry.yarnpkg.com/redux/-/redux-3.7.2.tgz#06b73123215901d25d065be342eb026bc1c8537b" dependencies: @@ -5652,23 +5260,12 @@ require-main-filename@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" -require-uncached@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" - dependencies: - caller-path "^0.1.0" - resolve-from "^1.0.0" - resolve-cwd@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" dependencies: resolve-from "^3.0.0" -resolve-from@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" - resolve-from@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" @@ -5677,7 +5274,7 @@ resolve@1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" -resolve@^1.3.2, resolve@^1.5.0, resolve@^1.6.0: +resolve@^1.1.7, resolve@^1.3.2: version "1.7.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.7.1.tgz#aadd656374fd298aee895bc026b8297418677fd3" dependencies: @@ -5700,7 +5297,7 @@ right-align@^0.1.1: dependencies: align-text "^0.1.1" -rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2: +rimraf@2, rimraf@^2.5.1, rimraf@^2.5.4, rimraf@^2.6.1: version "2.6.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" dependencies: @@ -5756,7 +5353,7 @@ sax@~1.1.1: version "1.1.6" resolved "https://registry.yarnpkg.com/sax/-/sax-1.1.6.tgz#5d616be8a5e607d54e114afae55b7eaf2fcc3240" -"semver@2 || 3 || 4 || 5", semver@5.x, semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: +"semver@2 || 3 || 4 || 5", semver@5.x, semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1: version "5.5.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" @@ -5795,7 +5392,11 @@ set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" -"setimmediate@>= 1.0.1 < 2", "setimmediate@>= 1.0.2 < 2", setimmediate@^1.0.5: +set-immediate-shim@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + +setimmediate@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" @@ -5848,18 +5449,6 @@ slash@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" -slice-ansi@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-1.0.0.tgz#044f1a49d8842ff307aad6b505ed178bd950134d" - dependencies: - is-fullwidth-code-point "^2.0.0" - -"slice-stream@>= 1.0.0 < 2": - version "1.0.0" - resolved "https://registry.yarnpkg.com/slice-stream/-/slice-stream-1.0.0.tgz#5b33bd66f013b1a7f86460b03d463dec39ad3ea0" - dependencies: - readable-stream "~1.0.31" - slide@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" @@ -6057,6 +5646,12 @@ strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" +subarg@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2" + dependencies: + minimist "^1.1.0" + supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" @@ -6073,7 +5668,7 @@ supports-color@^4.0.0: dependencies: has-flag "^2.0.0" -supports-color@^5.0.0: +supports-color@^5.0.0, supports-color@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.3.0.tgz#5b24ac15db80fa927cf5227a4a33fd3c4c7676c0" dependencies: @@ -6086,7 +5681,7 @@ supports-hyperlinks@^1.0.1: has-flag "^2.0.0" supports-color "^5.0.0" -symbol-observable@^1.0.3: +symbol-observable@^1.0.3, symbol-observable@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804" @@ -6094,17 +5689,6 @@ symbol-observable@^1.0.3: version "3.2.2" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" -table@^4.0.1, table@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36" - dependencies: - ajv "^5.2.3" - ajv-keywords "^2.1.0" - chalk "^2.1.0" - lodash "^4.17.4" - slice-ansi "1.0.0" - string-width "^2.1.1" - taffydb@2.7.2: version "2.7.2" resolved "https://registry.yarnpkg.com/taffydb/-/taffydb-2.7.2.tgz#7bf8106a5c1a48251b3e3bc0a0e1732489fd0dc8" @@ -6147,10 +5731,6 @@ test-exclude@^4.1.1: read-pkg-up "^1.0.1" require-main-filename "^1.0.1" -text-table@~0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - throat@^4.0.0, throat@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" @@ -6162,7 +5742,7 @@ through2@^2.0.0: readable-stream "^2.1.5" xtend "~4.0.1" -through@^2.3.6, through@^2.3.8: +through@^2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" @@ -6170,10 +5750,6 @@ time-stamp@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" -timed-out@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" - tmp@^0.0.33: version "0.0.33" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" @@ -6208,14 +5784,78 @@ tr46@~0.0.1: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" -"traverse@>=0.3.0 <0.4": - version "0.3.9" - resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz#717b8f220cc0bb7b44e40514c22b2e8bbc70d8b9" - trim-right@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" +ts-jest@^22.4.4: + version "22.4.4" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-22.4.4.tgz#7b5c0abb2188fe7170840df9f80e78659aaf8a24" + dependencies: + babel-core "^6.26.0" + babel-plugin-istanbul "^4.1.4" + babel-plugin-transform-es2015-modules-commonjs "^6.26.0" + babel-preset-jest "^22.4.0" + cpx "^1.5.0" + fs-extra "4.0.3" + jest-config "^22.4.2" + pkg-dir "^2.0.0" + yargs "^11.0.0" + +tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8" + +tslint-config-prettier@^1.12.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.12.0.tgz#bc8504f286ecf42b906f3d1126a093114f5729cc" + +tslint-immutable@^4.5.4: + version "4.5.4" + resolved "https://registry.yarnpkg.com/tslint-immutable/-/tslint-immutable-4.5.4.tgz#17b0d825c1067fa6d125a8010d9b22feb12e5d32" + +tslint-plugin-prettier@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/tslint-plugin-prettier/-/tslint-plugin-prettier-1.3.0.tgz#7eb65d19ea786a859501a42491b78c5de2031a3f" + dependencies: + eslint-plugin-prettier "^2.2.0" + tslib "^1.7.1" + +tslint-react@^3.5.1: + version "3.5.1" + resolved "https://registry.yarnpkg.com/tslint-react/-/tslint-react-3.5.1.tgz#a5ca48034bf583fb63b42763bb89fa23062d5390" + dependencies: + tsutils "^2.13.1" + +tslint-sonarts@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/tslint-sonarts/-/tslint-sonarts-1.6.0.tgz#b21366029d83e2426d207174255bb2e09525e162" + dependencies: + immutable "^3.8.2" + +tslint@^5.9.1: + version "5.9.1" + resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.9.1.tgz#1255f87a3ff57eb0b0e1f0e610a8b4748046c9ae" + dependencies: + babel-code-frame "^6.22.0" + builtin-modules "^1.1.1" + chalk "^2.3.0" + commander "^2.12.1" + diff "^3.2.0" + glob "^7.1.1" + js-yaml "^3.7.0" + minimatch "^3.0.4" + resolve "^1.3.2" + semver "^5.3.0" + tslib "^1.8.0" + tsutils "^2.12.1" + +tsutils@^2.12.1, tsutils@^2.13.1: + version "2.26.2" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.26.2.tgz#a9f9f63434a456a5e0c95a45d9a59181cb32d3bf" + dependencies: + tslib "^1.8.1" + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -6240,6 +5880,10 @@ typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" +typescript@^2.8.3: + version "2.8.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.3.tgz#5d817f9b6f31bb871835f4edf0089f21abe6c170" + ua-parser-js@^0.7.9: version "0.7.17" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac" @@ -6288,31 +5932,10 @@ unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" -unzip@^0.1.11: - version "0.1.11" - resolved "https://registry.yarnpkg.com/unzip/-/unzip-0.1.11.tgz#89749c63b058d7d90d619f86b98aa1535d3b97f0" - dependencies: - binary ">= 0.3.0 < 1" - fstream ">= 0.1.30 < 1" - match-stream ">= 0.0.2 < 1" - pullstream ">= 0.4.1 < 1" - readable-stream "~1.0.31" - setimmediate ">= 1.0.1 < 2" - -url-parse-lax@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" - dependencies: - prepend-http "^1.0.1" - url-template@^2.0.8: version "2.0.8" resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21" -url-to-options@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" - utf8@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/utf8/-/utf8-2.1.2.tgz#1fa0d9270e9be850d9b05027f63519bf46457d96" @@ -6430,10 +6053,6 @@ whatwg-url@^6.4.0: tr46 "^1.0.0" webidl-conversions "^4.0.1" -which-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" - which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" @@ -6460,10 +6079,6 @@ window-size@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" -window-size@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075" - wordwrap@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" @@ -6503,12 +6118,6 @@ write-file-atomic@^2.1.0: imurmurhash "^0.1.4" signal-exit "^3.0.2" -write@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" - dependencies: - mkdirp "^0.5.1" - ws@^1.1.0: version "1.1.5" resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.5.tgz#cbd9e6e75e09fc5d2c90015f21f0c40875e0dd51" @@ -6583,13 +6192,6 @@ yallist@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" -yargs-parser@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-2.4.1.tgz#85568de3cf150ff49fa51825f03a8c880ddcc5c4" - dependencies: - camelcase "^3.0.0" - lodash.assign "^4.0.6" - yargs-parser@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" @@ -6642,25 +6244,6 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yargs@^4.2.0: - version "4.8.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0" - dependencies: - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - lodash.assign "^4.0.3" - os-locale "^1.4.0" - read-pkg-up "^1.0.1" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^1.0.1" - which-module "^1.0.0" - window-size "^0.2.0" - y18n "^3.2.1" - yargs-parser "^2.4.1" - yargs@^8.0.2: version "8.0.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360"