diff --git a/.eslintrc.js b/.eslintrc.js index 82951e90e..b4b430f72 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,18 +10,21 @@ // ESLint configuration // http://eslint.org/docs/user-guide/configuring module.exports = { - parser: 'babel-eslint', + parser: '@typescript-eslint/parser', extends: [ 'airbnb', - 'plugin:flowtype/recommended', 'plugin:css-modules/recommended', 'prettier', - 'prettier/flowtype', 'prettier/react', ], - plugins: ['flowtype', 'css-modules', 'prettier'], + plugins: ['@typescript-eslint/eslint-plugin', 'css-modules', 'prettier'], + + parserOptions: { + sourceType: 'module', + project: './tsconfig.json', + }, globals: { __DEV__: true, diff --git a/.travis.yml b/.travis.yml index e90261df8..743316249 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,6 @@ addons: - g++-4.8 cache: yarn script: - - yarn codegen - yarn lint - yarn test - yarn build --release diff --git a/apollo.config.js b/apollo.config.js deleted file mode 100644 index 87d37f340..000000000 --- a/apollo.config.js +++ /dev/null @@ -1,16 +0,0 @@ -const { codegenPort } = require('./src/config'); - -module.exports = { - client: { - service: { - name: 'react-starter-kit', - url: `http://localhost:${codegenPort}/graphql`, - // optional headers - headers: { - // authorization: 'Bearer lkjfalkfjadkfjeopknavadf', - }, - // optional disable SSL validation check - skipSSLValidation: true, - }, - }, -}; diff --git a/babel.config.js b/babel.config.js index fdbbc882a..cf6b9d5ad 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,14 +1,3 @@ -/** - * React Starter Kit (https://www.reactstarterkit.com/) - * - * Copyright © 2014-present Kriasoft, LLC. All rights reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE.txt file in the root directory of this source tree. - */ - -// Babel configuration -// https://babeljs.io/docs/usage/api/ module.exports = { presets: [ [ @@ -19,8 +8,8 @@ module.exports = { }, }, ], - '@babel/preset-flow', '@babel/preset-react', + '@babel/preset-typescript', ], plugins: [ '@babel/plugin-proposal-class-properties', diff --git a/docs/react-style-guide.md b/docs/react-style-guide.md index b58b27270..c71243986 100644 --- a/docs/react-style-guide.md +++ b/docs/react-style-guide.md @@ -125,14 +125,13 @@ Navigation.propTypes = { items: PropTypes.array.isRequired }; ```jsx // Navigation.js -// @flow import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Navigation.scss'; -type PropTypes = {| +type PropTypes = { className: string, -|}; +}; function Navigation(props: PropTypes) { return ( diff --git a/flow-typed/global.js b/flow-typed/global.js deleted file mode 100644 index cc18bc16b..000000000 --- a/flow-typed/global.js +++ /dev/null @@ -1,3 +0,0 @@ -// @flow - -declare type __DEV__ = boolean; diff --git a/flow-typed/npm/@babel/core_vx.x.x.js b/flow-typed/npm/@babel/core_vx.x.x.js deleted file mode 100644 index 14ac454f8..000000000 --- a/flow-typed/npm/@babel/core_vx.x.x.js +++ /dev/null @@ -1,331 +0,0 @@ -// flow-typed signature: 3b0e6ff273b743bdc103b7c2931267a7 -// flow-typed version: <>/@babel/core_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/core' - * - * 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/core' { - 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/core/lib/config/caching' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/config-chain' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/config-descriptors' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/files/configuration' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/files/index-browser' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/files/index' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/files/package' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/files/plugins' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/files/types' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/files/utils' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/full' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/helpers/config-api' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/helpers/environment' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/index' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/item' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/partial' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/pattern-to-regex' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/plugin' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/util' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/validation/option-assertions' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/validation/options' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/validation/plugins' { - declare module.exports: any; -} - -declare module '@babel/core/lib/config/validation/removed' { - declare module.exports: any; -} - -declare module '@babel/core/lib/index' { - declare module.exports: any; -} - -declare module '@babel/core/lib/parse' { - declare module.exports: any; -} - -declare module '@babel/core/lib/tools/build-external-helpers' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transform-ast' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transform-file-browser' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transform-file-sync-browser' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transform-file' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transform' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/block-hoist-plugin' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/file/file' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/file/generate' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/file/merge-map' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/index' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/normalize-file' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/normalize-opts' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/plugin-pass' { - declare module.exports: any; -} - -declare module '@babel/core/lib/transformation/util/missing-plugin-helper' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/core/lib/config/caching.js' { - declare module.exports: $Exports<'@babel/core/lib/config/caching'>; -} -declare module '@babel/core/lib/config/config-chain.js' { - declare module.exports: $Exports<'@babel/core/lib/config/config-chain'>; -} -declare module '@babel/core/lib/config/config-descriptors.js' { - declare module.exports: $Exports<'@babel/core/lib/config/config-descriptors'>; -} -declare module '@babel/core/lib/config/files/configuration.js' { - declare module.exports: $Exports< - '@babel/core/lib/config/files/configuration', - >; -} -declare module '@babel/core/lib/config/files/index-browser.js' { - declare module.exports: $Exports< - '@babel/core/lib/config/files/index-browser', - >; -} -declare module '@babel/core/lib/config/files/index.js' { - declare module.exports: $Exports<'@babel/core/lib/config/files/index'>; -} -declare module '@babel/core/lib/config/files/package.js' { - declare module.exports: $Exports<'@babel/core/lib/config/files/package'>; -} -declare module '@babel/core/lib/config/files/plugins.js' { - declare module.exports: $Exports<'@babel/core/lib/config/files/plugins'>; -} -declare module '@babel/core/lib/config/files/types.js' { - declare module.exports: $Exports<'@babel/core/lib/config/files/types'>; -} -declare module '@babel/core/lib/config/files/utils.js' { - declare module.exports: $Exports<'@babel/core/lib/config/files/utils'>; -} -declare module '@babel/core/lib/config/full.js' { - declare module.exports: $Exports<'@babel/core/lib/config/full'>; -} -declare module '@babel/core/lib/config/helpers/config-api.js' { - declare module.exports: $Exports<'@babel/core/lib/config/helpers/config-api'>; -} -declare module '@babel/core/lib/config/helpers/environment.js' { - declare module.exports: $Exports< - '@babel/core/lib/config/helpers/environment', - >; -} -declare module '@babel/core/lib/config/index.js' { - declare module.exports: $Exports<'@babel/core/lib/config/index'>; -} -declare module '@babel/core/lib/config/item.js' { - declare module.exports: $Exports<'@babel/core/lib/config/item'>; -} -declare module '@babel/core/lib/config/partial.js' { - declare module.exports: $Exports<'@babel/core/lib/config/partial'>; -} -declare module '@babel/core/lib/config/pattern-to-regex.js' { - declare module.exports: $Exports<'@babel/core/lib/config/pattern-to-regex'>; -} -declare module '@babel/core/lib/config/plugin.js' { - declare module.exports: $Exports<'@babel/core/lib/config/plugin'>; -} -declare module '@babel/core/lib/config/util.js' { - declare module.exports: $Exports<'@babel/core/lib/config/util'>; -} -declare module '@babel/core/lib/config/validation/option-assertions.js' { - declare module.exports: $Exports< - '@babel/core/lib/config/validation/option-assertions', - >; -} -declare module '@babel/core/lib/config/validation/options.js' { - declare module.exports: $Exports<'@babel/core/lib/config/validation/options'>; -} -declare module '@babel/core/lib/config/validation/plugins.js' { - declare module.exports: $Exports<'@babel/core/lib/config/validation/plugins'>; -} -declare module '@babel/core/lib/config/validation/removed.js' { - declare module.exports: $Exports<'@babel/core/lib/config/validation/removed'>; -} -declare module '@babel/core/lib/index.js' { - declare module.exports: $Exports<'@babel/core/lib/index'>; -} -declare module '@babel/core/lib/parse.js' { - declare module.exports: $Exports<'@babel/core/lib/parse'>; -} -declare module '@babel/core/lib/tools/build-external-helpers.js' { - declare module.exports: $Exports< - '@babel/core/lib/tools/build-external-helpers', - >; -} -declare module '@babel/core/lib/transform-ast.js' { - declare module.exports: $Exports<'@babel/core/lib/transform-ast'>; -} -declare module '@babel/core/lib/transform-file-browser.js' { - declare module.exports: $Exports<'@babel/core/lib/transform-file-browser'>; -} -declare module '@babel/core/lib/transform-file-sync-browser.js' { - declare module.exports: $Exports< - '@babel/core/lib/transform-file-sync-browser', - >; -} -declare module '@babel/core/lib/transform-file.js' { - declare module.exports: $Exports<'@babel/core/lib/transform-file'>; -} -declare module '@babel/core/lib/transform.js' { - declare module.exports: $Exports<'@babel/core/lib/transform'>; -} -declare module '@babel/core/lib/transformation/block-hoist-plugin.js' { - declare module.exports: $Exports< - '@babel/core/lib/transformation/block-hoist-plugin', - >; -} -declare module '@babel/core/lib/transformation/file/file.js' { - declare module.exports: $Exports<'@babel/core/lib/transformation/file/file'>; -} -declare module '@babel/core/lib/transformation/file/generate.js' { - declare module.exports: $Exports< - '@babel/core/lib/transformation/file/generate', - >; -} -declare module '@babel/core/lib/transformation/file/merge-map.js' { - declare module.exports: $Exports< - '@babel/core/lib/transformation/file/merge-map', - >; -} -declare module '@babel/core/lib/transformation/index.js' { - declare module.exports: $Exports<'@babel/core/lib/transformation/index'>; -} -declare module '@babel/core/lib/transformation/normalize-file.js' { - declare module.exports: $Exports< - '@babel/core/lib/transformation/normalize-file', - >; -} -declare module '@babel/core/lib/transformation/normalize-opts.js' { - declare module.exports: $Exports< - '@babel/core/lib/transformation/normalize-opts', - >; -} -declare module '@babel/core/lib/transformation/plugin-pass.js' { - declare module.exports: $Exports< - '@babel/core/lib/transformation/plugin-pass', - >; -} -declare module '@babel/core/lib/transformation/util/missing-plugin-helper.js' { - declare module.exports: $Exports< - '@babel/core/lib/transformation/util/missing-plugin-helper', - >; -} diff --git a/flow-typed/npm/@babel/node_vx.x.x.js b/flow-typed/npm/@babel/node_vx.x.x.js deleted file mode 100644 index 9637ba974..000000000 --- a/flow-typed/npm/@babel/node_vx.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: f0651e683a42f9f041a1616d29823754 -// flow-typed version: <>/@babel/node_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/node' - * - * 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/node' { - 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/node/bin/babel-node' { - declare module.exports: any; -} - -declare module '@babel/node/lib/_babel-node' { - declare module.exports: any; -} - -declare module '@babel/node/lib/babel-node' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/node/bin/babel-node.js' { - declare module.exports: $Exports<'@babel/node/bin/babel-node'>; -} -declare module '@babel/node/lib/_babel-node.js' { - declare module.exports: $Exports<'@babel/node/lib/_babel-node'>; -} -declare module '@babel/node/lib/babel-node.js' { - declare module.exports: $Exports<'@babel/node/lib/babel-node'>; -} diff --git a/flow-typed/npm/@babel/plugin-proposal-class-properties_vx.x.x.js b/flow-typed/npm/@babel/plugin-proposal-class-properties_vx.x.x.js deleted file mode 100644 index 95d5680c9..000000000 --- a/flow-typed/npm/@babel/plugin-proposal-class-properties_vx.x.x.js +++ /dev/null @@ -1,34 +0,0 @@ -// flow-typed signature: de48a8651d682d1d1d9335f9e3647603 -// flow-typed version: <>/@babel/plugin-proposal-class-properties_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/plugin-proposal-class-properties' - * - * 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/plugin-proposal-class-properties' { - 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/plugin-proposal-class-properties/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/plugin-proposal-class-properties/lib/index.js' { - declare module.exports: $Exports< - '@babel/plugin-proposal-class-properties/lib/index', - >; -} diff --git a/flow-typed/npm/@babel/plugin-syntax-dynamic-import_vx.x.x.js b/flow-typed/npm/@babel/plugin-syntax-dynamic-import_vx.x.x.js deleted file mode 100644 index a25a911ef..000000000 --- a/flow-typed/npm/@babel/plugin-syntax-dynamic-import_vx.x.x.js +++ /dev/null @@ -1,34 +0,0 @@ -// flow-typed signature: 5f92b1b389cfd07b8ec02bfe44905f58 -// flow-typed version: <>/@babel/plugin-syntax-dynamic-import_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/plugin-syntax-dynamic-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 '@babel/plugin-syntax-dynamic-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 '@babel/plugin-syntax-dynamic-import/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/plugin-syntax-dynamic-import/lib/index.js' { - declare module.exports: $Exports< - '@babel/plugin-syntax-dynamic-import/lib/index', - >; -} diff --git a/flow-typed/npm/@babel/plugin-transform-react-constant-elements_vx.x.x.js b/flow-typed/npm/@babel/plugin-transform-react-constant-elements_vx.x.x.js deleted file mode 100644 index c533c406b..000000000 --- a/flow-typed/npm/@babel/plugin-transform-react-constant-elements_vx.x.x.js +++ /dev/null @@ -1,34 +0,0 @@ -// flow-typed signature: 59952b4218b8e8a7a6fc51e48013ce9f -// flow-typed version: <>/@babel/plugin-transform-react-constant-elements_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/plugin-transform-react-constant-elements' - * - * 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/plugin-transform-react-constant-elements' { - 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/plugin-transform-react-constant-elements/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/plugin-transform-react-constant-elements/lib/index.js' { - declare module.exports: $Exports< - '@babel/plugin-transform-react-constant-elements/lib/index', - >; -} diff --git a/flow-typed/npm/@babel/plugin-transform-react-inline-elements_vx.x.x.js b/flow-typed/npm/@babel/plugin-transform-react-inline-elements_vx.x.x.js deleted file mode 100644 index 4feecad85..000000000 --- a/flow-typed/npm/@babel/plugin-transform-react-inline-elements_vx.x.x.js +++ /dev/null @@ -1,34 +0,0 @@ -// flow-typed signature: a7ec6f7e0e8dab956c24111568dbcf78 -// flow-typed version: <>/@babel/plugin-transform-react-inline-elements_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/plugin-transform-react-inline-elements' - * - * 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/plugin-transform-react-inline-elements' { - 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/plugin-transform-react-inline-elements/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/plugin-transform-react-inline-elements/lib/index.js' { - declare module.exports: $Exports< - '@babel/plugin-transform-react-inline-elements/lib/index', - >; -} diff --git a/flow-typed/npm/@babel/polyfill_v7.x.x.js b/flow-typed/npm/@babel/polyfill_v7.x.x.js deleted file mode 100644 index 049f3ee6d..000000000 --- a/flow-typed/npm/@babel/polyfill_v7.x.x.js +++ /dev/null @@ -1,5 +0,0 @@ -// flow-typed signature: ebc6e7724cd1da0d1a8b10de36bd7a94 -// flow-typed version: 7b122e75af/@babel/polyfill_v7.x.x/flow_>=v0.30.x - -declare module '@babel/polyfill' { -} diff --git a/flow-typed/npm/@babel/preset-env_vx.x.x.js b/flow-typed/npm/@babel/preset-env_vx.x.x.js deleted file mode 100644 index 2cdadb1d9..000000000 --- a/flow-typed/npm/@babel/preset-env_vx.x.x.js +++ /dev/null @@ -1,152 +0,0 @@ -// flow-typed signature: e9888db69c2293c9720c91b94a00b7f9 -// flow-typed version: <>/@babel/preset-env_v^7.1.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/preset-env' - * - * 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-env' { - 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-env/data/built-in-features' { - declare module.exports: any; -} - -declare module '@babel/preset-env/data/plugin-features' { - declare module.exports: any; -} - -declare module '@babel/preset-env/data/shipped-proposals' { - declare module.exports: any; -} - -declare module '@babel/preset-env/data/unreleased-labels' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/available-plugins' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/built-in-definitions' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/debug' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/default-includes' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/defaults' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/index' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/module-transformations' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/normalize-options' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/options' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/targets-parser' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/use-built-ins-entry-plugin' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/use-built-ins-plugin' { - declare module.exports: any; -} - -declare module '@babel/preset-env/lib/utils' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/preset-env/data/built-in-features.js' { - declare module.exports: $Exports<'@babel/preset-env/data/built-in-features'>; -} -declare module '@babel/preset-env/data/plugin-features.js' { - declare module.exports: $Exports<'@babel/preset-env/data/plugin-features'>; -} -declare module '@babel/preset-env/data/shipped-proposals.js' { - declare module.exports: $Exports<'@babel/preset-env/data/shipped-proposals'>; -} -declare module '@babel/preset-env/data/unreleased-labels.js' { - declare module.exports: $Exports<'@babel/preset-env/data/unreleased-labels'>; -} -declare module '@babel/preset-env/lib/available-plugins.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/available-plugins'>; -} -declare module '@babel/preset-env/lib/built-in-definitions.js' { - declare module.exports: $Exports< - '@babel/preset-env/lib/built-in-definitions', - >; -} -declare module '@babel/preset-env/lib/debug.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/debug'>; -} -declare module '@babel/preset-env/lib/default-includes.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/default-includes'>; -} -declare module '@babel/preset-env/lib/defaults.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/defaults'>; -} -declare module '@babel/preset-env/lib/index.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/index'>; -} -declare module '@babel/preset-env/lib/module-transformations.js' { - declare module.exports: $Exports< - '@babel/preset-env/lib/module-transformations', - >; -} -declare module '@babel/preset-env/lib/normalize-options.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/normalize-options'>; -} -declare module '@babel/preset-env/lib/options.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/options'>; -} -declare module '@babel/preset-env/lib/targets-parser.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/targets-parser'>; -} -declare module '@babel/preset-env/lib/use-built-ins-entry-plugin.js' { - declare module.exports: $Exports< - '@babel/preset-env/lib/use-built-ins-entry-plugin', - >; -} -declare module '@babel/preset-env/lib/use-built-ins-plugin.js' { - declare module.exports: $Exports< - '@babel/preset-env/lib/use-built-ins-plugin', - >; -} -declare module '@babel/preset-env/lib/utils.js' { - declare module.exports: $Exports<'@babel/preset-env/lib/utils'>; -} diff --git a/flow-typed/npm/@babel/preset-flow_vx.x.x.js b/flow-typed/npm/@babel/preset-flow_vx.x.x.js deleted file mode 100644 index acc1b3796..000000000 --- a/flow-typed/npm/@babel/preset-flow_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 01571540efb002b723d9ff807645cf22 -// flow-typed version: <>/@babel/preset-flow_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/preset-flow' - * - * 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-flow' { - 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-flow/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/preset-flow/lib/index.js' { - declare module.exports: $Exports<'@babel/preset-flow/lib/index'>; -} diff --git a/flow-typed/npm/@babel/preset-react_vx.x.x.js b/flow-typed/npm/@babel/preset-react_vx.x.x.js deleted file mode 100644 index 5efa5009c..000000000 --- a/flow-typed/npm/@babel/preset-react_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 468fa21982b974b2505f32863ca28c63 -// flow-typed version: <>/@babel/preset-react_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * '@babel/preset-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 '@babel/preset-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 '@babel/preset-react/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module '@babel/preset-react/lib/index.js' { - declare module.exports: $Exports<'@babel/preset-react/lib/index'>; -} diff --git a/flow-typed/npm/apollo-cache-inmemory_vx.x.x.js b/flow-typed/npm/apollo-cache-inmemory_vx.x.x.js deleted file mode 100644 index d3b043e4d..000000000 --- a/flow-typed/npm/apollo-cache-inmemory_vx.x.x.js +++ /dev/null @@ -1,104 +0,0 @@ -// flow-typed signature: 06700725decd7f0733d5fb5b92953b87 -// flow-typed version: <>/apollo-cache-inmemory_v^1.2.10/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo-cache-inmemory' - * - * 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 'apollo-cache-inmemory' { - 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 'apollo-cache-inmemory/lib/bundle.umd' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/fragmentMatcher' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/index' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/inMemoryCache' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/mapCache' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/objectCache' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/readFromStore' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/recordingCache' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/types' { - declare module.exports: any; -} - -declare module 'apollo-cache-inmemory/lib/writeToStore' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo-cache-inmemory/lib/bundle.umd.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/bundle.umd'>; -} -declare module 'apollo-cache-inmemory/lib/fragmentMatcher.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/fragmentMatcher'>; -} -declare module 'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery.js' { - declare module.exports: $Exports< - 'apollo-cache-inmemory/lib/fragmentMatcherIntrospectionQuery', - >; -} -declare module 'apollo-cache-inmemory/lib/index.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/index'>; -} -declare module 'apollo-cache-inmemory/lib/inMemoryCache.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/inMemoryCache'>; -} -declare module 'apollo-cache-inmemory/lib/mapCache.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/mapCache'>; -} -declare module 'apollo-cache-inmemory/lib/objectCache.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/objectCache'>; -} -declare module 'apollo-cache-inmemory/lib/readFromStore.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/readFromStore'>; -} -declare module 'apollo-cache-inmemory/lib/recordingCache.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/recordingCache'>; -} -declare module 'apollo-cache-inmemory/lib/types.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/types'>; -} -declare module 'apollo-cache-inmemory/lib/writeToStore.js' { - declare module.exports: $Exports<'apollo-cache-inmemory/lib/writeToStore'>; -} diff --git a/flow-typed/npm/apollo-client_v2.x.x.js b/flow-typed/npm/apollo-client_v2.x.x.js deleted file mode 100644 index e72e3a466..000000000 --- a/flow-typed/npm/apollo-client_v2.x.x.js +++ /dev/null @@ -1,721 +0,0 @@ -// flow-typed signature: 776993e5b435ca317429cf5d829e25b4 -// flow-typed version: cdb18a28cf/apollo-client_v2.x.x/flow_>=v0.57.x - -declare module 'apollo-client' { - /** - * Types From graphql - * graphql types are maintained in the graphql-js repo - */ - declare type DocumentNode = any; - declare type ExecutionResult = { - data?: T, - extensions?: { [string]: any }, - errors?: any[], - }; - declare type GraphQLError = any; - /** End From graphql */ - - declare type OperationVariables = { [key: string]: any }; - - declare export function print(ast: any): string; - - declare export class ObservableQuery extends Observable< - ApolloQueryResult, - > { - options: WatchQueryOptions; - queryId: string; - variables: { [key: string]: any }; - isCurrentlyPolling: boolean; - shouldSubscribe: boolean; - isTornDown: boolean; - scheduler: QueryScheduler; - queryManager: QueryManager; - observers: Observer>[]; - subscriptionHandles: SubscriptionLINK[]; - lastResult: ApolloQueryResult; - lastError: ApolloError; - lastVariables: { [key: string]: any }; - - constructor(data: { - scheduler: QueryScheduler, - options: WatchQueryOptions, - shouldSubscribe?: boolean, - }): this; - - result(): Promise>; - currentResult(): ApolloCurrentResult; - getLastResult(): ApolloQueryResult; - getLastError(): ApolloError; - resetLastResults(): void; - refetch(variables?: any): Promise>; - fetchMore( - fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions, - ): Promise>; - subscribeToMore(options: SubscribeToMoreOptions): () => void; - setOptions( - opts: ModifiableWatchQueryOptions, - ): Promise>; - setVariables( - variables: any, - tryFetch?: boolean, - fetchResults?: boolean, - ): Promise>; - updateQuery( - mapFn: (previousQueryResult: any, options: UpdateQueryOptions) => any, - ): void; - stopPolling(): void; - startPolling(pollInterval: number): void; - } - - declare class QueryManager { - scheduler: QueryScheduler; - link: ApolloLink; - mutationStore: MutationStore; - queryStore: QueryStore; - dataStore: DataStore; - - constructor({ - link: ApolloLink, - queryDeduplication?: boolean, - store: DataStore, - onBroadcast?: () => void, - ssrMode?: boolean, - }): this; - - mutate(options: MutationOptions<>): Promise>; - fetchQuery( - queryId: string, - options: WatchQueryOptions, - fetchType?: FetchType, - fetchMoreForQueryId?: string, - ): Promise>; - queryListenerForObserver( - queryId: string, - options: WatchQueryOptions, - observer: Observer>, - ): QueryListener; - watchQuery( - options: WatchQueryOptions, - shouldSubscribe?: boolean, - ): ObservableQuery; - query(options: WatchQueryOptions): Promise>; - generateQueryId(): string; - stopQueryInStore(queryId: string): void; - addQueryListener(queryId: string, listener: QueryListener): void; - updateQueryWatch( - queryId: string, - document: DocumentNode, - options: WatchQueryOptions, - ): void; - addFetchQueryPromise( - requestId: number, - promise: Promise>, - resolve: (result: ApolloQueryResult) => void, - reject: (error: Error) => void, - ): void; - removeFetchQueryPromise(requestId: number): void; - addObservableQuery( - queryId: string, - observableQuery: ObservableQuery, - ): void; - removeObservableQuery(queryId: string): void; - clearStore(): Promise; - resetStore(): Promise[]>; - } - - declare class QueryStore { - getStore(): { [queryId: string]: QueryStoreValue }; - get(queryId: string): QueryStoreValue; - initQuery(query: { - queryId: string, - document: DocumentNode, - storePreviousVariables: boolean, - variables: Object, - isPoll: boolean, - isRefetch: boolean, - metadata: any, - fetchMoreForQueryId: string | void, - }): void; - markQueryResult( - queryId: string, - result: ExecutionResult<>, - fetchMoreForQueryId: string | void, - ): void; - markQueryError( - queryId: string, - error: Error, - fetchMoreForQueryId: string | void, - ): void; - markQueryResultClient(queryId: string, complete: boolean): void; - stopQuery(queryId: string): void; - reset(observableQueryIds: string[]): void; - } - - declare class QueryScheduler { - inFlightQueries: { [queryId: string]: WatchQueryOptions }; - registeredQueries: { [queryId: string]: WatchQueryOptions }; - intervalQueries: { [interval: number]: string[] }; - queryManager: QueryManager; - constructor({ - queryManager: QueryManager, - ssrMode?: boolean, - }): this; - checkInFlight(queryId: string): ?boolean; - fetchQuery( - queryId: string, - options: WatchQueryOptions, - fetchType: FetchType, - ): Promise>; - startPollingQuery( - options: WatchQueryOptions, - queryId: string, - listener?: QueryListener, - ): string; - stopPollingQuery(queryId: string): void; - fetchQueriesOnInterval(interval: number): void; - addQueryOnInterval( - queryId: string, - queryOptions: WatchQueryOptions, - ): void; - registerPollingQuery( - queryOptions: WatchQueryOptions, - ): ObservableQuery; - markMutationError(mutationId: string, error: Error): void; - reset(): void; - } - - declare class DataStore { - constructor(initialCache: ApolloCache): this; - getCache(): ApolloCache; - markQueryResult( - result: ExecutionResult<>, - document: DocumentNode, - variables: any, - fetchMoreForQueryId: string | void, - ignoreErrors?: boolean, - ): void; - markSubscriptionResult( - result: ExecutionResult<>, - document: DocumentNode, - variables: any, - ): void; - markMutationInit(mutation: { - mutationId: string, - document: DocumentNode, - variables: any, - updateQueries: { [queryId: string]: QueryWithUpdater }, - update: ((proxy: DataProxy, mutationResult: Object) => void) | void, - optimisticResponse: Object | Function | void, - }): void; - markMutationResult(mutation: { - mutationId: string, - result: ExecutionResult<>, - document: DocumentNode, - variables: any, - updateQueries: { [queryId: string]: QueryWithUpdater }, - update: ((proxy: DataProxy, mutationResult: Object) => void) | void, - }): void; - markMutationComplete({ - mutationId: string, - optimisticResponse?: any, - }): void; - markUpdateQueryResult( - document: DocumentNode, - variables: any, - newResult: any, - ): void; - reset(): Promise; - } - - declare type QueryWithUpdater = { - updater: MutationQueryReducer, - query: QueryStoreValue, - }; - - declare interface MutationStoreValue { - mutationString: string; - variables: Object; - loading: boolean; - error: Error | null; - } - - declare class MutationStore { - getStore(): { [mutationId: string]: MutationStoreValue }; - get(mutationId: string): MutationStoreValue; - initMutation( - mutationId: string, - mutationString: string, - variables: Object | void, - ): void; - } - - declare export interface FetchMoreOptions { - updateQuery: ( - previousQueryResult: TData, - options: { - fetchMoreResult?: TData, - variables: TVariables, - }, - ) => TData; - } - - declare export interface UpdateQueryOptions { - variables?: Object; - } - - declare export type ApolloCurrentResult = { - data: T | {}, - errors?: Array, - loading: boolean, - networkStatus: NetworkStatus, - error?: ApolloError, - partial?: boolean, - }; - - declare interface ModifiableWatchQueryOptions { - variables?: { [key: string]: any }; - pollInterval?: number; - fetchPolicy?: FetchPolicy; - errorPolicy?: ErrorPolicy; - fetchResults?: boolean; - notifyOnNetworkStatusChange?: boolean; - } - - declare export interface WatchQueryOptions - extends ModifiableWatchQueryOptions { - query: DocumentNode; - metadata?: any; - context?: any; - } - - declare type RefetchQueryDescription = Array; - - declare interface MutationBaseOptions { - optimisticResponse?: Object | Function; - updateQueries?: MutationQueryReducersMap; - optimisticResponse?: Object; - refetchQueries?: - | ((result: ExecutionResult<>) => RefetchQueryDescription) - | RefetchQueryDescription; - update?: MutationUpdaterFn; - errorPolicy?: ErrorPolicy; - variables?: any; - } - - declare export type MutationOperation = ( - options: MutationBaseOptions, - ) => Promise>; - - declare export interface MutationOptions - extends MutationBaseOptions { - mutation: DocumentNode; - context?: any; - fetchPolicy?: FetchPolicy; - } - - declare export interface SubscriptionOptions { - query: DocumentNode; - variables?: { [key: string]: any }; - } - - declare export type FetchPolicy = - | 'cache-first' - | 'cache-and-network' - | 'network-only' - | 'cache-only' - | 'no-cache' - | 'standby'; - - declare export type ErrorPolicy = 'none' | 'ignore' | 'all'; - - declare export interface FetchMoreQueryOptions { - variables: $Shape; - } - - declare export type SubscribeToMoreOptions< - TData, - TSubscriptionData, - TSubscriptionVariables = void, - > = { - document?: DocumentNode, - variables?: TSubscriptionVariables, - updateQuery?: ( - previousResult: TData, - result: { - subscriptionData: { data?: TSubscriptionData }, - variables: TSubscriptionVariables, - }, - ) => TData, - onError?: (error: Error) => void, - }; - - declare export type MutationUpdaterFn = ( - proxy: DataProxy, - mutationResult: FetchResult, - ) => void; - - declare export type NetworkStatus = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - - declare export type QueryListener = ( - queryStoreValue: QueryStoreValue, - newData?: any, - ) => void; - - declare export type QueryStoreValue = { - document: DocumentNode, - variables: Object, - previousVariables: Object | null, - networkStatus: NetworkStatus, - networkError: Error | null, - graphQLErrors: GraphQLError[], - metadata: any, - }; - - declare export type PureQueryOptions = { - query: DocumentNode, - variables?: { [key: string]: any }, - }; - - declare export type ApolloQueryResult = { - data: T, - errors?: Array, - loading: boolean, - networkStatus: NetworkStatus, - stale: boolean, - }; - - declare export type FetchType = 1 | 2 | 3; - - declare export type MutationQueryReducer = ( - previousResult: { [key: string]: any }, - options: { - mutationResult: FetchResult, - queryName: string | void, - queryVariables: { [key: string]: any }, - }, - ) => { [key: string]: any }; - - declare export type MutationQueryReducersMap = { - [queryName: string]: MutationQueryReducer, - }; - - declare export class ApolloError extends Error { - message: string; - graphQLErrors: Array; - networkError: Error | null; - extraInfo: any; - constructor(info: ErrorConstructor): this; - } - - declare interface ErrorConstructor { - graphQLErrors?: Array; - networkError?: Error | null; - errorMessage?: string; - extraInfo?: any; - } - - declare interface DefaultOptions { - +watchQuery?: ModifiableWatchQueryOptions; - +query?: ModifiableWatchQueryOptions; - +mutate?: MutationBaseOptions<>; - } - - declare export type ApolloClientOptions = { - link: ApolloLink, - cache: ApolloCache, - ssrMode?: boolean, - ssrForceFetchDelay?: number, - connectToDevTools?: boolean, - queryDeduplication?: boolean, - defaultOptions?: DefaultOptions, - }; - - declare export class ApolloClient { - link: ApolloLink; - store: DataStore; - cache: ApolloCache; - queryManager: QueryManager; - disableNetworkFetches: boolean; - version: string; - queryDeduplication: boolean; - defaultOptions: DefaultOptions; - devToolsHookCb: Function; - proxy: ApolloCache | void; - ssrMode: boolean; - resetStoreCallbacks: Array<() => Promise>; - - constructor(options: ApolloClientOptions): this; - watchQuery(options: WatchQueryOptions): ObservableQuery; - query(options: WatchQueryOptions): Promise>; - mutate(options: MutationOptions): Promise>; - subscribe(options: SubscriptionOptions): Observable; - readQuery(options: DataProxyReadQueryOptions): T | null; - readFragment(options: DataProxyReadFragmentOptions): T | null; - writeQuery(options: DataProxyWriteQueryOptions): void; - writeFragment(options: DataProxyWriteFragmentOptions): void; - writeData(options: DataProxyWriteDataOptions): void; - __actionHookForDevTools(cb: () => any): void; - __requestRaw(payload: GraphQLRequest): Observable>; - initQueryManager(): void; - resetStore(): Promise> | null>; - onResetStore(cb: () => Promise): () => void; - reFetchObservableQueries( - includeStandby?: boolean, - ): Promise[]> | Promise; - extract(optimistic?: boolean): TCacheShape; - restore(serializedState: TCacheShape): ApolloCache; - } - - declare export default typeof ApolloClient; - - /* apollo-link types */ - declare export class ApolloLink { - constructor(request?: RequestHandler): this; - - static empty(): ApolloLink; - static from(links: Array): ApolloLink; - static split( - test: (op: Operation) => boolean, - left: ApolloLink | RequestHandler, - right: ApolloLink | RequestHandler, - ): ApolloLink; - static execute( - link: ApolloLink, - operation: GraphQLRequest, - ): Observable>; - - split( - test: (op: Operation) => boolean, - left: ApolloLink | RequestHandler, - right: ApolloLink | RequestHandler, - ): ApolloLink; - - concat(next: ApolloLink | RequestHandler): ApolloLink; - - request( - operation: Operation, - forward?: NextLink, - ): Observable> | null; - } - - declare interface GraphQLRequest { - query: DocumentNode; - variables?: { [key: string]: any }; - operationName?: string; - context?: { [key: string]: any }; - extensions?: { [key: string]: any }; - } - - declare interface Operation { - query: DocumentNode; - variables: { [key: string]: any }; - operationName: string; - extensions: { [key: string]: any }; - setContext: (context: { [key: string]: any }) => { [key: string]: any }; - getContext: () => { [key: string]: any }; - toKey: () => string; - } - - declare export type FetchResult< - C = { [key: string]: any }, - E = { [key: string]: any }, - > = ExecutionResult & { extension?: E, context?: C }; - - declare type NextLink = (operation: Operation) => Observable>; - - declare type RequestHandler = ( - operation: Operation, - forward?: NextLink, - ) => Observable> | null; - - declare class Observable { - subscribe( - observerOrNext: ((value: T) => void) | ZenObservableObserver, - error?: (error: any) => void, - complete?: () => void, - ): ZenObservableSubscription; - - forEach(fn: (value: T) => void): Promise; - - map(fn: (value: T) => R): Observable; - - filter(fn: (value: T) => boolean): Observable; - - reduce( - fn: (previousValue: R | T, currentValue: T) => R | T, - initialValue?: R | T, - ): Observable; - - flatMap(fn: (value: T) => ZenObservableObservableLike): Observable; - - from( - observable: Observable | ZenObservableObservableLike | Array, - ): Observable; - - of(...args: Array): Observable; - } - - declare interface Observer { - start?: (subscription: SubscriptionLINK) => any; - next?: (value: T) => void; - error?: (errorValue: any) => void; - complete?: () => void; - } - - declare interface SubscriptionLINK { - closed: boolean; - unsubscribe(): void; - } - - declare interface ZenObservableSubscriptionObserver { - closed: boolean; - next(value: T): void; - error(errorValue: any): void; - complete(): void; - } - - declare interface ZenObservableSubscription { - closed: boolean; - unsubscribe(): void; - } - - declare interface ZenObservableObserver { - start?: (subscription: ZenObservableSubscription) => any; - next?: (value: T) => void; - error?: (errorValue: any) => void; - complete?: () => void; - } - - declare type ZenObservableSubscriber = ( - observer: ZenObservableSubscriptionObserver, - ) => void | (() => void) | SubscriptionLINK; - - declare interface ZenObservableObservableLike { - subscribe?: ZenObservableSubscriber; - } - /* apollo-link types */ - - /* apollo-cache types */ - declare export class ApolloCache { - read(query: CacheReadOptions): T | null; - write(write: CacheWriteOptions): void; - diff(query: CacheDiffOptions): CacheDiffResult; - watch(watch: CacheWatchOptions): () => void; - evict(query: CacheEvictOptions): CacheEvictionResult; - reset(): Promise; - - restore(serializedState: TSerialized): ApolloCache; - extract(optimistic?: boolean): TSerialized; - - removeOptimistic(id: string): void; - - performTransaction(transaction: Transaction): void; - recordOptimisticTransaction( - transaction: Transaction, - id: string, - ): void; - - transformDocument(document: DocumentNode): DocumentNode; - transformForLink(document: DocumentNode): DocumentNode; - - readQuery( - options: DataProxyReadQueryOptions, - optimistic?: boolean, - ): QueryType | null; - readFragment( - options: DataProxyReadFragmentOptions, - optimistic?: boolean, - ): FragmentType | null; - writeQuery(options: CacheWriteQueryOptions): void; - writeFragment(options: CacheWriteFragmentOptions): void; - writeData(options: CacheWriteDataOptions): void; - } - - declare type Transaction = (c: ApolloCache) => void; - - declare type CacheWatchCallback = (newData: any) => void; - - declare interface CacheEvictionResult { - success: boolean; - } - - declare interface CacheReadOptions extends DataProxyReadQueryOptions { - rootId?: string; - previousResult?: any; - optimistic: boolean; - } - - declare interface CacheWriteOptions extends DataProxyReadQueryOptions { - dataId: string; - result: any; - } - - declare interface CacheDiffOptions extends CacheReadOptions { - returnPartialData?: boolean; - } - - declare interface CacheWatchOptions extends CacheReadOptions { - callback: CacheWatchCallback; - } - - declare interface CacheEvictOptions extends DataProxyReadQueryOptions { - rootId?: string; - } - - declare type CacheDiffResult = DataProxyDiffResult; - declare type CacheWriteQueryOptions = DataProxyWriteQueryOptions; - declare type CacheWriteFragmentOptions = DataProxyWriteFragmentOptions; - declare type CacheWriteDataOptions = DataProxyWriteDataOptions; - declare type CacheReadFragmentOptions = DataProxyReadFragmentOptions; - - declare interface DataProxyReadQueryOptions { - query: DocumentNode; - variables?: any; - } - - declare interface DataProxyReadFragmentOptions { - id: string; - fragment: DocumentNode; - fragmentName?: string; - variables?: any; - } - - declare interface DataProxyWriteQueryOptions { - data: any; - query: DocumentNode; - variables?: any; - } - - declare interface DataProxyWriteFragmentOptions { - data: any; - id: string; - fragment: DocumentNode; - fragmentName?: string; - variables?: any; - } - - declare interface DataProxyWriteDataOptions { - data: any; - id?: string; - } - - declare type DataProxyDiffResult = { - result?: T, - complete?: boolean, - }; - - declare interface DataProxy { - readQuery( - options: DataProxyReadQueryOptions, - optimistic?: boolean, - ): QueryType | null; - readFragment( - options: DataProxyReadFragmentOptions, - optimistic?: boolean, - ): FragmentType | null; - writeQuery(options: DataProxyWriteQueryOptions): void; - writeFragment(options: DataProxyWriteFragmentOptions): void; - writeData(options: DataProxyWriteDataOptions): void; - } - /* End apollo-cache types */ -} diff --git a/flow-typed/npm/apollo-link-error_vx.x.x.js b/flow-typed/npm/apollo-link-error_vx.x.x.js deleted file mode 100644 index 9cc188a53..000000000 --- a/flow-typed/npm/apollo-link-error_vx.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: 8eb94c42b447e0414ad529b248209cdf -// flow-typed version: <>/apollo-link-error_v^1.1.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo-link-error' - * - * 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 'apollo-link-error' { - 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 'apollo-link-error/lib/bundle.umd' { - declare module.exports: any; -} - -declare module 'apollo-link-error/lib/index' { - declare module.exports: any; -} - -declare module 'apollo-link-error/rollup.config' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo-link-error/lib/bundle.umd.js' { - declare module.exports: $Exports<'apollo-link-error/lib/bundle.umd'>; -} -declare module 'apollo-link-error/lib/index.js' { - declare module.exports: $Exports<'apollo-link-error/lib/index'>; -} -declare module 'apollo-link-error/rollup.config.js' { - declare module.exports: $Exports<'apollo-link-error/rollup.config'>; -} diff --git a/flow-typed/npm/apollo-link-http_v1.2.x.js b/flow-typed/npm/apollo-link-http_v1.2.x.js deleted file mode 100644 index 2075063da..000000000 --- a/flow-typed/npm/apollo-link-http_v1.2.x.js +++ /dev/null @@ -1,71 +0,0 @@ -// flow-typed signature: 4ab386f3c584d85b158908552aadde04 -// flow-typed version: 9b6155aff6/apollo-link-http_v1.2.x/flow_>=v0.56.x - -// @flow - -declare module 'apollo-link-http' { - declare type $Record = { [key: $Enum]: U }; - - declare type NextLink = (operation: Operation) => any; - - declare export type RequestHandler = ( - operation: Operation, - forward?: NextLink, - ) => any; - - declare export class ApolloLink { - constructor(request?: RequestHandler): void; - - static empty: ApolloLink; - static from(links: ApolloLink[]): ApolloLink; - static execute(link: ApolloLink, operation: GraphQLRequest): any; - - split( - test: (op: Operation) => boolean, - left: ApolloLink | RequestHandler, - right: ApolloLink | RequestHandler, - ): ApolloLink; - - concat(next: ApolloLink | RequestHandler): ApolloLink; - - request(operation: Operation, forward?: NextLink): any; - } - - declare export interface GraphQLRequest { - query: any; - variables?: $Record; - operationName?: string; - context?: $Record; - extensions?: $Record; - } - - declare export interface Operation { - query: any; - variables: $Record; - operationName: string; - extensions: $Record; - setContext: (context: $Record) => $Record; - getContext: () => $Record; - toKey: () => string; - } - - declare export interface UriFunction { - (operation: Operation): string; - } - - declare export type FetchOptions = { - uri?: string | UriFunction, - fetch?: any, - includeExtensions?: boolean, - credentials?: string, - headers?: any, - fetchOptions?: any, - }; - - declare export function createHttpLink(opts: FetchOptions): ApolloLink; - - declare export class HttpLink { - requester: RequestHandler; - constructor(opts: FetchOptions): HttpLink; - } -} diff --git a/flow-typed/npm/apollo-link-logger_vx.x.x.js b/flow-typed/npm/apollo-link-logger_vx.x.x.js deleted file mode 100644 index 213b83650..000000000 --- a/flow-typed/npm/apollo-link-logger_vx.x.x.js +++ /dev/null @@ -1,103 +0,0 @@ -// flow-typed signature: a8971ead399bafc880fd17c5eb3d898a -// flow-typed version: <>/apollo-link-logger_v^1.2.3/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo-link-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 'apollo-link-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 'apollo-link-logger/es/__tests__/formatMessage.test' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/es/__tests__/logging.test' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/es/formatMessage' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/es/index' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/es/logging' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/lib/__tests__/formatMessage.test' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/lib/__tests__/logging.test' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/lib/formatMessage' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/lib/index' { - declare module.exports: any; -} - -declare module 'apollo-link-logger/lib/logging' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo-link-logger/es/__tests__/formatMessage.test.js' { - declare module.exports: $Exports< - 'apollo-link-logger/es/__tests__/formatMessage.test', - >; -} -declare module 'apollo-link-logger/es/__tests__/logging.test.js' { - declare module.exports: $Exports< - 'apollo-link-logger/es/__tests__/logging.test', - >; -} -declare module 'apollo-link-logger/es/formatMessage.js' { - declare module.exports: $Exports<'apollo-link-logger/es/formatMessage'>; -} -declare module 'apollo-link-logger/es/index.js' { - declare module.exports: $Exports<'apollo-link-logger/es/index'>; -} -declare module 'apollo-link-logger/es/logging.js' { - declare module.exports: $Exports<'apollo-link-logger/es/logging'>; -} -declare module 'apollo-link-logger/lib/__tests__/formatMessage.test.js' { - declare module.exports: $Exports< - 'apollo-link-logger/lib/__tests__/formatMessage.test', - >; -} -declare module 'apollo-link-logger/lib/__tests__/logging.test.js' { - declare module.exports: $Exports< - 'apollo-link-logger/lib/__tests__/logging.test', - >; -} -declare module 'apollo-link-logger/lib/formatMessage.js' { - declare module.exports: $Exports<'apollo-link-logger/lib/formatMessage'>; -} -declare module 'apollo-link-logger/lib/index.js' { - declare module.exports: $Exports<'apollo-link-logger/lib/index'>; -} -declare module 'apollo-link-logger/lib/logging.js' { - declare module.exports: $Exports<'apollo-link-logger/lib/logging'>; -} diff --git a/flow-typed/npm/apollo-link-schema_vx.x.x.js b/flow-typed/npm/apollo-link-schema_vx.x.x.js deleted file mode 100644 index 688db675a..000000000 --- a/flow-typed/npm/apollo-link-schema_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: 30adb1efc3537b37cb24db542c35d4f0 -// flow-typed version: <>/apollo-link-schema_v^1.1.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo-link-schema' - * - * 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 'apollo-link-schema' { - 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 'apollo-link-schema/lib/bundle.umd' { - declare module.exports: any; -} - -declare module 'apollo-link-schema/lib/index' { - declare module.exports: any; -} - -declare module 'apollo-link-schema/lib/schemaLink' { - declare module.exports: any; -} - -declare module 'apollo-link-schema/rollup.config' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo-link-schema/lib/bundle.umd.js' { - declare module.exports: $Exports<'apollo-link-schema/lib/bundle.umd'>; -} -declare module 'apollo-link-schema/lib/index.js' { - declare module.exports: $Exports<'apollo-link-schema/lib/index'>; -} -declare module 'apollo-link-schema/lib/schemaLink.js' { - declare module.exports: $Exports<'apollo-link-schema/lib/schemaLink'>; -} -declare module 'apollo-link-schema/rollup.config.js' { - declare module.exports: $Exports<'apollo-link-schema/rollup.config'>; -} diff --git a/flow-typed/npm/apollo-link-state_vx.x.x.js b/flow-typed/npm/apollo-link-state_vx.x.x.js deleted file mode 100644 index 91bcd2115..000000000 --- a/flow-typed/npm/apollo-link-state_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: ed970e499533b89ff5a3bca6eea9f662 -// flow-typed version: <>/apollo-link-state_v^0.4.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo-link-state' - * - * 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 'apollo-link-state' { - 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 'apollo-link-state/lib/bundle.umd' { - declare module.exports: any; -} - -declare module 'apollo-link-state/lib/index' { - declare module.exports: any; -} - -declare module 'apollo-link-state/lib/utils' { - declare module.exports: any; -} - -declare module 'apollo-link-state/rollup.config' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo-link-state/lib/bundle.umd.js' { - declare module.exports: $Exports<'apollo-link-state/lib/bundle.umd'>; -} -declare module 'apollo-link-state/lib/index.js' { - declare module.exports: $Exports<'apollo-link-state/lib/index'>; -} -declare module 'apollo-link-state/lib/utils.js' { - declare module.exports: $Exports<'apollo-link-state/lib/utils'>; -} -declare module 'apollo-link-state/rollup.config.js' { - declare module.exports: $Exports<'apollo-link-state/rollup.config'>; -} diff --git a/flow-typed/npm/apollo-link_vx.x.x.js b/flow-typed/npm/apollo-link_vx.x.x.js deleted file mode 100644 index 76a2c8abe..000000000 --- a/flow-typed/npm/apollo-link_vx.x.x.js +++ /dev/null @@ -1,95 +0,0 @@ -// flow-typed signature: 9d79a09d6fe1d51aff442a1299326289 -// flow-typed version: <>/apollo-link_v^1.2.3/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo-link' - * - * 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 'apollo-link' { - 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 'apollo-link/lib/bundle.umd' { - declare module.exports: any; -} - -declare module 'apollo-link/lib/index' { - declare module.exports: any; -} - -declare module 'apollo-link/lib/link' { - declare module.exports: any; -} - -declare module 'apollo-link/lib/linkUtils' { - declare module.exports: any; -} - -declare module 'apollo-link/lib/test-utils' { - declare module.exports: any; -} - -declare module 'apollo-link/lib/test-utils/mockLink' { - declare module.exports: any; -} - -declare module 'apollo-link/lib/test-utils/setContext' { - declare module.exports: any; -} - -declare module 'apollo-link/lib/test-utils/testingUtils' { - declare module.exports: any; -} - -declare module 'apollo-link/lib/types' { - declare module.exports: any; -} - -declare module 'apollo-link/rollup.config' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo-link/lib/bundle.umd.js' { - declare module.exports: $Exports<'apollo-link/lib/bundle.umd'>; -} -declare module 'apollo-link/lib/index.js' { - declare module.exports: $Exports<'apollo-link/lib/index'>; -} -declare module 'apollo-link/lib/link.js' { - declare module.exports: $Exports<'apollo-link/lib/link'>; -} -declare module 'apollo-link/lib/linkUtils.js' { - declare module.exports: $Exports<'apollo-link/lib/linkUtils'>; -} -declare module 'apollo-link/lib/test-utils.js' { - declare module.exports: $Exports<'apollo-link/lib/test-utils'>; -} -declare module 'apollo-link/lib/test-utils/mockLink.js' { - declare module.exports: $Exports<'apollo-link/lib/test-utils/mockLink'>; -} -declare module 'apollo-link/lib/test-utils/setContext.js' { - declare module.exports: $Exports<'apollo-link/lib/test-utils/setContext'>; -} -declare module 'apollo-link/lib/test-utils/testingUtils.js' { - declare module.exports: $Exports<'apollo-link/lib/test-utils/testingUtils'>; -} -declare module 'apollo-link/lib/types.js' { - declare module.exports: $Exports<'apollo-link/lib/types'>; -} -declare module 'apollo-link/rollup.config.js' { - declare module.exports: $Exports<'apollo-link/rollup.config'>; -} diff --git a/flow-typed/npm/apollo-server-express_vx.x.x.js b/flow-typed/npm/apollo-server-express_vx.x.x.js deleted file mode 100644 index 1f1e8cf9a..000000000 --- a/flow-typed/npm/apollo-server-express_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: b7423c2608bcd6971b2e5eaf66c3e2a0 -// flow-typed version: <>/apollo-server-express_v^2.1.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo-server-express' - * - * 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 'apollo-server-express' { - 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 'apollo-server-express/dist/ApolloServer' { - declare module.exports: any; -} - -declare module 'apollo-server-express/dist/connectApollo' { - declare module.exports: any; -} - -declare module 'apollo-server-express/dist/expressApollo' { - declare module.exports: any; -} - -declare module 'apollo-server-express/dist/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo-server-express/dist/ApolloServer.js' { - declare module.exports: $Exports<'apollo-server-express/dist/ApolloServer'>; -} -declare module 'apollo-server-express/dist/connectApollo.js' { - declare module.exports: $Exports<'apollo-server-express/dist/connectApollo'>; -} -declare module 'apollo-server-express/dist/expressApollo.js' { - declare module.exports: $Exports<'apollo-server-express/dist/expressApollo'>; -} -declare module 'apollo-server-express/dist/index.js' { - declare module.exports: $Exports<'apollo-server-express/dist/index'>; -} diff --git a/flow-typed/npm/apollo-server_vx.x.x.js b/flow-typed/npm/apollo-server_vx.x.x.js deleted file mode 100644 index e221e36f8..000000000 --- a/flow-typed/npm/apollo-server_vx.x.x.js +++ /dev/null @@ -1,39 +0,0 @@ -// flow-typed signature: 960df8061fbaa416ba8c4d96cd04890f -// flow-typed version: <>/apollo-server_v^2.1.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo-server' - * - * 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 'apollo-server' { - 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 'apollo-server/dist/exports' { - declare module.exports: any; -} - -declare module 'apollo-server/dist/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo-server/dist/exports.js' { - declare module.exports: $Exports<'apollo-server/dist/exports'>; -} -declare module 'apollo-server/dist/index.js' { - declare module.exports: $Exports<'apollo-server/dist/index'>; -} diff --git a/flow-typed/npm/apollo_vx.x.x.js b/flow-typed/npm/apollo_vx.x.x.js deleted file mode 100644 index 3fb71e952..000000000 --- a/flow-typed/npm/apollo_vx.x.x.js +++ /dev/null @@ -1,116 +0,0 @@ -// flow-typed signature: 190e1f61726753dcfab296729daa90fc -// flow-typed version: <>/apollo_v^2.4.4/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'apollo' - * - * 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 'apollo' { - 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 'apollo/lib/Command' { - declare module.exports: any; -} - -declare module 'apollo/lib/commands/client/check' { - declare module.exports: any; -} - -declare module 'apollo/lib/commands/client/codegen' { - declare module.exports: any; -} - -declare module 'apollo/lib/commands/client/extract' { - declare module.exports: any; -} - -declare module 'apollo/lib/commands/client/push' { - declare module.exports: any; -} - -declare module 'apollo/lib/commands/service/check' { - declare module.exports: any; -} - -declare module 'apollo/lib/commands/service/download' { - declare module.exports: any; -} - -declare module 'apollo/lib/commands/service/info' { - declare module.exports: any; -} - -declare module 'apollo/lib/commands/service/push' { - declare module.exports: any; -} - -declare module 'apollo/lib/generate' { - declare module.exports: any; -} - -declare module 'apollo/lib/git' { - declare module.exports: any; -} - -declare module 'apollo/lib/index' { - declare module.exports: any; -} - -declare module 'apollo/lib/OclifLoadingHandler' { - declare module.exports: any; -} - -// Filename aliases -declare module 'apollo/lib/Command.js' { - declare module.exports: $Exports<'apollo/lib/Command'>; -} -declare module 'apollo/lib/commands/client/check.js' { - declare module.exports: $Exports<'apollo/lib/commands/client/check'>; -} -declare module 'apollo/lib/commands/client/codegen.js' { - declare module.exports: $Exports<'apollo/lib/commands/client/codegen'>; -} -declare module 'apollo/lib/commands/client/extract.js' { - declare module.exports: $Exports<'apollo/lib/commands/client/extract'>; -} -declare module 'apollo/lib/commands/client/push.js' { - declare module.exports: $Exports<'apollo/lib/commands/client/push'>; -} -declare module 'apollo/lib/commands/service/check.js' { - declare module.exports: $Exports<'apollo/lib/commands/service/check'>; -} -declare module 'apollo/lib/commands/service/download.js' { - declare module.exports: $Exports<'apollo/lib/commands/service/download'>; -} -declare module 'apollo/lib/commands/service/info.js' { - declare module.exports: $Exports<'apollo/lib/commands/service/info'>; -} -declare module 'apollo/lib/commands/service/push.js' { - declare module.exports: $Exports<'apollo/lib/commands/service/push'>; -} -declare module 'apollo/lib/generate.js' { - declare module.exports: $Exports<'apollo/lib/generate'>; -} -declare module 'apollo/lib/git.js' { - declare module.exports: $Exports<'apollo/lib/git'>; -} -declare module 'apollo/lib/index.js' { - declare module.exports: $Exports<'apollo/lib/index'>; -} -declare module 'apollo/lib/OclifLoadingHandler.js' { - declare module.exports: $Exports<'apollo/lib/OclifLoadingHandler'>; -} diff --git a/flow-typed/npm/autoprefixer_vx.x.x.js b/flow-typed/npm/autoprefixer_vx.x.x.js deleted file mode 100644 index 42bf41db1..000000000 --- a/flow-typed/npm/autoprefixer_vx.x.x.js +++ /dev/null @@ -1,514 +0,0 @@ -// flow-typed signature: 1a0e89419edad1d0679059c0d72e40a1 -// flow-typed version: <>/autoprefixer_v^9.1.5/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'autoprefixer' - * - * 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 'autoprefixer' { - 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 'autoprefixer/data/prefixes' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/at-rule' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/autoprefixer' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/brackets' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/browsers' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/declaration' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/align-content' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/align-items' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/align-self' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/animation' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/appearance' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/background-clip' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/background-size' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/block-logical' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/border-image' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/border-radius' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/break-props' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/color-adjust' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/cross-fade' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/display-flex' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/display-grid' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/filter-value' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/filter' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/flex-basis' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/flex-direction' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/flex-flow' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/flex-grow' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/flex-shrink' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/flex-spec' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/flex-wrap' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/flex' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/fullscreen' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/gradient' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-area' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-column-align' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-end' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-row-align' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-row-column' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-rows-columns' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-start' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-template-areas' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-template' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/grid-utils' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/image-rendering' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/image-set' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/inline-logical' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/intrinsic' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/justify-content' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/mask-border' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/order' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/overscroll-behavior' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/pixelated' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/placeholder' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/text-decoration' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/text-emphasis-position' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/transform-decl' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/hacks/writing-mode' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/info' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/old-selector' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/old-value' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/prefixer' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/prefixes' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/processor' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/resolution' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/selector' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/supports' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/transition' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/utils' { - declare module.exports: any; -} - -declare module 'autoprefixer/lib/value' { - declare module.exports: any; -} - -// Filename aliases -declare module 'autoprefixer/data/prefixes.js' { - declare module.exports: $Exports<'autoprefixer/data/prefixes'>; -} -declare module 'autoprefixer/lib/at-rule.js' { - declare module.exports: $Exports<'autoprefixer/lib/at-rule'>; -} -declare module 'autoprefixer/lib/autoprefixer.js' { - declare module.exports: $Exports<'autoprefixer/lib/autoprefixer'>; -} -declare module 'autoprefixer/lib/brackets.js' { - declare module.exports: $Exports<'autoprefixer/lib/brackets'>; -} -declare module 'autoprefixer/lib/browsers.js' { - declare module.exports: $Exports<'autoprefixer/lib/browsers'>; -} -declare module 'autoprefixer/lib/declaration.js' { - declare module.exports: $Exports<'autoprefixer/lib/declaration'>; -} -declare module 'autoprefixer/lib/hacks/align-content.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/align-content'>; -} -declare module 'autoprefixer/lib/hacks/align-items.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/align-items'>; -} -declare module 'autoprefixer/lib/hacks/align-self.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/align-self'>; -} -declare module 'autoprefixer/lib/hacks/animation.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/animation'>; -} -declare module 'autoprefixer/lib/hacks/appearance.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/appearance'>; -} -declare module 'autoprefixer/lib/hacks/background-clip.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/background-clip'>; -} -declare module 'autoprefixer/lib/hacks/background-size.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/background-size'>; -} -declare module 'autoprefixer/lib/hacks/block-logical.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/block-logical'>; -} -declare module 'autoprefixer/lib/hacks/border-image.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/border-image'>; -} -declare module 'autoprefixer/lib/hacks/border-radius.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/border-radius'>; -} -declare module 'autoprefixer/lib/hacks/break-props.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/break-props'>; -} -declare module 'autoprefixer/lib/hacks/color-adjust.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/color-adjust'>; -} -declare module 'autoprefixer/lib/hacks/cross-fade.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/cross-fade'>; -} -declare module 'autoprefixer/lib/hacks/display-flex.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/display-flex'>; -} -declare module 'autoprefixer/lib/hacks/display-grid.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/display-grid'>; -} -declare module 'autoprefixer/lib/hacks/filter-value.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/filter-value'>; -} -declare module 'autoprefixer/lib/hacks/filter.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/filter'>; -} -declare module 'autoprefixer/lib/hacks/flex-basis.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-basis'>; -} -declare module 'autoprefixer/lib/hacks/flex-direction.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-direction'>; -} -declare module 'autoprefixer/lib/hacks/flex-flow.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-flow'>; -} -declare module 'autoprefixer/lib/hacks/flex-grow.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-grow'>; -} -declare module 'autoprefixer/lib/hacks/flex-shrink.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-shrink'>; -} -declare module 'autoprefixer/lib/hacks/flex-spec.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-spec'>; -} -declare module 'autoprefixer/lib/hacks/flex-wrap.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/flex-wrap'>; -} -declare module 'autoprefixer/lib/hacks/flex.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/flex'>; -} -declare module 'autoprefixer/lib/hacks/fullscreen.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/fullscreen'>; -} -declare module 'autoprefixer/lib/hacks/gradient.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/gradient'>; -} -declare module 'autoprefixer/lib/hacks/grid-area.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-area'>; -} -declare module 'autoprefixer/lib/hacks/grid-column-align.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-column-align'>; -} -declare module 'autoprefixer/lib/hacks/grid-end.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-end'>; -} -declare module 'autoprefixer/lib/hacks/grid-row-align.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-row-align'>; -} -declare module 'autoprefixer/lib/hacks/grid-row-column.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-row-column'>; -} -declare module 'autoprefixer/lib/hacks/grid-rows-columns.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-rows-columns'>; -} -declare module 'autoprefixer/lib/hacks/grid-start.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-start'>; -} -declare module 'autoprefixer/lib/hacks/grid-template-areas.js' { - declare module.exports: $Exports< - 'autoprefixer/lib/hacks/grid-template-areas', - >; -} -declare module 'autoprefixer/lib/hacks/grid-template.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-template'>; -} -declare module 'autoprefixer/lib/hacks/grid-utils.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/grid-utils'>; -} -declare module 'autoprefixer/lib/hacks/image-rendering.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/image-rendering'>; -} -declare module 'autoprefixer/lib/hacks/image-set.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/image-set'>; -} -declare module 'autoprefixer/lib/hacks/inline-logical.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/inline-logical'>; -} -declare module 'autoprefixer/lib/hacks/intrinsic.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/intrinsic'>; -} -declare module 'autoprefixer/lib/hacks/justify-content.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/justify-content'>; -} -declare module 'autoprefixer/lib/hacks/mask-border.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/mask-border'>; -} -declare module 'autoprefixer/lib/hacks/order.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/order'>; -} -declare module 'autoprefixer/lib/hacks/overscroll-behavior.js' { - declare module.exports: $Exports< - 'autoprefixer/lib/hacks/overscroll-behavior', - >; -} -declare module 'autoprefixer/lib/hacks/pixelated.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/pixelated'>; -} -declare module 'autoprefixer/lib/hacks/placeholder.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/placeholder'>; -} -declare module 'autoprefixer/lib/hacks/text-decoration.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/text-decoration'>; -} -declare module 'autoprefixer/lib/hacks/text-emphasis-position.js' { - declare module.exports: $Exports< - 'autoprefixer/lib/hacks/text-emphasis-position', - >; -} -declare module 'autoprefixer/lib/hacks/transform-decl.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/transform-decl'>; -} -declare module 'autoprefixer/lib/hacks/writing-mode.js' { - declare module.exports: $Exports<'autoprefixer/lib/hacks/writing-mode'>; -} -declare module 'autoprefixer/lib/info.js' { - declare module.exports: $Exports<'autoprefixer/lib/info'>; -} -declare module 'autoprefixer/lib/old-selector.js' { - declare module.exports: $Exports<'autoprefixer/lib/old-selector'>; -} -declare module 'autoprefixer/lib/old-value.js' { - declare module.exports: $Exports<'autoprefixer/lib/old-value'>; -} -declare module 'autoprefixer/lib/prefixer.js' { - declare module.exports: $Exports<'autoprefixer/lib/prefixer'>; -} -declare module 'autoprefixer/lib/prefixes.js' { - declare module.exports: $Exports<'autoprefixer/lib/prefixes'>; -} -declare module 'autoprefixer/lib/processor.js' { - declare module.exports: $Exports<'autoprefixer/lib/processor'>; -} -declare module 'autoprefixer/lib/resolution.js' { - declare module.exports: $Exports<'autoprefixer/lib/resolution'>; -} -declare module 'autoprefixer/lib/selector.js' { - declare module.exports: $Exports<'autoprefixer/lib/selector'>; -} -declare module 'autoprefixer/lib/supports.js' { - declare module.exports: $Exports<'autoprefixer/lib/supports'>; -} -declare module 'autoprefixer/lib/transition.js' { - declare module.exports: $Exports<'autoprefixer/lib/transition'>; -} -declare module 'autoprefixer/lib/utils.js' { - declare module.exports: $Exports<'autoprefixer/lib/utils'>; -} -declare module 'autoprefixer/lib/value.js' { - declare module.exports: $Exports<'autoprefixer/lib/value'>; -} diff --git a/flow-typed/npm/babel-core_vx.x.x.js b/flow-typed/npm/babel-core_vx.x.x.js deleted file mode 100644 index df82436f5..000000000 --- a/flow-typed/npm/babel-core_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 3852c7fdc189c8b0f361ad03d4368c5b -// flow-typed version: <>/babel-core_v^7.0.0-bridge.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-core' - * - * 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-core' { - 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 'babel-core/index' { - declare module.exports: $Exports<'babel-core'>; -} -declare module 'babel-core/index.js' { - declare module.exports: $Exports<'babel-core'>; -} 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 2f119e659..000000000 --- a/flow-typed/npm/babel-eslint_vx.x.x.js +++ /dev/null @@ -1,133 +0,0 @@ -// flow-typed signature: 4c2b33d645dac8e3d15a60b52cd62a4a -// flow-typed version: <>/babel-eslint_v^9.0.0/flow_v0.92.1 - -/** - * 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 3d565ef38..000000000 --- a/flow-typed/npm/babel-jest_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 26efd206d4e4853aeb77333fe81dc1e0 -// flow-typed version: <>/babel-jest_v^23.6.0/flow_v0.92.1 - -/** - * 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-loader_vx.x.x.js b/flow-typed/npm/babel-loader_vx.x.x.js deleted file mode 100644 index e7310afb1..000000000 --- a/flow-typed/npm/babel-loader_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: efb1e4d086ec63a3e8092f47e308b22e -// flow-typed version: <>/babel-loader_v^8.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-loader' - * - * 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-loader' { - 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-loader/lib/cache' { - declare module.exports: any; -} - -declare module 'babel-loader/lib/Error' { - declare module.exports: any; -} - -declare module 'babel-loader/lib/index' { - declare module.exports: any; -} - -declare module 'babel-loader/lib/transform' { - declare module.exports: any; -} - -// Filename aliases -declare module 'babel-loader/lib/cache.js' { - declare module.exports: $Exports<'babel-loader/lib/cache'>; -} -declare module 'babel-loader/lib/Error.js' { - declare module.exports: $Exports<'babel-loader/lib/Error'>; -} -declare module 'babel-loader/lib/index.js' { - declare module.exports: $Exports<'babel-loader/lib/index'>; -} -declare module 'babel-loader/lib/transform.js' { - declare module.exports: $Exports<'babel-loader/lib/transform'>; -} diff --git a/flow-typed/npm/babel-plugin-transform-react-remove-prop-types_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-react-remove-prop-types_vx.x.x.js deleted file mode 100644 index bee2388ac..000000000 --- a/flow-typed/npm/babel-plugin-transform-react-remove-prop-types_vx.x.x.js +++ /dev/null @@ -1,97 +0,0 @@ -// flow-typed signature: d46a78ba0cbd5e1a40995da92acd4533 -// flow-typed version: <>/babel-plugin-transform-react-remove-prop-types_v^0.4.18/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-plugin-transform-react-remove-prop-types' - * - * 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-plugin-transform-react-remove-prop-types' { - 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-plugin-transform-react-remove-prop-types/lib/index' { - declare module.exports: any; -} - -declare module 'babel-plugin-transform-react-remove-prop-types/lib/isAnnotatedForRemoval' { - declare module.exports: any; -} - -declare module 'babel-plugin-transform-react-remove-prop-types/lib/isStatelessComponent' { - declare module.exports: any; -} - -declare module 'babel-plugin-transform-react-remove-prop-types/lib/remove' { - declare module.exports: any; -} - -declare module 'babel-plugin-transform-react-remove-prop-types/src/index' { - declare module.exports: any; -} - -declare module 'babel-plugin-transform-react-remove-prop-types/src/isAnnotatedForRemoval' { - declare module.exports: any; -} - -declare module 'babel-plugin-transform-react-remove-prop-types/src/isStatelessComponent' { - declare module.exports: any; -} - -declare module 'babel-plugin-transform-react-remove-prop-types/src/remove' { - declare module.exports: any; -} - -// Filename aliases -declare module 'babel-plugin-transform-react-remove-prop-types/lib/index.js' { - declare module.exports: $Exports< - 'babel-plugin-transform-react-remove-prop-types/lib/index', - >; -} -declare module 'babel-plugin-transform-react-remove-prop-types/lib/isAnnotatedForRemoval.js' { - declare module.exports: $Exports< - 'babel-plugin-transform-react-remove-prop-types/lib/isAnnotatedForRemoval', - >; -} -declare module 'babel-plugin-transform-react-remove-prop-types/lib/isStatelessComponent.js' { - declare module.exports: $Exports< - 'babel-plugin-transform-react-remove-prop-types/lib/isStatelessComponent', - >; -} -declare module 'babel-plugin-transform-react-remove-prop-types/lib/remove.js' { - declare module.exports: $Exports< - 'babel-plugin-transform-react-remove-prop-types/lib/remove', - >; -} -declare module 'babel-plugin-transform-react-remove-prop-types/src/index.js' { - declare module.exports: $Exports< - 'babel-plugin-transform-react-remove-prop-types/src/index', - >; -} -declare module 'babel-plugin-transform-react-remove-prop-types/src/isAnnotatedForRemoval.js' { - declare module.exports: $Exports< - 'babel-plugin-transform-react-remove-prop-types/src/isAnnotatedForRemoval', - >; -} -declare module 'babel-plugin-transform-react-remove-prop-types/src/isStatelessComponent.js' { - declare module.exports: $Exports< - 'babel-plugin-transform-react-remove-prop-types/src/isStatelessComponent', - >; -} -declare module 'babel-plugin-transform-react-remove-prop-types/src/remove.js' { - declare module.exports: $Exports< - 'babel-plugin-transform-react-remove-prop-types/src/remove', - >; -} diff --git a/flow-typed/npm/body-parser_v1.x.x.js b/flow-typed/npm/body-parser_v1.x.x.js deleted file mode 100644 index 00797b4b6..000000000 --- a/flow-typed/npm/body-parser_v1.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: bac0ee66e0653772d037dc47b51a5e1f -// flow-typed version: da30fe6876/body-parser_v1.x.x/flow_>=v0.25.x - -import type { Middleware, $Request, $Response } from 'express'; - -declare type bodyParser$Options = { - inflate?: boolean, - limit?: number | string, - type?: string | string[] | ((req: $Request) => any), - verify?: ( - req: $Request, - res: $Response, - buf: Buffer, - encoding: string, - ) => void, -}; - -declare type bodyParser$OptionsText = bodyParser$Options & { - reviver?: (key: string, value: any) => any, - strict?: boolean, -}; - -declare type bodyParser$OptionsJson = bodyParser$Options & { - reviver?: (key: string, value: any) => any, - strict?: boolean, -}; - -declare type bodyParser$OptionsUrlencoded = bodyParser$Options & { - extended?: boolean, - parameterLimit?: number, -}; - -declare module 'body-parser' { - declare type Options = bodyParser$Options; - declare type OptionsText = bodyParser$OptionsText; - declare type OptionsJson = bodyParser$OptionsJson; - declare type OptionsUrlencoded = bodyParser$OptionsUrlencoded; - - declare function json(options?: OptionsJson): Middleware; - - declare function raw(options?: Options): Middleware; - - declare function text(options?: OptionsText): Middleware; - - declare function urlencoded(options?: OptionsUrlencoded): Middleware; -} diff --git a/flow-typed/npm/browser-sync_vx.x.x.js b/flow-typed/npm/browser-sync_vx.x.x.js deleted file mode 100644 index fe15f759a..000000000 --- a/flow-typed/npm/browser-sync_vx.x.x.js +++ /dev/null @@ -1,476 +0,0 @@ -// flow-typed signature: 50f9ccac954a4b47a5dbfd86d901d925 -// flow-typed version: <>/browser-sync_v^2.24.7/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'browser-sync' - * - * 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 'browser-sync' { - 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 'browser-sync/changelog' { - declare module.exports: any; -} - -declare module 'browser-sync/client/dist/index' { - declare module.exports: any; -} - -declare module 'browser-sync/client/dist/index.min' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/args' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/async-tasks' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/async' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/bin' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/browser-sync' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/cli-info' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/cli-options' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/command.init' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/command.recipe' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/command.reload' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/command.start' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/addCwdToWatchOptions' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/addDefaultIgnorePatterns' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/addToFilesOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/appendServerDirectoryOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/appendServerIndexOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/handleExtensionsOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/handleFilesOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/handleGhostModeOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/handlePortsOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/handleProxyOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/cli/transforms/handleServerOption' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/client' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/config' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/connect-utils' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/default-config' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/file-event-handler' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/file-utils' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/file-watcher' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/hooks' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/http-protocol' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/index' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/internal-events' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/lodash.custom' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/logger' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/options' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/plugins' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/public/exit' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/public/init' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/public/notify' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/public/pause' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/public/public-utils' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/public/reload' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/public/resume' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/public/stream' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/server/index' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/server/proxy-server' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/server/proxy-utils' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/server/snippet-server' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/server/static-server' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/server/utils' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/snippet' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/sockets' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/tunnel' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/types' { - declare module.exports: any; -} - -declare module 'browser-sync/dist/utils' { - declare module.exports: any; -} - -declare module 'browser-sync/templates/cli-template' { - declare module.exports: any; -} - -// Filename aliases -declare module 'browser-sync/changelog.js' { - declare module.exports: $Exports<'browser-sync/changelog'>; -} -declare module 'browser-sync/client/dist/index.js' { - declare module.exports: $Exports<'browser-sync/client/dist/index'>; -} -declare module 'browser-sync/client/dist/index.min.js' { - declare module.exports: $Exports<'browser-sync/client/dist/index.min'>; -} -declare module 'browser-sync/dist/args.js' { - declare module.exports: $Exports<'browser-sync/dist/args'>; -} -declare module 'browser-sync/dist/async-tasks.js' { - declare module.exports: $Exports<'browser-sync/dist/async-tasks'>; -} -declare module 'browser-sync/dist/async.js' { - declare module.exports: $Exports<'browser-sync/dist/async'>; -} -declare module 'browser-sync/dist/bin.js' { - declare module.exports: $Exports<'browser-sync/dist/bin'>; -} -declare module 'browser-sync/dist/browser-sync.js' { - declare module.exports: $Exports<'browser-sync/dist/browser-sync'>; -} -declare module 'browser-sync/dist/cli/cli-info.js' { - declare module.exports: $Exports<'browser-sync/dist/cli/cli-info'>; -} -declare module 'browser-sync/dist/cli/cli-options.js' { - declare module.exports: $Exports<'browser-sync/dist/cli/cli-options'>; -} -declare module 'browser-sync/dist/cli/command.init.js' { - declare module.exports: $Exports<'browser-sync/dist/cli/command.init'>; -} -declare module 'browser-sync/dist/cli/command.recipe.js' { - declare module.exports: $Exports<'browser-sync/dist/cli/command.recipe'>; -} -declare module 'browser-sync/dist/cli/command.reload.js' { - declare module.exports: $Exports<'browser-sync/dist/cli/command.reload'>; -} -declare module 'browser-sync/dist/cli/command.start.js' { - declare module.exports: $Exports<'browser-sync/dist/cli/command.start'>; -} -declare module 'browser-sync/dist/cli/transforms/addCwdToWatchOptions.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/addCwdToWatchOptions', - >; -} -declare module 'browser-sync/dist/cli/transforms/addDefaultIgnorePatterns.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/addDefaultIgnorePatterns', - >; -} -declare module 'browser-sync/dist/cli/transforms/addToFilesOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/addToFilesOption', - >; -} -declare module 'browser-sync/dist/cli/transforms/appendServerDirectoryOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/appendServerDirectoryOption', - >; -} -declare module 'browser-sync/dist/cli/transforms/appendServerIndexOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/appendServerIndexOption', - >; -} -declare module 'browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions', - >; -} -declare module 'browser-sync/dist/cli/transforms/handleExtensionsOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/handleExtensionsOption', - >; -} -declare module 'browser-sync/dist/cli/transforms/handleFilesOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/handleFilesOption', - >; -} -declare module 'browser-sync/dist/cli/transforms/handleGhostModeOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/handleGhostModeOption', - >; -} -declare module 'browser-sync/dist/cli/transforms/handlePortsOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/handlePortsOption', - >; -} -declare module 'browser-sync/dist/cli/transforms/handleProxyOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/handleProxyOption', - >; -} -declare module 'browser-sync/dist/cli/transforms/handleServerOption.js' { - declare module.exports: $Exports< - 'browser-sync/dist/cli/transforms/handleServerOption', - >; -} -declare module 'browser-sync/dist/client.js' { - declare module.exports: $Exports<'browser-sync/dist/client'>; -} -declare module 'browser-sync/dist/config.js' { - declare module.exports: $Exports<'browser-sync/dist/config'>; -} -declare module 'browser-sync/dist/connect-utils.js' { - declare module.exports: $Exports<'browser-sync/dist/connect-utils'>; -} -declare module 'browser-sync/dist/default-config.js' { - declare module.exports: $Exports<'browser-sync/dist/default-config'>; -} -declare module 'browser-sync/dist/file-event-handler.js' { - declare module.exports: $Exports<'browser-sync/dist/file-event-handler'>; -} -declare module 'browser-sync/dist/file-utils.js' { - declare module.exports: $Exports<'browser-sync/dist/file-utils'>; -} -declare module 'browser-sync/dist/file-watcher.js' { - declare module.exports: $Exports<'browser-sync/dist/file-watcher'>; -} -declare module 'browser-sync/dist/hooks.js' { - declare module.exports: $Exports<'browser-sync/dist/hooks'>; -} -declare module 'browser-sync/dist/http-protocol.js' { - declare module.exports: $Exports<'browser-sync/dist/http-protocol'>; -} -declare module 'browser-sync/dist/index.js' { - declare module.exports: $Exports<'browser-sync/dist/index'>; -} -declare module 'browser-sync/dist/internal-events.js' { - declare module.exports: $Exports<'browser-sync/dist/internal-events'>; -} -declare module 'browser-sync/dist/lodash.custom.js' { - declare module.exports: $Exports<'browser-sync/dist/lodash.custom'>; -} -declare module 'browser-sync/dist/logger.js' { - declare module.exports: $Exports<'browser-sync/dist/logger'>; -} -declare module 'browser-sync/dist/options.js' { - declare module.exports: $Exports<'browser-sync/dist/options'>; -} -declare module 'browser-sync/dist/plugins.js' { - declare module.exports: $Exports<'browser-sync/dist/plugins'>; -} -declare module 'browser-sync/dist/public/exit.js' { - declare module.exports: $Exports<'browser-sync/dist/public/exit'>; -} -declare module 'browser-sync/dist/public/init.js' { - declare module.exports: $Exports<'browser-sync/dist/public/init'>; -} -declare module 'browser-sync/dist/public/notify.js' { - declare module.exports: $Exports<'browser-sync/dist/public/notify'>; -} -declare module 'browser-sync/dist/public/pause.js' { - declare module.exports: $Exports<'browser-sync/dist/public/pause'>; -} -declare module 'browser-sync/dist/public/public-utils.js' { - declare module.exports: $Exports<'browser-sync/dist/public/public-utils'>; -} -declare module 'browser-sync/dist/public/reload.js' { - declare module.exports: $Exports<'browser-sync/dist/public/reload'>; -} -declare module 'browser-sync/dist/public/resume.js' { - declare module.exports: $Exports<'browser-sync/dist/public/resume'>; -} -declare module 'browser-sync/dist/public/stream.js' { - declare module.exports: $Exports<'browser-sync/dist/public/stream'>; -} -declare module 'browser-sync/dist/server/index.js' { - declare module.exports: $Exports<'browser-sync/dist/server/index'>; -} -declare module 'browser-sync/dist/server/proxy-server.js' { - declare module.exports: $Exports<'browser-sync/dist/server/proxy-server'>; -} -declare module 'browser-sync/dist/server/proxy-utils.js' { - declare module.exports: $Exports<'browser-sync/dist/server/proxy-utils'>; -} -declare module 'browser-sync/dist/server/snippet-server.js' { - declare module.exports: $Exports<'browser-sync/dist/server/snippet-server'>; -} -declare module 'browser-sync/dist/server/static-server.js' { - declare module.exports: $Exports<'browser-sync/dist/server/static-server'>; -} -declare module 'browser-sync/dist/server/utils.js' { - declare module.exports: $Exports<'browser-sync/dist/server/utils'>; -} -declare module 'browser-sync/dist/snippet.js' { - declare module.exports: $Exports<'browser-sync/dist/snippet'>; -} -declare module 'browser-sync/dist/sockets.js' { - declare module.exports: $Exports<'browser-sync/dist/sockets'>; -} -declare module 'browser-sync/dist/tunnel.js' { - declare module.exports: $Exports<'browser-sync/dist/tunnel'>; -} -declare module 'browser-sync/dist/types.js' { - declare module.exports: $Exports<'browser-sync/dist/types'>; -} -declare module 'browser-sync/dist/utils.js' { - declare module.exports: $Exports<'browser-sync/dist/utils'>; -} -declare module 'browser-sync/templates/cli-template.js' { - declare module.exports: $Exports<'browser-sync/templates/cli-template'>; -} diff --git a/flow-typed/npm/chokidar_vx.x.x.js b/flow-typed/npm/chokidar_vx.x.x.js deleted file mode 100644 index bf42b3d41..000000000 --- a/flow-typed/npm/chokidar_vx.x.x.js +++ /dev/null @@ -1,45 +0,0 @@ -// flow-typed signature: 3bed1e5b43a4752af4d5bf450f334ccf -// flow-typed version: <>/chokidar_v^2.0.4/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'chokidar' - * - * 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 'chokidar' { - 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 'chokidar/lib/fsevents-handler' { - declare module.exports: any; -} - -declare module 'chokidar/lib/nodefs-handler' { - declare module.exports: any; -} - -// Filename aliases -declare module 'chokidar/index' { - declare module.exports: $Exports<'chokidar'>; -} -declare module 'chokidar/index.js' { - declare module.exports: $Exports<'chokidar'>; -} -declare module 'chokidar/lib/fsevents-handler.js' { - declare module.exports: $Exports<'chokidar/lib/fsevents-handler'>; -} -declare module 'chokidar/lib/nodefs-handler.js' { - declare module.exports: $Exports<'chokidar/lib/nodefs-handler'>; -} diff --git a/flow-typed/npm/classnames_v2.x.x.js b/flow-typed/npm/classnames_v2.x.x.js deleted file mode 100644 index c47aa3921..000000000 --- a/flow-typed/npm/classnames_v2.x.x.js +++ /dev/null @@ -1,23 +0,0 @@ -// flow-typed signature: cf86673cc32d185bdab1d2ea90578d37 -// flow-typed version: 614bf49aa8/classnames_v2.x.x/flow_>=v0.25.x - -type $npm$classnames$Classes = - | string - | { [className: string]: * } - | false - | void - | null; - -declare module 'classnames' { - declare module.exports: ( - ...classes: Array<$npm$classnames$Classes | $npm$classnames$Classes[]> - ) => string; -} - -declare module 'classnames/bind' { - declare module.exports: $Exports<'classnames'>; -} - -declare module 'classnames/dedupe' { - declare module.exports: $Exports<'classnames'>; -} diff --git a/flow-typed/npm/cookie-parser_v1.x.x.js b/flow-typed/npm/cookie-parser_v1.x.x.js deleted file mode 100644 index e0372a910..000000000 --- a/flow-typed/npm/cookie-parser_v1.x.x.js +++ /dev/null @@ -1,281 +0,0 @@ -// flow-typed signature: f4490542210f56d64e3c60f4043dabb5 -// flow-typed version: dd8117f9f7/cookie-parser_v1.x.x/flow_>=v0.25.x - -/** - * Flow libdef for 'cookie-parser' - * See https://www.npmjs.com/package/cookie-parser - * by Vincent Driessen, 2018-12-21 - */ - -import * as http from 'http'; -import type { Socket } from 'net'; - -declare module 'cookie-parser' { - /** - * NOTE: - * The following block has all been copied from - * https://github.com/flow-typed/flow-typed/blob/master/definitions/npm/express_v4.x.x/flow_v0.32.x-/express_v4.x.x.js#L103-L105 - */ - - /* -------------------------- 8< ------------------------------------------------------------------ */ - - declare type express$RenderCallback = ( - err: Error | null, - html?: string, - ) => mixed; - - declare type express$CookieOptions = { - domain?: string, - encode?: (value: string) => string, - expires?: Date, - httpOnly?: boolean, - maxAge?: number, - path?: string, - secure?: boolean, - signed?: boolean, - }; - - declare type express$RouterOptions = { - caseSensitive?: boolean, - mergeParams?: boolean, - strict?: boolean, - }; - - declare interface express$RouteMethodType { - (middleware: express$Middleware): T; - (...middleware: Array): T; - ( - path: express$Path | express$Path[], - ...middleware: Array - ): T; - } - - declare type express$RequestParams = { - [param: string]: string, - }; - - declare type express$SendFileOptions = { - maxAge?: number, - root?: string, - lastModified?: boolean, - headers?: { [name: string]: string }, - dotfiles?: 'allow' | 'deny' | 'ignore', - }; - - declare class express$Application extends express$Router - mixins events$EventEmitter { - constructor(): void; - locals: { [name: string]: mixed }; - mountpath: string; - listen( - port: number, - hostname?: string, - backlog?: number, - callback?: (err?: ?Error) => mixed, - ): ?http.Server; - listen( - port: number, - hostname?: string, - callback?: (err?: ?Error) => mixed, - ): ?http.Server; - listen(port: number, callback?: (err?: ?Error) => mixed): ?http.Server; - listen(path: string, callback?: (err?: ?Error) => mixed): ?http.Server; - listen(handle: Object, callback?: (err?: ?Error) => mixed): ?http.Server; - disable(name: string): void; - disabled(name: string): boolean; - enable(name: string): express$Application; - enabled(name: string): boolean; - engine(name: string, callback: Function): void; - /** - * Mixed will not be taken as a value option. Issue around using the GET http method name and the get for settings. - */ - // get(name: string): mixed; - set(name: string, value: mixed): mixed; - render( - name: string, - optionsOrFunction: { [name: string]: mixed }, - callback: express$RenderCallback, - ): void; - handle( - req: http$IncomingMessage, - res: http$ServerResponse, - next?: ?express$NextFunction, - ): void; - // callable signature is not inherited - ( - req: http$IncomingMessage, - res: http$ServerResponse, - next?: ?express$NextFunction, - ): void; - } - - declare type express$Path = string | RegExp; - - declare class express$Route { - all: express$RouteMethodType; - get: express$RouteMethodType; - post: express$RouteMethodType; - put: express$RouteMethodType; - head: express$RouteMethodType; - delete: express$RouteMethodType; - options: express$RouteMethodType; - trace: express$RouteMethodType; - copy: express$RouteMethodType; - lock: express$RouteMethodType; - mkcol: express$RouteMethodType; - move: express$RouteMethodType; - purge: express$RouteMethodType; - propfind: express$RouteMethodType; - proppatch: express$RouteMethodType; - unlock: express$RouteMethodType; - report: express$RouteMethodType; - mkactivity: express$RouteMethodType; - checkout: express$RouteMethodType; - merge: express$RouteMethodType; - - // @TODO Missing 'm-search' but get flow illegal name error. - - notify: express$RouteMethodType; - subscribe: express$RouteMethodType; - unsubscribe: express$RouteMethodType; - patch: express$RouteMethodType; - search: express$RouteMethodType; - connect: express$RouteMethodType; - } - - declare class express$Router extends express$Route { - constructor(options?: express$RouterOptions): void; - route(path: string): express$Route; - static (options?: express$RouterOptions): express$Router; - use(middleware: express$Middleware): this; - use(...middleware: Array): this; - use( - path: express$Path | express$Path[], - ...middleware: Array - ): this; - use(path: string, router: express$Router): this; - handle( - req: http$IncomingMessage, - res: http$ServerResponse, - next: express$NextFunction, - ): void; - param( - param: string, - callback: ( - req: $Subtype, - res: express$Response, - next: express$NextFunction, - id: string, - ) => mixed, - ): void; - ( - req: http$IncomingMessage, - res: http$ServerResponse, - next?: ?express$NextFunction, - ): void; - } - - declare class express$RequestResponseBase { - app: express$Application; - get(field: string): string | void; - } - - declare class express$Request extends http$IncomingMessage - mixins express$RequestResponseBase { - baseUrl: string; - body: mixed; - cookies: { [cookie: string]: string }; - connection: Socket; - fresh: boolean; - hostname: string; - ip: string; - ips: Array; - method: string; - originalUrl: string; - params: express$RequestParams; - path: string; - protocol: 'https' | 'http'; - query: { [name: string]: string | Array }; - route: string; - secure: boolean; - signedCookies: { [signedCookie: string]: string }; - stale: boolean; - subdomains: Array; - xhr: boolean; - accepts(types: string): string | false; - accepts(types: Array): string | false; - acceptsCharsets(...charsets: Array): string | false; - acceptsEncodings(...encoding: Array): string | false; - acceptsLanguages(...lang: Array): string | false; - header(field: string): string | void; - is(type: string): boolean; - param(name: string, defaultValue?: string): string | void; - } - - declare class express$Response extends http$ServerResponse - mixins express$RequestResponseBase { - headersSent: boolean; - locals: { [name: string]: mixed }; - append(field: string, value?: string): this; - attachment(filename?: string): this; - cookie(name: string, value: string, options?: express$CookieOptions): this; - clearCookie(name: string, options?: express$CookieOptions): this; - download( - path: string, - filename?: string, - callback?: (err?: ?Error) => void, - ): this; - format(typesObject: { [type: string]: Function }): this; - json(body?: mixed): this; - jsonp(body?: mixed): this; - links(links: { [name: string]: string }): this; - location(path: string): this; - redirect(url: string, ...args: Array): this; - redirect(status: number, url: string, ...args: Array): this; - render( - view: string, - locals?: { [name: string]: mixed }, - callback?: express$RenderCallback, - ): this; - send(body?: mixed): this; - sendFile( - path: string, - options?: express$SendFileOptions, - callback?: (err?: ?Error) => mixed, - ): this; - sendStatus(statusCode: number): this; - header(field: string, value?: string): this; - header(headers: { [name: string]: string }): this; - set(field: string, value?: string | string[]): this; - set(headers: { [name: string]: string }): this; - status(statusCode: number): this; - type(type: string): this; - vary(field: string): this; - req: express$Request; - } - - declare type express$NextFunction = (err?: ?Error | 'route') => mixed; - declare type express$Middleware = - | (( - req: $Subtype, - res: express$Response, - next: express$NextFunction, - ) => mixed) - | (( - error: Error, - req: $Subtype, - res: express$Response, - next: express$NextFunction, - ) => mixed); - - /* -------------------------- 8< ------------------------------------------------------------------ */ - - declare export type Middleware = express$Middleware; - - declare function cookieParser( - secret?: string | Array, - options?: mixed, - ): express$Middleware; - - declare export default typeof cookieParser; -} diff --git a/flow-typed/npm/css-loader_vx.x.x.js b/flow-typed/npm/css-loader_vx.x.x.js deleted file mode 100644 index b05b9153a..000000000 --- a/flow-typed/npm/css-loader_vx.x.x.js +++ /dev/null @@ -1,94 +0,0 @@ -// flow-typed signature: 014126b57ce52ee46ab744604646eb1b -// flow-typed version: <>/css-loader_v^1.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'css-loader' - * - * 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 'css-loader' { - 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 'css-loader/lib/compile-exports' { - declare module.exports: any; -} - -declare module 'css-loader/lib/css-base' { - declare module.exports: any; -} - -declare module 'css-loader/lib/getImportPrefix' { - declare module.exports: any; -} - -declare module 'css-loader/lib/getLocalIdent' { - declare module.exports: any; -} - -declare module 'css-loader/lib/loader' { - declare module.exports: any; -} - -declare module 'css-loader/lib/localsLoader' { - declare module.exports: any; -} - -declare module 'css-loader/lib/processCss' { - declare module.exports: any; -} - -declare module 'css-loader/lib/url/escape' { - declare module.exports: any; -} - -declare module 'css-loader/locals' { - declare module.exports: any; -} - -// Filename aliases -declare module 'css-loader/index' { - declare module.exports: $Exports<'css-loader'>; -} -declare module 'css-loader/index.js' { - declare module.exports: $Exports<'css-loader'>; -} -declare module 'css-loader/lib/compile-exports.js' { - declare module.exports: $Exports<'css-loader/lib/compile-exports'>; -} -declare module 'css-loader/lib/css-base.js' { - declare module.exports: $Exports<'css-loader/lib/css-base'>; -} -declare module 'css-loader/lib/getImportPrefix.js' { - declare module.exports: $Exports<'css-loader/lib/getImportPrefix'>; -} -declare module 'css-loader/lib/getLocalIdent.js' { - declare module.exports: $Exports<'css-loader/lib/getLocalIdent'>; -} -declare module 'css-loader/lib/loader.js' { - declare module.exports: $Exports<'css-loader/lib/loader'>; -} -declare module 'css-loader/lib/localsLoader.js' { - declare module.exports: $Exports<'css-loader/lib/localsLoader'>; -} -declare module 'css-loader/lib/processCss.js' { - declare module.exports: $Exports<'css-loader/lib/processCss'>; -} -declare module 'css-loader/lib/url/escape.js' { - declare module.exports: $Exports<'css-loader/lib/url/escape'>; -} -declare module 'css-loader/locals.js' { - declare module.exports: $Exports<'css-loader/locals'>; -} diff --git a/flow-typed/npm/enzyme_v3.x.x.js b/flow-typed/npm/enzyme_v3.x.x.js deleted file mode 100644 index 69d7cc0e2..000000000 --- a/flow-typed/npm/enzyme_v3.x.x.js +++ /dev/null @@ -1,133 +0,0 @@ -// flow-typed signature: e8099760e427f3c07eed2fb403225737 -// flow-typed version: 883d4252ca/enzyme_v3.x.x/flow_>=v0.53.x - -declare module 'enzyme' { - declare type PredicateFunction> = ( - wrapper: T, - index: number, - ) => boolean; - declare type NodeOrNodes = React$Node | Array; - declare type EnzymeSelector = string | Class> | {}; - - // CheerioWrapper is a type alias for an actual cheerio instance - // TODO: Reference correct type from cheerio's type declarations - declare type CheerioWrapper = any; - - declare class Wrapper { - find(selector: EnzymeSelector): this; - findWhere(predicate: PredicateFunction): this; - filter(selector: EnzymeSelector): this; - filterWhere(predicate: PredicateFunction): this; - hostNodes(): this; - contains(nodeOrNodes: NodeOrNodes): boolean; - containsMatchingElement(node: React$Node): boolean; - containsAllMatchingElements(nodes: NodeOrNodes): boolean; - containsAnyMatchingElements(nodes: NodeOrNodes): boolean; - dive(option?: { context?: Object }): this; - exists(selector?: EnzymeSelector): boolean; - isEmptyRender(): boolean; - matchesElement(node: React$Node): boolean; - hasClass(className: string): boolean; - is(selector: EnzymeSelector): boolean; - isEmpty(): boolean; - not(selector: EnzymeSelector): this; - children(selector?: EnzymeSelector): this; - childAt(index: number): this; - parents(selector?: EnzymeSelector): this; - parent(): this; - closest(selector: EnzymeSelector): this; - render(): CheerioWrapper; - renderProp(propName: string): (...args: Array) => this; - unmount(): this; - text(): string; - html(): string; - get(index: number): React$Node; - getDOMNode(): HTMLElement | HTMLInputElement; - at(index: number): this; - first(): this; - last(): this; - state(key?: string): any; - context(key?: string): any; - props(): Object; - prop(key: string): any; - key(): string; - simulate(event: string, ...args: Array): this; - simulateError(error: Error): this; - slice(begin?: number, end?: number): this; - setState(state: {}, callback?: () => void): this; - setProps(props: {}, callback?: () => void): this; - setContext(context: Object): this; - instance(): React$ElementRef; - update(): this; - debug(options?: Object): string; - type(): string | Function | null; - name(): string; - forEach(fn: (node: this, index: number) => mixed): this; - map(fn: (node: this, index: number) => T): Array; - reduce( - fn: (value: T, node: this, index: number) => T, - initialValue?: T, - ): Array; - reduceRight( - fn: (value: T, node: this, index: number) => T, - initialValue?: T, - ): Array; - some(selector: EnzymeSelector): boolean; - someWhere(predicate: PredicateFunction): boolean; - every(selector: EnzymeSelector): boolean; - everyWhere(predicate: PredicateFunction): boolean; - length: number; - } - - declare class ReactWrapper extends Wrapper { - constructor( - nodes: React$Element, - root: any, - options?: ?Object, - ): ReactWrapper; - mount(): this; - ref(refName: string): this; - detach(): void; - } - - declare class ShallowWrapper extends Wrapper { - constructor( - nodes: React$Element, - root: any, - options?: ?Object, - ): ShallowWrapper; - equals(node: React$Node): boolean; - shallow(options?: { context?: Object }): ShallowWrapper; - getElement(): React$Node; - getElements(): Array; - } - - declare function shallow( - node: React$Element, - options?: { context?: Object, disableLifecycleMethods?: boolean }, - ): ShallowWrapper; - declare function mount( - node: React$Element, - options?: { - context?: Object, - attachTo?: HTMLElement, - childContextTypes?: Object, - }, - ): ReactWrapper; - declare function render( - node: React$Element, - options?: { context?: Object }, - ): CheerioWrapper; - - declare module.exports: { - configure(options: { - Adapter?: any, - disableLifecycleMethods?: boolean, - }): void, - render: typeof render, - mount: typeof mount, - shallow: typeof shallow, - ShallowWrapper: typeof ShallowWrapper, - ReactWrapper: typeof ReactWrapper, - }; -} 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 618929cb8..000000000 --- a/flow-typed/npm/eslint-config-airbnb_vx.x.x.js +++ /dev/null @@ -1,89 +0,0 @@ -// flow-typed signature: 5b5a55179cd209baaf1da9b1a98d6c82 -// flow-typed version: <>/eslint-config-airbnb_v^17.1.0/flow_v0.92.1 - -/** - * 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/requires' { - 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; -} - -declare module 'eslint-config-airbnb/whitespace' { - 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/requires.js' { - declare module.exports: $Exports<'eslint-config-airbnb/test/requires'>; -} -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', - >; -} -declare module 'eslint-config-airbnb/whitespace.js' { - declare module.exports: $Exports<'eslint-config-airbnb/whitespace'>; -} 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 99aaf66be..000000000 --- a/flow-typed/npm/eslint-config-prettier_vx.x.x.js +++ /dev/null @@ -1,66 +0,0 @@ -// flow-typed signature: 00e6ad8fc7db55d3e5844d35115fb5f7 -// flow-typed version: <>/eslint-config-prettier_v^3.0.1/flow_v0.92.1 - -/** - * 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-import-resolver-node_vx.x.x.js b/flow-typed/npm/eslint-import-resolver-node_vx.x.x.js deleted file mode 100644 index f6617aec6..000000000 --- a/flow-typed/npm/eslint-import-resolver-node_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 6e7110ecff9df15d3692145bc2e07ede -// flow-typed version: <>/eslint-import-resolver-node_v^0.3.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-import-resolver-node' - * - * 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-import-resolver-node' { - 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-import-resolver-node/index' { - declare module.exports: $Exports<'eslint-import-resolver-node'>; -} -declare module 'eslint-import-resolver-node/index.js' { - declare module.exports: $Exports<'eslint-import-resolver-node'>; -} diff --git a/flow-typed/npm/eslint-loader_vx.x.x.js b/flow-typed/npm/eslint-loader_vx.x.x.js deleted file mode 100644 index 214cf8999..000000000 --- a/flow-typed/npm/eslint-loader_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: a449ed13f1e6e0bf048dcf7b4ddd3668 -// flow-typed version: <>/eslint-loader_v^2.1.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-loader' - * - * 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-loader' { - 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-loader/index' { - declare module.exports: $Exports<'eslint-loader'>; -} -declare module 'eslint-loader/index.js' { - declare module.exports: $Exports<'eslint-loader'>; -} diff --git a/flow-typed/npm/eslint-plugin-css-modules_vx.x.x.js b/flow-typed/npm/eslint-plugin-css-modules_vx.x.x.js deleted file mode 100644 index b87c474ed..000000000 --- a/flow-typed/npm/eslint-plugin-css-modules_vx.x.x.js +++ /dev/null @@ -1,104 +0,0 @@ -// flow-typed signature: b9c4b088cb22eb3f89e9d33311fb0e90 -// flow-typed version: <>/eslint-plugin-css-modules_v^2.9.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint-plugin-css-modules' - * - * 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-css-modules' { - 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-css-modules/build/core/gonzales' { - declare module.exports: any; -} - -declare module 'eslint-plugin-css-modules/build/core/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-css-modules/build/core/traversalUtils' { - declare module.exports: any; -} - -declare module 'eslint-plugin-css-modules/build/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-css-modules/build/rules/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-css-modules/build/rules/no-undef-class' { - declare module.exports: any; -} - -declare module 'eslint-plugin-css-modules/build/rules/no-unused-class' { - declare module.exports: any; -} - -declare module 'eslint-plugin-css-modules/build/types/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-css-modules/packages/gonzales-primitives' { - declare module.exports: any; -} - -// Filename aliases -declare module 'eslint-plugin-css-modules/build/core/gonzales.js' { - declare module.exports: $Exports< - 'eslint-plugin-css-modules/build/core/gonzales', - >; -} -declare module 'eslint-plugin-css-modules/build/core/index.js' { - declare module.exports: $Exports< - 'eslint-plugin-css-modules/build/core/index', - >; -} -declare module 'eslint-plugin-css-modules/build/core/traversalUtils.js' { - declare module.exports: $Exports< - 'eslint-plugin-css-modules/build/core/traversalUtils', - >; -} -declare module 'eslint-plugin-css-modules/build/index.js' { - declare module.exports: $Exports<'eslint-plugin-css-modules/build/index'>; -} -declare module 'eslint-plugin-css-modules/build/rules/index.js' { - declare module.exports: $Exports< - 'eslint-plugin-css-modules/build/rules/index', - >; -} -declare module 'eslint-plugin-css-modules/build/rules/no-undef-class.js' { - declare module.exports: $Exports< - 'eslint-plugin-css-modules/build/rules/no-undef-class', - >; -} -declare module 'eslint-plugin-css-modules/build/rules/no-unused-class.js' { - declare module.exports: $Exports< - 'eslint-plugin-css-modules/build/rules/no-unused-class', - >; -} -declare module 'eslint-plugin-css-modules/build/types/index.js' { - declare module.exports: $Exports< - 'eslint-plugin-css-modules/build/types/index', - >; -} -declare module 'eslint-plugin-css-modules/packages/gonzales-primitives.js' { - declare module.exports: $Exports< - 'eslint-plugin-css-modules/packages/gonzales-primitives', - >; -} 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 4fd659a4a..000000000 --- a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js +++ /dev/null @@ -1,534 +0,0 @@ -// flow-typed signature: 36a5375fa0c65898730b7f35f66027df -// flow-typed version: <>/eslint-plugin-flowtype_v^2.50.1/flow_v0.92.1 - -/** - * 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/arrayStyle/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/arrayStyle/isSimpleType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/arrayStyle/needWrap' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/arrayStyleComplexType' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/arrayStyleSimpleType' { - 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/newlineAfterFlowAnnotation' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys' { - declare module.exports: any; -} - -declare module 'eslint-plugin-flowtype/dist/rules/noExistentialType' { - 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/requireTypesAtTop' { - 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/evaluateVariables' { - 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/typeImportStyle' { - 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/arrayStyle/index.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/arrayStyle/index', - >; -} -declare module 'eslint-plugin-flowtype/dist/rules/arrayStyle/isSimpleType.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/arrayStyle/isSimpleType', - >; -} -declare module 'eslint-plugin-flowtype/dist/rules/arrayStyle/needWrap.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/arrayStyle/needWrap', - >; -} -declare module 'eslint-plugin-flowtype/dist/rules/arrayStyleComplexType.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/arrayStyleComplexType', - >; -} -declare module 'eslint-plugin-flowtype/dist/rules/arrayStyleSimpleType.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/arrayStyleSimpleType', - >; -} -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/newlineAfterFlowAnnotation.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/newlineAfterFlowAnnotation', - >; -} -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/noExistentialType.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/noExistentialType', - >; -} -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/requireTypesAtTop.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/requireTypesAtTop', - >; -} -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/evaluateVariables.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateVariables', - >; -} -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/typeImportStyle.js' { - declare module.exports: $Exports< - 'eslint-plugin-flowtype/dist/rules/typeImportStyle', - >; -} -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 6f05775d8..000000000 --- a/flow-typed/npm/eslint-plugin-import_vx.x.x.js +++ /dev/null @@ -1,460 +0,0 @@ -// flow-typed signature: c99c8d664b5e6dfb8d4651a8140802a0 -// flow-typed version: <>/eslint-plugin-import_v^2.14.0/flow_v0.92.1 - -/** - * 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/docsUrl' { - 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/dynamic-import-chunkname' { - 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/group-exports' { - 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-cycle' { - declare module.exports: any; -} - -declare module 'eslint-plugin-import/lib/rules/no-default-export' { - 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-relative-parent-imports' { - 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-self-import' { - 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-useless-path-segments' { - 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/docsUrl.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/docsUrl'>; -} -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/dynamic-import-chunkname.js' { - declare module.exports: $Exports< - 'eslint-plugin-import/lib/rules/dynamic-import-chunkname', - >; -} -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/group-exports.js' { - declare module.exports: $Exports< - 'eslint-plugin-import/lib/rules/group-exports', - >; -} -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-cycle.js' { - declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-cycle'>; -} -declare module 'eslint-plugin-import/lib/rules/no-default-export.js' { - declare module.exports: $Exports< - 'eslint-plugin-import/lib/rules/no-default-export', - >; -} -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-relative-parent-imports.js' { - declare module.exports: $Exports< - 'eslint-plugin-import/lib/rules/no-relative-parent-imports', - >; -} -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-self-import.js' { - declare module.exports: $Exports< - 'eslint-plugin-import/lib/rules/no-self-import', - >; -} -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-useless-path-segments.js' { - declare module.exports: $Exports< - 'eslint-plugin-import/lib/rules/no-useless-path-segments', - >; -} -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-jsx-a11y_vx.x.x.js b/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js deleted file mode 100644 index e972810a1..000000000 --- a/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js +++ /dev/null @@ -1,1464 +0,0 @@ -// flow-typed signature: 6d6b848c2d6afe9318d022638291c1e0 -// flow-typed version: <>/eslint-plugin-jsx-a11y_v^6.1.1/flow_v0.92.1 - -/** - * 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/__mocks__/JSXSpreadAttributeMock' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXTextMock' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__mocks__/LiteralMock' { - 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-associated-control-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/getComputedRole-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getExplicitRole-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getImplicitRole-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/isDisabledElement-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/mayContainChildComponent-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/mayHaveAccessibleLabel-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-associated-control' { - 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/getComputedRole' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/getExplicitRole' { - 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/isDisabledElement' { - 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/mayContainChildComponent' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/util/mayHaveAccessibleLabel' { - 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/__mocks__/JSXSpreadAttributeMock.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__mocks__/JSXSpreadAttributeMock', - >; -} -declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXTextMock.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__mocks__/JSXTextMock', - >; -} -declare module 'eslint-plugin-jsx-a11y/__mocks__/LiteralMock.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__mocks__/LiteralMock', - >; -} -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-associated-control-test.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-associated-control-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/getComputedRole-test.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__tests__/src/util/getComputedRole-test', - >; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getExplicitRole-test.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__tests__/src/util/getExplicitRole-test', - >; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getImplicitRole-test.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__tests__/src/util/getImplicitRole-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/isDisabledElement-test.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__tests__/src/util/isDisabledElement-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/mayContainChildComponent-test.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__tests__/src/util/mayContainChildComponent-test', - >; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/mayHaveAccessibleLabel-test.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/__tests__/src/util/mayHaveAccessibleLabel-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-associated-control.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/lib/rules/label-has-associated-control', - >; -} -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/getComputedRole.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/lib/util/getComputedRole', - >; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/getExplicitRole.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/lib/util/getExplicitRole', - >; -} -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/isDisabledElement.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/lib/util/isDisabledElement', - >; -} -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/mayContainChildComponent.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/lib/util/mayContainChildComponent', - >; -} -declare module 'eslint-plugin-jsx-a11y/lib/util/mayHaveAccessibleLabel.js' { - declare module.exports: $Exports< - 'eslint-plugin-jsx-a11y/lib/util/mayHaveAccessibleLabel', - >; -} -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 23512a9e9..000000000 --- a/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js +++ /dev/null @@ -1,34 +0,0 @@ -// flow-typed signature: 6a5806ac044e2b552d6a3a50ccfa5a5f -// flow-typed version: <>/eslint-plugin-prettier_v^2.6.2/flow_v0.92.1 - -/** - * 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 31d718d63..000000000 --- a/flow-typed/npm/eslint-plugin-react_vx.x.x.js +++ /dev/null @@ -1,803 +0,0 @@ -// flow-typed signature: 53bd980b007b1205d256d419459b0479 -// flow-typed version: <>/eslint-plugin-react_v^7.11.1/flow_v0.92.1 - -/** - * 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-depth' { - 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-props-no-multi-spaces' { - 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-unsafe' { - 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/jsx' { - declare module.exports: any; -} - -declare module 'eslint-plugin-react/lib/util/log' { - 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/propTypes' { - 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-depth.js' { - declare module.exports: $Exports< - 'eslint-plugin-react/lib/rules/jsx-max-depth', - >; -} -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-props-no-multi-spaces.js' { - declare module.exports: $Exports< - 'eslint-plugin-react/lib/rules/jsx-props-no-multi-spaces', - >; -} -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-unsafe.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unsafe'>; -} -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/jsx.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/jsx'>; -} -declare module 'eslint-plugin-react/lib/util/log.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/log'>; -} -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/propTypes.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/util/propTypes'>; -} -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 50850968d..000000000 --- a/flow-typed/npm/eslint_vx.x.x.js +++ /dev/null @@ -1,2548 +0,0 @@ -// flow-typed signature: 7143a3021ab92cfb9fda295913d1d14b -// flow-typed version: <>/eslint_v^5.6.0/flow_v0.92.1 - -/** - * 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/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/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/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/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-classes-per-file' { - 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-per-function' { - 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-async-promise-executor' { - 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-misleading-character-class' { - 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-object-spread' { - 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-atomic-updates' { - 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-unicode-regexp' { - 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/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/ast-utils' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/file-finder' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/fix-tracker' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/glob-utils' { - 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/lint-result-cache' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/logging' { - 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-utils' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/path-utils' { - 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-utils' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/source-code' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/timing' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/traverser' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/unicode/index' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/unicode/is-combining-character' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/unicode/is-emoji-modifier' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/unicode/is-regional-indicator-symbol' { - declare module.exports: any; -} - -declare module 'eslint/lib/util/unicode/is-surrogate-pair' { - 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/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/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/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/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-classes-per-file.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-classes-per-file'>; -} -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-per-function.js' { - declare module.exports: $Exports<'eslint/lib/rules/max-lines-per-function'>; -} -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-async-promise-executor.js' { - declare module.exports: $Exports< - 'eslint/lib/rules/no-async-promise-executor', - >; -} -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-misleading-character-class.js' { - declare module.exports: $Exports< - 'eslint/lib/rules/no-misleading-character-class', - >; -} -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-object-spread.js' { - declare module.exports: $Exports<'eslint/lib/rules/prefer-object-spread'>; -} -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-atomic-updates.js' { - declare module.exports: $Exports<'eslint/lib/rules/require-atomic-updates'>; -} -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-unicode-regexp.js' { - declare module.exports: $Exports<'eslint/lib/rules/require-unicode-regexp'>; -} -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/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/ast-utils.js' { - declare module.exports: $Exports<'eslint/lib/util/ast-utils'>; -} -declare module 'eslint/lib/util/file-finder.js' { - declare module.exports: $Exports<'eslint/lib/util/file-finder'>; -} -declare module 'eslint/lib/util/fix-tracker.js' { - declare module.exports: $Exports<'eslint/lib/util/fix-tracker'>; -} -declare module 'eslint/lib/util/glob-utils.js' { - declare module.exports: $Exports<'eslint/lib/util/glob-utils'>; -} -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/lint-result-cache.js' { - declare module.exports: $Exports<'eslint/lib/util/lint-result-cache'>; -} -declare module 'eslint/lib/util/logging.js' { - declare module.exports: $Exports<'eslint/lib/util/logging'>; -} -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-utils.js' { - declare module.exports: $Exports<'eslint/lib/util/npm-utils'>; -} -declare module 'eslint/lib/util/path-utils.js' { - declare module.exports: $Exports<'eslint/lib/util/path-utils'>; -} -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-utils.js' { - declare module.exports: $Exports<'eslint/lib/util/source-code-utils'>; -} -declare module 'eslint/lib/util/source-code.js' { - declare module.exports: $Exports<'eslint/lib/util/source-code'>; -} -declare module 'eslint/lib/util/timing.js' { - declare module.exports: $Exports<'eslint/lib/util/timing'>; -} -declare module 'eslint/lib/util/traverser.js' { - declare module.exports: $Exports<'eslint/lib/util/traverser'>; -} -declare module 'eslint/lib/util/unicode/index.js' { - declare module.exports: $Exports<'eslint/lib/util/unicode/index'>; -} -declare module 'eslint/lib/util/unicode/is-combining-character.js' { - declare module.exports: $Exports< - 'eslint/lib/util/unicode/is-combining-character', - >; -} -declare module 'eslint/lib/util/unicode/is-emoji-modifier.js' { - declare module.exports: $Exports<'eslint/lib/util/unicode/is-emoji-modifier'>; -} -declare module 'eslint/lib/util/unicode/is-regional-indicator-symbol.js' { - declare module.exports: $Exports< - 'eslint/lib/util/unicode/is-regional-indicator-symbol', - >; -} -declare module 'eslint/lib/util/unicode/is-surrogate-pair.js' { - declare module.exports: $Exports<'eslint/lib/util/unicode/is-surrogate-pair'>; -} -declare module 'eslint/lib/util/xml-escape.js' { - declare module.exports: $Exports<'eslint/lib/util/xml-escape'>; -} diff --git a/flow-typed/npm/express-jwt_vx.x.x.js b/flow-typed/npm/express-jwt_vx.x.x.js deleted file mode 100644 index 4777c34bd..000000000 --- a/flow-typed/npm/express-jwt_vx.x.x.js +++ /dev/null @@ -1,67 +0,0 @@ -// flow-typed signature: dadf107d8f05d6cebad6970925e52b35 -// flow-typed version: <>/express-jwt_v^5.3.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'express-jwt' - * - * 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 'express-jwt' { - 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 'express-jwt/lib/errors/UnauthorizedError' { - declare module.exports: any; -} - -declare module 'express-jwt/lib/index' { - declare module.exports: any; -} - -declare module 'express-jwt/test/jwt.test' { - declare module.exports: any; -} - -declare module 'express-jwt/test/multitenancy.test' { - declare module.exports: any; -} - -declare module 'express-jwt/test/revocation.test' { - declare module.exports: any; -} - -declare module 'express-jwt/test/string_token.test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'express-jwt/lib/errors/UnauthorizedError.js' { - declare module.exports: $Exports<'express-jwt/lib/errors/UnauthorizedError'>; -} -declare module 'express-jwt/lib/index.js' { - declare module.exports: $Exports<'express-jwt/lib/index'>; -} -declare module 'express-jwt/test/jwt.test.js' { - declare module.exports: $Exports<'express-jwt/test/jwt.test'>; -} -declare module 'express-jwt/test/multitenancy.test.js' { - declare module.exports: $Exports<'express-jwt/test/multitenancy.test'>; -} -declare module 'express-jwt/test/revocation.test.js' { - declare module.exports: $Exports<'express-jwt/test/revocation.test'>; -} -declare module 'express-jwt/test/string_token.test.js' { - declare module.exports: $Exports<'express-jwt/test/string_token.test'>; -} diff --git a/flow-typed/npm/express_v4.16.x.js b/flow-typed/npm/express_v4.16.x.js deleted file mode 100644 index cce5a0c5d..000000000 --- a/flow-typed/npm/express_v4.16.x.js +++ /dev/null @@ -1,307 +0,0 @@ -// flow-typed signature: 207bac286d971cad7615b09aa20d4acf -// flow-typed version: bb849ae672/express_v4.16.x/flow_>=v0.32.x - -import * as http from 'http'; -import type { Socket } from 'net'; - -declare type express$RouterOptions = { - caseSensitive?: boolean, - mergeParams?: boolean, - strict?: boolean, -}; - -declare class express$RequestResponseBase { - app: express$Application; - get(field: string): string | void; -} - -declare type express$RequestParams = { - [param: string]: string, -}; - -declare class express$Request extends http$IncomingMessage - mixins express$RequestResponseBase { - baseUrl: string; - body: mixed; - cookies: { [cookie: string]: string }; - connection: Socket; - fresh: boolean; - hostname: string; - ip: string; - ips: Array; - method: string; - originalUrl: string; - params: express$RequestParams; - path: string; - protocol: 'https' | 'http'; - query: { [name: string]: string | Array }; - route: string; - secure: boolean; - signedCookies: { [signedCookie: string]: string }; - stale: boolean; - subdomains: Array; - xhr: boolean; - accepts(types: string): string | false; - accepts(types: Array): string | false; - acceptsCharsets(...charsets: Array): string | false; - acceptsEncodings(...encoding: Array): string | false; - acceptsLanguages(...lang: Array): string | false; - header(field: string): string | void; - is(type: string): boolean; - param(name: string, defaultValue?: string): string | void; -} - -declare type express$CookieOptions = { - domain?: string, - encode?: (value: string) => string, - expires?: Date, - httpOnly?: boolean, - maxAge?: number, - path?: string, - secure?: boolean, - signed?: boolean, -}; - -declare type express$Path = string | RegExp; - -declare type express$RenderCallback = ( - err: Error | null, - html?: string, -) => mixed; - -declare type express$SendFileOptions = { - maxAge?: number, - root?: string, - lastModified?: boolean, - headers?: { [name: string]: string }, - dotfiles?: 'allow' | 'deny' | 'ignore', -}; - -declare class express$Response extends http$ServerResponse - mixins express$RequestResponseBase { - headersSent: boolean; - locals: { [name: string]: mixed }; - append(field: string, value?: string): this; - attachment(filename?: string): this; - cookie(name: string, value: string, options?: express$CookieOptions): this; - clearCookie(name: string, options?: express$CookieOptions): this; - download( - path: string, - filename?: string, - callback?: (err?: ?Error) => void, - ): this; - format(typesObject: { [type: string]: Function }): this; - json(body?: mixed): this; - jsonp(body?: mixed): this; - links(links: { [name: string]: string }): this; - location(path: string): this; - redirect(url: string, ...args: Array): this; - redirect(status: number, url: string, ...args: Array): this; - render( - view: string, - locals?: { [name: string]: mixed }, - callback?: express$RenderCallback, - ): this; - send(body?: mixed): this; - sendFile( - path: string, - options?: express$SendFileOptions, - callback?: (err?: ?Error) => mixed, - ): this; - sendStatus(statusCode: number): this; - header(field: string, value?: string): this; - header(headers: { [name: string]: string }): this; - set(field: string, value?: string | string[]): this; - set(headers: { [name: string]: string }): this; - status(statusCode: number): this; - type(type: string): this; - vary(field: string): this; - req: express$Request; -} - -declare type express$NextFunction = (err?: ?Error | 'route') => mixed; -declare type express$Middleware = - | (( - req: $Subtype, - res: express$Response, - next: express$NextFunction, - ) => mixed) - | (( - error: Error, - req: $Subtype, - res: express$Response, - next: express$NextFunction, - ) => mixed); -declare interface express$RouteMethodType { - (middleware: express$Middleware): T; - (...middleware: Array): T; - ( - path: express$Path | express$Path[], - ...middleware: Array - ): T; -} -declare class express$Route { - all: express$RouteMethodType; - get: express$RouteMethodType; - post: express$RouteMethodType; - put: express$RouteMethodType; - head: express$RouteMethodType; - delete: express$RouteMethodType; - options: express$RouteMethodType; - trace: express$RouteMethodType; - copy: express$RouteMethodType; - lock: express$RouteMethodType; - mkcol: express$RouteMethodType; - move: express$RouteMethodType; - purge: express$RouteMethodType; - propfind: express$RouteMethodType; - proppatch: express$RouteMethodType; - unlock: express$RouteMethodType; - report: express$RouteMethodType; - mkactivity: express$RouteMethodType; - checkout: express$RouteMethodType; - merge: express$RouteMethodType; - - // @TODO Missing 'm-search' but get flow illegal name error. - - notify: express$RouteMethodType; - subscribe: express$RouteMethodType; - unsubscribe: express$RouteMethodType; - patch: express$RouteMethodType; - search: express$RouteMethodType; - connect: express$RouteMethodType; -} - -declare class express$Router extends express$Route { - constructor(options?: express$RouterOptions): void; - route(path: string): express$Route; - static (options?: express$RouterOptions): express$Router; - use(middleware: express$Middleware): this; - use(...middleware: Array): this; - use( - path: express$Path | express$Path[], - ...middleware: Array - ): this; - use(path: string, router: express$Router): this; - handle( - req: http$IncomingMessage, - res: http$ServerResponse, - next: express$NextFunction, - ): void; - param( - param: string, - callback: ( - req: $Subtype, - res: express$Response, - next: express$NextFunction, - id: string, - ) => mixed, - ): void; - ( - req: http$IncomingMessage, - res: http$ServerResponse, - next?: ?express$NextFunction, - ): void; -} - -/* -With flow-bin ^0.59, express app.listen() is deemed to return any and fails flow type coverage. -Which is ironic because https://github.com/facebook/flow/blob/master/Changelog.md#misc-2 (release notes for 0.59) -says "Improves typings for Node.js HTTP server listen() function." See that? IMPROVES! -To work around this issue, we changed Server to ?Server here, so that our invocations of express.listen() will -not be deemed to lack type coverage. -*/ - -declare class express$Application extends express$Router - mixins events$EventEmitter { - constructor(): void; - locals: { [name: string]: mixed }; - mountpath: string; - listen( - port: number, - hostname?: string, - backlog?: number, - callback?: (err?: ?Error) => mixed, - ): ?http.Server; - listen( - port: number, - hostname?: string, - callback?: (err?: ?Error) => mixed, - ): ?http.Server; - listen(port: number, callback?: (err?: ?Error) => mixed): ?http.Server; - listen(path: string, callback?: (err?: ?Error) => mixed): ?http.Server; - listen(handle: Object, callback?: (err?: ?Error) => mixed): ?http.Server; - disable(name: string): void; - disabled(name: string): boolean; - enable(name: string): express$Application; - enabled(name: string): boolean; - engine(name: string, callback: Function): void; - /** - * Mixed will not be taken as a value option. Issue around using the GET http method name and the get for settings. - */ - // get(name: string): mixed; - set(name: string, value: mixed): mixed; - render( - name: string, - optionsOrFunction: { [name: string]: mixed }, - callback: express$RenderCallback, - ): void; - handle( - req: http$IncomingMessage, - res: http$ServerResponse, - next?: ?express$NextFunction, - ): void; - // callable signature is not inherited - ( - req: http$IncomingMessage, - res: http$ServerResponse, - next?: ?express$NextFunction, - ): void; -} - -declare type JsonOptions = { - inflate?: boolean, - limit?: string | number, - reviver?: (key: string, value: mixed) => mixed, - strict?: boolean, - type?: string | Array | ((req: express$Request) => boolean), - verify?: ( - req: express$Request, - res: express$Response, - buf: Buffer, - encoding: string, - ) => mixed, -}; - -declare type express$UrlEncodedOptions = { - extended?: boolean, - inflate?: boolean, - limit?: string | number, - parameterLimit?: number, - type?: string | Array | ((req: express$Request) => boolean), - verify?: ( - req: express$Request, - res: express$Response, - buf: Buffer, - encoding: string, - ) => mixed, -}; - -declare module 'express' { - declare export type RouterOptions = express$RouterOptions; - declare export type CookieOptions = express$CookieOptions; - declare export type Middleware = express$Middleware; - declare export type NextFunction = express$NextFunction; - declare export type RequestParams = express$RequestParams; - declare export type $Response = express$Response; - declare export type $Request = express$Request; - declare export type $Application = express$Application; - - declare module.exports: { - (): express$Application, // If you try to call like a function, it will use this signature - json: (opts: ?JsonOptions) => express$Middleware, - static: (root: string, options?: Object) => express$Middleware, // `static` property on the function - Router: typeof express$Router, // `Router` property on the function - urlencoded: (opts: ?express$UrlEncodedOptions) => express$Middleware, - }; -} diff --git a/flow-typed/npm/file-loader_vx.x.x.js b/flow-typed/npm/file-loader_vx.x.x.js deleted file mode 100644 index 12b9aeb78..000000000 --- a/flow-typed/npm/file-loader_vx.x.x.js +++ /dev/null @@ -1,39 +0,0 @@ -// flow-typed signature: 44e2a11c0cc88024d7a90484b98d0664 -// flow-typed version: <>/file-loader_v^2.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'file-loader' - * - * 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 'file-loader' { - 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 'file-loader/dist/cjs' { - declare module.exports: any; -} - -declare module 'file-loader/dist/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'file-loader/dist/cjs.js' { - declare module.exports: $Exports<'file-loader/dist/cjs'>; -} -declare module 'file-loader/dist/index.js' { - declare module.exports: $Exports<'file-loader/dist/index'>; -} 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 7418f049c..000000000 --- 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 e4f61b685..000000000 --- a/flow-typed/npm/flow-typed_vx.x.x.js +++ /dev/null @@ -1,193 +0,0 @@ -// flow-typed signature: b02f33a909599455a0448db1e8f0e538 -// flow-typed version: <>/flow-typed_v^2.5.1/flow_v0.92.1 - -/** - * 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/front-matter_vx.x.x.js b/flow-typed/npm/front-matter_vx.x.x.js deleted file mode 100644 index ca78eda9a..000000000 --- a/flow-typed/npm/front-matter_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: 98251dac906508cb2cc92396d3902842 -// flow-typed version: <>/front-matter_v^2.3.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'front-matter' - * - * 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 'front-matter' { - 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 'front-matter/test/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'front-matter/index' { - declare module.exports: $Exports<'front-matter'>; -} -declare module 'front-matter/index.js' { - declare module.exports: $Exports<'front-matter'>; -} -declare module 'front-matter/test/index.js' { - declare module.exports: $Exports<'front-matter/test/index'>; -} diff --git a/flow-typed/npm/glob_v7.1.x.js b/flow-typed/npm/glob_v7.1.x.js deleted file mode 100644 index 32810253e..000000000 --- a/flow-typed/npm/glob_v7.1.x.js +++ /dev/null @@ -1,87 +0,0 @@ -// flow-typed signature: 7c09aef8ac07163d6ef9e3f50c6bc35c -// flow-typed version: a12a42a747/glob_v7.1.x/flow_>=v0.42.x - -declare module 'glob' { - declare type MinimatchOptions = {| - debug?: boolean, - nobrace?: boolean, - noglobstar?: boolean, - dot?: boolean, - noext?: boolean, - nocase?: boolean, - nonull?: boolean, - matchBase?: boolean, - nocomment?: boolean, - nonegate?: boolean, - flipNegate?: boolean, - |}; - - declare type Options = {| - ...MinimatchOptions, - cwd?: string, - root?: string, - nomount?: boolean, - mark?: boolean, - nosort?: boolean, - stat?: boolean, - silent?: boolean, - strict?: boolean, - cache?: { - [path: string]: boolean | 'DIR' | 'FILE' | $ReadOnlyArray, - }, - statCache?: { - [path: string]: boolean | { isDirectory(): boolean } | void, - }, - symlinks?: { [path: string]: boolean | void }, - realpathCache?: { [path: string]: string }, - sync?: boolean, - nounique?: boolean, - nodir?: boolean, - ignore?: string | $ReadOnlyArray, - follow?: boolean, - realpath?: boolean, - absolute?: boolean, - |}; - - /** - * Called when an error occurs, or matches are found - * err - * matches: filenames found matching the pattern - */ - declare type CallBack = (err: ?Error, matches: Array) => void; - - declare class Glob extends events$EventEmitter { - constructor(pattern: string): this; - constructor(pattern: string, callback: CallBack): this; - constructor(pattern: string, options: Options, callback: CallBack): this; - - minimatch: {}; - options: Options; - aborted: boolean; - cache: { - [path: string]: boolean | 'DIR' | 'FILE' | $ReadOnlyArray, - }; - statCache: { - [path: string]: boolean | { isDirectory(): boolean } | void, - }; - symlinks: { [path: string]: boolean | void }; - realpathCache: { [path: string]: string }; - found: Array; - - pause(): void; - resume(): void; - abort(): void; - } - - declare class GlobModule { - Glob: Class; - - (pattern: string, callback: CallBack): void; - (pattern: string, options: Options, callback: CallBack): void; - - hasMagic(pattern: string, options?: Options): boolean; - sync(pattern: string, options?: Options): Array; - } - - declare module.exports: GlobModule; -} diff --git a/flow-typed/npm/graphql_vx.x.x.js b/flow-typed/npm/graphql_vx.x.x.js deleted file mode 100644 index 70880b91a..000000000 --- a/flow-typed/npm/graphql_vx.x.x.js +++ /dev/null @@ -1,854 +0,0 @@ -// flow-typed signature: 6e311f1945e38270f4083c96820d1699 -// flow-typed version: <>/graphql_v14.0.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'graphql' - * - * 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 'graphql' { - 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 'graphql/error/formatError' { - declare module.exports: any; -} - -declare module 'graphql/error/GraphQLError' { - declare module.exports: any; -} - -declare module 'graphql/error/index' { - declare module.exports: any; -} - -declare module 'graphql/error/locatedError' { - declare module.exports: any; -} - -declare module 'graphql/error/printError' { - declare module.exports: any; -} - -declare module 'graphql/error/syntaxError' { - declare module.exports: any; -} - -declare module 'graphql/execution/execute' { - declare module.exports: any; -} - -declare module 'graphql/execution/index' { - declare module.exports: any; -} - -declare module 'graphql/execution/values' { - declare module.exports: any; -} - -declare module 'graphql/graphql' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/dedent' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/defineToJSON' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/defineToStringTag' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/find' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/inspect' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/instanceOf' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/invariant' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/isFinite' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/isInteger' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/isInvalid' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/isNullish' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/isPromise' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/keyMap' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/keyValMap' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/MaybePromise' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/memoize3' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/objectValues' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/ObjMap' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/orList' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/promiseForObject' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/promiseReduce' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/quotedOrList' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/suggestionList' { - declare module.exports: any; -} - -declare module 'graphql/language/ast' { - declare module.exports: any; -} - -declare module 'graphql/language/blockStringValue' { - declare module.exports: any; -} - -declare module 'graphql/language/directiveLocation' { - declare module.exports: any; -} - -declare module 'graphql/language/index' { - declare module.exports: any; -} - -declare module 'graphql/language/kinds' { - declare module.exports: any; -} - -declare module 'graphql/language/lexer' { - declare module.exports: any; -} - -declare module 'graphql/language/location' { - declare module.exports: any; -} - -declare module 'graphql/language/parser' { - declare module.exports: any; -} - -declare module 'graphql/language/predicates' { - declare module.exports: any; -} - -declare module 'graphql/language/printer' { - declare module.exports: any; -} - -declare module 'graphql/language/source' { - declare module.exports: any; -} - -declare module 'graphql/language/visitor' { - declare module.exports: any; -} - -declare module 'graphql/subscription/asyncIteratorReject' { - declare module.exports: any; -} - -declare module 'graphql/subscription/index' { - declare module.exports: any; -} - -declare module 'graphql/subscription/mapAsyncIterator' { - declare module.exports: any; -} - -declare module 'graphql/subscription/subscribe' { - declare module.exports: any; -} - -declare module 'graphql/type/definition' { - declare module.exports: any; -} - -declare module 'graphql/type/directives' { - declare module.exports: any; -} - -declare module 'graphql/type/index' { - declare module.exports: any; -} - -declare module 'graphql/type/introspection' { - declare module.exports: any; -} - -declare module 'graphql/type/scalars' { - declare module.exports: any; -} - -declare module 'graphql/type/schema' { - declare module.exports: any; -} - -declare module 'graphql/type/validate' { - declare module.exports: any; -} - -declare module 'graphql/utilities/assertValidName' { - declare module.exports: any; -} - -declare module 'graphql/utilities/astFromValue' { - declare module.exports: any; -} - -declare module 'graphql/utilities/buildASTSchema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/buildClientSchema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/coerceValue' { - declare module.exports: any; -} - -declare module 'graphql/utilities/concatAST' { - declare module.exports: any; -} - -declare module 'graphql/utilities/extendSchema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/findBreakingChanges' { - declare module.exports: any; -} - -declare module 'graphql/utilities/findDeprecatedUsages' { - declare module.exports: any; -} - -declare module 'graphql/utilities/getOperationAST' { - declare module.exports: any; -} - -declare module 'graphql/utilities/getOperationRootType' { - declare module.exports: any; -} - -declare module 'graphql/utilities/index' { - declare module.exports: any; -} - -declare module 'graphql/utilities/introspectionFromSchema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/introspectionQuery' { - declare module.exports: any; -} - -declare module 'graphql/utilities/isValidJSValue' { - declare module.exports: any; -} - -declare module 'graphql/utilities/isValidLiteralValue' { - declare module.exports: any; -} - -declare module 'graphql/utilities/lexicographicSortSchema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/schemaPrinter' { - declare module.exports: any; -} - -declare module 'graphql/utilities/separateOperations' { - declare module.exports: any; -} - -declare module 'graphql/utilities/typeComparators' { - declare module.exports: any; -} - -declare module 'graphql/utilities/typeFromAST' { - declare module.exports: any; -} - -declare module 'graphql/utilities/TypeInfo' { - declare module.exports: any; -} - -declare module 'graphql/utilities/valueFromAST' { - declare module.exports: any; -} - -declare module 'graphql/utilities/valueFromASTUntyped' { - declare module.exports: any; -} - -declare module 'graphql/validation/index' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/ExecutableDefinitions' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/FieldsOnCorrectType' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/FragmentsOnCompositeTypes' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/KnownArgumentNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/KnownDirectives' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/KnownFragmentNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/KnownTypeNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/LoneAnonymousOperation' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/LoneSchemaDefinition' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/NoFragmentCycles' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/NoUndefinedVariables' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/NoUnusedFragments' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/NoUnusedVariables' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/OverlappingFieldsCanBeMerged' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/PossibleFragmentSpreads' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/ProvidedRequiredArguments' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/ScalarLeafs' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/SingleFieldSubscriptions' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueArgumentNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueDirectivesPerLocation' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueFragmentNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueInputFieldNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueOperationNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueVariableNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/ValuesOfCorrectType' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/VariablesAreInputTypes' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/VariablesInAllowedPosition' { - declare module.exports: any; -} - -declare module 'graphql/validation/specifiedRules' { - declare module.exports: any; -} - -declare module 'graphql/validation/validate' { - declare module.exports: any; -} - -declare module 'graphql/validation/ValidationContext' { - declare module.exports: any; -} - -// Filename aliases -declare module 'graphql/error/formatError.js' { - declare module.exports: $Exports<'graphql/error/formatError'>; -} -declare module 'graphql/error/GraphQLError.js' { - declare module.exports: $Exports<'graphql/error/GraphQLError'>; -} -declare module 'graphql/error/index.js' { - declare module.exports: $Exports<'graphql/error/index'>; -} -declare module 'graphql/error/locatedError.js' { - declare module.exports: $Exports<'graphql/error/locatedError'>; -} -declare module 'graphql/error/printError.js' { - declare module.exports: $Exports<'graphql/error/printError'>; -} -declare module 'graphql/error/syntaxError.js' { - declare module.exports: $Exports<'graphql/error/syntaxError'>; -} -declare module 'graphql/execution/execute.js' { - declare module.exports: $Exports<'graphql/execution/execute'>; -} -declare module 'graphql/execution/index.js' { - declare module.exports: $Exports<'graphql/execution/index'>; -} -declare module 'graphql/execution/values.js' { - declare module.exports: $Exports<'graphql/execution/values'>; -} -declare module 'graphql/graphql.js' { - declare module.exports: $Exports<'graphql/graphql'>; -} -declare module 'graphql/index' { - declare module.exports: $Exports<'graphql'>; -} -declare module 'graphql/index.js' { - declare module.exports: $Exports<'graphql'>; -} -declare module 'graphql/jsutils/dedent.js' { - declare module.exports: $Exports<'graphql/jsutils/dedent'>; -} -declare module 'graphql/jsutils/defineToJSON.js' { - declare module.exports: $Exports<'graphql/jsutils/defineToJSON'>; -} -declare module 'graphql/jsutils/defineToStringTag.js' { - declare module.exports: $Exports<'graphql/jsutils/defineToStringTag'>; -} -declare module 'graphql/jsutils/find.js' { - declare module.exports: $Exports<'graphql/jsutils/find'>; -} -declare module 'graphql/jsutils/inspect.js' { - declare module.exports: $Exports<'graphql/jsutils/inspect'>; -} -declare module 'graphql/jsutils/instanceOf.js' { - declare module.exports: $Exports<'graphql/jsutils/instanceOf'>; -} -declare module 'graphql/jsutils/invariant.js' { - declare module.exports: $Exports<'graphql/jsutils/invariant'>; -} -declare module 'graphql/jsutils/isFinite.js' { - declare module.exports: $Exports<'graphql/jsutils/isFinite'>; -} -declare module 'graphql/jsutils/isInteger.js' { - declare module.exports: $Exports<'graphql/jsutils/isInteger'>; -} -declare module 'graphql/jsutils/isInvalid.js' { - declare module.exports: $Exports<'graphql/jsutils/isInvalid'>; -} -declare module 'graphql/jsutils/isNullish.js' { - declare module.exports: $Exports<'graphql/jsutils/isNullish'>; -} -declare module 'graphql/jsutils/isPromise.js' { - declare module.exports: $Exports<'graphql/jsutils/isPromise'>; -} -declare module 'graphql/jsutils/keyMap.js' { - declare module.exports: $Exports<'graphql/jsutils/keyMap'>; -} -declare module 'graphql/jsutils/keyValMap.js' { - declare module.exports: $Exports<'graphql/jsutils/keyValMap'>; -} -declare module 'graphql/jsutils/MaybePromise.js' { - declare module.exports: $Exports<'graphql/jsutils/MaybePromise'>; -} -declare module 'graphql/jsutils/memoize3.js' { - declare module.exports: $Exports<'graphql/jsutils/memoize3'>; -} -declare module 'graphql/jsutils/objectValues.js' { - declare module.exports: $Exports<'graphql/jsutils/objectValues'>; -} -declare module 'graphql/jsutils/ObjMap.js' { - declare module.exports: $Exports<'graphql/jsutils/ObjMap'>; -} -declare module 'graphql/jsutils/orList.js' { - declare module.exports: $Exports<'graphql/jsutils/orList'>; -} -declare module 'graphql/jsutils/promiseForObject.js' { - declare module.exports: $Exports<'graphql/jsutils/promiseForObject'>; -} -declare module 'graphql/jsutils/promiseReduce.js' { - declare module.exports: $Exports<'graphql/jsutils/promiseReduce'>; -} -declare module 'graphql/jsutils/quotedOrList.js' { - declare module.exports: $Exports<'graphql/jsutils/quotedOrList'>; -} -declare module 'graphql/jsutils/suggestionList.js' { - declare module.exports: $Exports<'graphql/jsutils/suggestionList'>; -} -declare module 'graphql/language/ast.js' { - declare module.exports: $Exports<'graphql/language/ast'>; -} -declare module 'graphql/language/blockStringValue.js' { - declare module.exports: $Exports<'graphql/language/blockStringValue'>; -} -declare module 'graphql/language/directiveLocation.js' { - declare module.exports: $Exports<'graphql/language/directiveLocation'>; -} -declare module 'graphql/language/index.js' { - declare module.exports: $Exports<'graphql/language/index'>; -} -declare module 'graphql/language/kinds.js' { - declare module.exports: $Exports<'graphql/language/kinds'>; -} -declare module 'graphql/language/lexer.js' { - declare module.exports: $Exports<'graphql/language/lexer'>; -} -declare module 'graphql/language/location.js' { - declare module.exports: $Exports<'graphql/language/location'>; -} -declare module 'graphql/language/parser.js' { - declare module.exports: $Exports<'graphql/language/parser'>; -} -declare module 'graphql/language/predicates.js' { - declare module.exports: $Exports<'graphql/language/predicates'>; -} -declare module 'graphql/language/printer.js' { - declare module.exports: $Exports<'graphql/language/printer'>; -} -declare module 'graphql/language/source.js' { - declare module.exports: $Exports<'graphql/language/source'>; -} -declare module 'graphql/language/visitor.js' { - declare module.exports: $Exports<'graphql/language/visitor'>; -} -declare module 'graphql/subscription/asyncIteratorReject.js' { - declare module.exports: $Exports<'graphql/subscription/asyncIteratorReject'>; -} -declare module 'graphql/subscription/index.js' { - declare module.exports: $Exports<'graphql/subscription/index'>; -} -declare module 'graphql/subscription/mapAsyncIterator.js' { - declare module.exports: $Exports<'graphql/subscription/mapAsyncIterator'>; -} -declare module 'graphql/subscription/subscribe.js' { - declare module.exports: $Exports<'graphql/subscription/subscribe'>; -} -declare module 'graphql/type/definition.js' { - declare module.exports: $Exports<'graphql/type/definition'>; -} -declare module 'graphql/type/directives.js' { - declare module.exports: $Exports<'graphql/type/directives'>; -} -declare module 'graphql/type/index.js' { - declare module.exports: $Exports<'graphql/type/index'>; -} -declare module 'graphql/type/introspection.js' { - declare module.exports: $Exports<'graphql/type/introspection'>; -} -declare module 'graphql/type/scalars.js' { - declare module.exports: $Exports<'graphql/type/scalars'>; -} -declare module 'graphql/type/schema.js' { - declare module.exports: $Exports<'graphql/type/schema'>; -} -declare module 'graphql/type/validate.js' { - declare module.exports: $Exports<'graphql/type/validate'>; -} -declare module 'graphql/utilities/assertValidName.js' { - declare module.exports: $Exports<'graphql/utilities/assertValidName'>; -} -declare module 'graphql/utilities/astFromValue.js' { - declare module.exports: $Exports<'graphql/utilities/astFromValue'>; -} -declare module 'graphql/utilities/buildASTSchema.js' { - declare module.exports: $Exports<'graphql/utilities/buildASTSchema'>; -} -declare module 'graphql/utilities/buildClientSchema.js' { - declare module.exports: $Exports<'graphql/utilities/buildClientSchema'>; -} -declare module 'graphql/utilities/coerceValue.js' { - declare module.exports: $Exports<'graphql/utilities/coerceValue'>; -} -declare module 'graphql/utilities/concatAST.js' { - declare module.exports: $Exports<'graphql/utilities/concatAST'>; -} -declare module 'graphql/utilities/extendSchema.js' { - declare module.exports: $Exports<'graphql/utilities/extendSchema'>; -} -declare module 'graphql/utilities/findBreakingChanges.js' { - declare module.exports: $Exports<'graphql/utilities/findBreakingChanges'>; -} -declare module 'graphql/utilities/findDeprecatedUsages.js' { - declare module.exports: $Exports<'graphql/utilities/findDeprecatedUsages'>; -} -declare module 'graphql/utilities/getOperationAST.js' { - declare module.exports: $Exports<'graphql/utilities/getOperationAST'>; -} -declare module 'graphql/utilities/getOperationRootType.js' { - declare module.exports: $Exports<'graphql/utilities/getOperationRootType'>; -} -declare module 'graphql/utilities/index.js' { - declare module.exports: $Exports<'graphql/utilities/index'>; -} -declare module 'graphql/utilities/introspectionFromSchema.js' { - declare module.exports: $Exports<'graphql/utilities/introspectionFromSchema'>; -} -declare module 'graphql/utilities/introspectionQuery.js' { - declare module.exports: $Exports<'graphql/utilities/introspectionQuery'>; -} -declare module 'graphql/utilities/isValidJSValue.js' { - declare module.exports: $Exports<'graphql/utilities/isValidJSValue'>; -} -declare module 'graphql/utilities/isValidLiteralValue.js' { - declare module.exports: $Exports<'graphql/utilities/isValidLiteralValue'>; -} -declare module 'graphql/utilities/lexicographicSortSchema.js' { - declare module.exports: $Exports<'graphql/utilities/lexicographicSortSchema'>; -} -declare module 'graphql/utilities/schemaPrinter.js' { - declare module.exports: $Exports<'graphql/utilities/schemaPrinter'>; -} -declare module 'graphql/utilities/separateOperations.js' { - declare module.exports: $Exports<'graphql/utilities/separateOperations'>; -} -declare module 'graphql/utilities/typeComparators.js' { - declare module.exports: $Exports<'graphql/utilities/typeComparators'>; -} -declare module 'graphql/utilities/typeFromAST.js' { - declare module.exports: $Exports<'graphql/utilities/typeFromAST'>; -} -declare module 'graphql/utilities/TypeInfo.js' { - declare module.exports: $Exports<'graphql/utilities/TypeInfo'>; -} -declare module 'graphql/utilities/valueFromAST.js' { - declare module.exports: $Exports<'graphql/utilities/valueFromAST'>; -} -declare module 'graphql/utilities/valueFromASTUntyped.js' { - declare module.exports: $Exports<'graphql/utilities/valueFromASTUntyped'>; -} -declare module 'graphql/validation/index.js' { - declare module.exports: $Exports<'graphql/validation/index'>; -} -declare module 'graphql/validation/rules/ExecutableDefinitions.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/ExecutableDefinitions', - >; -} -declare module 'graphql/validation/rules/FieldsOnCorrectType.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/FieldsOnCorrectType', - >; -} -declare module 'graphql/validation/rules/FragmentsOnCompositeTypes.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/FragmentsOnCompositeTypes', - >; -} -declare module 'graphql/validation/rules/KnownArgumentNames.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/KnownArgumentNames', - >; -} -declare module 'graphql/validation/rules/KnownDirectives.js' { - declare module.exports: $Exports<'graphql/validation/rules/KnownDirectives'>; -} -declare module 'graphql/validation/rules/KnownFragmentNames.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/KnownFragmentNames', - >; -} -declare module 'graphql/validation/rules/KnownTypeNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/KnownTypeNames'>; -} -declare module 'graphql/validation/rules/LoneAnonymousOperation.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/LoneAnonymousOperation', - >; -} -declare module 'graphql/validation/rules/LoneSchemaDefinition.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/LoneSchemaDefinition', - >; -} -declare module 'graphql/validation/rules/NoFragmentCycles.js' { - declare module.exports: $Exports<'graphql/validation/rules/NoFragmentCycles'>; -} -declare module 'graphql/validation/rules/NoUndefinedVariables.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/NoUndefinedVariables', - >; -} -declare module 'graphql/validation/rules/NoUnusedFragments.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/NoUnusedFragments', - >; -} -declare module 'graphql/validation/rules/NoUnusedVariables.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/NoUnusedVariables', - >; -} -declare module 'graphql/validation/rules/OverlappingFieldsCanBeMerged.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/OverlappingFieldsCanBeMerged', - >; -} -declare module 'graphql/validation/rules/PossibleFragmentSpreads.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/PossibleFragmentSpreads', - >; -} -declare module 'graphql/validation/rules/ProvidedRequiredArguments.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/ProvidedRequiredArguments', - >; -} -declare module 'graphql/validation/rules/ScalarLeafs.js' { - declare module.exports: $Exports<'graphql/validation/rules/ScalarLeafs'>; -} -declare module 'graphql/validation/rules/SingleFieldSubscriptions.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/SingleFieldSubscriptions', - >; -} -declare module 'graphql/validation/rules/UniqueArgumentNames.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/UniqueArgumentNames', - >; -} -declare module 'graphql/validation/rules/UniqueDirectivesPerLocation.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/UniqueDirectivesPerLocation', - >; -} -declare module 'graphql/validation/rules/UniqueFragmentNames.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/UniqueFragmentNames', - >; -} -declare module 'graphql/validation/rules/UniqueInputFieldNames.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/UniqueInputFieldNames', - >; -} -declare module 'graphql/validation/rules/UniqueOperationNames.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/UniqueOperationNames', - >; -} -declare module 'graphql/validation/rules/UniqueVariableNames.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/UniqueVariableNames', - >; -} -declare module 'graphql/validation/rules/ValuesOfCorrectType.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/ValuesOfCorrectType', - >; -} -declare module 'graphql/validation/rules/VariablesAreInputTypes.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/VariablesAreInputTypes', - >; -} -declare module 'graphql/validation/rules/VariablesInAllowedPosition.js' { - declare module.exports: $Exports< - 'graphql/validation/rules/VariablesInAllowedPosition', - >; -} -declare module 'graphql/validation/specifiedRules.js' { - declare module.exports: $Exports<'graphql/validation/specifiedRules'>; -} -declare module 'graphql/validation/validate.js' { - declare module.exports: $Exports<'graphql/validation/validate'>; -} -declare module 'graphql/validation/ValidationContext.js' { - declare module.exports: $Exports<'graphql/validation/ValidationContext'>; -} diff --git a/flow-typed/npm/history_v4.x.x.js b/flow-typed/npm/history_v4.x.x.js deleted file mode 100644 index 378c4b088..000000000 --- a/flow-typed/npm/history_v4.x.x.js +++ /dev/null @@ -1,139 +0,0 @@ -// flow-typed signature: 540e42745f797051f3bf17a6af1ccf06 -// flow-typed version: 6a3fe49a8b/history_v4.x.x/flow_>=v0.25.x - -declare module 'history/createBrowserHistory' { - declare function Unblock(): void; - - declare export type Action = 'PUSH' | 'REPLACE' | 'POP'; - - declare export type BrowserLocation = { - pathname: string, - search: string, - hash: string, - // Browser and Memory specific - state: {}, - key: string, - }; - - declare interface IBrowserHistory { - length: number; - location: BrowserLocation; - action: Action; - push(path: string, state?: {}): void; - push(location: $Shape): void; - replace(path: string, state?: {}): void; - replace(location: $Shape): void; - go(n: number): void; - goBack(): void; - goForward(): void; - listen: Function; - block(message: string): typeof Unblock; - block( - (location: BrowserLocation, action: Action) => string, - ): typeof Unblock; - } - - declare export type BrowserHistory = IBrowserHistory; - - declare type HistoryOpts = { - basename?: string, - forceRefresh?: boolean, - getUserConfirmation?: ( - message: string, - callback: (willContinue: boolean) => void, - ) => void, - }; - - declare export default (opts?: HistoryOpts) => BrowserHistory; -} - -declare module 'history/createMemoryHistory' { - declare function Unblock(): void; - - declare export type Action = 'PUSH' | 'REPLACE' | 'POP'; - - declare export type MemoryLocation = { - pathname: string, - search: string, - hash: string, - // Browser and Memory specific - state: {}, - key: string, - }; - - declare interface IMemoryHistory { - length: number; - location: MemoryLocation; - action: Action; - index: number; - entries: Array; - push(path: string, state?: {}): void; - push(location: $Shape): void; - replace(path: string, state?: {}): void; - replace(location: $Shape): void; - go(n: number): void; - goBack(): void; - goForward(): void; - // Memory only - canGo(n: number): boolean; - listen: Function; - block(message: string): typeof Unblock; - block((location: MemoryLocation, action: Action) => string): typeof Unblock; - } - - declare export type MemoryHistory = IMemoryHistory; - - declare type HistoryOpts = { - initialEntries?: Array, - initialIndex?: number, - keyLength?: number, - getUserConfirmation?: ( - message: string, - callback: (willContinue: boolean) => void, - ) => void, - }; - - declare export default (opts?: HistoryOpts) => MemoryHistory; -} - -declare module 'history/createHashHistory' { - declare function Unblock(): void; - - declare export type Action = 'PUSH' | 'REPLACE' | 'POP'; - - declare export type HashLocation = { - pathname: string, - search: string, - hash: string, - }; - - declare interface IHashHistory { - length: number; - location: HashLocation; - action: Action; - push(path: string, state?: {}): void; - push(location: $Shape): void; - replace(path: string, state?: {}): void; - replace(location: $Shape): void; - go(n: number): void; - goBack(): void; - goForward(): void; - listen: Function; - block(message: string): typeof Unblock; - block((location: HashLocation, action: Action) => string): typeof Unblock; - push(path: string): void; - } - - declare export type HashHistory = IHashHistory; - - declare type HistoryOpts = { - basename?: string, - hashType: 'slash' | 'noslash' | 'hashbang', - getUserConfirmation?: ( - message: string, - callback: (willContinue: boolean) => void, - ) => void, - }; - - declare export default (opts?: HistoryOpts) => HashHistory; -} diff --git a/flow-typed/npm/husky_vx.x.x.js b/flow-typed/npm/husky_vx.x.x.js deleted file mode 100644 index 92abcbf14..000000000 --- a/flow-typed/npm/husky_vx.x.x.js +++ /dev/null @@ -1,102 +0,0 @@ -// flow-typed signature: 5e9d46bd9524b875f05612c59071b043 -// flow-typed version: <>/husky_v^1.0.0-rc.15/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'husky' - * - * 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 'husky' { - 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 'husky/husky' { - declare module.exports: any; -} - -declare module 'husky/lib/getConf' { - declare module.exports: any; -} - -declare module 'husky/lib/installer/bin' { - declare module.exports: any; -} - -declare module 'husky/lib/installer/getScript' { - declare module.exports: any; -} - -declare module 'husky/lib/installer/index' { - declare module.exports: any; -} - -declare module 'husky/lib/installer/is' { - declare module.exports: any; -} - -declare module 'husky/lib/installer/resolveGitDir' { - declare module.exports: any; -} - -declare module 'husky/lib/runner/bin' { - declare module.exports: any; -} - -declare module 'husky/lib/runner/index' { - declare module.exports: any; -} - -declare module 'husky/lib/upgrader/bin' { - declare module.exports: any; -} - -declare module 'husky/lib/upgrader/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'husky/husky.js' { - declare module.exports: $Exports<'husky/husky'>; -} -declare module 'husky/lib/getConf.js' { - declare module.exports: $Exports<'husky/lib/getConf'>; -} -declare module 'husky/lib/installer/bin.js' { - declare module.exports: $Exports<'husky/lib/installer/bin'>; -} -declare module 'husky/lib/installer/getScript.js' { - declare module.exports: $Exports<'husky/lib/installer/getScript'>; -} -declare module 'husky/lib/installer/index.js' { - declare module.exports: $Exports<'husky/lib/installer/index'>; -} -declare module 'husky/lib/installer/is.js' { - declare module.exports: $Exports<'husky/lib/installer/is'>; -} -declare module 'husky/lib/installer/resolveGitDir.js' { - declare module.exports: $Exports<'husky/lib/installer/resolveGitDir'>; -} -declare module 'husky/lib/runner/bin.js' { - declare module.exports: $Exports<'husky/lib/runner/bin'>; -} -declare module 'husky/lib/runner/index.js' { - declare module.exports: $Exports<'husky/lib/runner/index'>; -} -declare module 'husky/lib/upgrader/bin.js' { - declare module.exports: $Exports<'husky/lib/upgrader/bin'>; -} -declare module 'husky/lib/upgrader/index.js' { - declare module.exports: $Exports<'husky/lib/upgrader/index'>; -} diff --git a/flow-typed/npm/identity-obj-proxy_vx.x.x.js b/flow-typed/npm/identity-obj-proxy_vx.x.x.js deleted file mode 100644 index e87e82e72..000000000 --- a/flow-typed/npm/identity-obj-proxy_vx.x.x.js +++ /dev/null @@ -1,140 +0,0 @@ -// flow-typed signature: ffb681d1e9979dacbc9ec0c255068339 -// flow-typed version: <>/identity-obj-proxy_v^3.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'identity-obj-proxy' - * - * 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 'identity-obj-proxy' { - 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 'identity-obj-proxy/src/__tests__/import-es6-export-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/__tests__/import-es6-import-export-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/__tests__/import-es6-import-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/__tests__/import-vanilla-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/__tests__/index-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/__tests__/require-es6-export-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/__tests__/require-es6-import-export-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/__tests__/require-es6-import-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/__tests__/require-vanilla-test' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/index' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/test-redirections/idObjES6Export' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/test-redirections/idObjES6Import' { - declare module.exports: any; -} - -declare module 'identity-obj-proxy/src/test-redirections/idObjES6ImportExport' { - declare module.exports: any; -} - -// Filename aliases -declare module 'identity-obj-proxy/src/__tests__/import-es6-export-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/import-es6-export-test', - >; -} -declare module 'identity-obj-proxy/src/__tests__/import-es6-import-export-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/import-es6-import-export-test', - >; -} -declare module 'identity-obj-proxy/src/__tests__/import-es6-import-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/import-es6-import-test', - >; -} -declare module 'identity-obj-proxy/src/__tests__/import-vanilla-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/import-vanilla-test', - >; -} -declare module 'identity-obj-proxy/src/__tests__/index-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/index-test', - >; -} -declare module 'identity-obj-proxy/src/__tests__/require-es6-export-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/require-es6-export-test', - >; -} -declare module 'identity-obj-proxy/src/__tests__/require-es6-import-export-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/require-es6-import-export-test', - >; -} -declare module 'identity-obj-proxy/src/__tests__/require-es6-import-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/require-es6-import-test', - >; -} -declare module 'identity-obj-proxy/src/__tests__/require-vanilla-test.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/__tests__/require-vanilla-test', - >; -} -declare module 'identity-obj-proxy/src/index.js' { - declare module.exports: $Exports<'identity-obj-proxy/src/index'>; -} -declare module 'identity-obj-proxy/src/test-redirections/idObjES6Export.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/test-redirections/idObjES6Export', - >; -} -declare module 'identity-obj-proxy/src/test-redirections/idObjES6Import.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/test-redirections/idObjES6Import', - >; -} -declare module 'identity-obj-proxy/src/test-redirections/idObjES6ImportExport.js' { - declare module.exports: $Exports< - 'identity-obj-proxy/src/test-redirections/idObjES6ImportExport', - >; -} diff --git a/flow-typed/npm/isomorphic-style-loader_vx.x.x.js b/flow-typed/npm/isomorphic-style-loader_vx.x.x.js deleted file mode 100644 index 3eda5b656..000000000 --- a/flow-typed/npm/isomorphic-style-loader_vx.x.x.js +++ /dev/null @@ -1,58 +0,0 @@ -// flow-typed signature: cf35d4b22220555244d9320cad1f8f11 -// flow-typed version: <>/isomorphic-style-loader_v^4.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'isomorphic-style-loader' - * - * 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 'isomorphic-style-loader' { - 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 'isomorphic-style-loader/lib/index' { - declare module.exports: any; -} - -declare module 'isomorphic-style-loader/lib/insertCss' { - declare module.exports: any; -} - -declare module 'isomorphic-style-loader/withStyles' { - // TODO: Using ComponentType does not work so simply return T. - // import type {ComponentType} from 'react'; - declare module.exports: ( - s1: string, - s2?: string, - s3?: string, - s4?: string, - s5?: string, - ) => ((component: T) => T); -} - -declare module 'isomorphic-style-loader/StyleContext' { - declare module.exports: any; -} - -// Filename aliases -declare module 'isomorphic-style-loader/lib/index.js' { - declare module.exports: $Exports<'isomorphic-style-loader/lib/index'>; -} -declare module 'isomorphic-style-loader/lib/insertCss.js' { - declare module.exports: $Exports<'isomorphic-style-loader/lib/insertCss'>; -} -declare module 'isomorphic-style-loader/withStyles.js' { - declare module.exports: $Exports<'isomorphic-style-loader/withStyles'>; -} diff --git a/flow-typed/npm/jest-codemods_vx.x.x.js b/flow-typed/npm/jest-codemods_vx.x.x.js deleted file mode 100644 index 5c3be1597..000000000 --- a/flow-typed/npm/jest-codemods_vx.x.x.js +++ /dev/null @@ -1,208 +0,0 @@ -// flow-typed signature: caa775cb81e845b2b429d8a6ad219afb -// flow-typed version: <>/jest-codemods_v^0.16.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'jest-codemods' - * - * 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 'jest-codemods' { - 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 'jest-codemods/bin/jest-codemods' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/cli/git-status' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/cli/index' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/cli/transformers' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/ava' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/chai-assert' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/chai-should' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/expect-js' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/expect' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/jasmine-globals' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/jasmine-this' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/mocha' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/should' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/transformers/tape' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/chai-chain-utils' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/consts' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/finale' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/imports' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/line-terminator' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/logger' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/proxyquire' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/quote-style' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/recast-helpers' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/tape-ava-helpers' { - declare module.exports: any; -} - -declare module 'jest-codemods/dist/utils/test-helpers' { - declare module.exports: any; -} - -// Filename aliases -declare module 'jest-codemods/bin/jest-codemods.js' { - declare module.exports: $Exports<'jest-codemods/bin/jest-codemods'>; -} -declare module 'jest-codemods/dist/cli/git-status.js' { - declare module.exports: $Exports<'jest-codemods/dist/cli/git-status'>; -} -declare module 'jest-codemods/dist/cli/index.js' { - declare module.exports: $Exports<'jest-codemods/dist/cli/index'>; -} -declare module 'jest-codemods/dist/cli/transformers.js' { - declare module.exports: $Exports<'jest-codemods/dist/cli/transformers'>; -} -declare module 'jest-codemods/dist/transformers/ava.js' { - declare module.exports: $Exports<'jest-codemods/dist/transformers/ava'>; -} -declare module 'jest-codemods/dist/transformers/chai-assert.js' { - declare module.exports: $Exports< - 'jest-codemods/dist/transformers/chai-assert', - >; -} -declare module 'jest-codemods/dist/transformers/chai-should.js' { - declare module.exports: $Exports< - 'jest-codemods/dist/transformers/chai-should', - >; -} -declare module 'jest-codemods/dist/transformers/expect-js.js' { - declare module.exports: $Exports<'jest-codemods/dist/transformers/expect-js'>; -} -declare module 'jest-codemods/dist/transformers/expect.js' { - declare module.exports: $Exports<'jest-codemods/dist/transformers/expect'>; -} -declare module 'jest-codemods/dist/transformers/jasmine-globals.js' { - declare module.exports: $Exports< - 'jest-codemods/dist/transformers/jasmine-globals', - >; -} -declare module 'jest-codemods/dist/transformers/jasmine-this.js' { - declare module.exports: $Exports< - 'jest-codemods/dist/transformers/jasmine-this', - >; -} -declare module 'jest-codemods/dist/transformers/mocha.js' { - declare module.exports: $Exports<'jest-codemods/dist/transformers/mocha'>; -} -declare module 'jest-codemods/dist/transformers/should.js' { - declare module.exports: $Exports<'jest-codemods/dist/transformers/should'>; -} -declare module 'jest-codemods/dist/transformers/tape.js' { - declare module.exports: $Exports<'jest-codemods/dist/transformers/tape'>; -} -declare module 'jest-codemods/dist/utils/chai-chain-utils.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/chai-chain-utils'>; -} -declare module 'jest-codemods/dist/utils/consts.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/consts'>; -} -declare module 'jest-codemods/dist/utils/finale.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/finale'>; -} -declare module 'jest-codemods/dist/utils/imports.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/imports'>; -} -declare module 'jest-codemods/dist/utils/line-terminator.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/line-terminator'>; -} -declare module 'jest-codemods/dist/utils/logger.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/logger'>; -} -declare module 'jest-codemods/dist/utils/proxyquire.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/proxyquire'>; -} -declare module 'jest-codemods/dist/utils/quote-style.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/quote-style'>; -} -declare module 'jest-codemods/dist/utils/recast-helpers.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/recast-helpers'>; -} -declare module 'jest-codemods/dist/utils/tape-ava-helpers.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/tape-ava-helpers'>; -} -declare module 'jest-codemods/dist/utils/test-helpers.js' { - declare module.exports: $Exports<'jest-codemods/dist/utils/test-helpers'>; -} diff --git a/flow-typed/npm/jest-transform-graphql_vx.x.x.js b/flow-typed/npm/jest-transform-graphql_vx.x.x.js deleted file mode 100644 index e2c276dde..000000000 --- a/flow-typed/npm/jest-transform-graphql_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 5049ee43d7c2c8528f43edb166dff071 -// flow-typed version: <>/jest-transform-graphql_v^2.1.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'jest-transform-graphql' - * - * 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 'jest-transform-graphql' { - 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 'jest-transform-graphql/index' { - declare module.exports: $Exports<'jest-transform-graphql'>; -} -declare module 'jest-transform-graphql/index.js' { - declare module.exports: $Exports<'jest-transform-graphql'>; -} diff --git a/flow-typed/npm/jest_v23.x.x.js b/flow-typed/npm/jest_v23.x.x.js deleted file mode 100644 index 1b2fa6a36..000000000 --- a/flow-typed/npm/jest_v23.x.x.js +++ /dev/null @@ -1,1167 +0,0 @@ -// flow-typed signature: 78c200acffbcc16bba9478f5396c3a00 -// flow-typed version: b2980740dd/jest_v23.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, - /** - * An array that contains all the object results that have been - * returned by this mock function call - */ - results: Array<{ isThrow: boolean, value: TReturn }>, - }, - /** - * 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, - /** - * Accepts a string to use in test result output in place of "jest.fn()" to - * indicate which mock function is being referenced. - */ - mockName(name: string): JestMockFn, - /** - * Just a simple sugar function for returning `this` - */ - mockReturnThis(): void, - /** - * Accepts a value that will be returned whenever the mock function is called. - */ - mockReturnValue(value: TReturn): JestMockFn, - /** - * Sugar for only returning a value once inside your mock - */ - mockReturnValueOnce(value: TReturn): JestMockFn, - /** - * Sugar for jest.fn().mockImplementation(() => Promise.resolve(value)) - */ - mockResolvedValue(value: TReturn): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementationOnce(() => Promise.resolve(value)) - */ - mockResolvedValueOnce( - value: TReturn, - ): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementation(() => Promise.reject(value)) - */ - mockRejectedValue(value: TReturn): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementationOnce(() => Promise.reject(value)) - */ - mockRejectedValueOnce(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 | Promise; - -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-styled-components - */ - -type JestStyledComponentsMatcherValue = - | string - | JestAsymmetricEqualityType - | RegExp - | typeof undefined; - -type JestStyledComponentsMatcherOptions = { - media?: string, - modifier?: string, - supports?: string, -}; - -type JestStyledComponentsMatchersType = { - toHaveStyleRule( - property: string, - value: JestStyledComponentsMatcherValue, - options?: JestStyledComponentsMatcherOptions, - ): void, -}; - -/** - * Plugin: jest-enzyme - */ -type EnzymeMatchersType = { - // 5.x - toBeEmpty(): void, - toBePresent(): void, - // 6.x - toBeChecked(): void, - toBeDisabled(): void, - toBeEmptyRender(): void, - toContainMatchingElement(selector: string): void, - toContainMatchingElements(n: number, selector: string): void, - toContainExactlyOneMatchingElement(selector: string): void, - toContainReact(element: React$Element): void, - toExist(): void, - toHaveClassName(className: string): void, - toHaveHTML(html: string): void, - toHaveProp: ((propKey: string, propValue?: any) => void) & - ((props: Object) => void), - toHaveRef(refName: string): void, - toHaveState: ((stateKey: string, stateValue?: any) => void) & - ((state: Object) => void), - toHaveStyle: ((styleKey: string, styleValue?: any) => void) & - ((style: Object) => void), - toHaveTagName(tagName: string): void, - toHaveText(text: string): void, - toHaveValue(value: any): void, - toIncludeText(text: string): void, - toMatchElement( - element: React$Element, - options?: {| ignoreProps?: boolean, verbose?: boolean |}, - ): void, - toMatchSelector(selector: string): void, - // 7.x - toHaveDisplayName(name: string): void, -}; - -// DOM testing library extensions https://github.com/kentcdodds/dom-testing-library#custom-jest-matchers -type DomTestingLibraryType = { - toBeDisabled(): void, - toBeEmpty(): void, - toBeInTheDocument(): void, - toBeVisible(): void, - toContainElement(element: HTMLElement | null): void, - toContainHTML(htmlText: string): void, - toHaveAttribute(name: string, expectedValue?: string): void, - toHaveClass(...classNames: string[]): void, - toHaveFocus(): void, - toHaveFormValues(expectedValues: { [name: string]: any }): void, - toHaveStyle(css: string): void, - toHaveTextContent( - content: string | RegExp, - options?: { normalizeWhitespace: boolean }, - ): void, - toBeInTheDOM(): void, -}; - -// Jest JQuery Matchers: https://github.com/unindented/custom-jquery-matchers -type JestJQueryMatchersType = { - toExist(): void, - toHaveLength(len: number): void, - toHaveId(id: string): void, - toHaveClass(className: string): void, - toHaveTag(tag: string): void, - toHaveAttr(key: string, val?: any): void, - toHaveProp(key: string, val?: any): void, - toHaveText(text: string | RegExp): void, - toHaveData(key: string, val?: any): void, - toHaveValue(val: any): void, - toHaveCss(css: { [key: string]: any }): void, - toBeChecked(): void, - toBeDisabled(): void, - toBeEmpty(): void, - toBeHidden(): void, - toBeSelected(): void, - toBeVisible(): void, - toBeFocused(): void, - toBeInDom(): void, - toBeMatchedBy(sel: string): void, - toHaveDescendant(sel: string): void, - toHaveDescendantWithText(sel: string, text: string | RegExp): void, -}; - -// Jest Extended Matchers: https://github.com/jest-community/jest-extended -type JestExtendedMatchersType = { - /** - * Note: Currently unimplemented - * Passing assertion - * - * @param {String} message - */ - // pass(message: string): void; - - /** - * Note: Currently unimplemented - * Failing assertion - * - * @param {String} message - */ - // fail(message: string): void; - - /** - * Use .toBeEmpty when checking if a String '', Array [] or Object {} is empty. - */ - toBeEmpty(): void, - - /** - * Use .toBeOneOf when checking if a value is a member of a given Array. - * @param {Array.<*>} members - */ - toBeOneOf(members: any[]): void, - - /** - * Use `.toBeNil` when checking a value is `null` or `undefined`. - */ - toBeNil(): void, - - /** - * Use `.toSatisfy` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean`. - * @param {Function} predicate - */ - toSatisfy(predicate: (n: any) => boolean): void, - - /** - * Use `.toBeArray` when checking if a value is an `Array`. - */ - toBeArray(): void, - - /** - * Use `.toBeArrayOfSize` when checking if a value is an `Array` of size x. - * @param {Number} x - */ - toBeArrayOfSize(x: number): void, - - /** - * Use `.toIncludeAllMembers` when checking if an `Array` contains all of the same members of a given set. - * @param {Array.<*>} members - */ - toIncludeAllMembers(members: any[]): void, - - /** - * Use `.toIncludeAnyMembers` when checking if an `Array` contains any of the members of a given set. - * @param {Array.<*>} members - */ - toIncludeAnyMembers(members: any[]): void, - - /** - * Use `.toSatisfyAll` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean` for all values in an array. - * @param {Function} predicate - */ - toSatisfyAll(predicate: (n: any) => boolean): void, - - /** - * Use `.toBeBoolean` when checking if a value is a `Boolean`. - */ - toBeBoolean(): void, - - /** - * Use `.toBeTrue` when checking a value is equal (===) to `true`. - */ - toBeTrue(): void, - - /** - * Use `.toBeFalse` when checking a value is equal (===) to `false`. - */ - toBeFalse(): void, - - /** - * Use .toBeDate when checking if a value is a Date. - */ - toBeDate(): void, - - /** - * Use `.toBeFunction` when checking if a value is a `Function`. - */ - toBeFunction(): void, - - /** - * Use `.toHaveBeenCalledBefore` when checking if a `Mock` was called before another `Mock`. - * - * Note: Required Jest version >22 - * Note: Your mock functions will have to be asynchronous to cause the timestamps inside of Jest to occur in a differentJS event loop, otherwise the mock timestamps will all be the same - * - * @param {Mock} mock - */ - toHaveBeenCalledBefore(mock: JestMockFn): void, - - /** - * Use `.toBeNumber` when checking if a value is a `Number`. - */ - toBeNumber(): void, - - /** - * Use `.toBeNaN` when checking a value is `NaN`. - */ - toBeNaN(): void, - - /** - * Use `.toBeFinite` when checking if a value is a `Number`, not `NaN` or `Infinity`. - */ - toBeFinite(): void, - - /** - * Use `.toBePositive` when checking if a value is a positive `Number`. - */ - toBePositive(): void, - - /** - * Use `.toBeNegative` when checking if a value is a negative `Number`. - */ - toBeNegative(): void, - - /** - * Use `.toBeEven` when checking if a value is an even `Number`. - */ - toBeEven(): void, - - /** - * Use `.toBeOdd` when checking if a value is an odd `Number`. - */ - toBeOdd(): void, - - /** - * Use `.toBeWithin` when checking if a number is in between the given bounds of: start (inclusive) and end (exclusive). - * - * @param {Number} start - * @param {Number} end - */ - toBeWithin(start: number, end: number): void, - - /** - * Use `.toBeObject` when checking if a value is an `Object`. - */ - toBeObject(): void, - - /** - * Use `.toContainKey` when checking if an object contains the provided key. - * - * @param {String} key - */ - toContainKey(key: string): void, - - /** - * Use `.toContainKeys` when checking if an object has all of the provided keys. - * - * @param {Array.} keys - */ - toContainKeys(keys: string[]): void, - - /** - * Use `.toContainAllKeys` when checking if an object only contains all of the provided keys. - * - * @param {Array.} keys - */ - toContainAllKeys(keys: string[]): void, - - /** - * Use `.toContainAnyKeys` when checking if an object contains at least one of the provided keys. - * - * @param {Array.} keys - */ - toContainAnyKeys(keys: string[]): void, - - /** - * Use `.toContainValue` when checking if an object contains the provided value. - * - * @param {*} value - */ - toContainValue(value: any): void, - - /** - * Use `.toContainValues` when checking if an object contains all of the provided values. - * - * @param {Array.<*>} values - */ - toContainValues(values: any[]): void, - - /** - * Use `.toContainAllValues` when checking if an object only contains all of the provided values. - * - * @param {Array.<*>} values - */ - toContainAllValues(values: any[]): void, - - /** - * Use `.toContainAnyValues` when checking if an object contains at least one of the provided values. - * - * @param {Array.<*>} values - */ - toContainAnyValues(values: any[]): void, - - /** - * Use `.toContainEntry` when checking if an object contains the provided entry. - * - * @param {Array.} entry - */ - toContainEntry(entry: [string, string]): void, - - /** - * Use `.toContainEntries` when checking if an object contains all of the provided entries. - * - * @param {Array.>} entries - */ - toContainEntries(entries: [string, string][]): void, - - /** - * Use `.toContainAllEntries` when checking if an object only contains all of the provided entries. - * - * @param {Array.>} entries - */ - toContainAllEntries(entries: [string, string][]): void, - - /** - * Use `.toContainAnyEntries` when checking if an object contains at least one of the provided entries. - * - * @param {Array.>} entries - */ - toContainAnyEntries(entries: [string, string][]): void, - - /** - * Use `.toBeExtensible` when checking if an object is extensible. - */ - toBeExtensible(): void, - - /** - * Use `.toBeFrozen` when checking if an object is frozen. - */ - toBeFrozen(): void, - - /** - * Use `.toBeSealed` when checking if an object is sealed. - */ - toBeSealed(): void, - - /** - * Use `.toBeString` when checking if a value is a `String`. - */ - toBeString(): void, - - /** - * Use `.toEqualCaseInsensitive` when checking if a string is equal (===) to another ignoring the casing of both strings. - * - * @param {String} string - */ - toEqualCaseInsensitive(string: string): void, - - /** - * Use `.toStartWith` when checking if a `String` starts with a given `String` prefix. - * - * @param {String} prefix - */ - toStartWith(prefix: string): void, - - /** - * Use `.toEndWith` when checking if a `String` ends with a given `String` suffix. - * - * @param {String} suffix - */ - toEndWith(suffix: string): void, - - /** - * Use `.toInclude` when checking if a `String` includes the given `String` substring. - * - * @param {String} substring - */ - toInclude(substring: string): void, - - /** - * Use `.toIncludeRepeated` when checking if a `String` includes the given `String` substring the correct number of times. - * - * @param {String} substring - * @param {Number} times - */ - toIncludeRepeated(substring: string, times: number): void, - - /** - * Use `.toIncludeMultiple` when checking if a `String` includes all of the given substrings. - * - * @param {Array.} substring - */ - toIncludeMultiple(substring: string[]): void, -}; - -interface JestExpectType { - not: JestExpectType & - EnzymeMatchersType & - DomTestingLibraryType & - JestJQueryMatchersType & - JestStyledComponentsMatchersType & - JestExtendedMatchersType; - /** - * 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 .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; - toBeCalled(): void; - /** - * Use .toHaveBeenCalledTimes to ensure that a mock function got called exact - * number of times. - */ - toHaveBeenCalledTimes(number: number): void; - toBeCalledTimes(number: number): void; - /** - * - */ - toHaveBeenNthCalledWith(nthCall: number, ...args: Array): void; - nthCalledWith(nthCall: number, ...args: Array): void; - /** - * - */ - toHaveReturned(): void; - toReturn(): void; - /** - * - */ - toHaveReturnedTimes(number: number): void; - toReturnTimes(number: number): void; - /** - * - */ - toHaveReturnedWith(value: any): void; - toReturnWith(value: any): void; - /** - * - */ - toHaveLastReturnedWith(value: any): void; - lastReturnedWith(value: any): void; - /** - * - */ - toHaveNthReturnedWith(nthCall: number, value: any): void; - nthReturnedWith(nthCall: number, value: any): void; - /** - * Use .toHaveBeenCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toHaveBeenCalledWith(...args: Array): void; - toBeCalledWith(...args: Array): void; - /** - * Use .toHaveBeenLastCalledWith to ensure that a mock function was last called - * with specific arguments. - */ - toHaveBeenLastCalledWith(...args: Array): void; - lastCalledWith(...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; - /** - * Use .toStrictEqual to check that a javascript object matches a subset of the properties of an object. - */ - toStrictEqual(value: any): void; - /** - * This ensures that an Object matches the most recent snapshot. - */ - toMatchSnapshot(propertyMatchers?: any, name?: string): void; - /** - * This ensures that an Object matches the most recent snapshot. - */ - toMatchSnapshot(name: string): void; - - toMatchInlineSnapshot(snapshot?: string): void; - toMatchInlineSnapshot(propertyMatchers?: any, snapshot?: 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; - toThrowErrorMatchingInlineSnapshot(snapshot?: string): 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()). - */ - advanceTimersByTime(msToRun: number): void, - /** - * Executes only the macro task queue (i.e. all tasks queued by setTimeout() - * or setInterval() and setImmediate()). - * - * Renamed to `advanceTimersByTime`. - */ - 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, - accessType?: 'get' | 'set', - ): 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, - - /** - * each runs this test against array of argument arrays per each run - * - * @param {table} table of Test - */ - each( - ...table: Array | mixed> | [Array, string] - ): ( - name: JestTestName, - fn?: (...args: Array) => ?Promise, - timeout?: number, - ) => 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, - ): { - each( - ...table: Array | mixed> | [Array, string] - ): ( - name: JestTestName, - fn?: (...args: Array) => ?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, - - /** - * each runs this test against array of argument arrays per each run - * - * @param {table} table of Test - */ - each( - ...table: Array | mixed> | [Array, string] - ): ( - name: JestTestName, - fn?: (...args: Array) => ?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; - -type JestPrettyFormatColors = { - comment: { close: string, open: string }, - content: { close: string, open: string }, - prop: { close: string, open: string }, - tag: { close: string, open: string }, - value: { close: string, open: string }, -}; - -type JestPrettyFormatIndent = string => string; -type JestPrettyFormatRefs = Array; -type JestPrettyFormatPrint = any => string; -type JestPrettyFormatStringOrNull = string | null; - -type JestPrettyFormatOptions = {| - callToJSON: boolean, - edgeSpacing: string, - escapeRegex: boolean, - highlight: boolean, - indent: number, - maxDepth: number, - min: boolean, - plugins: JestPrettyFormatPlugins, - printFunctionName: boolean, - spacing: string, - theme: {| - comment: string, - content: string, - prop: string, - tag: string, - value: string, - |}, -|}; - -type JestPrettyFormatPlugin = { - print: ( - val: any, - serialize: JestPrettyFormatPrint, - indent: JestPrettyFormatIndent, - opts: JestPrettyFormatOptions, - colors: JestPrettyFormatColors, - ) => string, - test: any => boolean, -}; - -type JestPrettyFormatPlugins = Array; - -/** 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 & - DomTestingLibraryType & - JestJQueryMatchersType & - JestStyledComponentsMatchersType & - JestExtendedMatchersType, - - /** Add additional Jasmine matchers to Jest's roster */ - extend(matchers: { [name: string]: JestMatcher }): void, - /** Add a module that formats application-specific data structures. */ - addSnapshotSerializer(pluginModule: JestPrettyFormatPlugin): void, - assertions(expectedAssertions: number): void, - hasAssertions(): void, - any(value: mixed): JestAsymmetricEqualityType, - anything(): any, - arrayContaining(value: Array): Array, - objectContaining(value: Object): Object, - /** Matches any received string that contains the exact expected string. */ - stringContaining(value: string): string, - stringMatching(value: string | RegExp): string, - not: { - arrayContaining: (value: $ReadOnlyArray) => Array, - objectContaining: (value: {}) => Object, - stringContaining: (value: string) => string, - stringMatching: (value: string | RegExp) => string, - }, -}; - -// 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(): any, - arrayContaining(value: Array): Array, - clock(): JestClockType, - createSpy(name: string): JestSpyType, - createSpyObj( - baseName: string, - methodNames: Array, - ): { [methodName: string]: JestSpyType }, - objectContaining(value: Object): Object, - stringMatching(value: string): string, -}; diff --git a/flow-typed/npm/jsonwebtoken_v8.3.x.js b/flow-typed/npm/jsonwebtoken_v8.3.x.js deleted file mode 100644 index 98f2115bb..000000000 --- a/flow-typed/npm/jsonwebtoken_v8.3.x.js +++ /dev/null @@ -1,202 +0,0 @@ -// flow-typed signature: f48002d14be342f8c30bc4457a522076 -// flow-typed version: ee6ed3a599/jsonwebtoken_v8.3.x/flow_>=v0.56.x - -declare module 'jsonwebtoken' { - declare class JsonWebTokenError extends Error { - name: string; - message: string; - inner: Error; - } - - declare class TokenExpiredError extends Error { - name: string; - expiredAt: number; - inner: Error; - } - - declare class NotBeforeError extends Error { - name: string; - date: Date; - inner: Error; - } - - declare type Encodable = String | Buffer | Object; - declare type Key = { key: string | Buffer, passphrase: string | Buffer }; - declare type Algorithm = - | 'RS256' - | 'RS384' - | 'RS512' - | 'ES256' - | 'ES384' - | 'ES512' - | 'HS256' - | 'HS384' - | 'HS512' - | 'none'; - - declare type SignCallback = (err: Error, token: string) => void; - declare type SigningOptions = $Shape<{ - algorithm: Algorithm, - expiresIn: number | string, - notBefore: number | string, - audience: string | string[], - issuer: string | string[], - jwtid: string, - subject: string, - noTimestamp: boolean, - header: Headers, - keyid: string, - }>; - - declare type SigningOptionsWithAlgorithm = SigningOptions & { - algorithm: Algorithm, - }; - - declare type VerifyCallback = ( - err: JsonWebTokenError | NotBeforeError | TokenExpiredError | null, - decoded: Payload, - ) => void; - declare type VerifyOptionsWithAlgorithm = VerifyOptions & { - algorithms: Array, - }; - declare type VerifyOptions = $Shape<{ - algorithms: Array, - audience: string | string[], - issuer: string | string[], - ignoreExpiration: boolean, - ignoreNotBefore: boolean, - subject: string | string[], - clockTolerance: number, - maxAge: string | number, - clockTimestamp: number, - }>; - - declare type DecodingOptions = $Shape<{ - complete: boolean, - json: boolean, - }>; - - declare interface Sign { - (payload: P, secretOrPrivateKey: string | Buffer): string; - - ( - payload: P, - secretOrPrivateKey: string | Buffer, - callback: SignCallback, - ): string; - - ( - payload: P, - secretOrPrivateKey: Key, - options: SigningOptionsWithAlgorithm, - ): string; - - ( - payload: P, - secretOrPrivateKey: string | Buffer, - options: $Shape>, - ): string; - - ( - payload: P, - secretOrPrivateKey: string | Buffer, - options: $Shape>, - callback: SignCallback, - ): string; - - ( - payload: P, - secretOrPrivateKey: Key, - options: SigningOptionsWithAlgorithm, - callback: SignCallback, - ): string; - } - - declare type Payload = Object & { - jti?: string, - iss?: string, - sub?: string, - aud?: string | string[], - exp?: number, - iat?: number, - nbf?: number, - }; - - declare type Token = { - header: { typ: 'JWT', alg: Algorithm }, - payload: Payload, - signature?: string, - }; - - declare interface Decode { - (jwt: string): Payload; - - (jwt: string, options: DecodingOptions): Payload; - - (jwt: string, options: DecodingOptions & { complete: true }): Token; - } - - declare interface Verify { - (jwt: string, secretOrPrivateKey: string | Buffer): Payload; - - ( - jwt: string, - secretOrPrivateKey: string | Buffer, - options: VerifyOptions | VerifyCallback, - ): Payload; - - ( - jwt: string, - secretOrPrivateKey: string | Buffer, - options: VerifyOptions, - callback: VerifyCallback, - ): Payload; - - ( - jwt: string, - secretOrPrivateKey: Key, - options: VerifyOptionsWithAlgorithm, - ): Payload; - - ( - jwt: string, - secretOrPrivateKey: Key, - options: VerifyOptionsWithAlgorithm, - callback: VerifyCallback, - ): Payload; - - ( - jwt: string, - getKey: ( - header: { kid: ?string }, - callback: (err: ?Error, key?: string) => any, - ) => any, - callback: VerifyCallback, - ): Payload; - - ( - jwt: string, - getKey: ( - header: { kid: ?string }, - callback: (err: ?Error, key?: string) => any, - ) => any, - options: VerifyOptionsWithAlgorithm, - callback: VerifyCallback, - ): Payload; - } - - declare class TokenExpiredError extends Error {} - - declare class WebTokenError extends Error {} - - declare class NotBeforeError extends Error {} - - declare module.exports: { - sign: Sign, - decode: Decode, - verify: Verify, - JsonWebTokenError: Class, - NotBeforeError: Class, - TokenExpiredError: Class, - }; -} diff --git a/flow-typed/npm/lint-staged_vx.x.x.js b/flow-typed/npm/lint-staged_vx.x.x.js deleted file mode 100644 index 67ddec639..000000000 --- a/flow-typed/npm/lint-staged_vx.x.x.js +++ /dev/null @@ -1,108 +0,0 @@ -// flow-typed signature: 4440f7899d7760504e39020d0130e8d9 -// flow-typed version: <>/lint-staged_v^7.3.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'lint-staged' - * - * 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 'lint-staged' { - 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 'lint-staged/src/calcChunkSize' { - declare module.exports: any; -} - -declare module 'lint-staged/src/checkPkgScripts' { - declare module.exports: any; -} - -declare module 'lint-staged/src/findBin' { - declare module.exports: any; -} - -declare module 'lint-staged/src/generateTasks' { - declare module.exports: any; -} - -declare module 'lint-staged/src/getConfig' { - declare module.exports: any; -} - -declare module 'lint-staged/src/index' { - declare module.exports: any; -} - -declare module 'lint-staged/src/makeCmdTasks' { - declare module.exports: any; -} - -declare module 'lint-staged/src/printErrors' { - declare module.exports: any; -} - -declare module 'lint-staged/src/resolveGitDir' { - declare module.exports: any; -} - -declare module 'lint-staged/src/resolveTaskFn' { - declare module.exports: any; -} - -declare module 'lint-staged/src/runAll' { - declare module.exports: any; -} - -// Filename aliases -declare module 'lint-staged/index' { - declare module.exports: $Exports<'lint-staged'>; -} -declare module 'lint-staged/index.js' { - declare module.exports: $Exports<'lint-staged'>; -} -declare module 'lint-staged/src/calcChunkSize.js' { - declare module.exports: $Exports<'lint-staged/src/calcChunkSize'>; -} -declare module 'lint-staged/src/checkPkgScripts.js' { - declare module.exports: $Exports<'lint-staged/src/checkPkgScripts'>; -} -declare module 'lint-staged/src/findBin.js' { - declare module.exports: $Exports<'lint-staged/src/findBin'>; -} -declare module 'lint-staged/src/generateTasks.js' { - declare module.exports: $Exports<'lint-staged/src/generateTasks'>; -} -declare module 'lint-staged/src/getConfig.js' { - declare module.exports: $Exports<'lint-staged/src/getConfig'>; -} -declare module 'lint-staged/src/index.js' { - declare module.exports: $Exports<'lint-staged/src/index'>; -} -declare module 'lint-staged/src/makeCmdTasks.js' { - declare module.exports: $Exports<'lint-staged/src/makeCmdTasks'>; -} -declare module 'lint-staged/src/printErrors.js' { - declare module.exports: $Exports<'lint-staged/src/printErrors'>; -} -declare module 'lint-staged/src/resolveGitDir.js' { - declare module.exports: $Exports<'lint-staged/src/resolveGitDir'>; -} -declare module 'lint-staged/src/resolveTaskFn.js' { - declare module.exports: $Exports<'lint-staged/src/resolveTaskFn'>; -} -declare module 'lint-staged/src/runAll.js' { - declare module.exports: $Exports<'lint-staged/src/runAll'>; -} diff --git a/flow-typed/npm/lodash.merge_vx.x.x.js b/flow-typed/npm/lodash.merge_vx.x.x.js deleted file mode 100644 index 1ecbd0b77..000000000 --- a/flow-typed/npm/lodash.merge_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 4618c58dd366c44955488c590405500c -// flow-typed version: <>/lodash.merge_v^4.6.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'lodash.merge' - * - * 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 'lodash.merge' { - 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 'lodash.merge/index' { - declare module.exports: $Exports<'lodash.merge'>; -} -declare module 'lodash.merge/index.js' { - declare module.exports: $Exports<'lodash.merge'>; -} diff --git a/flow-typed/npm/markdown-it_vx.x.x.js b/flow-typed/npm/markdown-it_vx.x.x.js deleted file mode 100644 index 26e95a976..000000000 --- a/flow-typed/npm/markdown-it_vx.x.x.js +++ /dev/null @@ -1,417 +0,0 @@ -// flow-typed signature: 9997c5e0bdd8e923086d784f4b279e96 -// flow-typed version: <>/markdown-it_v^8.4.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'markdown-it' - * - * 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 'markdown-it' { - 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 'markdown-it/bin/markdown-it' { - declare module.exports: any; -} - -declare module 'markdown-it/dist/markdown-it' { - declare module.exports: any; -} - -declare module 'markdown-it/dist/markdown-it.min' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/common/entities' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/common/html_blocks' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/common/html_re' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/common/utils' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/helpers/index' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/helpers/parse_link_destination' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/helpers/parse_link_label' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/helpers/parse_link_title' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/index' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/parser_block' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/parser_core' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/parser_inline' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/presets/commonmark' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/presets/default' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/presets/zero' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/renderer' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/ruler' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/blockquote' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/code' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/fence' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/heading' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/hr' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/html_block' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/lheading' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/list' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/paragraph' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/reference' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/state_block' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_block/table' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_core/block' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_core/inline' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_core/linkify' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_core/normalize' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_core/replacements' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_core/smartquotes' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_core/state_core' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/autolink' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/backticks' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/balance_pairs' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/emphasis' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/entity' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/escape' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/html_inline' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/image' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/link' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/newline' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/state_inline' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/strikethrough' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/text_collapse' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/rules_inline/text' { - declare module.exports: any; -} - -declare module 'markdown-it/lib/token' { - declare module.exports: any; -} - -// Filename aliases -declare module 'markdown-it/bin/markdown-it.js' { - declare module.exports: $Exports<'markdown-it/bin/markdown-it'>; -} -declare module 'markdown-it/dist/markdown-it.js' { - declare module.exports: $Exports<'markdown-it/dist/markdown-it'>; -} -declare module 'markdown-it/dist/markdown-it.min.js' { - declare module.exports: $Exports<'markdown-it/dist/markdown-it.min'>; -} -declare module 'markdown-it/index' { - declare module.exports: $Exports<'markdown-it'>; -} -declare module 'markdown-it/index.js' { - declare module.exports: $Exports<'markdown-it'>; -} -declare module 'markdown-it/lib/common/entities.js' { - declare module.exports: $Exports<'markdown-it/lib/common/entities'>; -} -declare module 'markdown-it/lib/common/html_blocks.js' { - declare module.exports: $Exports<'markdown-it/lib/common/html_blocks'>; -} -declare module 'markdown-it/lib/common/html_re.js' { - declare module.exports: $Exports<'markdown-it/lib/common/html_re'>; -} -declare module 'markdown-it/lib/common/utils.js' { - declare module.exports: $Exports<'markdown-it/lib/common/utils'>; -} -declare module 'markdown-it/lib/helpers/index.js' { - declare module.exports: $Exports<'markdown-it/lib/helpers/index'>; -} -declare module 'markdown-it/lib/helpers/parse_link_destination.js' { - declare module.exports: $Exports< - 'markdown-it/lib/helpers/parse_link_destination', - >; -} -declare module 'markdown-it/lib/helpers/parse_link_label.js' { - declare module.exports: $Exports<'markdown-it/lib/helpers/parse_link_label'>; -} -declare module 'markdown-it/lib/helpers/parse_link_title.js' { - declare module.exports: $Exports<'markdown-it/lib/helpers/parse_link_title'>; -} -declare module 'markdown-it/lib/index.js' { - declare module.exports: $Exports<'markdown-it/lib/index'>; -} -declare module 'markdown-it/lib/parser_block.js' { - declare module.exports: $Exports<'markdown-it/lib/parser_block'>; -} -declare module 'markdown-it/lib/parser_core.js' { - declare module.exports: $Exports<'markdown-it/lib/parser_core'>; -} -declare module 'markdown-it/lib/parser_inline.js' { - declare module.exports: $Exports<'markdown-it/lib/parser_inline'>; -} -declare module 'markdown-it/lib/presets/commonmark.js' { - declare module.exports: $Exports<'markdown-it/lib/presets/commonmark'>; -} -declare module 'markdown-it/lib/presets/default.js' { - declare module.exports: $Exports<'markdown-it/lib/presets/default'>; -} -declare module 'markdown-it/lib/presets/zero.js' { - declare module.exports: $Exports<'markdown-it/lib/presets/zero'>; -} -declare module 'markdown-it/lib/renderer.js' { - declare module.exports: $Exports<'markdown-it/lib/renderer'>; -} -declare module 'markdown-it/lib/ruler.js' { - declare module.exports: $Exports<'markdown-it/lib/ruler'>; -} -declare module 'markdown-it/lib/rules_block/blockquote.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/blockquote'>; -} -declare module 'markdown-it/lib/rules_block/code.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/code'>; -} -declare module 'markdown-it/lib/rules_block/fence.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/fence'>; -} -declare module 'markdown-it/lib/rules_block/heading.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/heading'>; -} -declare module 'markdown-it/lib/rules_block/hr.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/hr'>; -} -declare module 'markdown-it/lib/rules_block/html_block.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/html_block'>; -} -declare module 'markdown-it/lib/rules_block/lheading.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/lheading'>; -} -declare module 'markdown-it/lib/rules_block/list.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/list'>; -} -declare module 'markdown-it/lib/rules_block/paragraph.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/paragraph'>; -} -declare module 'markdown-it/lib/rules_block/reference.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/reference'>; -} -declare module 'markdown-it/lib/rules_block/state_block.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/state_block'>; -} -declare module 'markdown-it/lib/rules_block/table.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_block/table'>; -} -declare module 'markdown-it/lib/rules_core/block.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_core/block'>; -} -declare module 'markdown-it/lib/rules_core/inline.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_core/inline'>; -} -declare module 'markdown-it/lib/rules_core/linkify.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_core/linkify'>; -} -declare module 'markdown-it/lib/rules_core/normalize.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_core/normalize'>; -} -declare module 'markdown-it/lib/rules_core/replacements.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_core/replacements'>; -} -declare module 'markdown-it/lib/rules_core/smartquotes.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_core/smartquotes'>; -} -declare module 'markdown-it/lib/rules_core/state_core.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_core/state_core'>; -} -declare module 'markdown-it/lib/rules_inline/autolink.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/autolink'>; -} -declare module 'markdown-it/lib/rules_inline/backticks.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/backticks'>; -} -declare module 'markdown-it/lib/rules_inline/balance_pairs.js' { - declare module.exports: $Exports< - 'markdown-it/lib/rules_inline/balance_pairs', - >; -} -declare module 'markdown-it/lib/rules_inline/emphasis.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/emphasis'>; -} -declare module 'markdown-it/lib/rules_inline/entity.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/entity'>; -} -declare module 'markdown-it/lib/rules_inline/escape.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/escape'>; -} -declare module 'markdown-it/lib/rules_inline/html_inline.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/html_inline'>; -} -declare module 'markdown-it/lib/rules_inline/image.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/image'>; -} -declare module 'markdown-it/lib/rules_inline/link.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/link'>; -} -declare module 'markdown-it/lib/rules_inline/newline.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/newline'>; -} -declare module 'markdown-it/lib/rules_inline/state_inline.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/state_inline'>; -} -declare module 'markdown-it/lib/rules_inline/strikethrough.js' { - declare module.exports: $Exports< - 'markdown-it/lib/rules_inline/strikethrough', - >; -} -declare module 'markdown-it/lib/rules_inline/text_collapse.js' { - declare module.exports: $Exports< - 'markdown-it/lib/rules_inline/text_collapse', - >; -} -declare module 'markdown-it/lib/rules_inline/text.js' { - declare module.exports: $Exports<'markdown-it/lib/rules_inline/text'>; -} -declare module 'markdown-it/lib/token.js' { - declare module.exports: $Exports<'markdown-it/lib/token'>; -} diff --git a/flow-typed/npm/mkdirp_v0.5.x.js b/flow-typed/npm/mkdirp_v0.5.x.js deleted file mode 100644 index 7e21c4467..000000000 --- a/flow-typed/npm/mkdirp_v0.5.x.js +++ /dev/null @@ -1,13 +0,0 @@ -// flow-typed signature: 82aa0feffc2bbd64dce3bec492f5d601 -// flow-typed version: 3315d89a00/mkdirp_v0.5.x/flow_>=v0.25.0 - -declare module 'mkdirp' { - declare type Options = number | { mode?: number, fs?: mixed }; - - declare type Callback = (err: ?Error, path: ?string) => void; - - declare module.exports: { - (path: string, options?: Options | Callback, callback?: Callback): void, - sync(path: string, options?: Options): void, - }; -} diff --git a/flow-typed/npm/node-fetch_vx.x.x.js b/flow-typed/npm/node-fetch_vx.x.x.js deleted file mode 100644 index 154b5601c..000000000 --- a/flow-typed/npm/node-fetch_vx.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: eeb370e1340c77116f34cda457c90835 -// flow-typed version: <>/node-fetch_v^2.2.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'node-fetch' - * - * 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 'node-fetch' { - 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 'node-fetch/browser' { - declare module.exports: any; -} - -declare module 'node-fetch/lib/index.es' { - declare module.exports: any; -} - -declare module 'node-fetch/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'node-fetch/browser.js' { - declare module.exports: $Exports<'node-fetch/browser'>; -} -declare module 'node-fetch/lib/index.es.js' { - declare module.exports: $Exports<'node-fetch/lib/index.es'>; -} -declare module 'node-fetch/lib/index.js' { - declare module.exports: $Exports<'node-fetch/lib/index'>; -} diff --git a/flow-typed/npm/normalize.css_vx.x.x.js b/flow-typed/npm/normalize.css_vx.x.x.js deleted file mode 100644 index d3c3297bf..000000000 --- a/flow-typed/npm/normalize.css_vx.x.x.js +++ /dev/null @@ -1,18 +0,0 @@ -// flow-typed signature: 68b7a239418f9d808b7359c3453cfd19 -// flow-typed version: <>/normalize.css_v^8.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'normalize.css' - * - * 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 'normalize.css' { - declare module.exports: any; -} diff --git a/flow-typed/npm/null-loader_vx.x.x.js b/flow-typed/npm/null-loader_vx.x.x.js deleted file mode 100644 index b4187f505..000000000 --- a/flow-typed/npm/null-loader_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: a4326384ad565febf3ef0abd58f39c3f -// flow-typed version: <>/null-loader_v^0.1.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'null-loader' - * - * 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 'null-loader' { - 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 'null-loader/index' { - declare module.exports: $Exports<'null-loader'>; -} -declare module 'null-loader/index.js' { - declare module.exports: $Exports<'null-loader'>; -} diff --git a/flow-typed/npm/opn-cli_vx.x.x.js b/flow-typed/npm/opn-cli_vx.x.x.js deleted file mode 100644 index 218a3cbbe..000000000 --- a/flow-typed/npm/opn-cli_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 7e227804a5b40165a436b1b0ab111e71 -// flow-typed version: <>/opn-cli_v^3.1.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'opn-cli' - * - * 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 'opn-cli' { - 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 'opn-cli/cli' { - declare module.exports: any; -} - -// Filename aliases -declare module 'opn-cli/cli.js' { - declare module.exports: $Exports<'opn-cli/cli'>; -} diff --git a/flow-typed/npm/passport-facebook_vx.x.x.js b/flow-typed/npm/passport-facebook_vx.x.x.js deleted file mode 100644 index 7dca689b3..000000000 --- a/flow-typed/npm/passport-facebook_vx.x.x.js +++ /dev/null @@ -1,73 +0,0 @@ -// flow-typed signature: c1dc27bd05e1a741621391185eb866ad -// flow-typed version: <>/passport-facebook_v^2.1.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'passport-facebook' - * - * 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 'passport-facebook' { - 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 'passport-facebook/lib/errors/facebookauthorizationerror' { - declare module.exports: any; -} - -declare module 'passport-facebook/lib/errors/facebookgraphapierror' { - declare module.exports: any; -} - -declare module 'passport-facebook/lib/errors/facebooktokenerror' { - declare module.exports: any; -} - -declare module 'passport-facebook/lib/index' { - declare module.exports: any; -} - -declare module 'passport-facebook/lib/profile' { - declare module.exports: any; -} - -declare module 'passport-facebook/lib/strategy' { - declare module.exports: any; -} - -// Filename aliases -declare module 'passport-facebook/lib/errors/facebookauthorizationerror.js' { - declare module.exports: $Exports< - 'passport-facebook/lib/errors/facebookauthorizationerror', - >; -} -declare module 'passport-facebook/lib/errors/facebookgraphapierror.js' { - declare module.exports: $Exports< - 'passport-facebook/lib/errors/facebookgraphapierror', - >; -} -declare module 'passport-facebook/lib/errors/facebooktokenerror.js' { - declare module.exports: $Exports< - 'passport-facebook/lib/errors/facebooktokenerror', - >; -} -declare module 'passport-facebook/lib/index.js' { - declare module.exports: $Exports<'passport-facebook/lib/index'>; -} -declare module 'passport-facebook/lib/profile.js' { - declare module.exports: $Exports<'passport-facebook/lib/profile'>; -} -declare module 'passport-facebook/lib/strategy.js' { - declare module.exports: $Exports<'passport-facebook/lib/strategy'>; -} diff --git a/flow-typed/npm/passport_vx.x.x.js b/flow-typed/npm/passport_vx.x.x.js deleted file mode 100644 index cf60e67b8..000000000 --- a/flow-typed/npm/passport_vx.x.x.js +++ /dev/null @@ -1,88 +0,0 @@ -// flow-typed signature: 3bdeada886f6e4e3578eea4e7f382426 -// flow-typed version: <>/passport_v^0.4.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'passport' - * - * 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 'passport' { - 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 'passport/lib/authenticator' { - declare module.exports: any; -} - -declare module 'passport/lib/errors/authenticationerror' { - declare module.exports: any; -} - -declare module 'passport/lib/framework/connect' { - declare module.exports: any; -} - -declare module 'passport/lib/http/request' { - declare module.exports: any; -} - -declare module 'passport/lib/index' { - declare module.exports: any; -} - -declare module 'passport/lib/middleware/authenticate' { - declare module.exports: any; -} - -declare module 'passport/lib/middleware/initialize' { - declare module.exports: any; -} - -declare module 'passport/lib/sessionmanager' { - declare module.exports: any; -} - -declare module 'passport/lib/strategies/session' { - declare module.exports: any; -} - -// Filename aliases -declare module 'passport/lib/authenticator.js' { - declare module.exports: $Exports<'passport/lib/authenticator'>; -} -declare module 'passport/lib/errors/authenticationerror.js' { - declare module.exports: $Exports<'passport/lib/errors/authenticationerror'>; -} -declare module 'passport/lib/framework/connect.js' { - declare module.exports: $Exports<'passport/lib/framework/connect'>; -} -declare module 'passport/lib/http/request.js' { - declare module.exports: $Exports<'passport/lib/http/request'>; -} -declare module 'passport/lib/index.js' { - declare module.exports: $Exports<'passport/lib/index'>; -} -declare module 'passport/lib/middleware/authenticate.js' { - declare module.exports: $Exports<'passport/lib/middleware/authenticate'>; -} -declare module 'passport/lib/middleware/initialize.js' { - declare module.exports: $Exports<'passport/lib/middleware/initialize'>; -} -declare module 'passport/lib/sessionmanager.js' { - declare module.exports: $Exports<'passport/lib/sessionmanager'>; -} -declare module 'passport/lib/strategies/session.js' { - declare module.exports: $Exports<'passport/lib/strategies/session'>; -} diff --git a/flow-typed/npm/pixrem_vx.x.x.js b/flow-typed/npm/pixrem_vx.x.x.js deleted file mode 100644 index c89545353..000000000 --- a/flow-typed/npm/pixrem_vx.x.x.js +++ /dev/null @@ -1,39 +0,0 @@ -// flow-typed signature: 91ee87f546127b0c400fb47fe28825d6 -// flow-typed version: <>/pixrem_v^4.0.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'pixrem' - * - * 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 'pixrem' { - 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 'pixrem/lib/pixrem' { - declare module.exports: any; -} - -declare module 'pixrem/test/test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'pixrem/lib/pixrem.js' { - declare module.exports: $Exports<'pixrem/lib/pixrem'>; -} -declare module 'pixrem/test/test.js' { - declare module.exports: $Exports<'pixrem/test/test'>; -} diff --git a/flow-typed/npm/pleeease-filters_vx.x.x.js b/flow-typed/npm/pleeease-filters_vx.x.x.js deleted file mode 100644 index 6b2174004..000000000 --- a/flow-typed/npm/pleeease-filters_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 82b948a2219e3ca6fad8b9b7e79a50db -// flow-typed version: <>/pleeease-filters_v^4.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'pleeease-filters' - * - * 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 'pleeease-filters' { - 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 'pleeease-filters/index' { - declare module.exports: $Exports<'pleeease-filters'>; -} -declare module 'pleeease-filters/index.js' { - declare module.exports: $Exports<'pleeease-filters'>; -} diff --git a/flow-typed/npm/postcss-calc_vx.x.x.js b/flow-typed/npm/postcss-calc_vx.x.x.js deleted file mode 100644 index b580ee285..000000000 --- a/flow-typed/npm/postcss-calc_vx.x.x.js +++ /dev/null @@ -1,39 +0,0 @@ -// flow-typed signature: a08c4bdc19d0a1f97c9fbb3f97f4724d -// flow-typed version: <>/postcss-calc_v^6.0.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-calc' - * - * 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 'postcss-calc' { - 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 'postcss-calc/dist/index' { - declare module.exports: any; -} - -declare module 'postcss-calc/dist/lib/transform' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-calc/dist/index.js' { - declare module.exports: $Exports<'postcss-calc/dist/index'>; -} -declare module 'postcss-calc/dist/lib/transform.js' { - declare module.exports: $Exports<'postcss-calc/dist/lib/transform'>; -} diff --git a/flow-typed/npm/postcss-color-function_vx.x.x.js b/flow-typed/npm/postcss-color-function_vx.x.x.js deleted file mode 100644 index 48eddfcd0..000000000 --- a/flow-typed/npm/postcss-color-function_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 2eb5025dce16e669ede01374ec97339f -// flow-typed version: <>/postcss-color-function_v^4.0.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-color-function' - * - * 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 'postcss-color-function' { - 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 'postcss-color-function/index' { - declare module.exports: $Exports<'postcss-color-function'>; -} -declare module 'postcss-color-function/index.js' { - declare module.exports: $Exports<'postcss-color-function'>; -} diff --git a/flow-typed/npm/postcss-custom-media_vx.x.x.js b/flow-typed/npm/postcss-custom-media_vx.x.x.js deleted file mode 100644 index af52dee09..000000000 --- a/flow-typed/npm/postcss-custom-media_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 332d135da79c609bc78b127dddc1a75d -// flow-typed version: <>/postcss-custom-media_v^7.0.3/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-custom-media' - * - * 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 'postcss-custom-media' { - 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 'postcss-custom-media/index.cjs' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-custom-media/index.cjs.js' { - declare module.exports: $Exports<'postcss-custom-media/index.cjs'>; -} diff --git a/flow-typed/npm/postcss-custom-properties_vx.x.x.js b/flow-typed/npm/postcss-custom-properties_vx.x.x.js deleted file mode 100644 index 5d7b8d474..000000000 --- a/flow-typed/npm/postcss-custom-properties_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 7c6c428f7ac96ca8d262d235fb6b89f6 -// flow-typed version: <>/postcss-custom-properties_v^8.0.5/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-custom-properties' - * - * 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 'postcss-custom-properties' { - 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 'postcss-custom-properties/index.cjs' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-custom-properties/index.cjs.js' { - declare module.exports: $Exports<'postcss-custom-properties/index.cjs'>; -} diff --git a/flow-typed/npm/postcss-custom-selectors_vx.x.x.js b/flow-typed/npm/postcss-custom-selectors_vx.x.x.js deleted file mode 100644 index 8601898be..000000000 --- a/flow-typed/npm/postcss-custom-selectors_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 8ce9a1f9f7505437352b70ab0bb3beaf -// flow-typed version: <>/postcss-custom-selectors_v^5.1.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-custom-selectors' - * - * 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 'postcss-custom-selectors' { - 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 'postcss-custom-selectors/index.cjs' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-custom-selectors/index.cjs.js' { - declare module.exports: $Exports<'postcss-custom-selectors/index.cjs'>; -} diff --git a/flow-typed/npm/postcss-flexbugs-fixes_vx.x.x.js b/flow-typed/npm/postcss-flexbugs-fixes_vx.x.x.js deleted file mode 100644 index 592e36fdb..000000000 --- a/flow-typed/npm/postcss-flexbugs-fixes_vx.x.x.js +++ /dev/null @@ -1,52 +0,0 @@ -// flow-typed signature: 075b4a29a6b3a5ce6893070719c50545 -// flow-typed version: <>/postcss-flexbugs-fixes_v^4.1.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-flexbugs-fixes' - * - * 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 'postcss-flexbugs-fixes' { - 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 'postcss-flexbugs-fixes/bugs/bug4' { - declare module.exports: any; -} - -declare module 'postcss-flexbugs-fixes/bugs/bug6' { - declare module.exports: any; -} - -declare module 'postcss-flexbugs-fixes/bugs/bug81a' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-flexbugs-fixes/bugs/bug4.js' { - declare module.exports: $Exports<'postcss-flexbugs-fixes/bugs/bug4'>; -} -declare module 'postcss-flexbugs-fixes/bugs/bug6.js' { - declare module.exports: $Exports<'postcss-flexbugs-fixes/bugs/bug6'>; -} -declare module 'postcss-flexbugs-fixes/bugs/bug81a.js' { - declare module.exports: $Exports<'postcss-flexbugs-fixes/bugs/bug81a'>; -} -declare module 'postcss-flexbugs-fixes/index' { - declare module.exports: $Exports<'postcss-flexbugs-fixes'>; -} -declare module 'postcss-flexbugs-fixes/index.js' { - declare module.exports: $Exports<'postcss-flexbugs-fixes'>; -} diff --git a/flow-typed/npm/postcss-import_vx.x.x.js b/flow-typed/npm/postcss-import_vx.x.x.js deleted file mode 100644 index 43cb40a39..000000000 --- a/flow-typed/npm/postcss-import_vx.x.x.js +++ /dev/null @@ -1,66 +0,0 @@ -// flow-typed signature: 8a4b091fc2bfedb64b24872714442873 -// flow-typed version: <>/postcss-import_v^12.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-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 'postcss-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 'postcss-import/lib/join-media' { - declare module.exports: any; -} - -declare module 'postcss-import/lib/load-content' { - declare module.exports: any; -} - -declare module 'postcss-import/lib/parse-statements' { - declare module.exports: any; -} - -declare module 'postcss-import/lib/process-content' { - declare module.exports: any; -} - -declare module 'postcss-import/lib/resolve-id' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-import/index' { - declare module.exports: $Exports<'postcss-import'>; -} -declare module 'postcss-import/index.js' { - declare module.exports: $Exports<'postcss-import'>; -} -declare module 'postcss-import/lib/join-media.js' { - declare module.exports: $Exports<'postcss-import/lib/join-media'>; -} -declare module 'postcss-import/lib/load-content.js' { - declare module.exports: $Exports<'postcss-import/lib/load-content'>; -} -declare module 'postcss-import/lib/parse-statements.js' { - declare module.exports: $Exports<'postcss-import/lib/parse-statements'>; -} -declare module 'postcss-import/lib/process-content.js' { - declare module.exports: $Exports<'postcss-import/lib/process-content'>; -} -declare module 'postcss-import/lib/resolve-id.js' { - declare module.exports: $Exports<'postcss-import/lib/resolve-id'>; -} diff --git a/flow-typed/npm/postcss-loader_vx.x.x.js b/flow-typed/npm/postcss-loader_vx.x.x.js deleted file mode 100644 index 2c7939375..000000000 --- a/flow-typed/npm/postcss-loader_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: 0d9794248c0f888c2f85a02358fe3fd0 -// flow-typed version: <>/postcss-loader_v^3.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-loader' - * - * 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 'postcss-loader' { - 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 'postcss-loader/src/Error' { - declare module.exports: any; -} - -declare module 'postcss-loader/src/index' { - declare module.exports: any; -} - -declare module 'postcss-loader/src/options' { - declare module.exports: any; -} - -declare module 'postcss-loader/src/Warning' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-loader/src/Error.js' { - declare module.exports: $Exports<'postcss-loader/src/Error'>; -} -declare module 'postcss-loader/src/index.js' { - declare module.exports: $Exports<'postcss-loader/src/index'>; -} -declare module 'postcss-loader/src/options.js' { - declare module.exports: $Exports<'postcss-loader/src/options'>; -} -declare module 'postcss-loader/src/Warning.js' { - declare module.exports: $Exports<'postcss-loader/src/Warning'>; -} diff --git a/flow-typed/npm/postcss-media-minmax_vx.x.x.js b/flow-typed/npm/postcss-media-minmax_vx.x.x.js deleted file mode 100644 index 6a38a3dee..000000000 --- a/flow-typed/npm/postcss-media-minmax_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 7383ae0f74f737a3372787f35ba02600 -// flow-typed version: <>/postcss-media-minmax_v^4.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-media-minmax' - * - * 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 'postcss-media-minmax' { - 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 'postcss-media-minmax/index' { - declare module.exports: $Exports<'postcss-media-minmax'>; -} -declare module 'postcss-media-minmax/index.js' { - declare module.exports: $Exports<'postcss-media-minmax'>; -} diff --git a/flow-typed/npm/postcss-nested_vx.x.x.js b/flow-typed/npm/postcss-nested_vx.x.x.js deleted file mode 100644 index 82ec4fd7e..000000000 --- a/flow-typed/npm/postcss-nested_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 31fd0a084b76e1453c2876aed3c8771f -// flow-typed version: <>/postcss-nested_v^4.1.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-nested' - * - * 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 'postcss-nested' { - 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 'postcss-nested/index' { - declare module.exports: $Exports<'postcss-nested'>; -} -declare module 'postcss-nested/index.js' { - declare module.exports: $Exports<'postcss-nested'>; -} diff --git a/flow-typed/npm/postcss-nesting_vx.x.x.js b/flow-typed/npm/postcss-nesting_vx.x.x.js deleted file mode 100644 index 14a345acd..000000000 --- a/flow-typed/npm/postcss-nesting_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 71c2d376cd7b5aa91af0fda5509c976d -// flow-typed version: <>/postcss-nesting_v^7.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-nesting' - * - * 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 'postcss-nesting' { - 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 'postcss-nesting/index.cjs' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-nesting/index.cjs.js' { - declare module.exports: $Exports<'postcss-nesting/index.cjs'>; -} diff --git a/flow-typed/npm/postcss-pseudoelements_vx.x.x.js b/flow-typed/npm/postcss-pseudoelements_vx.x.x.js deleted file mode 100644 index 1b02884d4..000000000 --- a/flow-typed/npm/postcss-pseudoelements_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: d081c271abdcafb4c8e1b6af999e250a -// flow-typed version: <>/postcss-pseudoelements_v^5.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-pseudoelements' - * - * 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 'postcss-pseudoelements' { - 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 'postcss-pseudoelements/test/test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-pseudoelements/index' { - declare module.exports: $Exports<'postcss-pseudoelements'>; -} -declare module 'postcss-pseudoelements/index.js' { - declare module.exports: $Exports<'postcss-pseudoelements'>; -} -declare module 'postcss-pseudoelements/test/test.js' { - declare module.exports: $Exports<'postcss-pseudoelements/test/test'>; -} diff --git a/flow-typed/npm/postcss-selector-matches_vx.x.x.js b/flow-typed/npm/postcss-selector-matches_vx.x.x.js deleted file mode 100644 index c840dc3bb..000000000 --- a/flow-typed/npm/postcss-selector-matches_vx.x.x.js +++ /dev/null @@ -1,41 +0,0 @@ -// flow-typed signature: 89abed63f4912459b677b07cdc72c6b1 -// flow-typed version: <>/postcss-selector-matches_v^4.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-selector-matches' - * - * 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 'postcss-selector-matches' { - 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 'postcss-selector-matches/dist/index' { - declare module.exports: any; -} - -declare module 'postcss-selector-matches/dist/replaceRuleSelector' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-selector-matches/dist/index.js' { - declare module.exports: $Exports<'postcss-selector-matches/dist/index'>; -} -declare module 'postcss-selector-matches/dist/replaceRuleSelector.js' { - declare module.exports: $Exports< - 'postcss-selector-matches/dist/replaceRuleSelector', - >; -} diff --git a/flow-typed/npm/postcss-selector-not_vx.x.x.js b/flow-typed/npm/postcss-selector-not_vx.x.x.js deleted file mode 100644 index 0682fe02e..000000000 --- a/flow-typed/npm/postcss-selector-not_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: fe5396a69a5a4a19824aec0cc4ec8317 -// flow-typed version: <>/postcss-selector-not_v^4.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss-selector-not' - * - * 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 'postcss-selector-not' { - 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 'postcss-selector-not/dist/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss-selector-not/dist/index.js' { - declare module.exports: $Exports<'postcss-selector-not/dist/index'>; -} diff --git a/flow-typed/npm/postcss_vx.x.x.js b/flow-typed/npm/postcss_vx.x.x.js deleted file mode 100644 index a850981be..000000000 --- a/flow-typed/npm/postcss_vx.x.x.js +++ /dev/null @@ -1,207 +0,0 @@ -// flow-typed signature: f847ee3c6d5f02b4b1a590ba6b57e674 -// flow-typed version: <>/postcss_v^7.0.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'postcss' - * - * 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 'postcss' { - 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 'postcss/gulpfile' { - declare module.exports: any; -} - -declare module 'postcss/lib/at-rule' { - declare module.exports: any; -} - -declare module 'postcss/lib/comment' { - declare module.exports: any; -} - -declare module 'postcss/lib/container' { - declare module.exports: any; -} - -declare module 'postcss/lib/css-syntax-error' { - declare module.exports: any; -} - -declare module 'postcss/lib/declaration' { - declare module.exports: any; -} - -declare module 'postcss/lib/input' { - declare module.exports: any; -} - -declare module 'postcss/lib/lazy-result' { - declare module.exports: any; -} - -declare module 'postcss/lib/list' { - declare module.exports: any; -} - -declare module 'postcss/lib/map-generator' { - declare module.exports: any; -} - -declare module 'postcss/lib/node' { - declare module.exports: any; -} - -declare module 'postcss/lib/parse' { - declare module.exports: any; -} - -declare module 'postcss/lib/parser' { - declare module.exports: any; -} - -declare module 'postcss/lib/postcss' { - declare module.exports: any; -} - -declare module 'postcss/lib/previous-map' { - declare module.exports: any; -} - -declare module 'postcss/lib/processor' { - declare module.exports: any; -} - -declare module 'postcss/lib/result' { - declare module.exports: any; -} - -declare module 'postcss/lib/root' { - declare module.exports: any; -} - -declare module 'postcss/lib/rule' { - declare module.exports: any; -} - -declare module 'postcss/lib/stringifier' { - declare module.exports: any; -} - -declare module 'postcss/lib/stringify' { - declare module.exports: any; -} - -declare module 'postcss/lib/terminal-highlight' { - declare module.exports: any; -} - -declare module 'postcss/lib/tokenize' { - declare module.exports: any; -} - -declare module 'postcss/lib/vendor' { - declare module.exports: any; -} - -declare module 'postcss/lib/warn-once' { - declare module.exports: any; -} - -declare module 'postcss/lib/warning' { - declare module.exports: any; -} - -// Filename aliases -declare module 'postcss/gulpfile.js' { - declare module.exports: $Exports<'postcss/gulpfile'>; -} -declare module 'postcss/lib/at-rule.js' { - declare module.exports: $Exports<'postcss/lib/at-rule'>; -} -declare module 'postcss/lib/comment.js' { - declare module.exports: $Exports<'postcss/lib/comment'>; -} -declare module 'postcss/lib/container.js' { - declare module.exports: $Exports<'postcss/lib/container'>; -} -declare module 'postcss/lib/css-syntax-error.js' { - declare module.exports: $Exports<'postcss/lib/css-syntax-error'>; -} -declare module 'postcss/lib/declaration.js' { - declare module.exports: $Exports<'postcss/lib/declaration'>; -} -declare module 'postcss/lib/input.js' { - declare module.exports: $Exports<'postcss/lib/input'>; -} -declare module 'postcss/lib/lazy-result.js' { - declare module.exports: $Exports<'postcss/lib/lazy-result'>; -} -declare module 'postcss/lib/list.js' { - declare module.exports: $Exports<'postcss/lib/list'>; -} -declare module 'postcss/lib/map-generator.js' { - declare module.exports: $Exports<'postcss/lib/map-generator'>; -} -declare module 'postcss/lib/node.js' { - declare module.exports: $Exports<'postcss/lib/node'>; -} -declare module 'postcss/lib/parse.js' { - declare module.exports: $Exports<'postcss/lib/parse'>; -} -declare module 'postcss/lib/parser.js' { - declare module.exports: $Exports<'postcss/lib/parser'>; -} -declare module 'postcss/lib/postcss.js' { - declare module.exports: $Exports<'postcss/lib/postcss'>; -} -declare module 'postcss/lib/previous-map.js' { - declare module.exports: $Exports<'postcss/lib/previous-map'>; -} -declare module 'postcss/lib/processor.js' { - declare module.exports: $Exports<'postcss/lib/processor'>; -} -declare module 'postcss/lib/result.js' { - declare module.exports: $Exports<'postcss/lib/result'>; -} -declare module 'postcss/lib/root.js' { - declare module.exports: $Exports<'postcss/lib/root'>; -} -declare module 'postcss/lib/rule.js' { - declare module.exports: $Exports<'postcss/lib/rule'>; -} -declare module 'postcss/lib/stringifier.js' { - declare module.exports: $Exports<'postcss/lib/stringifier'>; -} -declare module 'postcss/lib/stringify.js' { - declare module.exports: $Exports<'postcss/lib/stringify'>; -} -declare module 'postcss/lib/terminal-highlight.js' { - declare module.exports: $Exports<'postcss/lib/terminal-highlight'>; -} -declare module 'postcss/lib/tokenize.js' { - declare module.exports: $Exports<'postcss/lib/tokenize'>; -} -declare module 'postcss/lib/vendor.js' { - declare module.exports: $Exports<'postcss/lib/vendor'>; -} -declare module 'postcss/lib/warn-once.js' { - declare module.exports: $Exports<'postcss/lib/warn-once'>; -} -declare module 'postcss/lib/warning.js' { - declare module.exports: $Exports<'postcss/lib/warning'>; -} 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 521af7463..000000000 --- a/flow-typed/npm/prettier_v1.x.x.js +++ /dev/null @@ -1,178 +0,0 @@ -// flow-typed signature: 066c92e9ccb5f0711df8d73cbca837d6 -// flow-typed version: 9e32affdbd/prettier_v1.x.x/flow_>=v0.56.x - -declare module 'prettier' { - declare export type AST = Object; - declare export type Doc = Object; - declare export type FastPath = Object; - - declare export type PrettierParserName = - | 'babylon' - | 'flow' - | 'typescript' - | 'postcss' - | 'css' - | 'less' - | 'scss' - | 'json' - | 'graphql' - | 'markdown' - | 'vue'; - - declare export type PrettierParser = { - [name: PrettierParserName]: (text: string, options?: Object) => AST, - }; - - declare export type CustomParser = ( - text: string, - parsers: PrettierParser, - options: Options, - ) => AST; - - declare export 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 export type Plugin = { - languages: SupportLanguage, - parsers: { [parserName: string]: Parser }, - printers: { [astFormat: string]: Printer }, - }; - - declare export type Parser = { - parse: ( - text: string, - parsers: { [parserName: string]: Parser }, - options: Object, - ) => AST, - astFormat: string, - }; - - declare export 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 export 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 export type CursorResult = {| - formatted: string, - cursorOffset: number, - |}; - - declare export type ResolveConfigOptions = {| - useCache?: boolean, - config?: string, - editorconfig?: boolean, - |}; - - declare export 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 export type SupportOption = {| - since: string, - type: 'int' | 'boolean' | 'choice' | 'path', - deprecated?: string, - redirect?: SupportOptionRedirect, - description: string, - oppositeDescription?: string, - default: SupportOptionValue, - range?: SupportOptionRange, - choices?: SupportOptionChoice, - |}; - - declare export type SupportOptionRedirect = {| - options: string, - value: SupportOptionValue, - |}; - - declare export type SupportOptionRange = {| - start: number, - end: number, - step: number, - |}; - - declare export type SupportOptionChoice = {| - value: boolean | string, - description?: string, - since?: string, - deprecated?: string, - redirect?: SupportOptionValue, - |}; - - declare export type SupportOptionValue = number | boolean | string; - - declare export type SupportInfo = {| - languages: Array, - options: Array, - |}; - - declare export 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): ?Options, - }, - clearConfigCache: () => void, - getSupportInfo: (version?: string) => SupportInfo, - |}; - - declare export default Prettier; -} diff --git a/flow-typed/npm/pretty-error_v2.x.x.js b/flow-typed/npm/pretty-error_v2.x.x.js deleted file mode 100644 index 929146a6e..000000000 --- a/flow-typed/npm/pretty-error_v2.x.x.js +++ /dev/null @@ -1,19 +0,0 @@ -// flow-typed signature: 2204693f47e9d9337c7785787e65d14b -// flow-typed version: 5e951c7257/pretty-error_v2.x.x/flow_>=v0.25.x - -declare module 'pretty-error' { - declare class PrettyError { - static constructor(): PrettyError; - static start(): PrettyError; - alias(toBeAliased: string, alias: string): this; - appendStyle(style: Object): this; - render(error: Error): string; - skip(skipFn: (traceline: Object, lineNumber: number) => boolean): this; - skipNodeFiles(): this; - skipPackage(...packages: string[]): this; - skipPath(path: string): this; - start(): this; - withoutColors(): this; - } - declare module.exports: Class; -} diff --git a/flow-typed/npm/prop-types_v15.x.x.js b/flow-typed/npm/prop-types_v15.x.x.js deleted file mode 100644 index 323537b64..000000000 --- a/flow-typed/npm/prop-types_v15.x.x.js +++ /dev/null @@ -1,36 +0,0 @@ -// flow-typed signature: d9a983bb1ac458a256c31c139047bdbb -// flow-typed version: 927687984d/prop-types_v15.x.x/flow_>=v0.41.x - -type $npm$propTypes$ReactPropsCheckType = ( - props: any, - propName: string, - componentName: string, - href?: string, -) => ?Error; - -declare module 'prop-types' { - declare var array: React$PropType$Primitive>; - declare var bool: React$PropType$Primitive; - declare var func: React$PropType$Primitive; - declare var number: React$PropType$Primitive; - declare var object: React$PropType$Primitive; - declare var string: React$PropType$Primitive; - declare var symbol: React$PropType$Primitive; - declare var any: React$PropType$Primitive; - declare var arrayOf: React$PropType$ArrayOf; - declare var element: React$PropType$Primitive; /* TODO */ - declare var instanceOf: React$PropType$InstanceOf; - declare var node: React$PropType$Primitive; /* TODO */ - declare var objectOf: React$PropType$ObjectOf; - declare var oneOf: React$PropType$OneOf; - declare var oneOfType: React$PropType$OneOfType; - declare var shape: React$PropType$Shape; - - declare function checkPropTypes( - propTypes: $Subtype<{ [_: $Keys]: $npm$propTypes$ReactPropsCheckType }>, - values: V, - location: string, - componentName: string, - getStack: ?() => ?string, - ): void; -} diff --git a/flow-typed/npm/query-string_v6.x.x.js b/flow-typed/npm/query-string_v6.x.x.js deleted file mode 100644 index af108c3e4..000000000 --- a/flow-typed/npm/query-string_v6.x.x.js +++ /dev/null @@ -1,36 +0,0 @@ -// flow-typed signature: 9096718d5c8abc7d9ae9aadbe0ce565a -// flow-typed version: 6d8676cf5a/query-string_v6.x.x/flow_>=v0.32.x - -declare module 'query-string' { - declare type ArrayFormat = 'none' | 'bracket' | 'index'; - declare type ParseOptions = {| - arrayFormat?: ArrayFormat, - |}; - - declare type StringifyOptions = {| - arrayFormat?: ArrayFormat, - encode?: boolean, - strict?: boolean, - sort?: false | ((A, B) => number), - |}; - - declare type ObjectParameter = string | number | boolean | null | void; - - declare type ObjectParameters = { - [string]: ObjectParameter | $ReadOnlyArray, - }; - - declare type QueryParameters = { - [string]: string | Array | null, - }; - - declare module.exports: { - extract(str: string): string, - parse(str: string, opts?: ParseOptions): QueryParameters, - parseUrl( - str: string, - opts?: ParseOptions, - ): { url: string, query: QueryParameters }, - stringify(obj: ObjectParameters, opts?: StringifyOptions): string, - }; -} diff --git a/flow-typed/npm/raw-loader_vx.x.x.js b/flow-typed/npm/raw-loader_vx.x.x.js deleted file mode 100644 index 749758789..000000000 --- a/flow-typed/npm/raw-loader_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: f6990c84dee698948ae8b58dd40dbdbb -// flow-typed version: <>/raw-loader_v^0.5.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'raw-loader' - * - * 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 'raw-loader' { - 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 'raw-loader/index' { - declare module.exports: $Exports<'raw-loader'>; -} -declare module 'raw-loader/index.js' { - declare module.exports: $Exports<'raw-loader'>; -} diff --git a/flow-typed/npm/react-apollo_v2.x.x.js b/flow-typed/npm/react-apollo_v2.x.x.js deleted file mode 100644 index 1b89a6e1c..000000000 --- a/flow-typed/npm/react-apollo_v2.x.x.js +++ /dev/null @@ -1,1039 +0,0 @@ -// flow-typed signature: 4e760e5a25ec536edcb14318a00b1880 -// flow-typed version: 55d62acaa7/react-apollo_v2.x.x/flow_>=v0.58.x - -declare module 'react-apollo' { - import type { ComponentType, Element, Node } from 'react'; - - declare type MakeOptional = (V) => ?V; - declare type MakeDataOptional = $ObjMap | void; - /** - * Copied types from Apollo Client libdef - * Please update apollo-client libdef as well if updating these types - */ - declare class ObservableQuery extends Observable> { - options: WatchQueryOptions; - queryId: string; - variables: { [key: string]: any }; - isCurrentlyPolling: boolean; - shouldSubscribe: boolean; - isTornDown: boolean; - scheduler: QueryScheduler; - queryManager: QueryManager; - observers: Observer>[]; - subscriptionHandles: SubscriptionLINK[]; - lastResult: ApolloQueryResult; - lastError: ApolloError; - lastVariables: { [key: string]: any }; - - constructor(data: { - scheduler: QueryScheduler, - options: WatchQueryOptions, - shouldSubscribe?: boolean, - }): this; - - result(): Promise>; - currentResult(): ApolloCurrentResult; - getLastResult(): ApolloQueryResult; - getLastError(): ApolloError; - resetLastResults(): void; - refetch(variables?: any): Promise>; - fetchMore( - fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions, - ): Promise>; - subscribeToMore(options: SubscribeToMoreOptions): () => void; - setOptions( - opts: ModifiableWatchQueryOptions, - ): Promise>; - setVariables( - variables: any, - tryFetch?: boolean, - fetchResults?: boolean, - ): Promise>; - updateQuery( - mapFn: (previousQueryResult: any, options: UpdateQueryOptions) => mixed, - ): void; - stopPolling(): void; - startPolling(pollInterval: number): void; - } - - declare class QueryManager { - scheduler: QueryScheduler; - link: ApolloLink; - mutationStore: MutationStore; - queryStore: QueryStore; - dataStore: DataStore; - - constructor({ - link: ApolloLink, - queryDeduplication?: boolean, - store: DataStore, - onBroadcast?: () => mixed, - ssrMode?: boolean, - }): this; - - mutate(options: MutationOptions<>): Promise>; - fetchQuery( - queryId: string, - options: WatchQueryOptions, - fetchType?: FetchType, - fetchMoreForQueryId?: string, - ): Promise>; - queryListenerForObserver( - queryId: string, - options: WatchQueryOptions, - observer: Observer>, - ): QueryListener; - watchQuery( - options: WatchQueryOptions, - shouldSubscribe?: boolean, - ): ObservableQuery; - query(options: WatchQueryOptions): Promise>; - generateQueryId(): string; - stopQueryInStore(queryId: string): void; - addQueryListener(queryId: string, listener: QueryListener): void; - updateQueryWatch( - queryId: string, - document: DocumentNode, - options: WatchQueryOptions, - ): void; - addFetchQueryPromise( - requestId: number, - promise: Promise>, - resolve: (result: ApolloQueryResult) => void, - reject: (error: Error) => void, - ): void; - removeFetchQueryPromise(requestId: number): void; - addObservableQuery( - queryId: string, - observableQuery: ObservableQuery, - ): void; - removeObservableQuery(queryId: string): void; - clearStore(): Promise; - resetStore(): Promise[]>; - } - - declare class QueryStore { - getStore(): { [queryId: string]: QueryStoreValue }; - get(queryId: string): QueryStoreValue; - initQuery(query: { - queryId: string, - document: DocumentNode, - storePreviousVariables: boolean, - variables: Object, - isPoll: boolean, - isRefetch: boolean, - metadata: any, - fetchMoreForQueryId: string | void, - }): void; - markQueryResult( - queryId: string, - result: ExecutionResult<>, - fetchMoreForQueryId: string | void, - ): void; - markQueryError( - queryId: string, - error: Error, - fetchMoreForQueryId: string | void, - ): void; - markQueryResultClient(queryId: string, complete: boolean): void; - stopQuery(queryId: string): void; - reset(observableQueryIds: string[]): void; - } - - declare class QueryScheduler { - inFlightQueries: { [queryId: string]: WatchQueryOptions }; - registeredQueries: { [queryId: string]: WatchQueryOptions }; - intervalQueries: { [interval: number]: string[] }; - queryManager: QueryManager; - constructor({ - queryManager: QueryManager, - ssrMode?: boolean, - }): this; - checkInFlight(queryId: string): ?boolean; - fetchQuery( - queryId: string, - options: WatchQueryOptions, - fetchType: FetchType, - ): Promise>; - startPollingQuery( - options: WatchQueryOptions, - queryId: string, - listener?: QueryListener, - ): string; - stopPollingQuery(queryId: string): void; - fetchQueriesOnInterval(interval: number): void; - addQueryOnInterval( - queryId: string, - queryOptions: WatchQueryOptions, - ): void; - registerPollingQuery( - queryOptions: WatchQueryOptions, - ): ObservableQuery; - markMutationError(mutationId: string, error: Error): void; - reset(): void; - } - - declare class DataStore { - constructor(initialCache: ApolloCache): this; - getCache(): ApolloCache; - markQueryResult( - result: ExecutionResult<>, - document: DocumentNode, - variables: any, - fetchMoreForQueryId: string | void, - ignoreErrors?: boolean, - ): void; - markSubscriptionResult( - result: ExecutionResult<>, - document: DocumentNode, - variables: any, - ): void; - markMutationInit(mutation: { - mutationId: string, - document: DocumentNode, - variables: any, - updateQueries: { [queryId: string]: QueryWithUpdater }, - update: ((proxy: DataProxy, mutationResult: Object) => mixed) | void, - optimisticResponse: Object | Function | void, - }): void; - markMutationResult(mutation: { - mutationId: string, - result: ExecutionResult<>, - document: DocumentNode, - variables: any, - updateQueries: { [queryId: string]: QueryWithUpdater }, - update: ((proxy: DataProxy, mutationResult: Object) => mixed) | void, - }): void; - markMutationComplete({ - mutationId: string, - optimisticResponse?: any, - }): void; - markUpdateQueryResult( - document: DocumentNode, - variables: any, - newResult: any, - ): void; - reset(): Promise; - } - - declare type QueryWithUpdater = { - updater: MutationQueryReducer, - query: QueryStoreValue, - }; - - declare interface MutationStoreValue { - mutationString: string; - variables: Object; - loading: boolean; - error: Error | null; - } - - declare class MutationStore { - getStore(): { [mutationId: string]: MutationStoreValue }; - get(mutationId: string): MutationStoreValue; - initMutation( - mutationId: string, - mutationString: string, - variables: Object | void, - ): void; - } - - declare export interface FetchMoreOptions { - updateQuery: ( - previousQueryResult: TData, - options: { - fetchMoreResult?: TData, - variables: TVariables, - }, - ) => TData; - } - - declare export interface UpdateQueryOptions { - variables?: Object; - } - - declare export type ApolloCurrentResult = { - data: T | {}, - errors?: Array, - loading: boolean, - networkStatus: NetworkStatus, - error?: ApolloError, - partial?: boolean, - }; - - declare interface ModifiableWatchQueryOptions { - variables?: { [key: string]: any }; - pollInterval?: number; - fetchPolicy?: FetchPolicy; - errorPolicy?: ErrorPolicy; - fetchResults?: boolean; - notifyOnNetworkStatusChange?: boolean; - } - - declare export interface WatchQueryOptions - extends ModifiableWatchQueryOptions { - query: DocumentNode; - metadata?: any; - context?: any; - } - - declare export type RefetchQueryDescription = $ReadOnlyArray< - string | PureQueryOptions, - >; - - declare interface MutationBaseOptions { - optimisticResponse?: Object | Function; - updateQueries?: MutationQueryReducersMap; - optimisticResponse?: Object; - refetchQueries?: - | ((result: ExecutionResult<>) => RefetchQueryDescription) - | RefetchQueryDescription; - update?: MutationUpdaterFn; - errorPolicy?: ErrorPolicy; - variables?: any; - } - - declare export interface MutationOptions - extends MutationBaseOptions { - mutation: DocumentNode; - context?: any; - fetchPolicy?: FetchPolicy; - } - - declare export interface SubscriptionOptions { - query: DocumentNode; - variables?: { [key: string]: any }; - } - - declare export type FetchPolicy = - | 'cache-first' - | 'cache-and-network' - | 'network-only' - | 'cache-only' - | 'no-cache' - | 'standby'; - - declare export type ErrorPolicy = 'none' | 'ignore' | 'all'; - - declare export interface FetchMoreQueryOptions { - variables: $Shape; - } - - declare export type SubscribeToMoreOptions< - TData, - TSubscriptionData, - TSubscriptionVariables = void, - > = { - document?: DocumentNode, - variables?: TSubscriptionVariables, - updateQuery?: ( - previousResult: TData, - result: { - subscriptionData: { data?: TSubscriptionData }, - variables: TSubscriptionVariables, - }, - ) => TData, - onError?: (error: Error) => mixed, - }; - - declare export type MutationUpdaterFn = ( - proxy: DataProxy, - mutationResult: FetchResult, - ) => mixed; - - declare export type NetworkStatus = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - - declare export type QueryListener = ( - queryStoreValue: QueryStoreValue, - newData?: any, - ) => mixed; - - declare export type QueryStoreValue = { - document: DocumentNode, - variables: Object, - previousVariables: Object | null, - networkStatus: NetworkStatus, - networkError: Error | null, - graphQLErrors: GraphQLError[], - metadata: any, - }; - - declare export type PureQueryOptions = { - query: DocumentNode, - variables?: { [key: string]: any }, - }; - - declare export type ApolloQueryResult = { - data: T, - errors?: Array, - loading: boolean, - networkStatus: NetworkStatus, - stale: boolean, - }; - - declare export type FetchType = 1 | 2 | 3; - - declare export type MutationQueryReducer = ( - previousResult: { [key: string]: any }, - options: { - mutationResult: FetchResult, - queryName: string | void, - queryVariables: { [key: string]: any }, - }, - ) => { [key: string]: any }; - - declare export type MutationQueryReducersMap = { - [queryName: string]: MutationQueryReducer, - }; - - declare export class ApolloError extends Error { - message: string; - graphQLErrors: Array; - networkError: Error | null; - extraInfo: any; - constructor(info: ErrorConstructor): this; - } - - declare interface ErrorConstructor { - graphQLErrors?: Array; - networkError?: Error | null; - errorMessage?: string; - extraInfo?: any; - } - - declare interface DefaultOptions { - +watchQuery?: ModifiableWatchQueryOptions; - +query?: ModifiableWatchQueryOptions; - +mutate?: MutationBaseOptions<>; - } - - declare export type ApolloClientOptions = { - link: ApolloLink, - cache: ApolloCache, - ssrMode?: boolean, - ssrForceFetchDelay?: number, - connectToDevTools?: boolean, - queryDeduplication?: boolean, - defaultOptions?: DefaultOptions, - }; - - declare export class ApolloClient { - link: ApolloLink; - store: DataStore; - cache: ApolloCache; - queryManager: QueryManager; - disableNetworkFetches: boolean; - version: string; - queryDeduplication: boolean; - defaultOptions: DefaultOptions; - devToolsHookCb: Function; - proxy: ApolloCache | void; - ssrMode: boolean; - resetStoreCallbacks: Array<() => Promise>; - - constructor(options: ApolloClientOptions): this; - watchQuery(options: WatchQueryOptions): ObservableQuery; - query(options: WatchQueryOptions): Promise>; - mutate(options: MutationOptions): Promise>; - subscribe(options: SubscriptionOptions): Observable; - readQuery(options: DataProxyReadQueryOptions): T | null; - readFragment(options: DataProxyReadFragmentOptions): T | null; - writeQuery(options: DataProxyWriteQueryOptions): void; - writeFragment(options: DataProxyWriteFragmentOptions): void; - writeData(options: DataProxyWriteDataOptions): void; - __actionHookForDevTools(cb: () => mixed): void; - __requestRaw(payload: GraphQLRequest): Observable>; - initQueryManager(): void; - clearStore(): Promise; - resetStore(): Promise> | null>; - onResetStore(cb: () => Promise): () => void; - reFetchObservableQueries( - includeStandby?: boolean, - ): Promise[]> | Promise; - extract(optimistic?: boolean): TCacheShape; - restore(serializedState: TCacheShape): ApolloCache; - } - - /* apollo-link types */ - declare class ApolloLink { - constructor(request?: RequestHandler): this; - - static empty(): ApolloLink; - static from(links: Array): ApolloLink; - static split( - test: (op: Operation) => boolean, - left: ApolloLink | RequestHandler, - right: ApolloLink | RequestHandler, - ): ApolloLink; - static execute( - link: ApolloLink, - operation: GraphQLRequest, - ): Observable>; - - split( - test: (op: Operation) => boolean, - left: ApolloLink | RequestHandler, - right: ApolloLink | RequestHandler, - ): ApolloLink; - - concat(next: ApolloLink | RequestHandler): ApolloLink; - - request( - operation: Operation, - forward?: NextLink, - ): Observable> | null; - } - - declare interface GraphQLRequest { - query: DocumentNode; - variables?: { [key: string]: any }; - operationName?: string; - context?: { [key: string]: any }; - extensions?: { [key: string]: any }; - } - - declare interface Operation { - query: DocumentNode; - variables: { [key: string]: any }; - operationName: string; - extensions: { [key: string]: any }; - setContext: (context: { [key: string]: any }) => { [key: string]: any }; - getContext: () => { [key: string]: any }; - toKey: () => string; - } - - declare export type FetchResult< - C = { [key: string]: any }, - E = { [key: string]: any }, - > = ExecutionResult & { extension?: E, context?: C }; - - declare type NextLink = (operation: Operation) => Observable>; - - declare type RequestHandler = ( - operation: Operation, - forward?: NextLink, - ) => Observable> | null; - - declare class Observable { - subscribe( - observerOrNext: ((value: T) => mixed) | ZenObservableObserver, - error?: (error: any) => mixed, - complete?: () => mixed, - ): ZenObservableSubscription; - - forEach(fn: (value: T) => mixed): Promise; - - map(fn: (value: T) => R): Observable; - - filter(fn: (value: T) => boolean): Observable; - - reduce( - fn: (previousValue: R | T, currentValue: T) => R | T, - initialValue?: R | T, - ): Observable; - - flatMap(fn: (value: T) => ZenObservableObservableLike): Observable; - - from( - observable: Observable | ZenObservableObservableLike | Array, - ): Observable; - - of(...args: Array): Observable; - } - - declare interface Observer { - start?: (subscription: SubscriptionLINK) => any; - next?: (value: T) => void; - error?: (errorValue: any) => void; - complete?: () => void; - } - - declare interface SubscriptionLINK { - closed: boolean; - unsubscribe(): void; - } - - declare interface ZenObservableSubscriptionObserver { - closed: boolean; - next(value: T): void; - error(errorValue: any): void; - complete(): void; - } - - declare interface ZenObservableSubscription { - closed: boolean; - unsubscribe(): void; - } - - declare interface ZenObservableObserver { - start?: (subscription: ZenObservableSubscription) => mixed; - next?: (value: T) => mixed; - error?: (errorValue: any) => mixed; - complete?: () => mixed; - } - - declare type ZenObservableSubscriber = ( - observer: ZenObservableSubscriptionObserver, - ) => mixed | (() => mixed) | SubscriptionLINK; - - declare interface ZenObservableObservableLike { - subscribe?: ZenObservableSubscriber; - } - /* apollo-link types */ - - /* apollo-cache types */ - declare class ApolloCache { - read(query: CacheReadOptions): T | null; - write(write: CacheWriteOptions): void; - diff(query: CacheDiffOptions): CacheDiffResult; - watch(watch: CacheWatchOptions): () => void; - evict(query: CacheEvictOptions): CacheEvictionResult; - reset(): Promise; - - restore(serializedState: TSerialized): ApolloCache; - extract(optimistic?: boolean): TSerialized; - - removeOptimistic(id: string): void; - - performTransaction(transaction: Transaction): void; - recordOptimisticTransaction( - transaction: Transaction, - id: string, - ): void; - - transformDocument(document: DocumentNode): DocumentNode; - transformForLink(document: DocumentNode): DocumentNode; - - readQuery( - options: DataProxyReadQueryOptions, - optimistic?: boolean, - ): QueryType | null; - readFragment( - options: DataProxyReadFragmentOptions, - optimistic?: boolean, - ): FragmentType | null; - writeQuery(options: CacheWriteQueryOptions): void; - writeFragment(options: CacheWriteFragmentOptions): void; - writeData(options: CacheWriteDataOptions): void; - } - - declare type Transaction = (c: ApolloCache) => mixed; - - declare type CacheWatchCallback = (newData: any) => mixed; - - declare interface CacheEvictionResult { - success: boolean; - } - - declare interface CacheReadOptions extends DataProxyReadQueryOptions { - rootId?: string; - previousResult?: any; - optimistic: boolean; - } - - declare interface CacheWriteOptions extends DataProxyReadQueryOptions { - dataId: string; - result: any; - } - - declare interface CacheDiffOptions extends CacheReadOptions { - returnPartialData?: boolean; - } - - declare interface CacheWatchOptions extends CacheReadOptions { - callback: CacheWatchCallback; - } - - declare interface CacheEvictOptions extends DataProxyReadQueryOptions { - rootId?: string; - } - - declare type CacheDiffResult = DataProxyDiffResult; - declare type CacheWriteQueryOptions = DataProxyWriteQueryOptions; - declare type CacheWriteFragmentOptions = DataProxyWriteFragmentOptions; - declare type CacheWriteDataOptions = DataProxyWriteDataOptions; - declare type CacheReadFragmentOptions = DataProxyReadFragmentOptions; - - declare interface DataProxyReadQueryOptions { - query: DocumentNode; - variables?: any; - } - - declare interface DataProxyReadFragmentOptions { - id: string; - fragment: DocumentNode; - fragmentName?: string; - variables?: any; - } - - declare interface DataProxyWriteQueryOptions { - data: any; - query: DocumentNode; - variables?: any; - } - - declare interface DataProxyWriteFragmentOptions { - data: any; - id: string; - fragment: DocumentNode; - fragmentName?: string; - variables?: any; - } - - declare interface DataProxyWriteDataOptions { - data: any; - id?: string; - } - - declare type DataProxyDiffResult = { - result?: T, - complete?: boolean, - }; - - declare export interface DataProxy { - readQuery( - options: DataProxyReadQueryOptions, - optimistic?: boolean, - ): QueryType | null; - readFragment( - options: DataProxyReadFragmentOptions, - optimistic?: boolean, - ): FragmentType | null; - writeQuery(options: DataProxyWriteQueryOptions): void; - writeFragment(options: DataProxyWriteFragmentOptions): void; - writeData(options: DataProxyWriteDataOptions): void; - } - /* End apollo-cache types */ - - /** End from Apollo Client */ - - /** - * Types From graphql - * graphql types are maintained in the graphql-js repo - */ - declare type DocumentNode = any; - declare type ExecutionResult = { - data?: T, - extensions?: { [string]: any }, - errors?: any[], - }; - declare type GraphQLError = any; - declare type VariableDefinitionNode = any; - /** End From graphql */ - - declare export interface ApolloProviderProps { - client: any; // ApolloClient; - children: Node; - } - - declare export interface ApolloConsumerProps { - children: (client: ApolloClient) => Node; - } - - declare export class ApolloConsumer extends React$Component< - ApolloConsumerProps, - > {} - - declare export class ApolloProvider extends React$Component< - ApolloProviderProps, - > { - childContextTypes: { - client: ApolloClient, - operations: Map, - }; - - getChildContext(): { - client: ApolloClient, - operations: Map, - }; - } - - declare export type MutationFunc = ( - opts: MutationOpts, - ) => Promise>; - - declare export type GraphqlData = TResult & - GraphqlQueryControls & { - variables: TVariables, - refetch: (variables?: TVariables) => Promise>, - }; - - declare export type ChildProps< - TOwnProps, - TResult, - TVariables: Object = {}, - > = { - data: GraphqlData, - mutate: MutationFunc, - } & TOwnProps; - - // back compat - declare export type DefaultChildProps = ChildProps; - - declare export type RefetchQueriesProviderFn = ( - ...args: any[] - ) => RefetchQueryDescription; - - declare export type MutationOpts = {| - variables?: TVariables, - optimisticResponse?: Object, - refetchQueries?: RefetchQueryDescription | RefetchQueriesProviderFn, - update?: MutationUpdaterFn<*>, - errorPolicy?: ErrorPolicy, - |}; - - declare export type QueryOpts = {| - ssr?: boolean, - variables?: TVariables, - fetchPolicy?: FetchPolicy, - pollInterval?: number, - skip?: boolean, - errorPolicy?: ErrorPolicy, - context?: { [key: string]: any }, - |}; - - declare export interface GraphqlQueryControls< - TGraphQLVariables = OperationVariables, - > { - error?: ApolloError | any; // Added optional `any` to satisfy Flow < 0.62 - networkStatus: NetworkStatus; - loading: boolean; - variables: TGraphQLVariables; - fetchMore: ( - fetchMoreOptions: FetchMoreQueryOptions & - FetchMoreOptions, - ) => Promise>; - refetch: (variables?: TGraphQLVariables) => Promise>; - startPolling: (pollInterval: number) => void; - stopPolling: () => void; - subscribeToMore: (options: SubscribeToMoreOptions) => () => void; - updateQuery: ( - mapFn: (previousQueryResult: any, options: UpdateQueryOptions) => mixed, - ) => void; - } - - declare export interface OptionProps { - ownProps: TProps; - data?: GraphqlData; - mutate: MutationFunc; - } - - declare export type OptionDescription = - | QueryOpts - | MutationOpts - | ((props: TProps) => QueryOpts | MutationOpts); - - declare export type NamedProps = P & { - ownProps: R, - }; - - declare export interface OperationOption< - TResult: {}, - TProps: {}, - TChildProps: {}, - TVariables: {}, - > { - +options?: OptionDescription; - props?: ( - props: OptionProps, - ) => TChildProps | ChildProps; - +skip?: boolean | ((props: any) => boolean); - name?: string; - withRef?: boolean; - shouldResubscribe?: (props: TProps, nextProps: TProps) => boolean; - alias?: string; - } - - declare export interface OperationComponent< - TResult: Object = {}, - TOwnProps: Object = {}, - TVariables: Object = {}, - TMergedProps: Object = ChildProps, - > { - (component: ComponentType): ComponentType; - } - - declare export function graphql( - document: DocumentNode, - operationOptions?: OperationOption< - TResult, - TProps, - TChildProps, - TVariables, - >, - ): OperationComponent; - - declare type WithApolloOptions = { - withRef?: boolean, - }; - - declare export function withApollo( - component: ComponentType<{ client: ApolloClient } & TProps>, - operationOptions?: WithApolloOptions, - ): ComponentType; - - declare export interface IDocumentDefinition { - type: DocumentType; - name: string; - variables: VariableDefinitionNode[]; - } - - declare export function parser(document: DocumentNode): IDocumentDefinition; - - declare export interface Context { - [key: string]: any; - } - - declare export interface QueryResult { - query: Promise>; - element: Element<*>; - context: Context; - } - - declare export function walkTree( - element: Node, - context: Context, - visitor: (element: Node, instance: any, context: Context) => boolean | void, - ): void; - - declare export function getDataFromTree( - rootElement: Element<*>, - rootContext?: any, - fetchRoot?: boolean, - ): Promise; - - declare export function renderToStringWithData( - component: Element<*>, - ): Promise; - - declare export function cleanupApolloState(apolloState: any): void; - - declare export type QueryRenderProps< - TData = any, - TVariables = OperationVariables, - > = { - data: MakeDataOptional, - loading: boolean, - error?: ApolloError, - variables: TVariables, - networkStatus: NetworkStatus, - refetch: (variables?: TVariables) => Promise>, - fetchMore: (( - options: FetchMoreOptions & - FetchMoreQueryOptions, - ) => Promise>) & - (( - options: { query: DocumentNode } & FetchMoreQueryOptions & - FetchMoreOptions, - ) => Promise>), - load: () => void, - startPolling: (interval: number) => void, - stopPolling: () => void, - subscribeToMore: ( - options: SubscribeToMoreOptions, - ) => () => void, - updateQuery: ( - mapFn: ( - previousResult: TData, - options: { variables: TVariables }, - ) => TData, - ) => mixed, - client: ApolloClient, - }; - - declare export type QueryRenderPropFunction = ( - QueryRenderProps, - ) => Node; - - declare export class Query extends React$Component<{ - query: DocumentNode, - children: QueryRenderPropFunction, - variables?: TVariables, - pollInterval?: number, - notifyOnNetworkStatusChange?: boolean, - fetchPolicy?: FetchPolicy, - errorPolicy?: ErrorPolicy, - ssr?: boolean, - displayName?: string, - delay?: boolean, - context?: { [string]: any }, - }> {} - - declare export type SubscriptionResult< - TData, - TVariables = OperationVariables, - > = { - loading: boolean, - data?: MakeDataOptional, - error?: ApolloError, - }; - - declare export type SubscriptionRenderPropFunction = ( - result: SubscriptionResult, - ) => Node; - - declare export type OnSubscriptionDataOptions = { - client: ApolloClient, - subscriptionData: SubscriptionResult, - }; - - declare type SubscriptionProps = { - subscription: DocumentNode, - variables?: TVariables, - shouldResubscribe?: - | boolean - | (( - SubscriptionProps, - SubscriptionProps, - ) => boolean), - onSubscriptionData?: (OnSubscriptionDataOptions) => any, - children?: SubscriptionRenderPropFunction, - }; - - declare export class Subscription extends React$Component< - SubscriptionProps, - > {} - - declare type OperationVariables = { [key: string]: any }; - - declare export type MutationFunction< - TData = any, - TVariables = OperationVariables, - > = (options?: { - variables?: TVariables, - optimisticResponse?: Object, - refetchQueries?: RefetchQueryDescription | RefetchQueriesProviderFn, - update?: MutationUpdaterFn, - }) => Promise>; - - declare export type MutationResult = { - loading: boolean, - error?: ApolloError, - data?: TData, - called: boolean, - client: ApolloClient, - }; - - declare export type MutationRenderPropFunction = ( - mutate: MutationFunction, - result: MutationResult, - ) => Node; - - declare export class Mutation< - TData, - TVariables = void, - > extends React$Component<{ - mutation: DocumentNode, - children: MutationRenderPropFunction, - variables?: TVariables, - update?: MutationUpdaterFn, - ignoreResults?: boolean, - optimisticResponse?: Object, - refetchQueries?: RefetchQueryDescription | RefetchQueriesProviderFn, - onCompleted?: (data: TData) => mixed, - onError?: (error: ApolloError) => mixed, - context?: { [string]: any }, - }> {} - - declare export var compose: $Compose; -} diff --git a/flow-typed/npm/react-deep-force-update_vx.x.x.js b/flow-typed/npm/react-deep-force-update_vx.x.x.js deleted file mode 100644 index 1785aed0a..000000000 --- a/flow-typed/npm/react-deep-force-update_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 5c035024d992b7f44eaa019b6652cc27 -// flow-typed version: <>/react-deep-force-update_v^2.1.3/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-deep-force-update' - * - * 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-deep-force-update' { - 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-deep-force-update/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-deep-force-update/lib/index.js' { - declare module.exports: $Exports<'react-deep-force-update/lib/index'>; -} diff --git a/flow-typed/npm/react-dev-utils_vx.x.x.js b/flow-typed/npm/react-dev-utils_vx.x.x.js deleted file mode 100644 index 600b02770..000000000 --- a/flow-typed/npm/react-dev-utils_vx.x.x.js +++ /dev/null @@ -1,176 +0,0 @@ -// flow-typed signature: 448f7c7181bb876880212af04eda5838 -// flow-typed version: <>/react-dev-utils_v^5.0.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-dev-utils' - * - * 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-dev-utils' { - 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-dev-utils/checkRequiredFiles' { - declare module.exports: any; -} - -declare module 'react-dev-utils/clearConsole' { - declare module.exports: any; -} - -declare module 'react-dev-utils/crossSpawn' { - declare module.exports: any; -} - -declare module 'react-dev-utils/errorOverlayMiddleware' { - declare module.exports: any; -} - -declare module 'react-dev-utils/eslintFormatter' { - declare module.exports: any; -} - -declare module 'react-dev-utils/FileSizeReporter' { - declare module.exports: any; -} - -declare module 'react-dev-utils/formatWebpackMessages' { - declare module.exports: any; -} - -declare module 'react-dev-utils/getProcessForPort' { - declare module.exports: any; -} - -declare module 'react-dev-utils/ignoredFiles' { - declare module.exports: any; -} - -declare module 'react-dev-utils/inquirer' { - declare module.exports: any; -} - -declare module 'react-dev-utils/InterpolateHtmlPlugin' { - declare module.exports: any; -} - -declare module 'react-dev-utils/launchEditor' { - declare module.exports: any; -} - -declare module 'react-dev-utils/launchEditorEndpoint' { - declare module.exports: any; -} - -declare module 'react-dev-utils/ModuleScopePlugin' { - declare module.exports: any; -} - -declare module 'react-dev-utils/noopServiceWorkerMiddleware' { - declare module.exports: any; -} - -declare module 'react-dev-utils/openBrowser' { - declare module.exports: any; -} - -declare module 'react-dev-utils/printBuildError' { - declare module.exports: any; -} - -declare module 'react-dev-utils/printHostingInstructions' { - declare module.exports: any; -} - -declare module 'react-dev-utils/WatchMissingNodeModulesPlugin' { - declare module.exports: any; -} - -declare module 'react-dev-utils/WebpackDevServerUtils' { - declare module.exports: any; -} - -declare module 'react-dev-utils/webpackHotDevClient' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-dev-utils/checkRequiredFiles.js' { - declare module.exports: $Exports<'react-dev-utils/checkRequiredFiles'>; -} -declare module 'react-dev-utils/clearConsole.js' { - declare module.exports: $Exports<'react-dev-utils/clearConsole'>; -} -declare module 'react-dev-utils/crossSpawn.js' { - declare module.exports: $Exports<'react-dev-utils/crossSpawn'>; -} -declare module 'react-dev-utils/errorOverlayMiddleware.js' { - declare module.exports: $Exports<'react-dev-utils/errorOverlayMiddleware'>; -} -declare module 'react-dev-utils/eslintFormatter.js' { - declare module.exports: $Exports<'react-dev-utils/eslintFormatter'>; -} -declare module 'react-dev-utils/FileSizeReporter.js' { - declare module.exports: $Exports<'react-dev-utils/FileSizeReporter'>; -} -declare module 'react-dev-utils/formatWebpackMessages.js' { - declare module.exports: $Exports<'react-dev-utils/formatWebpackMessages'>; -} -declare module 'react-dev-utils/getProcessForPort.js' { - declare module.exports: $Exports<'react-dev-utils/getProcessForPort'>; -} -declare module 'react-dev-utils/ignoredFiles.js' { - declare module.exports: $Exports<'react-dev-utils/ignoredFiles'>; -} -declare module 'react-dev-utils/inquirer.js' { - declare module.exports: $Exports<'react-dev-utils/inquirer'>; -} -declare module 'react-dev-utils/InterpolateHtmlPlugin.js' { - declare module.exports: $Exports<'react-dev-utils/InterpolateHtmlPlugin'>; -} -declare module 'react-dev-utils/launchEditor.js' { - declare module.exports: $Exports<'react-dev-utils/launchEditor'>; -} -declare module 'react-dev-utils/launchEditorEndpoint.js' { - declare module.exports: $Exports<'react-dev-utils/launchEditorEndpoint'>; -} -declare module 'react-dev-utils/ModuleScopePlugin.js' { - declare module.exports: $Exports<'react-dev-utils/ModuleScopePlugin'>; -} -declare module 'react-dev-utils/noopServiceWorkerMiddleware.js' { - declare module.exports: $Exports< - 'react-dev-utils/noopServiceWorkerMiddleware', - >; -} -declare module 'react-dev-utils/openBrowser.js' { - declare module.exports: $Exports<'react-dev-utils/openBrowser'>; -} -declare module 'react-dev-utils/printBuildError.js' { - declare module.exports: $Exports<'react-dev-utils/printBuildError'>; -} -declare module 'react-dev-utils/printHostingInstructions.js' { - declare module.exports: $Exports<'react-dev-utils/printHostingInstructions'>; -} -declare module 'react-dev-utils/WatchMissingNodeModulesPlugin.js' { - declare module.exports: $Exports< - 'react-dev-utils/WatchMissingNodeModulesPlugin', - >; -} -declare module 'react-dev-utils/WebpackDevServerUtils.js' { - declare module.exports: $Exports<'react-dev-utils/WebpackDevServerUtils'>; -} -declare module 'react-dev-utils/webpackHotDevClient.js' { - declare module.exports: $Exports<'react-dev-utils/webpackHotDevClient'>; -} diff --git a/flow-typed/npm/react-error-overlay_vx.x.x.js b/flow-typed/npm/react-error-overlay_vx.x.x.js deleted file mode 100644 index 2e5bc6bc6..000000000 --- a/flow-typed/npm/react-error-overlay_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: c59da5b22d87ffd8f2d37776ac55eac8 -// flow-typed version: <>/react-error-overlay_v^4.0.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-error-overlay' - * - * 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-error-overlay' { - 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-error-overlay/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-error-overlay/lib/index.js' { - declare module.exports: $Exports<'react-error-overlay/lib/index'>; -} 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 f35238fb4..000000000 --- a/flow-typed/npm/react-test-renderer_v16.x.x.js +++ /dev/null @@ -1,75 +0,0 @@ -// flow-typed signature: 9b9f4128694a7f68659d945b81fb78ff -// flow-typed version: 46dfe79a54/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 ReactComponentInstance = React$Component; - -type ReactTestRendererJSON = { - type: string, - props: { [propName: string]: any }, - children: null | ReactTestRendererJSON[], -}; - -type ReactTestRendererTree = ReactTestRendererJSON & { - nodeType: 'component' | 'host', - instance: ?ReactComponentInstance, - rendered: null | ReactTestRendererTree, -}; - -type ReactTestInstance = { - instance: ?ReactComponentInstance, - 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 TestRendererOptions = { - createNodeMock(element: React$Element): any, -}; - -declare module 'react-test-renderer' { - declare export type ReactTestRenderer = { - toJSON(): null | ReactTestRendererJSON, - toTree(): null | ReactTestRendererTree, - unmount(nextElement?: React$Element): void, - update(nextElement: React$Element): void, - getInstance(): ?ReactComponentInstance, - root: ReactTestInstance, - }; - - declare function create( - nextElement: React$Element, - options?: TestRendererOptions, - ): ReactTestRenderer; -} - -declare module 'react-test-renderer/shallow' { - declare export default class ShallowRenderer { - static createRenderer(): ShallowRenderer; - getMountedInstance(): ReactTestInstance; - getRenderOutput>(): E; - getRenderOutput(): React$Element; - render(element: React$Element, context?: any): void; - unmount(): void; - } -} diff --git a/flow-typed/npm/rimraf_v2.x.x.js b/flow-typed/npm/rimraf_v2.x.x.js deleted file mode 100644 index 758840c3f..000000000 --- a/flow-typed/npm/rimraf_v2.x.x.js +++ /dev/null @@ -1,18 +0,0 @@ -// flow-typed signature: 1dff23447d5e18f5ac2b05aaec7cfb74 -// flow-typed version: a453e98ea2/rimraf_v2.x.x/flow_>=v0.25.0 - -declare module 'rimraf' { - declare type Options = { - maxBusyTries?: number, - emfileWait?: number, - glob?: boolean, - disableGlob?: boolean, - }; - - declare type Callback = (err: ?Error, path: ?string) => void; - - declare module.exports: { - (f: string, opts?: Options | Callback, callback?: Callback): void, - sync(path: string, opts?: Options): void, - }; -} diff --git a/flow-typed/npm/sequelize_v4.x.x.js b/flow-typed/npm/sequelize_v4.x.x.js deleted file mode 100644 index 95f0145b3..000000000 --- a/flow-typed/npm/sequelize_v4.x.x.js +++ /dev/null @@ -1,7814 +0,0 @@ -// flow-typed signature: e06d5aa5fc6082a4ad52b6f9d5e922d4 -// flow-typed version: 0d36584dff/sequelize_v4.x.x/flow_>=v0.42.x - -// @flow - -declare module 'sequelize' { - /** - * The options for the getAssociation mixin of the belongsTo association. - * @see BelongsToGetOne - */ - declare export type BelongsToGetOneOptions = { - /** - * Apply a scope on the related model, or remove its default scope by passing false. - */ - scope?: ?(string | boolean), - }; - - /** - * The getAssociation mixin applied to models with belongsTo. - * An example of usage is as follows - - ```js - - User.belongsTo(Role); - - interface UserInstance extends Model, UserAttrib { - getRole: BelongsToGetOne; - // setRole... - // createRole... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/ - * @see Model - */ - declare export type BelongsToGetOne> = { - /** - * Get the associated instance. - * @param options The options to use when getting the association. - */ - (options?: BelongsToGetOneOptions): Promise, - }; - - /** - * The options for the setAssociation mixin of the belongsTo association. - * @see BelongsToSetOne - */ - declare export type BelongsToSetOneOptions = { - /** - * Skip saving this after setting the foreign key if false. - */ - save?: boolean, - }; - - /** - * The setAssociation mixin applied to models with belongsTo. - * An example of usage is as follows: - - ```js - - User.belongsTo(Role); - - interface UserInstance extends Model, UserAttributes { - // getRole... - setRole: BelongsToSetOne; - // createRole... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/ - * @see Model - */ - declare export type BelongsToSetOne< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Set the associated instance. - * @param newAssociation An instance or the primary key of an instance to associate with this. Pass null or undefined to remove the association. - * @param options the options passed to `this.save`. - */ - ( - newAssociation: ?(TInstance | TInstancePrimaryKey), - options?: BelongsToSetOneOptions & InstanceSaveOptions, - ): Promise, - }; - - /** - * The options for the createAssociation mixin of the belongsTo association. - * @see BelongsToCreateOne - */ - declare export type BelongsToCreateOneOptions = {}; - - /** - * The createAssociation mixin applied to models with belongsTo. - * An example of usage is as follows: - - ```js - - User.belongsTo(Role); - - interface UserInstance extends Model, UserAttributes { - // getRole... - // setRole... - createRole: BelongsToCreateOne; - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/ - * @see Model - */ - declare export type BelongsToCreateOne = { - /** - * Create a new instance of the associated model and associate it with this. - * @param values The values used to create the association. - * @param options The options passed to `target.create` and `setAssociation`. - */ - ( - values?: TInitAttributes, - options?: BelongsToCreateOneOptions & - CreateOptions & - BelongsToSetOneOptions, - ): Promise, - }; - - /** - * The options for the getAssociation mixin of the hasOne association. - * @see HasOneGetOne - */ - declare export type HasOneGetOneOptions = { - /** - * Apply a scope on the related model, or remove its default scope by passing false. - */ - scope?: ?(string | boolean), - }; - - /** - * The getAssociation mixin applied to models with hasOne. - * An example of usage is as follows: - - ```js - - User.hasOne(Role); - - interface UserInstance extends Model, UserAttrib { - getRole: HasOneGetOne; - // setRole... - // createRole... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/ - * @see Model - */ - declare export type HasOneGetOne> = { - /** - * Get the associated instance. - * @param options The options to use when getting the association. - */ - (options?: HasOneGetOneOptions): Promise, - }; - - /** - * The options for the setAssociation mixin of the hasOne association. - * @see HasOneSetOne - */ - declare export type HasOneSetOneOptions = { - /** - * Skip saving this after setting the foreign key if false. - */ - save?: boolean, - }; - - /** - * The setAssociation mixin applied to models with hasOne. - * An example of usage is as follows: - - ```js - - User.hasOne(Role); - - interface UserInstance extends Model, UserAttributes { - // getRole... - setRole: HasOneSetOne; - // createRole... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/ - * @see Model - */ - declare export type HasOneSetOne< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Set the associated instance. - * @param newAssociation An instance or the primary key of an instance to associate with this. Pass null or undefined to remove the association. - * @param options The options passed to `getAssocation` and `target.save`. - */ - ( - newAssociation: ?(TInstance | TInstancePrimaryKey), - options?: HasOneSetOneOptions & - HasOneGetOneOptions & - InstanceSaveOptions, - ): Promise, - }; - - /** - * The options for the createAssociation mixin of the hasOne association. - * @see HasOneCreateOne - */ - declare export type HasOneCreateOneOptions = {}; - - /** - * The createAssociation mixin applied to models with hasOne. - * An example of usage is as follows: - - ```js - - User.hasOne(Role); - - interface UserInstance extends Model, UserAttributes { - // getRole... - // setRole... - createRole: HasOneCreateOne; - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/ - * @see Model - */ - declare export type HasOneCreateOne = { - /** - * Create a new instance of the associated model and associate it with this. - * @param values The values used to create the association. - * @param options The options passed to `target.create` and `setAssociation`. - */ - ( - values?: TInitAttributes, - options?: HasOneCreateOneOptions & - HasOneSetOneOptions & - CreateOptions, - ): Promise, - }; - - /** - * The options for the getAssociations mixin of the hasMany association. - * @see HasManyGetMany - */ - declare export type HasManyGetManyOptions = { - /** - * An optional where clause to limit the associated models. - */ - where?: WhereOptions, - - /** - * Apply a scope on the related model, or remove its default scope by passing false. - */ - scope?: ?(string | boolean), - }; - - /** - * The getAssociations mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - getRoles: HasManyGetMany; - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyGetMany> = { - /** - * Get everything currently associated with this, using an optional where clause. - * @param options The options to use when getting the associations. - */ - (options?: HasManyGetManyOptions): Promise, - }; - - /** - * The options for the setAssociations mixin of the hasMany association. - * @see HasManySetMany - */ - declare export type HasManySetManyOptions = { - /** - * Run validation for the join model. - */ - validate?: boolean, - }; - - /** - * The setAssociations mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - setRoles: HasManySetMany; - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManySetMany< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Set the associated models by passing an array of instances or their primary keys. - * Everything that it not in the passed array will be un-associated. - * @param newAssociations An array of instances or primary key of instances to associate with this. Pass null or undefined to remove all associations. - * @param options The options passed to `target.findAll` and `update`. - */ - ( - newAssociations: ?$ReadOnlyArray, - options?: HasManySetManyOptions & - AnyFindOptions & - InstanceUpdateOptions, - ): Promise, - }; - - /** - * The options for the addAssociations mixin of the hasMany association. - * @see HasManyAddMany - */ - declare export type HasManyAddManyOptions = { - /** - * Run validation for the join model. - */ - validate?: boolean, - }; - - /** - * The addAssociations mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - addRoles: HasManyAddMany; - // addRole... - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyAddMany< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Associate several instances with this. - * @param newAssociations An array of instances or primary key of instances to associate with this. - * @param options The options passed to `target.update`. - */ - ( - newAssociations: $ReadOnlyArray, - options?: HasManyAddManyOptions & InstanceUpdateOptions, - ): Promise, - }; - - /** - * The options for the addAssociation mixin of the hasMany association. - * @see HasManyAddOne - */ - declare export type HasManyAddOneOptions = { - /** - * Run validation for the join model. - */ - validate?: boolean, - }; - - /** - * The addAssociation mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - addRole: HasManyAddOne; - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyAddOne< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Associate an instance with this. - * @param newAssociation An instance or the primary key of an instance to associate with this. - * @param options The options passed to `target.update`. - */ - ( - newAssociation: TInstance | TInstancePrimaryKey, - options?: HasManyAddOneOptions & InstanceUpdateOptions, - ): Promise, - }; - - /** - * The options for the createAssociation mixin of the hasMany association. - * @see HasManyCreateOne - */ - declare export type HasManyCreateOneOptions = {}; - - /** - * The createAssociation mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - createRole: HasManyCreateOne; - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyCreateOne< - TInitAttributes, - TInstance: Model, - > = { - /** - * Create a new instance of the associated model and associate it with this. - * @param values The values used to create the association. - * @param options The options to use when creating the association. - */ - ( - values?: TInitAttributes, - options?: HasManyCreateOneOptions & CreateOptions, - ): Promise, - }; - - /** - * The options for the removeAssociation mixin of the hasMany association. - * @see HasManyRemoveOne - */ - declare export type HasManyRemoveOneOptions = {}; - - /** - * The removeAssociation mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - removeRole: HasManyRemoveOne; - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyRemoveOne< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Un-associate the instance. - * @param oldAssociated The instance or the primary key of the instance to un-associate. - * @param options The options passed to `target.update`. - */ - ( - oldAssociated: TInstance | TInstancePrimaryKey, - options?: HasManyRemoveOneOptions & InstanceUpdateOptions, - ): Promise, - }; - - /** - * The options for the removeAssociations mixin of the hasMany association. - * @see HasManyRemoveMany - */ - declare export type HasManyRemoveManyOptions = {}; - - /** - * The removeAssociations mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - removeRoles: HasManyRemoveMany; - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyRemoveMany< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Un-associate several instances. - * @param oldAssociated An array of instances or primary key of instances to un-associate. - * @param options The options passed to `target.update`. - */ - ( - oldAssociateds?: $ReadOnlyArray, - options?: HasManyRemoveManyOptions & InstanceUpdateOptions, - ): Promise, - }; - - /** - * The options for the hasAssociation mixin of the hasMany association. - * @see HasManyHasOne - */ - declare export type HasManyHasOneOptions = {}; - - /** - * The hasAssociation mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles... - hasRole: HasManyHasOne; - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyHasOne< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Check if an instance is associated with this. - * @param target The instance or the primary key of the instance to check. - * @param options The options passed to `getAssociations`. - */ - ( - target: TInstance | TInstancePrimaryKey, - options?: HasManyHasOneOptions & HasManyGetManyOptions, - ): Promise, - }; - - /** - * The options for the hasAssociations mixin of the hasMany association. - * @see HasManyHasMany - */ - declare export type HasManyHasManyOptions = {}; - - /** - * The removeAssociations mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles - // hasRole... - hasRoles: HasManyHasMany; - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyHasMany< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Check if all instances are associated with this. - * @param targets An array of instances or primary key of instances to check. - * @param options The options passed to `getAssociations`. - */ - ( - targets: $ReadOnlyArray, - options?: HasManyHasManyOptions & HasManyGetManyOptions, - ): Promise, - }; - - /** - * The options for the countAssociations mixin of the hasMany association. - * @see HasManyCount - */ - declare export type HasManyCountOptions = { - /** - * An optional where clause to limit the associated models. - */ - where?: WhereOptions, - - /** - * Apply a scope on the related model, or remove its default scope by passing false. - */ - scope?: ?(string | boolean), - }; - - /** - * The countAssociations mixin applied to models with hasMany. - * An example of usage is as follows: - - ```js - - User.hasMany(Role); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - countRoles: HasManyCount; - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ - * @see Model - */ - declare export type HasManyCount = { - /** - * Count everything currently associated with this, using an optional where clause. - * @param options The options to use when counting the associations. - */ - (options?: HasManyCountOptions): Promise, - }; - - /** - * The options for the getAssociations mixin of the belongsToMany association. - * @see BelongsToManyGetMany - */ - declare export type BelongsToManyGetManyOptions = { - /** - * An optional where clause to limit the associated models. - */ - where?: WhereOptions, - - /** - * Apply a scope on the related model, or remove its default scope by passing false. - */ - scope?: ?(string | boolean), - }; - - /** - * The getAssociations mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - getRoles: BelongsToManyGetMany; - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyGetMany> = { - /** - * Get everything currently associated with this, using an optional where clause. - * @param options The options to use when getting the associations. - */ - (options?: BelongsToManyGetManyOptions): Promise, - }; - - /** - * The options for the setAssociations mixin of the belongsToMany association. - * @see BelongsToManySetMany - */ - declare export type BelongsToManySetManyOptions = { - /** - * Run validation for the join model. - */ - validate?: boolean, - }; - - /** - * The setAssociations mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - setRoles: BelongsToManySetMany; - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManySetMany< - TInstance: Model, - TInstancePrimaryKey, - TJoinTableAttributes, - > = { - /** - * Set the associated models by passing an array of instances or their primary keys. - * Everything that it not in the passed array will be un-associated. - * @param newAssociations An array of instances or primary key of instances to associate with this. Pass null or undefined to remove all associations. - * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. - */ - ( - newAssociations: ?$ReadOnlyArray, - options?: BelongsToManySetManyOptions & - AnyFindOptions & - BulkCreateOptions & - InstanceUpdateOptions & - InstanceDestroyOptions & { - through?: TJoinTableAttributes, - }, - ): Promise, - }; - - /** - * The options for the addAssociations mixin of the belongsToMany association. - * @see BelongsToManyAddMany - */ - declare export type BelongsToManyAddManyOptions = { - /** - * Run validation for the join model. - */ - validate?: boolean, - }; - - /** - * The addAssociations mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - addRoles: BelongsToManyAddMany; - // addRole... - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyAddMany< - TInstance: Model, - TInstancePrimaryKey, - TJoinTableAttributes, - > = { - /** - * Associate several instances with this. - * @param newAssociations An array of instances or primary key of instances to associate with this. - * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. - */ - ( - newAssociations: $ReadOnlyArray, - options?: BelongsToManyAddManyOptions & - AnyFindOptions & - BulkCreateOptions & - InstanceUpdateOptions & - InstanceDestroyOptions & { - through?: TJoinTableAttributes, - }, - ): Promise, - }; - - /** - * The options for the addAssociation mixin of the belongsToMany association. - * @see BelongsToManyAddOne - */ - declare export type BelongsToManyAddOneOptions = { - /** - * Run validation for the join model. - */ - validate?: boolean, - }; - - /** - * The addAssociation mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - addRole: BelongsToManyAddOne; - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyAddOne< - TInstance: Model, - TInstancePrimaryKey, - TJoinTableAttributes, - > = { - /** - * Associate an instance with this. - * @param newAssociation An instance or the primary key of an instance to associate with this. - * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. - */ - ( - newAssociation: TInstance | TInstancePrimaryKey, - options?: BelongsToManyAddOneOptions & - AnyFindOptions & - BulkCreateOptions & - InstanceUpdateOptions & - InstanceDestroyOptions & { - through?: TJoinTableAttributes, - }, - ): Promise, - }; - - /** - * The options for the createAssociation mixin of the belongsToMany association. - * @see BelongsToManyCreateOne - */ - declare export type BelongsToManyCreateOneOptions = {}; - - /** - * The createAssociation mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - createRole: BelongsToManyCreateOne; - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyCreateOne< - TInitAttributes, - TInstance: Model, - TJoinTableAttributes, - > = { - /** - * Create a new instance of the associated model and associate it with this. - * @param values The values used to create the association. - * @param options Options passed to `create` and `add`. Can also hold additional attributes for the join table. - */ - ( - values?: TInitAttributes, - options?: BelongsToManyCreateOneOptions & - CreateOptions & { - through?: TJoinTableAttributes, - }, - ): Promise, - }; - - /** - * The options for the removeAssociation mixin of the belongsToMany association. - * @see BelongsToManyRemoveOne - */ - declare export type BelongsToManyRemoveOneOptions = {}; - - /** - * The removeAssociation mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - removeRole: BelongsToManyRemoveOne; - // removeRoles... - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyRemoveOne< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Un-associate the instance. - * @param oldAssociated The instance or the primary key of the instance to un-associate. - * @param options The options passed to `through.destroy`. - */ - ( - oldAssociated: TInstance | TInstancePrimaryKey, - options?: BelongsToManyRemoveOneOptions & InstanceDestroyOptions, - ): Promise, - }; - - /** - * The options for the removeAssociations mixin of the belongsToMany association. - * @see BelongsToManyRemoveMany - */ - declare export type BelongsToManyRemoveManyOptions = {}; - - /** - * The removeAssociations mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - removeRoles: BelongsToManyRemoveMany; - // hasRole... - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyRemoveMany< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Un-associate several instances. - * @param oldAssociated An array of instances or primary key of instances to un-associate. - * @param options The options passed to `through.destroy`. - */ - ( - oldAssociateds?: $ReadOnlyArray, - options?: BelongsToManyRemoveManyOptions & InstanceDestroyOptions, - ): Promise, - }; - - /** - * The options for the hasAssociation mixin of the belongsToMany association. - * @see BelongsToManyHasOne - */ - declare export type BelongsToManyHasOneOptions = {}; - - /** - * The hasAssociation mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles... - hasRole: BelongsToManyHasOne; - // hasRoles... - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyHasOne< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Check if an instance is associated with this. - * @param target The instance or the primary key of the instance to check. - * @param options The options passed to `getAssociations`. - */ - ( - target: TInstance | TInstancePrimaryKey, - options?: BelongsToManyHasOneOptions & BelongsToManyGetManyOptions, - ): Promise, - }; - - /** - * The options for the hasAssociations mixin of the belongsToMany association. - * @see BelongsToManyHasMany - */ - declare export type BelongsToManyHasManyOptions = {}; - - /** - * The removeAssociations mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles - // hasRole... - hasRoles: BelongsToManyHasMany; - // countRoles... - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyHasMany< - TInstance: Model, - TInstancePrimaryKey, - > = { - /** - * Check if all instances are associated with this. - * @param targets An array of instances or primary key of instances to check. - * @param options The options passed to `getAssociations`. - */ - ( - targets: $ReadOnlyArray, - options?: BelongsToManyHasManyOptions & BelongsToManyGetManyOptions, - ): Promise, - }; - - /** - * The options for the countAssociations mixin of the belongsToMany association. - * @see BelongsToManyCount - */ - declare export type BelongsToManyCountOptions = { - /** - * An optional where clause to limit the associated models. - */ - where?: WhereOptions, - - /** - * Apply a scope on the related model, or remove its default scope by passing false. - */ - scope?: ?(string | boolean), - }; - - /** - * The countAssociations mixin applied to models with belongsToMany. - * An example of usage is as follows: - - ```js - - User.belongsToMany(Role, { through: UserRole }); - - interface UserInstance extends Model, UserAttributes { - // getRoles... - // setRoles... - // addRoles... - // addRole... - // createRole... - // removeRole... - // removeRoles... - // hasRole... - // hasRoles... - countRoles: BelongsToManyCount; - } - ``` - * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ - * @see Model - */ - declare export type BelongsToManyCount = { - /** - * Count everything currently associated with this, using an optional where clause. - * @param options The options to use when counting the associations. - */ - (options?: BelongsToManyCountOptions): Promise, - }; - - /** - * Foreign Key Options - * @see AssociationOptions - */ - declare export type AssociationForeignKeyOptions = ColumnOptions & { - /** - * Attribute name for the relation - */ - name?: string, - }; - - /** - * Options provided when associating models - * @see Association class - */ - declare export type AssociationOptions = { - /** - * Set to true to run before-/afterDestroy hooks when an associated model is deleted because of a cascade. - * For example if `User.hasOne(Profile, {onDelete: 'cascade', hooks:true})`, the before-/afterDestroy hooks - for profile will be called when a user is deleted. Otherwise the profile will be deleted without invoking - any hooks. - - Defaults to false - */ - hooks?: boolean, - - /** - * The alias of this model, in singular form. See also the `name` option passed to `sequelize.define`. If - * you create multiple associations between the same tables, you should provide an alias to be able to - distinguish between them. If you provide an alias when creating the assocition, you should provide the - same alias when eager loading and when getting assocated models. Defaults to the singularized name of - target - */ - as?: - | string - | { - singular: string, - plural: string, - }, - - /** - * The name of the foreign key in the target table or an object representing the type definition for the - * foreign column (see `Sequelize.define` for syntax). When using an object, you can add a `name` property - to set the name of the column. Defaults to the name of source + primary key of source - */ - foreignKey?: string | AssociationForeignKeyOptions, - - /** - * What happens when delete occurs. - * - Cascade if this is a n:m, and set null if it is a 1:m - - Defaults to 'SET_NULL' or 'CASCADE' - */ - onDelete?: string, - - /** - * What happens when update occurs - * - Defaults to 'CASCADE' - */ - onUpdate?: string, - - /** - * Should on update and on delete constraints be enabled on the foreign key. - */ - constraints?: boolean, - foreignKeyConstraint?: boolean, - }; - - /** - * Options for Association Scope - * @see AssociationOptionsManyToMany - */ - declare export type AssociationScope = { - [scopeName: string]: any, - }; - - /** - * Options provided for many-to-many relationships - * @see AssociationOptionsHasMany - * @see AssociationOptionsBelongsToMany - */ - declare export type AssociationOptionsManyToMany = AssociationOptions & { - /** - * A key/value set that will be used for association create and find defaults on the target. - * (sqlite not supported for N:M) - */ - scope?: ?AssociationScope, - }; - - /** - * Options provided when associating models with hasOne relationship - * @see Association class hasOne method - */ - declare export type AssociationOptionsHasOne = AssociationOptions & { - /** - * A string or a data type to represent the identifier in the table - */ - keyType?: DataTypeAbstract, - }; - - /** - * Options provided when associating models with belongsTo relationship - * @see Association class belongsTo method - */ - declare export type AssociationOptionsBelongsTo = AssociationOptions & { - /** - * The name of the field to use as the key for the association in the target table. Defaults to the primary - * key of the target table - */ - targetKey?: string, - - /** - * A string or a data type to represent the identifier in the table - */ - keyType?: DataTypeAbstract, - }; - - /** - * Options provided when associating models with hasMany relationship - * @see Association class hasMany method - */ - declare export type AssociationOptionsHasMany = AssociationOptionsManyToMany & { - /** - * A string or a data type to represent the identifier in the table - */ - keyType?: DataTypeAbstract, - }; - - /** - * Options provided when associating models with belongsToMany relationship - * @see Association class belongsToMany method - */ - declare export type AssociationOptionsBelongsToMany< - Through: Model, - > = AssociationOptionsManyToMany & { - /** - * The name of the table that is used to join source and target in n:m associations. Can also be a - * sequelize - model if you want to define the junction table yourself and add extra attributes to it. - - In 3.4.1 version of Sequelize, hasMany's use of through gives an error, and on the other hand through - option for belongsToMany has been made required. - * @see https://github.com/sequelize/sequelize/blob/v3.4.1/lib/associations/has-many.js - * @see https://github.com/sequelize/sequelize/blob/v3.4.1/lib/associations/belongs-to-many.js - */ - through: Class | string | ThroughOptions, - - /** - * The name of the foreign key in the join table (representing the target model) or an object representing - * the type definition for the other column (see `Sequelize.define` for syntax). When using an object, you - can add a `name` property to set the name of the colum. Defaults to the name of target + primary key of - target - */ - otherKey?: string | AssociationForeignKeyOptions, - - /** - * Should the join model have timestamps - */ - timestamps?: boolean, - }; - - /** - * Used for a association table in n:m associations. - * @see AssociationOptionsBelongsToMany - */ - declare export type ThroughOptions> = { - /** - * The model used to join both sides of the N:M association. - */ - model: Class, - - /** - * A key/value set that will be used for association create and find defaults on the through model. - * (Remember to add the attributes to the through model) - */ - scope?: ?AssociationScope, - - /** - * If true a unique key will be generated from the foreign keys used (might want to turn this off and create - * specific unique keys when using scopes) - - Defaults to true - */ - unique?: boolean, - }; - - declare type AssociationType = - | 'HasMany' - | 'BelongsTo' - | 'HasOne' - | 'BelongsToMany'; - - declare export type Attribute = { - /** - * A string or a data type - */ - type: DataTypeAbstract, - - allowNull?: boolean, - - values?: Array, - - /** - * If true, the column will get a unique constraint. If a string is provided, the column will be part of a - * composite unique index. If multiple columns have the same string, they will be part of the same unique - index - */ - unique?: - | boolean - | string - | { - name: string, - msg: string, - }, - - /** - * Primary key flag - */ - primaryKey?: boolean, - - /** - * Is this field an auto increment field - */ - autoIncrement?: boolean, - - /** - * Comment for the database - */ - comment?: string, - - /** - * An object with reference configurations - */ - references?: string | Model | DefineAttributeColumnReferencesOptions, - - Model: Model, - _autoGenerated?: true, - fieldName: string, - field: string, - }; - - declare export class Association, Target: Model> { - constructor( - source: Class, - target: Class, - options?: AssociationOptions, - ): this; - static BelongsTo: typeof BelongsTo; - static HasOne: typeof HasOne; - static BelongsToMany: typeof BelongsToMany; - static HasMany: typeof HasMany; - source: Class; - target: Class; - sequelize: Sequelize; - options: AssociationOptions; - scope: ?AssociationScope; - isSingleAssociation: boolean; - isMultiAssociation: boolean; - isSelfAssociation: boolean; - as: - | string - | { - singular: string, - plural: string, - }; - associationType: $Subtype; - } - - declare type ArrayOrElement = T | Array; - - declare class BelongsTo< - Source: Model, - TargetAttributes: Object, - TargetInitAttributes: Object, - Target: Model, - > extends Association { - associationType: 'BelongsTo'; - foreignKey: string; - foreignKeyField: string; - foreignKeyAttribute: Attribute; - identifier: string; - targetKey: string; - targetKeyField: string; - targetKeyAttribute: string; - targetIdentifier: string; - targetKeyIsPrimary: boolean; - identifierField: string; - get( - instance: Source, - options?: FindOptions, - ): Promise; - get( - instances: Array, - options?: FindOptions, - ): Promise<{ [key: PrimaryKey]: Target }>; - set( - sourceInstance: Source, - targetInstance: PrimaryKey | Target, - options?: InstanceSaveOptions, - ): Promise; - create( - sourceInstance: Source, - values: TargetInitAttributes, - options?: CreateOptions, - ): Promise; - } - - declare class HasOne< - Source: Model, - TargetAttributes: Object, - TargetInitAttributes: Object, - Target: Model, - > extends Association { - associationType: 'HasOne'; - foreignKey: string; - foreignKeyField: string; - foreignKeyAttribute: Attribute; - identifier: string; - sourceKey: string; - sourceKeyField: string; - sourceKeyAttribute: string; - sourceKeyIsPrimary: boolean; - sourceIdentifier: string; - identifierField: string; - get( - instance: Source, - options?: FindOptions, - ): Promise; - get( - instances: Array, - options?: FindOptions, - ): Promise<{ [key: PrimaryKey]: Target }>; - set( - sourceInstance: Source, - targetInstance: PrimaryKey | Target, - options?: InstanceSaveOptions, - ): Promise; - create( - sourceInstance: Source, - values: TargetInitAttributes, - options?: CreateOptions, - ): Promise; - } - - declare class HasMany< - Source: Model, - TargetAttributes: Object, - TargetInitAttributes: Object, - Target: Model, - > extends Association { - associationType: 'HasMany'; - foreignKey: string; - foreignKeyField: string; - foreignKeyAttribute: Attribute; - sourceKey: string; - sourceKeyField: string; - sourceKeyAttribute: string; - identifierField: string; - get( - instance: Source, - options?: FindOptions, - ): Promise>; - get( - instances: Array, - options?: FindOptions, - ): Promise<{ [key: PrimaryKey]: Target }>; - count( - instance: Source, - options?: FindOptions, - ): Promise; - has( - sourceInstance: Source, - targetInstances: ArrayOrElement, - options?: FindOptions, - ): Promise; - set( - sourceInstance: Source, - targetInstances: ArrayOrElement, - options?: FindOptions & - UpdateRelatedOptions, - ): Promise; - add( - sourceInstance: Source, - targetInstances: ArrayOrElement, - options?: UpdateRelatedOptions, - ): Promise; - remove( - sourceInstance: Source, - targetInstances: ArrayOrElement, - options?: UpdateRelatedOptions, - ): Promise; - create( - sourceInstance: Source, - values: TargetInitAttributes, - options?: CreateOptions, - ): Promise; - } - - declare class BelongsToMany< - SourceAttributes: Object, - SourceInitAttributes: Object, - Source: Model, - TargetAttributes: Object, - TargetInitAttributes: Object, - Target: Model, - ThroughAttributes: Object, - Through: Model, - > extends Association { - associationType: 'BelongsToMany'; - foreignKey: string; - foreignKeyField: string; - foreignKeyAttribute: Attribute; - otherKey: string; - otherKeyField: string; - otherKeyAttribute: string; - identifierField: string; - foreignIdentifierField?: string; - paired?: BelongsToMany< - TargetAttributes, - TargetInitAttributes, - Target, - SourceAttributes, - SourceInitAttributes, - Source, - ThroughAttributes, - Through, - >; - through: ThroughOptions; - throughModel: Class; - get( - instance: Source, - options?: FindOptions, - ): Promise>; - count( - instance: Source, - options?: FindOptions, - ): Promise; - has( - sourceInstance: Source, - targetInstances: ArrayOrElement, - options?: FindOptions, - ): Promise; - set( - sourceInstance: Source, - targetInstances: ArrayOrElement, - options?: FindOptions & - UpdateRelatedOptions & - DestroyOptions, - ): Promise>; - add( - sourceInstance: Source, - targetInstances: ArrayOrElement, - options?: FindOptions & - UpdateRelatedOptions, - ): Promise>; - remove( - sourceInstance: Source, - targetInstances: ArrayOrElement, - options?: DestroyOptions, - ): Promise; - create( - sourceInstance: Source, - values: TargetInitAttributes, - options?: CreateOptions, - ): Promise; - } - - /** - * Abstract DataType interface. Use this if you want to create an interface that has a value any of the - * DataTypes that Sequelize supports. - */ - declare export type DataTypeAbstract = { - /** - * Although this is not needed for the definitions itself, we want to make sure that DataTypeAbstract is not - * something than can be evaluated to an empty object. - */ - dialectTypes: string, - toSql(): string, - }; - - declare type DataTypeAbstractString = { - /** - * A variable length string. Default length 255 - */ - (options?: { - length: number, - }): T, - (length: number): T, - - /** - * Property BINARY for the type - */ - BINARY: T, - } & DataTypeAbstract; - - declare type DataTypeString = {} & DataTypeAbstractString; - - declare type DataTypeChar = {} & DataTypeAbstractString; - - declare type DataTypeText = DataTypeAbstract & { - /** - * Length of the text field. - * - Available lengths: `tiny`, `medium`, `long` - */ - (options?: { - length: string, - }): DataTypeText, - (length: string): DataTypeText, - }; - - declare type DataTypeAbstractNumber = DataTypeAbstract & { - UNSIGNED: T, - ZEROFILL: T, - }; - - declare type DataTypeNumber = DataTypeAbstractNumber & {}; - - declare type DataTypeInteger = DataTypeAbstractNumber & { - /** - * Length of the number field. - */ - (options?: { - length: number, - }): DataTypeInteger, - (length: number): DataTypeInteger, - }; - - declare type DataTypeBigInt = DataTypeAbstractNumber & { - /** - * Length of the number field. - */ - (options?: { - length: number, - }): DataTypeBigInt, - (length: number): DataTypeBigInt, - }; - - declare type DataTypeFloat = DataTypeAbstractNumber & { - /** - * Length of the number field and decimals of the float - */ - (options?: { - length: number, - decimals?: number, - }): DataTypeFloat, - (length: number, decimals?: number): DataTypeFloat, - }; - - declare type DataTypeReal = DataTypeAbstractNumber & { - /** - * Length of the number field and decimals of the real - */ - (options?: { - length: number, - decimals?: number, - }): DataTypeReal, - (length: number, decimals?: number): DataTypeReal, - }; - - declare type DataTypeDouble = DataTypeAbstractNumber & { - /** - * Length of the number field and decimals of the real - */ - (options?: { - length: number, - decimals?: number, - }): DataTypeDouble, - (length: number, decimals?: number): DataTypeDouble, - }; - - declare type DataTypeDecimal = DataTypeAbstractNumber & { - /** - * Precision and scale for the decimal number - */ - (options?: { - precision: number, - scale?: number, - }): DataTypeDecimal, - (precision: number, scale?: number): DataTypeDecimal, - }; - - declare type DataTypeBoolean = DataTypeAbstract & {}; - - declare type DataTypeTime = DataTypeAbstract & {}; - - declare type DataTypeDate = DataTypeAbstract & { - /** - * Length of decimal places of time - */ - (options?: { - length?: number, - }): DataTypeDate, - (length?: number): DataTypeDate, - }; - - declare type DataTypeDateOnly = DataTypeAbstract & {}; - - declare type DataTypeHStore = DataTypeAbstract & {}; - - declare type DataTypeJSONType = DataTypeAbstract & {}; - - declare type DataTypeJSONB = DataTypeAbstract & {}; - - declare type DataTypeNow = DataTypeAbstract & {}; - - declare type DataTypeBlob = DataTypeAbstract & { - /** - * Length of the blob field. - * - Available lengths: `tiny`, `medium`, `long` - */ - (options?: { - length: string, - }): DataTypeBlob, - (length: string): DataTypeBlob, - }; - - declare type DataTypeRange = DataTypeAbstract & { - /** - * Range field for Postgre - * - Accepts subtype any of the ranges - */ - (options?: { - subtype: DataTypeAbstract, - }): DataTypeRange, - (subtype: DataTypeAbstract): DataTypeRange, - }; - - declare type DataTypeUUID = DataTypeAbstract & {}; - - declare type DataTypeUUIDv1 = DataTypeAbstract & {}; - - declare type DataTypeUUIDv4 = DataTypeAbstract & {}; - - declare class DataTypeVirtualClass { - constructor( - subtype: DataTypeAbstract, - requireAttributes?: Array, - ): DataTypeVirtual; - } - - declare type DataTypeVirtual = DataTypeAbstract & - typeof DataTypeVirtualClass & { - ( - subtype: DataTypeAbstract, - requireAttributes?: Array, - ): DataTypeVirtual, - }; - - declare type DataTypeEnum = DataTypeAbstract & { - /** - * Enum field - * - Accepts values - */ - (options?: { - values: string | string[], - }): DataTypeEnum, - (values: string | string[]): DataTypeEnum, - (...args: string[]): DataTypeEnum, - }; - - declare type DataTypeArray = DataTypeAbstract & { - /** - * Array field for Postgre - * - Accepts type any of the DataTypes - */ - (options: { - type: DataTypeAbstract, - }): DataTypeArray, - (type: DataTypeAbstract): DataTypeArray, - }; - - declare type DataTypeGeometry = DataTypeAbstract & { - /** - * Geometry field for Postgres - */ - (type: string, srid?: number): DataTypeGeometry, - }; - - /** - * A convenience class holding commonly used data types. The datatypes are used when definining a new model - * using - `Sequelize.define`, like this: - - ```js - sequelize.define('model', { - column: DataTypes.INTEGER - }) - ``` - When defining a model you can just as easily pass a string as type, but often using the types defined here - is - beneficial. For example, using `DataTypes.BLOB`, mean that that column will be returned as an instance of - `Buffer` when being fetched by sequelize. - - Some data types have special properties that can be accessed in order to change the data type. - For example, to get an unsigned integer with zerofill you can do `DataTypes.INTEGER.UNSIGNED.ZEROFILL`. - The order you access the properties in do not matter, so `DataTypes.INTEGER.ZEROFILL.UNSIGNED` is fine as - well. The available properties are listed under each data type. - - To provide a length for the data type, you can invoke it like a function: `INTEGER(2)` - - Three of the values provided here (`NOW`, `UUIDV1` and `UUIDV4`) are special default values, that should not - be used to define types. Instead they are used as shorthands for defining default values. For example, to - get a uuid field with a default value generated following v1 of the UUID standard: - - ```js - sequelize.define('model', { - uuid: { - type: DataTypes.UUID, - defaultValue: DataTypes.UUIDV1, - primaryKey: true - } - }) - ``` - */ - declare export type DataTypes = { - ABSTRACT: DataTypeAbstract, - STRING: DataTypeString, - CHAR: DataTypeChar, - TEXT: DataTypeText, - NUMBER: DataTypeNumber, - INTEGER: DataTypeInteger, - BIGINT: DataTypeBigInt, - FLOAT: DataTypeFloat, - TIME: DataTypeTime, - DATE: DataTypeDate, - DATEONLY: DataTypeDateOnly, - BOOLEAN: DataTypeBoolean, - NOW: DataTypeNow, - BLOB: DataTypeBlob, - DECIMAL: DataTypeDecimal, - NUMERIC: DataTypeDecimal, - UUID: DataTypeUUID, - UUIDV1: DataTypeUUIDv1, - UUIDV4: DataTypeUUIDv4, - HSTORE: DataTypeHStore, - JSON: DataTypeJSONType, - JSONB: DataTypeJSONB, - VIRTUAL: DataTypeVirtual, - ARRAY: DataTypeArray, - NONE: DataTypeVirtual, - ENUM: DataTypeEnum, - RANGE: DataTypeRange, - REAL: DataTypeReal, - DOUBLE: DataTypeDouble, - GEOMETRY: DataTypeGeometry, - }; - - /** - * Abstract Deferrable interface. Use this if you want to create an interface that has a value any of the - * Deferrables that Sequelize supports. - */ - declare export type DeferrableAbstract = { - /** - * Although this is not needed for the definitions itself, we want to make sure that DeferrableAbstract is - * not something than can be evaluated to an empty object. - */ - toString(): string, - toSql(): string, - }; - - declare export type DeferrableInitiallyDeferred = { - /** - * A property that will defer constraints checks to the end of transactions. - */ - (): DeferrableInitiallyDeferred, - } & DeferrableAbstract; - - declare export type DeferrableInitiallyImmediate = { - /** - * A property that will trigger the constraint checks immediately - */ - (): DeferrableInitiallyImmediate, - } & DeferrableAbstract; - - declare export type DeferrableNot = { - /** - * A property that will set the constraints to not deferred. This is the default in PostgreSQL and it make - * it impossible to dynamically defer the constraints within a transaction. - */ - (): DeferrableNot, - } & DeferrableAbstract; - - declare export type DeferrableSetDeferred = { - /** - * A property that will trigger an additional query at the beginning of a - * transaction which sets the constraints to deferred. - * @param constraints An array of constraint names. Will defer all constraints by default. - */ - (constraints: string[]): DeferrableSetDeferred, - } & DeferrableAbstract; - - declare export type DeferrableSetImmediate = { - /** - * A property that will trigger an additional query at the beginning of a - * transaction which sets the constraints to immediately. - * @param constraints An array of constraint names. Will defer all constraints by default. - */ - (constraints: string[]): DeferrableSetImmediate, - } & DeferrableAbstract; - - /** - * A collection of properties related to deferrable constraints. It can be used to - * make foreign key constraints deferrable and to set the constaints within a - transaction. This is only supported in PostgreSQL. - - The foreign keys can be configured like this. It will create a foreign key - that will check the constraints immediately when the data was inserted. - - ```js - sequelize.define('Model', { - foreign_id: { - type: Sequelize.INTEGER, - references: { - model: OtherModel, - key: 'id', - deferrable: Sequelize.Deferrable.INITIALLY_IMMEDIATE - } - } - }); - ``` - - The constraints can be configured in a transaction like this. It will - trigger a query once the transaction has been started and set the constraints - to be checked at the very end of the transaction. - - ```js - sequelize.transaction({ - deferrable: Sequelize.Deferrable.SET_DEFERRED - }); - ``` - */ - declare export type Deferrable = { - INITIALLY_DEFERRED: DeferrableInitiallyDeferred, - INITIALLY_IMMEDIATE: DeferrableInitiallyImmediate, - NOT: DeferrableNot, - SET_DEFERRED: DeferrableSetDeferred, - SET_IMMEDIATE: DeferrableSetImmediate, - }; - - /** - * The Base Error all Sequelize Errors inherit from. - */ - declare export class BaseError extends Error {} - - declare export class ValidationError extends BaseError { - /** - * Validation Error. Thrown when the sequelize validation has failed. The error contains an `errors` - * property, which is an array with 1 or more ValidationErrorItems, one for each validation that failed. - * @param message Error message - * @param errors Array of ValidationErrorItem objects describing the validation errors - */ - constructor( - message: string, - errors?: ValidationErrorItem[], - ): ValidationError; - - /** - * Gets all validation error items for the path / field specified. - * @param path The path to be checked for error items - */ - get(path: string): ValidationErrorItem[]; - - /** - * Array of ValidationErrorItem objects describing the validation errors - */ - errors: ValidationErrorItem[]; - } - - declare export class ValidationErrorItem extends BaseError { - /** - * Validation Error Item - * Instances of this class are included in the `ValidationError.errors` property. - * @param message An error message - * @param type The type of the validation error - * @param path The field that triggered the validation error - * @param value The value that generated the error - */ - constructor( - message: string, - type: string, - path: string, - value: string, - ): ValidationErrorItem; - - /** - * An error message - */ - message: string; - - /** - * The type of the validation error - */ - type: string; - - /** - * The field that triggered the validation error - */ - path: string; - - /** - * The value that generated the error - */ - value: string; - } - - declare export class DatabaseError extends BaseError { - /** - * A base class for all database related errors. - */ - constructor(parent: Error): DatabaseError; - } - - declare export class TimeoutError extends DatabaseError { - /** - * Thrown when a database query times out because of a deadlock - */ - constructor(parent: Error): TimeoutError; - } - - declare export class UniqueConstraintError extends ValidationError { - /** - * Thrown when a unique constraint is violated in the database - */ - constructor(options: { - parent?: Error, - message?: string, - errors?: Object, - }): UniqueConstraintError; - } - - declare export class ForeignKeyConstraintError extends DatabaseError { - /** - * Thrown when a foreign key constraint is violated in the database - */ - construtor(options: { - parent?: Error, - message?: string, - index?: string, - fields?: string[], - table?: string, - }): ForeignKeyConstraintError; - } - - declare export class ExclusionConstraintError extends DatabaseError { - /** - * Thrown when an exclusion constraint is violated in the database - */ - construtor(options: { - parent?: Error, - message?: string, - constraint?: string, - fields?: string[], - table?: string, - }): ExclusionConstraintError; - } - - declare export class ConnectionError extends BaseError { - /** - * A base class for all connection related errors. - */ - construtor(parent: Error): ConnectionError; - } - - declare export class ConnectionRefusedError extends ConnectionError { - /** - * Thrown when a connection to a database is refused - */ - construtor(parent: Error): ConnectionRefusedError; - } - - declare export class AccessDeniedError extends ConnectionError { - /** - * Thrown when a connection to a database is refused due to insufficient privileges - */ - construtor(parent: Error): AccessDeniedError; - } - - declare export class HostNotFoundError extends ConnectionError { - /** - * Thrown when a connection to a database has a hostname that was not found - */ - construtor(parent: Error): HostNotFoundError; - } - - declare export class HostNotReachableError extends ConnectionError { - /** - * Thrown when a connection to a database has a hostname that was not reachable - */ - construtor(parent: Error): HostNotReachableError; - } - - declare export class InvalidConnectionError extends ConnectionError { - /** - * Thrown when a connection to a database has invalid values for any of the connection parameters - */ - construtor(parent: Error): InvalidConnectionError; - } - - declare export class ConnectionTimedOutError extends ConnectionError { - /** - * Thrown when a connection to a database times out - */ - construtor(parent: Error): ConnectionTimedOutError; - } - - declare export class EmptyResultError extends BaseError { - /** - * Thrown when a record was not found, Usually used with rejectOnEmpty mode (see message for details) - */ - construtor(parent: Error): EmptyResultError; - } - - /** - * Options for Sequelize.define. We mostly duplicate the Hooks here, since there is no way to combine the two - * interfaces. - - beforeValidate, afterValidate, beforeBulkCreate, beforeBulkDestroy, beforeBulkUpdate, beforeCreate, - beforeDestroy, beforeUpdate, afterCreate, afterDestroy, afterUpdate, afterBulkCreate, afterBulkDestroy and - afterBulkUpdate. - */ - declare export type HooksDefineOptions> = { - beforeValidate?: AsyncFn2, - validationFailed?: AsyncFn3, - afterValidate?: AsyncFn2, - beforeCreate?: AsyncFn2, - afterCreate?: AsyncFn2, - beforeDestroy?: AsyncFn2, - beforeDelete?: AsyncFn2, - afterDestroy?: AsyncFn2, - afterDelete?: AsyncFn2, - beforeUpdate?: AsyncFn2, - afterUpdate?: AsyncFn2, - beforeBulkCreate?: AsyncFn2, - afterBulkCreate?: AsyncFn2, - beforeBulkDestroy?: AsyncFn1, - beforeBulkDelete?: AsyncFn1, - afterBulkDestroy?: AsyncFn1, - afterBulkDelete?: AsyncFn1, - beforeBulkUpdate?: AsyncFn1, - afterBulkUpdate?: AsyncFn1, - beforeFind?: AsyncFn1, - beforeFindAfterExpandIncludeAll?: AsyncFn1, - beforeFindAfterOptions?: AsyncFn1, - afterFind?: AsyncFn2, - }; - - /** - * Options used for Instance.increment method - */ - declare export type InstanceIncrementDecrementOptions = { - /** - * The number to increment by - * Defaults to 1 - */ - by?: number, - - /** - * If true, the updatedAt timestamp will not be updated. - */ - silent?: boolean, - - /** - * A function that gets executed while running the query to log the sql. - */ - logging?: boolean | Function, - - /** - * Transaction to run query under - */ - transaction?: ?Transaction, - - /** - * An optional parameter to specify the schema search_path (Postgres only) - */ - searchPath?: string, - }; - - /** - * Options used for Instance.restore method - */ - declare export type InstanceRestoreOptions = { - /** - * A function that gets executed while running the query to log the sql. - */ - logging?: boolean | Function, - - /** - * Transaction to run query under - */ - transaction?: ?Transaction, - }; - - /** - * Options used for Instance.destroy method - */ - declare export type InstanceDestroyOptions = { - /** - * If set to true, paranoid models will actually be deleted - */ - force?: boolean, - - /** - * A function that gets executed while running the query to log the sql. - */ - logging?: boolean | Function, - - /** - * Transaction to run the query in - */ - transaction?: ?Transaction, - }; - - /** - * Options used for Instance.update method - */ - declare export type InstanceUpdateOptions = { - /** - * A hash of attributes to describe your search. See above for examples. - */ - where?: WhereOptions, - } & InstanceSaveOptions & - InstanceSetOptions; - - /** - * Options used for Instance.set method - */ - declare export type InstanceSetOptions = { - /** - * If set to true, field and virtual setters will be ignored - */ - raw?: boolean, - - /** - * Clear all previously set data values - */ - reset?: boolean, - }; - - /** - * Options used for Instance.save method - */ - declare export type InstanceSaveOptions = { - /** - * If true, the updatedAt timestamp will not be updated. - * - Defaults to false - */ - silent?: boolean, - } & FieldsOptions & - LoggingOptions & - ReturningOptions & - SearchPathOptions; - - declare export type LoggingOptions = { - /** - * A function that gets executed while running the query to log the sql. - */ - logging?: boolean | Function, - - /** - * Print query execution time in milliseconds when logging SQL. - */ - benchmark?: boolean, - }; - - declare export type SearchPathOptions = { - /** - * Transaction to run query under - */ - transaction?: ?Transaction, - - /** - * An optional parameter to specify the schema search_path (Postgres only) - */ - searchPath?: string, - }; - - declare export type ReturningOptions = { - /** - * Append RETURNING to get back auto generated values (Postgres only) - */ - returning?: boolean, - }; - - declare export type FieldsOptions = { - /** - * Run validations before the row is inserted - */ - validate?: boolean, - - /** - * The fields to insert / update. Defaults to all fields - */ - fields?: $Keys[], - }; - - /** - * Options to pass to Model on drop - */ - declare export type DropOptions = { - /** - * Also drop all objects depending on this table, such as views. Only works in postgres - */ - cascade?: boolean, - } & LoggingOptions; - - /** - * Schema Options provided for applying a schema to a model - */ - declare export type SchemaOptions = { - /** - * The character(s) that separates the schema name from the table name - */ - schemaDelimeter?: string, - } & LoggingOptions; - - /** - * GetTableName Options - */ - declare export type GetTableNameOptions = {} & LoggingOptions; - - /** - * AddScope Options for Model.addScope - */ - declare export type AddScopeOptions = { - /** - * If a scope of the same name already exists, should it be overwritten? - */ - override: boolean, - }; - - /** - * Scope Options for Model.scope - */ - declare export type ScopeOptions = { - /** - * The scope(s) to apply. Scopes can either be passed as consecutive arguments, or as an array of arguments. - * To apply simple scopes and scope functions with no arguments, pass them as strings. For scope function, - pass an object, with a `method` property. The value can either be a string, if the method does not take - any arguments, or an array, where the first element is the name of the method, and consecutive elements - are arguments to that method. Pass null to remove all scopes, including the default. - */ - method: string | any[], - }; - - /** - * The type accepted by every `where` option - * - * The `Array` is to support string with replacements, like `['id > ?', 25]` - */ - declare export type WhereOptions = - | WhereAttributeHash - | AndOperator - | OrOperator - | where - | fn - | $ReadOnlyArray; - - /** - * Example: `$any: [2,3]` becomes `ANY ARRAY[2, 3]::INTEGER` - * - * _PG only_ - */ - declare export type AnyOperator = { - $any: $ReadOnlyArray, - }; - - /** Undocumented? */ - declare export type AllOperator = { - $all: $ReadOnlyArray, - }; - - /** - * Operators that can be used in WhereOptions - * - * See http://docs.sequelizejs.com/en/v3/docs/querying/#operators - */ - declare export type WhereOperators = - | { - /** - * Example: `$any: [2,3]` becomes `ANY ARRAY[2, 3]::INTEGER` - * - * _PG only_ - */ - $any?: $ReadOnlyArray, - - /** Example: `$gte: 6,` becomes `>= 6` */ - $gte?: number | string | Date, - - /** Example: `$lt: 10,` becomes `< 10` */ - $lt?: number | string | Date, - - /** Example: `$lte: 10,` becomes `<= 10` */ - $lte?: number | string | Date, - - /** Example: `$ne: 20,` becomes `!= 20` */ - $ne?: string | number | WhereOperators, - - /** Example: `$not: true,` becomes `IS NOT TRUE` */ - $not?: boolean | string | number | WhereOperators, - - /** Example: `$between: [6, 10],` becomes `BETWEEN 6 AND 10` */ - $between?: [number, number], - - /** Example: `$in: [1, 2],` becomes `IN [1, 2]` */ - $in?: $ReadOnlyArray | literal, - - /** Example: `$notIn: [1, 2],` becomes `NOT IN [1, 2]` */ - $notIn?: $ReadOnlyArray | literal, - - /** - * Examples: - * - `$like: '%hat',` becomes `LIKE '%hat'` - * - `$like: { $any: ['cat', 'hat']}` becomes `LIKE ANY ARRAY['cat', 'hat']` - */ - $like?: string | AnyOperator | AllOperator, - - /** - * Examples: - * - `$notLike: '%hat'` becomes `NOT LIKE '%hat'` - * - `$notLike: { $any: ['cat', 'hat']}` becomes `NOT LIKE ANY ARRAY['cat', 'hat']` - */ - $notLike?: string | AnyOperator | AllOperator, - - /** - * case insensitive PG only - * - * Examples: - * - `$iLike: '%hat'` becomes `ILIKE '%hat'` - * - `$iLike: { $any: ['cat', 'hat']}` becomes `ILIKE ANY ARRAY['cat', 'hat']` - */ - $ilike?: string | AnyOperator | AllOperator, - - /** - * case insensitive PG only - * - * Examples: - * - `$iLike: '%hat'` becomes `ILIKE '%hat'` - * - `$iLike: { $any: ['cat', 'hat']}` becomes `ILIKE ANY ARRAY['cat', 'hat']` - */ - $iLike?: string | AnyOperator | AllOperator, - - /** - * PG array overlap operator - * - * Example: `$overlap: [1, 2]` becomes `&& [1, 2]` - */ - $overlap?: [number, number], - - /** - * PG array contains operator - * - * Example: `$contains: [1, 2]` becomes `@> [1, 2]` - */ - $contains?: any[], - - /** - * PG array contained by operator - * - * Example: `$contained: [1, 2]` becomes `<@ [1, 2]` - */ - $contained?: any[], - - /** Example: `$gt: 6,` becomes `> 6` */ - $gt?: number | string | Date, - - /** - * PG only - * - * Examples: - * - `$notILike: '%hat'` becomes `NOT ILIKE '%hat'` - * - `$notLike: ['cat', 'hat']` becomes `LIKE ANY ARRAY['cat', 'hat']` - */ - $notILike?: string | AnyOperator | AllOperator, - - /** Example: `$notBetween: [11, 15],` becomes `NOT BETWEEN 11 AND 15` */ - $notBetween?: [number, number], - } - | { [op: Symbol]: any }; - - /** Example: `$or: [{a: 5}, {a: 6}]` becomes `(a = 5 OR a = 6)` */ - declare export type OrOperator = { - [$or: Symbol | '$or']: - | WhereOperators - | WhereAttributeHash - | $ReadOnlyArray< - | Array - | Array - | WhereOperators - | WhereAttributeHash - | where - | AndOperator, - >, - }; - - /** Example: `$and: {a: 5}` becomes `AND (a = 5)` */ - declare export type AndOperator = { - [$and: Symbol | '$and']: - | WhereOperators - | WhereAttributeHash - | $ReadOnlyArray< - | Array - | Array - | WhereOperators - | WhereAttributeHash - | where - | OrOperator, - >, - }; - - /** - * Where Geometry Options - */ - declare export type WhereGeometryOptions = { - type: string, - coordinates: $ReadOnlyArray | number>, - }; - - /** - * Used for the right hand side of WhereAttributeHash. - * WhereAttributeHash is in there for JSON columns. - */ - declare export type WhereValue = - | string // literal value - | number // literal value - | boolean // literal value - | null - | WhereOperators - | WhereAttributeHash // for JSON columns - | col // reference another column - | OrOperator - | AndOperator - | WhereGeometryOptions - | $ReadOnlyArray; // implicit $or - - /** - * A hash of attributes to describe your search. - */ - declare export type WhereAttributeHash = { - /** - * Possible key values: - * - A simple attribute name - * - A nested key for JSON columns - * - * { - * "meta.audio.length": { - * $gt: 20 - * } - * } - */ - [field: string]: WhereValue, - }; - - /** - * Through options for Include Options - */ - declare export type IncludeThroughOptions = { - /** - * Filter on the join model for belongsToMany relations - */ - where?: WhereOptions, - - /** - * A list of attributes to select from the join model for belongsToMany relations - */ - attributes?: string[], - }; - - /** - * Complex include options - */ - declare export type IncludeOptions< - TAttributes, - TInstance: Model, - > = { - /** - * The model you want to eagerly load - */ - model?: Class, - - /** - * The alias of the relation, in case the model you want to eagerly load is aliassed. For `hasOne` / - * `belongsTo`, this should be the singular name, and for `hasMany`, it should be the plural - */ - as?: string, - - /** - * The association you want to eagerly load. (This can be used instead of providing a model/as pair) - */ - association?: Association, - - /** - * Where clauses to apply to the child models. Note that this converts the eager load to an inner join, - * unless you explicitly set `required: false` - */ - where?: WhereOptions, - - /** - * A list of attributes to select from the child model - */ - attributes?: - | FindOptionsAttributesArray - | { - include?: FindOptionsAttributesArray, - exclude?: Array<$Keys>, - }, - - /** - * If true, converts to an inner join, which means that the parent model will only be loaded if it has any - * matching children. True if `include.where` is set, false otherwise. - */ - required?: boolean, - - /** - * Through Options - */ - through?: IncludeThroughOptions, - - /** - * Load further nested related models - */ - include?: $ReadOnlyArray> | IncludeOptions>, - - /** - * If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will - * be returned. Only applies if `options.paranoid` is true for the model. - */ - paranoid?: boolean, - all?: boolean | string, - }; - - /** - * Shortcut for types used in FindOptions.attributes - */ - declare export type FindOptionsAttributesArray = Array< - | $Keys - | literal - | [fn, string] - | [cast, string] - | [literal, string] - | [$Keys, string] - | fn - | cast, - >; - - /** - * Options that are passed to any model creating a SELECT query - * - A hash of options to describe the scope of the search - */ - declare export type FindOptions = { - /** - * A hash of attributes to describe your search. See above for examples. - */ - where?: WhereOptions, - - /** - * A list of the attributes that you want to select. To rename an attribute, you can pass an array, with - * two elements - the first is the name of the attribute in the DB (or some kind of expression such as - `Sequelize.literal`, `Sequelize.fn` and so on), and the second is the name you want the attribute to - have in the returned instance - */ - attributes?: - | FindOptionsAttributesArray - | { - include?: FindOptionsAttributesArray, - exclude?: Array<$Keys>, - }, - - /** - * If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will - * be returned. Only applies if `options.paranoid` is true for the model. - */ - paranoid?: boolean, - - /** - * A list of associations to eagerly load using a left join. Supported is either - * `{ include: [ Model1, Model2, ...]}` or `{ include: [{ model: Model1, as: 'Alias' }]}`. - If your association are set up with an `as` (eg. `X.hasMany(Y, { as: 'Z }`, you need to specify Z in - the as attribute when eager loading Y). - */ - include?: $ReadOnlyArray> | IncludeOptions>, - - /** - * Specifies an ordering. If a string is provided, it will be escaped. Using an array, you can provide - * several columns / functions to order by. Each element can be further wrapped in a two-element array. The - first element is the column / function to order by, the second is the direction. For example: - `order: [['name', 'DESC']]`. In this way the column will be escaped, but the direction will not. - */ - order?: - | string - | col - | literal - | $ReadOnlyArray< - | string - | col - | literal - | Class> - | { model: Class>, as?: string } - | $ReadOnlyArray< - | string - | number - | Class> - | { model: Class>, as?: string }, - >, - >, - - /** - * Limit the results - */ - limit?: number, - - /** - * Skip the results; - */ - offset?: number, - - /** - * Lock the selected rows. Possible options are transaction.LOCK.UPDATE and transaction.LOCK.SHARE. - * Postgres also supports transaction.LOCK.KEY_SHARE, transaction.LOCK.NO_KEY_UPDATE and specific model - locks with joins. See [transaction.LOCK for an example](transaction#lock) - */ - lock?: - | TransactionLockLevel - | { - level: TransactionLockLevel, - of: Class>, - }, - - /** - * Return raw result. See sequelize.query for more information. - */ - raw?: boolean, - - /** - * having ?!? - */ - having?: WhereOptions, - - /** - * Group by. It is not mentioned in sequelize's JSDoc, but mentioned in docs. - * https://github.com/sequelize/sequelize/blob/master/docs/docs/models-usage.md#user-content-manipulating-the-dataset-with-limit-offset-order-and-group - */ - group?: string | string[] | Object, - - /** - * Apply DISTINCT(col) for FindAndCount(all) - */ - distinct?: boolean, - - /** - * Prevents a subquery on the main table when using include - */ - subQuery?: boolean, - - /** - * Throw EmptyResultError if a record is not found - */ - rejectOnEmpty?: boolean, - } & LoggingOptions & - SearchPathOptions; - - declare export type AnyFindOptions = FindOptions; - - /** - * Options for Model.count method - */ - declare export type CountOptions = { - /** - * A hash of search attributes. - */ - where?: WhereOptions, - - /** - * Include options. See `find` for details - */ - include?: $ReadOnlyArray> | IncludeOptions>, - - /** - * Apply COUNT(DISTINCT(col)) - */ - distinct?: boolean, - - /** - * Used in conjustion with `group` - */ - attributes?: $ReadOnlyArray, - - /** - * For creating complex counts. Will return multiple rows as needed. - * - TODO: Check? - */ - group?: Object | Array, - } & LoggingOptions & - SearchPathOptions; - - /** - * Options for Model.build method - */ - declare export type BuildOptions = { - /** - * If set to true, values will ignore field and virtual setters. - */ - raw?: boolean, - - /** - * Is this record new - */ - isNewRecord?: boolean, - - /** - * an array of include options - Used to build prefetched/included model instances. See `set` - * - TODO: See set - */ - include?: $ReadOnlyArray> | IncludeOptions>, - } & ReturningOptions; - - /** - * Options for Model.create method - */ - declare export type CreateOptions = { - /** - * On Duplicate - */ - onDuplicate?: string, - } & BuildOptions & - InstanceSaveOptions; - - /** - * Options for Model.findOrInitialize method - */ - declare export type FindOrInitializeOptions = { - /** - * Default values to use if building a new instance - */ - defaults?: $Shape, - } & FindOptions; - - /** - * Options for Model.findOrInitialize method - */ - declare export type FindCreateFindOptions = { - /** - * Default values to use if building a new instance - */ - defaults?: $Shape, - } & FindOptions; - - /** - * Options for Model.upsert method - * - */ - declare export type UpsertOptions = {} & FieldsOptions< - TAttributes, - > & - LoggingOptions & - SearchPathOptions; - - /** - * Options for Model.bulkCreate method - */ - declare export type BulkCreateOptions = { - /** - * Run before / after bulk create hooks? - */ - hooks?: boolean, - - /** - * Run before / after create hooks for each individual Instance? BulkCreate hooks will still be run if - * options.hooks is true. - */ - individualHooks?: boolean, - - /** - * Ignore duplicate values for primary keys? (not supported by postgres) - * - Defaults to false - */ - ignoreDuplicates?: boolean, - - /** - * Fields to update if row key already exists (on duplicate key update)? (only supported by mysql & - * mariadb). By default, all fields are updated. - */ - updateOnDuplicate?: string[], - } & FieldsOptions & - LoggingOptions & - SearchPathOptions & - ReturningOptions; - - /** - * The options passed to Model.destroy in addition to truncate - */ - declare export type TruncateOptions = { - /** - * Only used in conjuction with TRUNCATE. Truncates all tables that have foreign-key references to the - * named table, or to any tables added to the group due to CASCADE. - - Defaults to false; - */ - cascade?: boolean, - - /** - * Delete instead of setting deletedAt to current timestamp (only applicable if paranoid is enabled) - * - Defaults to false; - */ - force?: boolean, - } & LoggingOptions & - SearchPathOptions; - - /** - * Options used for Model.destroy - */ - declare export type DestroyOptions = { - /** - * Filter the destroy - */ - where?: WhereOptions, - - /** - * Run before / after bulk destroy hooks? - */ - hooks?: boolean, - - /** - * If set to true, destroy will SELECT all records matching the where parameter and will execute before / - * after destroy hooks on each row - */ - individualHooks?: boolean, - - /** - * How many rows to delete - */ - limit?: number, - - /** - * Delete instead of setting deletedAt to current timestamp (only applicable if `paranoid` is enabled) - */ - force?: boolean, - - /** - * If set to true, dialects that support it will use TRUNCATE instead of DELETE FROM. If a table is - * truncated the where and limit options are ignored - */ - truncate?: boolean, - } & TruncateOptions; - - declare type AsyncFn1 = ( - a: A, - callback: (error?: Error) => any, - ) => ?Promise; - declare type AsyncFn2 = ( - a: A, - b: B, - callback: (error?: Error) => any, - ) => ?Promise; - declare type AsyncFn3 = ( - a: A, - b: B, - c: C, - callback: (error?: Error) => any, - ) => ?Promise; - - /** - * Options for Model.restore - */ - declare export type RestoreOptions = { - /** - * Filter the restore - */ - where?: WhereOptions, - - /** - * Run before / after bulk restore hooks? - */ - hooks?: boolean, - - /** - * If set to true, restore will find all records within the where parameter and will execute before / after - * bulkRestore hooks on each row - */ - individualHooks?: boolean, - - /** - * How many rows to undelete - */ - limit?: number, - - /** - * Transaction to run query under - */ - transaction?: ?Transaction, - } & LoggingOptions; - - /** - * Options used for HasMany.update, BelongsToMany.update - */ - declare export type UpdateRelatedOptions = { - /** - * Options to describe the scope of the search. - */ - where?: WhereOptions, - - /** - * Run before / after bulk update hooks? - * - Defaults to true - */ - hooks?: boolean, - - /** - * Whether or not to update the side effects of any virtual setters. - * - Defaults to true - */ - sideEffects?: boolean, - - /** - * Run before / after update hooks?. If true, this will execute a SELECT followed by individual UPDATEs. - * A select is needed, because the row data needs to be passed to the hooks - - Defaults to false - */ - individualHooks?: boolean, - - /** - * How many rows to update (only for mysql and mariadb) - */ - limit?: number, - - /** - * Transaction to run query under - */ - transaction?: ?Transaction, - - /** - * If true, the updatedAt timestamp will not be updated. - */ - silent?: boolean, - } & FieldsOptions & - LoggingOptions & - ReturningOptions; - - /** - * Options used for Model.update - */ - declare export type UpdateOptions = { - /** - * Options to describe the scope of the search. - */ - where: WhereOptions, - - /** - * Run before / after bulk update hooks? - * - Defaults to true - */ - hooks?: boolean, - - /** - * Whether or not to update the side effects of any virtual setters. - * - Defaults to true - */ - sideEffects?: boolean, - - /** - * Run before / after update hooks?. If true, this will execute a SELECT followed by individual UPDATEs. - * A select is needed, because the row data needs to be passed to the hooks - - Defaults to false - */ - individualHooks?: boolean, - - /** - * How many rows to update (only for mysql and mariadb) - */ - limit?: number, - - /** - * Transaction to run query under - */ - transaction?: ?Transaction, - - /** - * If true, the updatedAt timestamp will not be updated. - */ - silent?: boolean, - } & FieldsOptions & - LoggingOptions & - ReturningOptions; - - /** - * Options used for Model.aggregate - */ - declare export type AggregateOptions = { - /** - * A hash of search attributes. - */ - where?: WhereOptions, - - /** - * The type of the result. If `field` is a field in this Model, the default will be the type of that field, - * otherwise defaults to float. - */ - dataType?: DataTypeAbstract | string, - - /** - * Applies DISTINCT to the field being aggregated over - */ - distinct?: boolean, - - /** - * The transaction that the query should be executed under - */ - transaction?: ?Transaction, - - /** - * When `true`, the first returned value of `aggregateFunction` is cast to `dataType` and returned. - * If additional attributes are specified, along with `group` clauses, set `plain` to `false` to return all values of all returned rows. - Defaults to `true` - */ - plain?: boolean, - } & LoggingOptions; - - /** - * A Model represents a table in the database. Sometimes you might also see it referred to as model, or simply - * as factory. This class should _not_ be instantiated directly, it is created using `sequelize.define`, and - already created models can be loaded using `sequelize.import` - */ - declare export class Model< - TAttributes, - TInitAttributes = TAttributes, - TPlainAttributes = TAttributes, - > { - static init( - attributes: DefineAttributes, - options: DefineOptions, - ): this; - - static QueryInterface: QueryInterface; - - static QueryGenerator: any; - - static sequelize: Sequelize; - - sequelize: Sequelize; - - /** - * The options this model was initialized with - */ - static options: ResolvedDefineOptions; - - /** - * Remove attribute from model definition - * @param attribute - */ - static removeAttribute(attribute: string): void; - - /** - * Sync this Model to the DB, that is create the table. Upon success, the callback will be called with the - * model instance (this) - */ - static sync(options?: SyncOptions): Promise; - - /** - * Drop the table represented by this Model - * @param options - */ - static drop(options?: DropOptions): Promise; - - /** - * Apply a schema to this model. For postgres, this will actually place the schema in front of the table - * name - - `"schema"."tableName"`, while the schema will be prepended to the table name for mysql and - sqlite - `'schema.tablename'`. - * @param schema The name of the schema - * @param options - */ - static schema(schema: string, options?: SchemaOptions): Class; - - /** - * Get the tablename of the model, taking schema into account. The method will return The name as a string - * if the model has no schema, or an object with `tableName`, `schema` and `delimiter` properties. - * @param options The hash of options from any query. You can use one model to access tables with matching - schemas by overriding `getTableName` and using custom key/values to alter the name of the table. - (eg. - subscribers_1, subscribers_2) - * @param options .logging=false A function that gets executed while running the query to log the sql. - */ - static getTableName(options?: GetTableNameOptions): string | Object; - - /** - * Add a new scope to the model. This is especially useful for adding scopes with includes, when the model you want to include is not available at the time this model is defined. - * - By default this will throw an error if a scope with that name already exists. Pass `override: true` in the options object to silence this error. - * @param The name of the scope. Use `defaultScope` to override the default scope - * @param - * @param * - * @param .override=false] - */ - static addScope( - name: string, - scope: AnyFindOptions | Function, - options?: AddScopeOptions, - ): void; - - /** - * Apply a scope created in `define` to the model. First let's look at how to create scopes: - * ```js - var Model = sequelize.define('model', attributes, { - defaultScope: { - where: { - username: 'dan' - }, - limit: 12 - }, - scopes: { - isALie: { - where: { - stuff: 'cake' - } - }, - complexFunction: function(email, accessLevel) { - return { - where: { - email: { - $like: email - }, - accesss_level { - $gte: accessLevel - } - } - } - } - } - }) - ``` - Now, since you defined a default scope, every time you do Model.find, the default scope is appended to - your query. Here's a couple of examples: - ```js - Model.findAll() // WHERE username = 'dan' - Model.findAll({ where: { age: { gt: 12 } } }) // WHERE age>12 AND username = 'dan' - ``` - - To invoke scope functions you can do: - ```js - Model.scope({ method: ['complexFunction' 'dan@sequelize.com', 42]}).findAll() - // WHERE email like 'dan@sequelize.com%' AND access_level>= 42 - ``` - * @return Model A reference to the model, with the scope(s) applied. Calling scope again on the returned - model will clear the previous scope. - */ - static scope( - options?: string | ScopeOptions | $ReadOnlyArray, - ): Class; - - /** - * Search for multiple instances. - * - __Simple search using AND and =__ - ```js - Model.findAll({ - where: { - attr1: 42, - attr2: 'cake' - } - }) - ``` - ```sql - WHERE attr1 = 42 AND attr2 = 'cake' - ``` - - __Using greater than, less than etc.__ - ```js - - Model.findAll({ - where: { - attr1: { - gt: 50 - }, - attr2: { - lte: 45 - }, - attr3: { - in: [1,2,3] - }, - attr4: { - ne: 5 - } - } - }) - ``` - ```sql - WHERE attr1>50 AND attr2 <= 45 AND attr3 IN (1,2,3) AND attr4 != 5 - ``` - Possible options are: `$ne, $in, $not, $notIn, $gte, $gt, $lte, $lt, $like, $ilike/$iLike, $notLike, - $notILike, '..'/$between, '!..'/$notBetween, '&&'/$overlap, '@>'/$contains, '<@'/$contained` - - __Queries using OR__ - ```js - Model.findAll({ - where: Sequelize.and( - { name: 'a project' }, - Sequelize.or( - { id: [1,2,3] }, - { id: { gt: 10 } } - ) - ) - }) - ``` - ```sql - WHERE name = 'a project' AND (id` IN (1,2,3) OR id>10) - ``` - - The success listener is called with an array of instances if the query succeeds. - * @see {Sequelize#query} - */ - static findAll( - options?: FindOptions, - ): Promise; - static all( - optionz?: FindOptions, - ): Promise; - - /** - * Search for a single instance by its primary key. This applies LIMIT 1, so the listener will - * always be called with a single instance. - */ - static findById( - identifier?: number | string, - options?: FindOptions, - ): Promise; - static findByPrimary( - identifier?: number | string, - options?: FindOptions, - ): Promise; - static findByPk( - identifier?: number | string, - options?: FindOptions, - ): Promise; - - /** - * Search for a single instance. This applies LIMIT 1, so the listener will always be called with a single - * instance. - */ - static findOne( - options?: FindOptions, - ): Promise; - static find( - options?: FindOptions, - ): Promise; - - /** - * Run an aggregation method on the specified field - * @param field The field to aggregate over. Can be a field name or * - * @param aggregateFunction The function to use for aggregation, e.g. sum, max etc. - * @param options Query options. See sequelize.query for full options - * @return Returns the aggregate result cast to `options.dataType`, unless `options.plain` is false, in - which case the complete data result is returned. - */ - static aggregate( - field: string, - aggregateFunction: string, - options?: AggregateOptions, - ): Promise; - - /** - * Count the number of records matching the provided where clause. - * - If you provide an `include` option, the number of matching associations will be counted instead. - */ - static count(options?: CountOptions): Promise; - - /** - * Find all the rows matching your query, within a specified offset / limit, and get the total number of - * rows matching your query. This is very usefull for paging - - ```js - Model.findAndCountAll({ - where: ..., - limit: 12, - offset: 12 - }).then(function (result) { - ... - }) - ``` - In the above example, `result.rows` will contain rows 13 through 24, while `result.count` will return - the - total number of rows that matched your query. - - When you add includes, only those which are required (either because they have a where clause, or - because - `required` is explicitly set to true on the include) will be added to the count part. - - Suppose you want to find all users who have a profile attached: - ```js - User.findAndCountAll({ - include: [ - { model: Profile, required: true} - ], - limit 3 - }); - ``` - Because the include for `Profile` has `required` set it will result in an inner join, and only the users - who have a profile will be counted. If we remove `required` from the include, both users with and - without - profiles will be counted - */ - static findAndCount( - options?: FindOptions, - ): Promise<{ - rows: this[], - count: number, - }>; - static findAndCountAll( - options?: FindOptions, - ): Promise<{ - rows: this[], - count: number, - }>; - - /** - * Find the maximum value of field - */ - static max(field: string, options?: AggregateOptions): Promise; - - /** - * Find the minimum value of field - */ - static min(field: string, options?: AggregateOptions): Promise; - - /** - * Find the sum of field - */ - static sum(field: string, options?: AggregateOptions): Promise; - - /** - * Builds a new model instance. Values is an object of key value pairs, must be defined but can be empty. - */ - static build(record?: TInitAttributes, options?: BuildOptions): this; - - /** - * Undocumented bulkBuild - */ - static bulkBuild( - records: TInitAttributes[], - options?: BuildOptions, - ): this[]; - - /** - * Builds a new model instance and calls save on it. - */ - static create( - values?: TInitAttributes, - options?: CreateOptions, - ): Promise; - - /** - * Find a row that matches the query, or build (but don't save) the row if none is found. - * The successfull result of the promise will be (instance, initialized) - Make sure to use .spread() - */ - static findOrInitialize( - options: FindOrInitializeOptions, - ): Promise<[this, boolean]>; - static findOrBuild( - options: FindOrInitializeOptions, - ): Promise<[this, boolean]>; - - /** - * Find a row that matches the query, or build and save the row if none is found - * The successful result of the promise will be (instance, created) - Make sure to use .spread() - - If no transaction is passed in the `options` object, a new transaction will be created internally, to - prevent the race condition where a matching row is created by another connection after the find but - before the insert call. However, it is not always possible to handle this case in SQLite, specifically - if one transaction inserts and another tries to select before the first one has comitted. In this case, - an instance of sequelize.TimeoutError will be thrown instead. If a transaction is created, a savepoint - will be created instead, and any unique constraint violation will be handled internally. - */ - static findOrCreate( - options: FindOrInitializeOptions, - ): Promise<[this, boolean]>; - - /** - * A more performant findOrCreate that will not work under a transaction (at least not in postgres) - * Will execute a find call, if empty then attempt to create, if unique constraint then attempt to find again - */ - static findCreateFind( - options: FindCreateFindOptions, - ): Promise<[this, boolean]>; - - /** - * Insert or update a single row. An update will be executed if a row which matches the supplied values on - * either the primary key or a unique key is found. Note that the unique index must be defined in your - sequelize model and not just in the table. Otherwise you may experience a unique constraint violation, - because sequelize fails to identify the row that should be updated. - - *Implementation details:* - - * MySQL - Implemented as a single query `INSERT values ON DUPLICATE KEY UPDATE values` - * PostgreSQL - Implemented as a temporary function with exception handling: INSERT EXCEPTION WHEN - unique_constraint UPDATE - * SQLite - Implemented as two queries `INSERT; UPDATE`. This means that the update is executed - regardless - of whether the row already existed or not - - *Note* that SQLite returns undefined for created, no matter if the row was created or updated. This is - because SQLite always runs INSERT OR IGNORE + UPDATE, in a single query, so there is no way to know - whether the row was inserted or not. - */ - static upsert( - values: TInitAttributes, - options?: UpsertOptions, - ): Promise; - static insertOrUpdate( - values: TInitAttributes, - options?: UpsertOptions, - ): Promise; - - /** - * Create and insert multiple instances in bulk. - * - The success handler is passed an array of instances, but please notice that these may not completely - represent the state of the rows in the DB. This is because MySQL and SQLite do not make it easy to - obtain - back automatically generated IDs and other default values in a way that can be mapped to multiple - records. To obtain Instances for the newly created values, you will need to query for them again. - * @param records List of objects (key/value pairs) to create instances from - */ - static bulkCreate( - records: TInitAttributes[], - options?: BulkCreateOptions, - ): Promise; - - /** - * Truncate all instances of the model. This is a convenient method for Model.destroy({ truncate: true }). - */ - static truncate(options?: TruncateOptions): Promise; - - /** - * Delete multiple instances, or set their deletedAt timestamp to the current time if `paranoid` is enabled. - * @return Promise The number of destroyed rows - */ - static destroy(options?: DestroyOptions): Promise; - - /** - * Restore multiple instances if `paranoid` is enabled. - */ - static restore(options?: RestoreOptions): Promise; - - /** - * Update multiple instances that match the where options. The promise returns an array with one or two - * elements. The first element is always the number of affected rows, while the second element is the actual - affected rows (only supported in postgres with `options.returning` true.) - */ - static update( - values: $Shape, - options: UpdateOptions, - ): Promise<[number, this[]]>; - - /** - * Run a describe query on the table. The result will be return to the listener as a hash of attributes and - * their types. - */ - static describe(): Promise; - - /** - * Unscope the model - */ - static unscoped(): Class; - - /** - * Add a hook to the model - * @param hookType - * @param name Provide a name for the hook function. It can be used to remove the hook later or to order - hooks based on some sort of priority system in the future. - * @param fn The hook function - * @alias hook - */ - static addHook(hookType: string, name: string, fn: Function): Class; - static addHook(hookType: string, fn: Function): Class; - static hook(hookType: string, name: string, fn: Function): Class; - static hook(hookType: string, fn: Function): Class; - - /** - * Remove hook from the model - * @param hookType - * @param name - */ - static removeHook(hookType: string, name: string): Class; - - /** - * Check whether the model has any hooks of this type - * @param hookType - * @alias hasHooks - */ - static hasHook(hookType: string): boolean; - static hasHooks(hookType: string): boolean; - - /** - * A hook that is run before validation - * @param name - * @param fn A callback function that is called with instance, options - */ - static beforeValidate(name: string, fn: AsyncFn2): void; - static beforeValidate(fn: AsyncFn2): void; - - /** - * A hook that is run after validation - * @param name - * @param fn A callback function that is called with instance, options - */ - static afterValidate(name: string, fn: AsyncFn2): void; - static afterValidate(fn: AsyncFn2): void; - - /** - * A hook that is run after validation - * @param name - * @param fn A callback function that is called with instance, options - */ - static validationFailed( - name: string, - fn: AsyncFn3, - ): void; - static validationFailed(fn: AsyncFn3): void; - - /** - * A hook that is run before creating a single instance - * @param name - * @param fn A callback function that is called with attributes, options - */ - static beforeCreate(name: string, fn: AsyncFn2): void; - static beforeCreate(fn: AsyncFn2): void; - - /** - * A hook that is run after creating a single instance - * @param name - * @param fn A callback function that is called with attributes, options - */ - static afterCreate(name: string, fn: AsyncFn2): void; - static afterCreate(fn: AsyncFn2): void; - - /** - * A hook that is run before destroying a single instance - * @param name - * @param fn A callback function that is called with instance, options - * @alias beforeDelete - */ - static beforeDestroy(name: string, fn: AsyncFn2): void; - static beforeDestroy(fn: AsyncFn2): void; - static beforeDelete(name: string, fn: AsyncFn2): void; - static beforeDelete(fn: AsyncFn2): void; - - /** - * A hook that is run after destroying a single instance - * @param name - * @param fn A callback function that is called with instance, options - * @alias afterDelete - */ - static afterDestroy(name: string, fn: AsyncFn2): void; - static afterDestroy(fn: AsyncFn2): void; - static afterDelete(name: string, fn: AsyncFn2): void; - static afterDelete(fn: AsyncFn2): void; - - /** - * A hook that is run before updating a single instance - * @param name - * @param fn A callback function that is called with instance, options - */ - static beforeUpdate(name: string, fn: AsyncFn2): void; - static beforeUpdate(fn: AsyncFn2): void; - - /** - * A hook that is run after updating a single instance - * @param name - * @param fn A callback function that is called with instance, options - */ - static afterUpdate(name: string, fn: AsyncFn2): void; - static afterUpdate(fn: AsyncFn2): void; - - /** - * A hook that is run before upserting - * @param name - * @param fn A callback function that is called with attributes, options - */ - static beforeUpsert( - name: string, - fn: AsyncFn2, - ): void; - static beforeUpsert(fn: AsyncFn2): void; - - /** - * A hook that is run after upserting - * @param name - * @param fn A callback function that is called with result of upsert(), options - */ - static afterUpsert( - name: string, - fn: AsyncFn2, - ): void; - static afterUpsert(fn: AsyncFn2): void; - - /** - * A hook that is run before creating instances in bulk - * @param name - * @param fn A callback function that is called with instances, options - */ - static beforeBulkCreate(name: string, fn: AsyncFn2): void; - static beforeBulkCreate(fn: AsyncFn2): void; - - /** - * A hook that is run after creating instances in bulk - * @param name - * @param fn A callback function that is called with instances, options - * @name afterBulkCreate - */ - static afterBulkCreate(name: string, fn: AsyncFn2): void; - static afterBulkCreate(fn: AsyncFn2): void; - - /** - * A hook that is run before destroying instances in bulk - * @param name - * @param fn A callback function that is called with options - * @alias beforeBulkDelete - */ - static beforeBulkDestroy(name: string, fn: AsyncFn1): void; - static beforeBulkDestroy(fn: AsyncFn1): void; - static beforeBulkDelete(name: string, fn: AsyncFn1): void; - static beforeBulkDelete(fn: AsyncFn1): void; - - /* A hook that is run after destroying instances in bulk - * @param name - * @param fn A callback function that is called with options - * @alias afterBulkDelete - */ - static afterBulkDestroy(name: string, fn: AsyncFn1): void; - static afterBulkDestroy(fn: AsyncFn1): void; - static afterBulkDelete(name: string, fn: AsyncFn1): void; - static afterBulkDelete(fn: AsyncFn1): void; - - /** - * A hook that is run after updating instances in bulk - * @param name - * @param fn A callback function that is called with options - */ - static beforeBulkUpdate(name: string, fn: AsyncFn1): void; - static beforeBulkUpdate(fn: AsyncFn1): void; - - /** - * A hook that is run after updating instances in bulk - * @param name - * @param fn A callback function that is called with options - */ - static afterBulkUpdate(name: string, fn: AsyncFn1): void; - static afterBulkUpdate(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query - * @param name - * @param fn A callback function that is called with options - */ - static beforeFind(name: string, fn: AsyncFn1): void; - static beforeFind(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query, after any { include: {all: ...} } options are expanded - * @param name - * @param fn A callback function that is called with options - */ - static beforeFindAfterExpandIncludeAll( - name: string, - fn: AsyncFn1, - ): void; - static beforeFindAfterExpandIncludeAll(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query, after all option parsing is complete - * @param name - * @param fn A callback function that is called with options - */ - static beforeFindAfterOptions(name: string, fn: AsyncFn1): void; - static beforeFindAfterOptions(fn: AsyncFn1): void; - - /** - * A hook that is run after a find (select) query - * @param name - * @param fn A callback function that is called with instance(s), options - */ - static afterFind(name: string, AsyncFn2): void; - static afterFind(AsyncFn2): void; - - /** - * A hook that is run before a define call - * @param name - * @param fn A callback function that is called with attributes, options - */ - static beforeDefine( - name: string, - fn: AsyncFn2, - ): void; - static beforeDefine(fn: AsyncFn2): void; - - /** - * A hook that is run after a define call - * @param name - * @param fn A callback function that is called with factory - */ - static afterDefine(name: string, fn: AsyncFn1>): void; - static afterDefine(fn: AsyncFn1>): void; - - /** - * A hook that is run before Sequelize() call - * @param name - * @param fn A callback function that is called with config, options - */ - static beforeInit(name: string, fn: AsyncFn2): void; - static beforeInit(fn: AsyncFn2): void; - - /** - * A hook that is run after Sequelize() call - * @param name - * @param fn A callback function that is called with sequelize - */ - static afterInit(name: string, fn: AsyncFn1): void; - static afterInit(fn: AsyncFn1): void; - - /** - * A hook that is run before Model.sync call - * @param name - * @param fn A callback function that is called with options passed to Model.sync - */ - static beforeSync(name: string, fn: AsyncFn1): void; - static beforeSync(fn: AsyncFn1): void; - - /** - * A hook that is run after Model.sync call - * @param name - * @param fn A callback function that is called with options passed to Model.sync - */ - static afterSync(name: string, fn: AsyncFn1): void; - static afterSync(fn: AsyncFn1): void; - - /** - * A hook that is run before sequelize.sync call - * @param name - * @param fn A callback function that is called with options passed to sequelize.sync - */ - static beforeBulkSync(name: string, fn: AsyncFn1): void; - static beforeBulkSync(fn: AsyncFn1): void; - - /** - * A hook that is run after sequelize.sync call - * @param name - * @param fn A callback function that is called with options passed to sequelize.sync - */ - static afterBulkSync(name: string, fn: AsyncFn1): void; - static afterBulkSync(fn: AsyncFn1): void; - - /** - * Creates an association between this (the source) and the provided target. The foreign key is added - * on the target. - - Example: `User.hasOne(Profile)`. This will add userId to the profile table. - * @param target The model that will be associated with hasOne relationship - * @param options Options for the association - */ - static hasOne< - TargetAttributes: Object, - TargetInitAttributes: Object, - Target: Model, - >( - target: Class, - options?: AssociationOptionsHasOne, - ): HasOne; - - /** - * Creates an association between this (the source) and the provided target. The foreign key is added on the - * source. - - Example: `Profile.belongsTo(User)`. This will add userId to the profile table. - * @param target The model that will be associated with hasOne relationship - * @param options Options for the association - */ - static belongsTo< - TargetAttributes: Object, - TargetInitAttributes: Object, - Target: Model, - >( - target: Class, - options?: AssociationOptionsBelongsTo, - ): BelongsTo; - - /** - * Create an association that is either 1:m or n:m. - * - ```js - // Create a 1:m association between user and project - User.hasMany(Project) - ``` - ```js - // Create a n:m association between user and project - User.hasMany(Project) - Project.hasMany(User) - ``` - By default, the name of the join table will be source+target, so in this case projectsusers. This can be - overridden by providing either a string or a Model as `through` in the options. If you use a through - model with custom attributes, these attributes can be set when adding / setting new associations in two - ways. Consider users and projects from before with a join table that stores whether the project has been - started yet: - ```js - var UserProjects = sequelize.define('userprojects', { - started: Sequelize.BOOLEAN - }) - User.hasMany(Project, { through: UserProjects }) - Project.hasMany(User, { through: UserProjects }) - ``` - ```js - jan.addProject(homework, { started: false }) // The homework project is not started yet - jan.setProjects([makedinner, doshopping], { started: true}) // Both shopping and dinner have been - started - ``` - - If you want to set several target instances, but with different attributes you have to set the - attributes on the instance, using a property with the name of the through model: - - ```js - p1.userprojects { - started: true - } - user.setProjects([p1, p2], {started: false}) // The default value is false, but p1 overrides that. - ``` - - Similarily, when fetching through a join table with custom attributes, these attributes will be - available as an object with the name of the through model. - ```js - user.getProjects().then(function (projects) { - var p1 = projects[0] - p1.userprojects.started // Is this project started yet? - }) - ``` - * @param target The model that will be associated with hasOne relationship - * @param options Options for the association - */ - static hasMany< - TargetAttributes: Object, - TargetInitAttributes: Object, - Target: Model, - >( - target: Class, - options?: AssociationOptionsHasMany, - ): HasMany; - - /** - * Create an N:M association with a join table - * - ```js - User.belongsToMany(Project) - Project.belongsToMany(User) - ``` - By default, the name of the join table will be source+target, so in this case projectsusers. This can be - overridden by providing either a string or a Model as `through` in the options. - - If you use a through model with custom attributes, these attributes can be set when adding / setting new - associations in two ways. Consider users and projects from before with a join table that stores whether - the project has been started yet: - ```js - var UserProjects = sequelize.define('userprojects', { - started: Sequelize.BOOLEAN - }) - User.belongsToMany(Project, { through: UserProjects }) - Project.belongsToMany(User, { through: UserProjects }) - ``` - ```js - jan.addProject(homework, { started: false }) // The homework project is not started yet - jan.setProjects([makedinner, doshopping], { started: true}) // Both shopping and dinner has been started - ``` - - If you want to set several target instances, but with different attributes you have to set the - attributes on the instance, using a property with the name of the through model: - - ```js - p1.userprojects { - started: true - } - user.setProjects([p1, p2], {started: false}) // The default value is false, but p1 overrides that. - ``` - - Similarily, when fetching through a join table with custom attributes, these attributes will be - available as an object with the name of the through model. - ```js - user.getProjects().then(function (projects) { - var p1 = projects[0] - p1.userprojects.started // Is this project started yet? - }) - ``` - * @param target The model that will be associated with hasOne relationship - * @param options Options for the association - */ - static belongsToMany< - TargetAttributes: Object, - TargetInitAttributes: Object, - Target: Model, - ThroughAttributes: Object, - Through: Model, - >( - target: Class, - options: AssociationOptionsBelongsToMany, - ): BelongsToMany< - TAttributes, - TInitAttributes, - this, - TargetAttributes, - TargetInitAttributes, - Target, - ThroughAttributes, - Through, - >; - - static getAssociations>( - model: Class, - ): Array>; - static getAssociationForAlias>( - model: Class, - alias: ?string, - ): ?Association; - - static associations: { [name: string]: Association }; - static tableName: string; - static rawAttributes: { [name: string]: Attribute }; - static tableAttributes: { [name: string]: Attribute }; - static attributes: { [name: string]: Attribute }; - static primaryKeys: { [name: string]: Attribute }; - static primaryKeyAttributes: Array; - static primaryKeyAttribute: ?string; - static primaryKeyField?: string; - static uniqueKeys: { - [idxName: string | false]: { - name: string | false, - column: string | false, - msg: ?string, - fields: Array, - }, - }; - static fieldRawAttributesMap: { [name: string]: string }; - static fieldAttributesMap: { [name: string]: string }; - - Model: Class; - - sequelize: Sequelize; - - /** - * Returns true if this instance has not yet been persisted to the database - */ - isNewRecord: boolean; - - /** - * Get an object representing the query for this instance, use with `options.where` - */ - where(): Object; - - /** - * Get the value of the underlying data value - */ - getDataValue(key: $Keys): any; - - /** - * Update the underlying data value - */ - setDataValue(key: $Keys, value: any): void; - - /** - * If no key is given, returns all values of the instance, also invoking virtual getters. - * - If key is given and a field or virtual getter is present for the key it will call that getter - else it - will return the value for key. - * @param options .plain If set to true, included instances will be returned as plain objects - */ - get(options: { - plain: true, - raw?: boolean, - clone?: boolean, - }): TPlainAttributes; - get( - key: $Keys, - options?: { plain?: boolean, clone?: boolean, raw?: boolean }, - ): any; - get(options?: { - plain?: boolean, - clone?: boolean, - raw?: boolean, - }): TAttributes; - - /** - * Set is used to update values on the instance (the sequelize representation of the instance that is, - * remember that nothing will be persisted before you actually call `save`). In its most basic form `set` - will update a value stored in the underlying `dataValues` object. However, if a custom setter function - is defined for the key, that function will be called instead. To bypass the setter, you can pass `raw: - true` in the options object. - - If set is called with an object, it will loop over the object, and call set recursively for each key, - value pair. If you set raw to true, the underlying dataValues will either be set directly to the object - passed, or used to extend dataValues, if dataValues already contain values. - - When set is called, the previous value of the field is stored and sets a changed flag(see `changed`). - - Set can also be used to build instances for associations, if you have values for those. - When using set with associations you need to make sure the property key matches the alias of the - association while also making sure that the proper include options have been set (from .build() or - .find()) - - If called with a dot.seperated key on a JSON/JSONB attribute it will set the value nested and flag the - entire object as changed. - * @param options .raw If set to true, field and virtual setters will be ignored - * @param options .reset Clear all previously set data values - */ - set( - key: $Keys, - value: any, - options?: InstanceSetOptions, - ): this; - set(keys: $Shape, options?: InstanceSetOptions): this; - setAttributes( - key: $Keys, - value: any, - options?: InstanceSetOptions, - ): this; - setAttributes( - keys: $Shape, - options?: InstanceSetOptions, - ): this; - - /** - * If changed is called with a string it will return a boolean indicating whether the value of that key in - * `dataValues` is different from the value in `_previousDataValues`. - - If changed is called without an argument, it will return an array of keys that have changed. - - If changed is called without an argument and no keys have changed, it will return `false`. - */ - changed(key: $Keys): boolean; - changed(): boolean | Array<$Keys>; - - /** - * Returns the previous value for key from `_previousDataValues`. - */ - previous(key: $Keys): any; - - /** - * Validate this instance, and if the validation passes, persist it to the database. - * - On success, the callback will be called with this instance. On validation error, the callback will be - called with an instance of `Sequelize.ValidationError`. This error will have a property for each of the - fields for which validation failed, with the error message for that field. - */ - save(options?: InstanceSaveOptions): Promise; - - /** - * Refresh the current instance in-place, i.e. update the object with current data from the DB and return - * the same object. This is different from doing a `find(Instance.id)`, because that would create and - return a new instance. With this method, all references to the Instance are updated with the new data - and no new objects are created. - */ - reload(options?: AnyFindOptions): Promise; - - /** - * Validate the attribute of this instance according to validation rules set in the model definition. - * - Emits null if and only if validation successful; otherwise an Error instance containing - { field name : [error msgs] } entries. - * @param options .skip An array of strings. All properties that are in this array will not be validated - */ - validate(options?: { - skip?: $Keys[], - }): Promise; - - /** - * This is the same as calling `set` and then calling `save`. - */ - update( - key: $Keys, - value: any, - options?: InstanceUpdateOptions, - ): Promise; - update( - keys: $Shape, - options?: InstanceUpdateOptions, - ): Promise; - updateAttributes( - key: $Keys, - value: any, - options?: InstanceUpdateOptions, - ): Promise; - updateAttributes( - keys: $Shape, - options?: InstanceUpdateOptions, - ): Promise; - - /** - * Destroy the row corresponding to this instance. Depending on your setting for paranoid, the row will - * either be completely deleted, or have its deletedAt timestamp set to the current time. - */ - destroy(options?: InstanceDestroyOptions): Promise; - - /** - * Restore the row corresponding to this instance. Only available for paranoid models. - */ - restore(options?: InstanceRestoreOptions): Promise; - - /** - * Increment the value of one or more columns. This is done in the database, which means it does not use - * the values currently stored on the Instance. The increment is done using a - ```sql - SET column = column + X - ``` - query. To get the correct value after an increment into the Instance you should do a reload. - - ```js - instance.increment('number') // increment number by 1 - instance.increment(['number', 'count'], { by: 2 }) // increment number and count by 2 - instance.increment({ answer: 42, tries: 1}, { by: 2 }) // increment answer by 42, and tries by 1. - // `by` is ignored, since each column has its own - // value - ``` - * @param fields If a string is provided, that column is incremented by the value of `by` given in options. - If an array is provided, the same is true for each column. - If and object is provided, each column is incremented by the value given. - */ - increment( - fields: - | $Keys - | $Keys[] - | { [key: $Keys]: number }, - options?: InstanceIncrementDecrementOptions, - ): Promise; - - /** - * Decrement the value of one or more columns. This is done in the database, which means it does not use - * the values currently stored on the Instance. The decrement is done using a - ```sql - SET column = column - X - ``` - query. To get the correct value after an decrement into the Instance you should do a reload. - - ```js - instance.decrement('number') // decrement number by 1 - instance.decrement(['number', 'count'], { by: 2 }) // decrement number and count by 2 - instance.decrement({ answer: 42, tries: 1}, { by: 2 }) // decrement answer by 42, and tries by 1. - // `by` is ignored, since each column has its own - // value - ``` - * @param fields If a string is provided, that column is decremented by the value of `by` given in options. - If an array is provided, the same is true for each column. - If and object is provided, each column is decremented by the value given - */ - decrement( - fields: - | $Keys - | $Keys[] - | { [key: $Keys]: number }, - options?: InstanceIncrementDecrementOptions, - ): Promise; - - /** - * Check whether all values of this and `other` Instance are the same - */ - equals(other: Model): boolean; - - /** - * Check if this is equal to one of `others` by calling equals - */ - equalsOneOf(others: Model[]): boolean; - - /** - * Convert the instance to a JSON representation. Proxies to calling `get` with no keys. This means get all - * values gotten from the DB, and apply all custom getters. - */ - toJSON(): TPlainAttributes; - } - - /** - * Most of the methods accept options and use only the logger property of the options. That's why the most used - * interface type for options in a method is separated here as another interface. - */ - declare export type QueryInterfaceOptions = { - /** - * A function that gets executed while running the query to log the sql. - */ - logging?: boolean | Function, - }; - - declare export type AddUniqueConstraintOptions = { - type: 'unique', - name?: string, - }; - - declare export type AddDefaultConstraintOptions = { - type: 'default', - name?: string, - defaultValue?: any, - }; - - declare export type AddCheckConstraintOptions = { - type: 'check', - name?: string, - where?: WhereOptions, - }; - - declare export type AddPrimaryKeyConstraintOptions = { - type: 'primary key', - name?: string, - }; - - declare export type AddForeignKeyConstraintOptions = { - type: 'foreign key', - name?: string, - references?: { - table: string, - field: string, - }, - onDelete: string, - onUpdate: string, - }; - - declare export type AddConstraintOptions = - | AddUniqueConstraintOptions - | AddDefaultConstraintOptions - | AddCheckConstraintOptions - | AddPrimaryKeyConstraintOptions - | AddForeignKeyConstraintOptions; - - /** - * The interface that Sequelize uses to talk to all databases. - * - This interface is available through sequelize.QueryInterface. It should not be commonly used, but it's - referenced anyway, so it can be used. - */ - declare export interface QueryInterface { - /** - * Returns the dialect-specific sql generator. - * - We don't have a definition for the QueryGenerator, because I doubt it is commonly in use separately. - */ - QueryGenerator: any; - - /** - * Returns the current sequelize instance. - */ - sequelize: Sequelize; - - /** - * Queries the schema (table list). - * @param schema The schema to query. Applies only to Postgres. - */ - createSchema( - schema?: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Drops the specified schema (table). - * @param schema The schema to query. Applies only to Postgres. - */ - dropSchema(schema?: string, options?: QueryInterfaceOptions): Promise; - - /** - * Drops all tables. - */ - dropAllSchemas(options?: QueryInterfaceOptions): Promise; - - /** - * Queries all table names in the database. - * @param options - */ - showAllSchemas(options?: QueryOptions): Promise; - - /** - * Return database version - */ - databaseVersion(options?: QueryInterfaceOptions): Promise; - - /** - * Creates a table with specified attributes. - * @param tableName Name of table to create - * @param attributes Hash of attributes, key is attribute name, value is data type - * @param options Query options. - */ - createTable( - tableName: - | string - | { - schema?: string, - tableName?: string, - }, - attributes: DefineAttributes, - options?: QueryOptions, - ): Promise; - - /** - * Drops the specified table. - * @param tableName Table name. - * @param options Query options, particularly "force". - */ - dropTable(tableName: string, options?: QueryOptions): Promise; - - /** - * Drops all tables. - * @param options - */ - dropAllTables(options?: QueryOptions): Promise; - - /** - * Drops all defined enums - * @param options - */ - dropAllEnums(options?: QueryOptions): Promise; - - /** - * Renames a table - */ - renameTable( - before: string, - after: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Returns all tables - */ - showAllTables(options?: QueryOptions): Promise; - - /** - * Describe a table - */ - describeTable( - tableName: - | string - | { - schema?: string, - tableName?: string, - }, - options?: - | string - | { - schema?: string, - schemaDelimeter?: string, - logging?: boolean | Function, - }, - ): Promise; - - /** - * Adds a new column to a table - */ - addColumn( - table: string, - key: string, - attribute: DefineAttributeColumnOptions | DataTypeAbstract, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Removes a column from a table - */ - removeColumn( - table: string, - attribute: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Changes a column - */ - changeColumn( - tableName: - | string - | { - schema?: string, - tableName?: string, - }, - attributeName: string, - dataTypeOrOptions?: - | string - | DataTypeAbstract - | DefineAttributeColumnOptions, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Renames a column - */ - renameColumn( - tableName: - | string - | { - schema?: string, - tableName?: string, - }, - attrNameBefore: string, - attrNameAfter: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Adds a new index to a table - */ - addIndex( - tableName: string | Object, - options?: { - fields: Array, - unique?: boolean, - using?: string, - type?: IndexType, - name?: string, - where?: WhereOptions, - }, - ): Promise; - - /** - * Shows the index of a table - */ - showIndex( - tableName: string | Object, - options?: QueryOptions, - ): Promise; - - /** - * Put a name to an index - */ - nameIndexes(indexes: string[], rawTablename: string): Promise; - - /** - * Returns all foreign key constraints of a table - */ - getForeignKeysForTables( - tableNames: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Removes an index of a table - */ - removeIndex( - tableName: string, - indexNameOrAttributes: string[] | string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Adds constraints to a table - */ - addConstraint( - tableName: string, - attributes: string[], - options?: AddConstraintOptions | QueryInterfaceOptions, - ): Promise; - - /** - * Removes constraints from a table - */ - removeConstraint( - tableName: string, - constraintName: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Inserts a new record - */ - insert( - instance: Model, - tableName: string, - values: Object, - options?: QueryOptions, - ): Promise; - - /** - * Inserts or Updates a record in the database - */ - upsert( - tableName: string, - values: Object, - updateValues: Object, - model: Class>, - options?: QueryOptions, - ): Promise; - - /** - * Inserts multiple records at once - */ - bulkInsert( - tableName: string, - records: Object[], - options?: QueryOptions, - attributes?: string[] | string, - ): Promise; - - /** - * Updates a row - */ - update( - instance: Model, - tableName: string, - values: Object, - identifier: Object, - options?: QueryOptions, - ): Promise; - - /** - * Updates multiple rows at once - */ - bulkUpdate( - tableName: string, - values: Object, - identifier: Object, - options?: QueryOptions, - attributes?: string[] | string, - ): Promise; - - /** - * Deletes a row - */ - delete( - instance: Model, - tableName: string, - identifier: Object, - options?: QueryOptions, - ): Promise; - - /** - * Deletes multiple rows at once - */ - bulkDelete( - tableName: string, - identifier: Object, - options?: QueryOptions, - model?: Class>, - ): Promise; - - /** - * Returns selected rows - */ - select( - model: Class>, - tableName: string, - options?: QueryOptions, - ): Promise; - - /** - * Increments a row value - */ - increment( - instance: Model, - tableName: string, - values: Object, - identifier: Object, - options?: QueryOptions, - ): Promise; - - /** - * Selects raw without parsing the string into an object - */ - rawSelect( - tableName: string, - options: QueryOptions, - attributeSelector: string | string[], - model?: Class>, - ): Promise; - - /** - * Postgres only. Creates a trigger on specified table to call the specified function with supplied - * parameters. - */ - createTrigger( - tableName: string, - triggerName: string, - timingType: string, - fireOnArray: any[], - functionName: string, - functionParams: any[], - optionsArray: string[], - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Postgres only. Drops the specified trigger. - */ - dropTrigger( - tableName: string, - triggerName: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Postgres only. Renames a trigger - */ - renameTrigger( - tableName: string, - oldTriggerName: string, - newTriggerName: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Postgres only. Create a function - */ - createFunction( - functionName: string, - params: any[], - returnType: string, - language: string, - body: string, - options?: QueryOptions, - ): Promise; - - /** - * Postgres only. Drops a function - */ - dropFunction( - functionName: string, - params: any[], - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Postgres only. Rename a function - */ - renameFunction( - oldFunctionName: string, - params: any[], - newFunctionName: string, - options?: QueryInterfaceOptions, - ): Promise; - - /** - * Escape an identifier (e.g. a table or attribute name). If force is true, the identifier will be quoted - * even if the `quoteIdentifiers` option is false. - */ - quoteIdentifier(identifier: string, force: boolean): string; - - /** - * Escape a table name - */ - quoteTable(identifier: string): string; - - /** - * Split an identifier into .-separated tokens and quote each part. If force is true, the identifier will be - * quoted even if the `quoteIdentifiers` option is false. - */ - quoteIdentifiers(identifiers: string, force: boolean): string; - - /** - * Escape a value (e.g. a string, number or date) - */ - escape(value?: string | number | Date): string; - - /** - * Set option for autocommit of a transaction - */ - setAutocommit( - transaction: Transaction, - value: boolean, - options?: QueryOptions, - ): Promise; - - /** - * Set the isolation level of a transaction - */ - setIsolationLevel( - transaction: Transaction, - value: string, - options?: QueryOptions, - ): Promise; - - /** - * Begin a new transaction - */ - startTransaction( - transaction: Transaction, - options?: QueryOptions, - ): Promise; - - /** - * Defer constraints - */ - deferConstraints( - transaction: Transaction, - options?: QueryOptions, - ): Promise; - - /** - * Commit an already started transaction - */ - commitTransaction( - transaction: Transaction, - options?: QueryOptions, - ): Promise; - - /** - * Rollback ( revert ) a transaction that has'nt been commited - */ - rollbackTransaction( - transaction: Transaction, - options?: QueryOptions, - ): Promise; - } - - declare export type QueryTypes = { - SELECT: string, - INSERT: string, - UPDATE: string, - BULKUPDATE: string, - BULKDELETE: string, - DELETE: string, - UPSERT: string, - VERSION: string, - SHOWTABLES: string, - SHOWINDEXES: string, - DESCRIBE: string, - RAW: string, - FOREIGNKEYS: string, - }; - - /** - * General column options - * @see Define - * @see AssociationForeignKeyOptions - */ - declare export type ColumnOptions = { - /** - * If false, the column will have a NOT NULL constraint, and a not null validation will be run before an - * instance is saved. - */ - allowNull?: boolean, - - /** - * If set, sequelize will map the attribute name to a different name in the database - */ - field?: string, - - /** - * A literal default value, a JavaScript function, or an SQL function (see `sequelize.fn`) - */ - defaultValue?: any, - }; - - /** - * References options for the column's attributes - * @see AttributeColumnOptions - */ - declare export type DefineAttributeColumnReferencesOptions = { - /** - * If this column references another table, provide it here as a Model, or a string - */ - model: string | Class>, - - /** - * The column of the foreign table that this column references - */ - key?: string, - - /** - * When to check for the foreign key constraing - * - PostgreSQL only - */ - deferrable?: - | DeferrableInitiallyDeferred - | DeferrableInitiallyImmediate - | DeferrableNot - | DeferrableSetDeferred - | DeferrableSetImmediate, - }; - - /** - * Column options for the model schema attributes - * @see Attributes - */ - declare export type DefineAttributeColumnOptions = { - /** - * A string or a data type - */ - type: string | DataTypeAbstract, - - /** - * If true, the column will get a unique constraint. If a string is provided, the column will be part of a - * composite unique index. If multiple columns have the same string, they will be part of the same unique - index - */ - unique?: - | boolean - | string - | { - name: string, - msg: string, - }, - - /** - * Primary key flag - */ - primaryKey?: boolean, - - /** - * Is this field an auto increment field - */ - autoIncrement?: boolean, - - /** - * Comment for the database - */ - comment?: string, - - /** - * An object with reference configurations - */ - references?: string | Model | DefineAttributeColumnReferencesOptions, - - /** - * What should happen when the referenced key is updated. One of CASCADE, RESTRICT, SET DEFAULT, SET NULL or - * NO ACTION - */ - onUpdate?: string, - - /** - * What should happen when the referenced key is deleted. One of CASCADE, RESTRICT, SET DEFAULT, SET NULL or - * NO ACTION - */ - onDelete?: string, - - /** - * Provide a custom getter for this column. Use `this.getDataValue(String)` to manipulate the underlying - * values. - */ - get?: () => any, - - /** - * Provide a custom setter for this column. Use `this.setDataValue(String, Value)` to manipulate the - * underlying values. - */ - set?: (val: any) => void, - - /** - * An object of validations to execute for this column every time the model is saved. Can be either the - * name of a validation provided by validator.js, a validation function provided by extending validator.js - (see the - `DAOValidator` property for more details), or a custom validation function. Custom validation functions - are called with the value of the field, and can possibly take a second callback argument, to signal that - they are asynchronous. If the validator is sync, it should throw in the case of a failed validation, it - it is async, the callback should be called with the error text. - */ - validate?: DefineValidateOptions, - - /** - * Usage in object notation - * - ```js - sequelize.define('model', { - states: { - type: Sequelize.ENUM, - values: ['active', 'pending', 'deleted'] - } - }) - ``` - */ - values?: string[], - } & ColumnOptions; - - /** - * Interface for Attributes provided for a column - * @see Sequelize.define - */ - declare export type DefineAttributes = { - [name: string]: string | DataTypeAbstract | DefineAttributeColumnOptions, - }; - - /** - * Interface for query options - * @see Options - */ - declare export type QueryOptions = { - /** - * If true, sequelize will not try to format the results of the query, or build an instance of a model from - * the result - */ - raw?: boolean, - - /** - * The type of query you are executing. The query type affects how results are formatted before they are - * passed back. The type is a string, but `Sequelize.QueryTypes` is provided as convenience shortcuts. - */ - type?: string, - - /** - * If true, transforms objects with `.` separated property names into nested objects using - * [dottie.js](https://github.com/mickhansen/dottie.js). For example { 'user.username': 'john' } becomes - { user: { username: 'john' }}. When `nest` is true, the query type is assumed to be `'SELECT'`, - unless otherwise specified - - Defaults to false - */ - nest?: boolean, - - /** - * Sets the query type to `SELECT` and return a single row - */ - plain?: boolean, - - /** - * Either an object of named parameter replacements in the format `:param` or an array of unnamed - * replacements to replace `?` in your SQL. - */ - replacements?: Object | $ReadOnlyArray, - - /** - * Either an object of named bind parameter in the format `$param` or an array of unnamed - * bind parameter to replace `$1`, `$2`, ... in your SQL. - */ - bind?: Object | $ReadOnlyArray, - - /** - * Force the query to use the write pool, regardless of the query type. - * - Defaults to false - */ - useMaster?: boolean, - - /** - * A function that gets executed while running the query to log the sql. - */ - logging?: boolean | Function, - - /** - * A sequelize instance used to build the return instance - */ - instance?: Model, - - /** - * A sequelize model used to build the returned model instances (used to be called callee) - */ - model?: Class>, - - /** - * Set of flags that control when a query is automatically retried. - */ - retry?: RetryOptions, - - /** - * If false do not prepend the query with the search_path (Postgres only) - */ - supportsSearchPath?: boolean, - - /** - * Map returned fields to model's fields if `options.model` or `options.instance` is present. - * Mapping will occur before building the model instance. - */ - mapToModel?: boolean, - fieldMap?: { - [key: string]: string, - }, - } & SearchPathOptions & - ReturningOptions; - - /** - * Model validations, allow you to specify format/content/inheritance validations for each attribute of the - * model. - - Validations are automatically run on create, update and save. You can also call validate() to manually - validate an instance. - - The validations are implemented by validator.js. - */ - declare export type DefineValidateOptions = { - /** - * is: ["^[a-z]+$",'i'] // will only allow letters - * is: /^[a-z]+$/i // same as the previous example using real RegExp - */ - is?: - | string - | $ReadOnlyArray - | RegExp - | { - msg: string, - args: string | $ReadOnlyArray | RegExp, - }, - - /** - * not: ["[a-z]",'i'] // will not allow letters - */ - not?: - | string - | $ReadOnlyArray - | RegExp - | { - msg: string, - args: string | $ReadOnlyArray | RegExp, - }, - - /** - * checks for email format (foo@bar.com) - */ - isEmail?: - | boolean - | { - msg: string, - }, - - /** - * checks for url format (http://foo.com) - */ - isUrl?: - | boolean - | { - msg: string, - }, - - /** - * checks for IPv4 (129.89.23.1) or IPv6 format - */ - isIP?: - | boolean - | { - msg: string, - }, - - /** - * checks for IPv4 (129.89.23.1) - */ - isIPv4?: - | boolean - | { - msg: string, - }, - - /** - * checks for IPv6 format - */ - isIPv6?: - | boolean - | { - msg: string, - }, - - /** - * will only allow letters - */ - isAlpha?: - | boolean - | { - msg: string, - }, - - /** - * will only allow alphanumeric characters, so "_abc" will fail - */ - isAlphanumeric?: - | boolean - | { - msg: string, - }, - - /** - * will only allow numbers - */ - isNumeric?: - | boolean - | { - msg: string, - }, - - /** - * checks for valid integers - */ - isInt?: - | boolean - | { - msg: string, - }, - - /** - * checks for valid floating point numbers - */ - isFloat?: - | boolean - | { - msg: string, - }, - - /** - * checks for any numbers - */ - isDecimal?: - | boolean - | { - msg: string, - }, - - /** - * checks for lowercase - */ - isLowercase?: - | boolean - | { - msg: string, - }, - - /** - * checks for uppercase - */ - isUppercase?: - | boolean - | { - msg: string, - }, - - /** - * won't allow null - */ - notNull?: - | boolean - | { - msg: string, - }, - - /** - * only allows null - */ - isNull?: - | boolean - | { - msg: string, - }, - - /** - * don't allow empty strings - */ - notEmpty?: - | boolean - | { - msg: string, - }, - - /** - * only allow a specific value - */ - equals?: - | string - | { - msg: string, - }, - - /** - * force specific substrings - */ - contains?: - | string - | { - msg: string, - }, - - /** - * check the value is not one of these - */ - notIn?: - | string[][] - | { - msg: string, - args: string[][], - }, - - /** - * check the value is one of these - */ - isIn?: - | string[][] - | { - msg: string, - args: string[][], - }, - - /** - * don't allow specific substrings - */ - notContains?: - | string[] - | string - | { - msg: string, - args: string[] | string, - }, - - /** - * only allow values with length between 2 and 10 - */ - len?: - | [number, number] - | { - msg: string, - args: [number, number], - }, - - /** - * only allow uuids - */ - isUUID?: - | 3 - | 4 - | 5 - | 'all' - | { - msg: string, - args: number, - }, - - /** - * only allow date strings - */ - isDate?: - | boolean - | { - msg: string, - args: boolean, - }, - - /** - * only allow date strings after a specific date - */ - isAfter?: - | string - | { - msg: string, - args: string, - }, - - /** - * only allow date strings before a specific date - */ - isBefore?: - | string - | { - msg: string, - args: string, - }, - - /** - * only allow values - */ - max?: - | number - | { - msg: string, - args: number, - }, - - /** - * only allow values>= 23 - */ - min?: - | number - | { - msg: string, - args: number, - }, - - /** - * only allow arrays - */ - isArray?: - | boolean - | { - msg: string, - args: boolean, - }, - - /** - * check for valid credit card numbers - */ - isCreditCard?: - | boolean - | { - msg: string, - args: boolean, - }, - [name: string]: any, - }; - - declare export type IndexType = 'UNIQUE' | 'FULLTEXT' | 'SPATIAL'; - - declare export type DefineIndexOptions = { - /** - * The index type - */ - indicesType?: IndexType, - - /** - * The name of the index. Default is __ - */ - indexName?: string, - - /** - * For FULLTEXT columns set your parser - */ - parser?: string, - - /** - * Set a type for the index, e.g. BTREE. See the documentation of the used dialect - */ - indexType?: string, - - /** - * A function that receives the sql query, e.g. console.log - */ - logging?: Function, - - /** - * A hash of attributes to limit your index(Filtered Indexes - MSSQL & PostgreSQL only) - */ - where?: WhereOptions, - }; - - declare export type IndexMethod = 'BTREE' | 'HASH' | 'GIST' | 'GIN'; - - /** - * Interface for indexes property in DefineOptions - * @see DefineOptions - */ - declare export type DefineIndexesOptions = { - /** - * The name of the index. Defaults to model name + _ + fields concatenated - */ - name?: string, - - /** - * Index type. Only used by mysql. One of `UNIQUE`, `FULLTEXT` and `SPATIAL` - */ - index?: IndexType, - - /** - * The method to create the index by (`USING` statement in SQL). BTREE and HASH are supported by mysql and - * postgres, and postgres additionally supports GIST and GIN. - */ - method?: IndexMethod, - - /** - * Should the index by unique? Can also be triggered by setting type to `UNIQUE` - * - Defaults to false - */ - unique?: boolean, - - /** - * PostgreSQL will build the index without taking any write locks. Postgres only - * - Defaults to false - */ - concurrently?: boolean, - - /** - * An array of the fields to index. Each field can either be a string containing the name of the field, - * a sequelize object (e.g `sequelize.fn`), or an object with the following attributes: `attribute` - (field name), `length` (create a prefix index of length chars), `order` (the direction the column - should be sorted in), `collate` (the collation (sort order) for the column) - */ - fields?: $ReadOnlyArray< - | string - | fn - | { - attribute: string, - length: number, - order: string, - collate: string, - }, - >, - - /** - * Method the index should use, for example 'gin' index. - */ - using?: string, - - /** - * Operator that should be used by gin index, see Built-in GIN Operator Classes - */ - operator?: string, - - /** - * Condition for partioal index - */ - where?: WhereOptions, - }; - - /** - * Interface for name property in DefineOptions - * @see DefineOptions - */ - declare export type DefineNameOptions = { - /** - * Singular model name - */ - singular?: string, - - /** - * Plural model name - */ - plural?: string, - }; - - /** - * Interface for getterMethods in DefineOptions - * @see DefineOptions - */ - declare export type DefineGetterMethodsOptions = { - [name: string]: () => any, - }; - - /** - * Interface for setterMethods in DefineOptions - * @see DefineOptions - */ - declare export type DefineSetterMethodsOptions = { - [name: string]: (val: any) => void, - }; - - /** - * Interface for Define Scope Options - * @see DefineOptions - */ - declare export type DefineScopeOptions = { - [scopeName: string]: AnyFindOptions | Function, - }; - - /** - * Options for model definition - * @see Sequelize.define - */ - declare export type DefineOptions> = { - /** - * Define the default search scope to use for this model. Scopes have the same form as the options passed to - * find / findAll. - */ - defaultScope?: AnyFindOptions, - - /** - * More scopes, defined in the same way as defaultScope above. See `Model.scope` for more information about - * how scopes are defined, and what you can do with them - */ - scopes?: DefineScopeOptions, - - /** - * Don't persits null values. This means that all columns with null values will not be saved. - */ - omitNull?: boolean, - - /** - * Adds createdAt and updatedAt timestamps to the model. Default true. - */ - timestamps?: boolean, - - /** - * Calling destroy will not delete the model, but instead set a deletedAt timestamp if this is true. Needs - * timestamps=true to work. Default false. - */ - paranoid?: boolean, - - /** - * Converts all camelCased columns to underscored if true. Default false. - */ - underscored?: boolean, - - /** - * Converts camelCased model names to underscored tablenames if true. Default false. - */ - underscoredAll?: boolean, - - /** - * Indicates if the model's table has a trigger associated with it. Default false. - */ - hasTrigger?: boolean, - - /** - * If freezeTableName is true, sequelize will not try to alter the DAO name to get the table name. - * Otherwise, the dao name will be pluralized. Default false. - */ - freezeTableName?: boolean, - - /** - * An object with two attributes, `singular` and `plural`, which are used when this model is associated to - * others. - */ - name?: DefineNameOptions, - - /** - * Indexes for the provided database table - */ - indexes?: DefineIndexesOptions[], - - /** - * Override the name of the createdAt column if a string is provided, or disable it if false. Timestamps - * must be true. Not affected by underscored setting. - */ - createdAt?: string | boolean, - - /** - * Override the name of the deletedAt column if a string is provided, or disable it if false. Timestamps - * must be true. Not affected by underscored setting. - */ - deletedAt?: string | boolean, - - /** - * Override the name of the updatedAt column if a string is provided, or disable it if false. Timestamps - * must be true. Not affected by underscored setting. - */ - updatedAt?: string | boolean, - - /** - * Defaults to pluralized model name, unless freezeTableName is true, in which case it uses model name - * verbatim - */ - tableName?: string, - - /** - * Provide getter functions that work like those defined per column. If you provide a getter method with - * the - same name as a column, it will be used to access the value of that column. If you provide a name that - does not match a column, this function will act as a virtual getter, that can fetch multiple other - values - */ - getterMethods?: DefineGetterMethodsOptions, - - /** - * Provide setter functions that work like those defined per column. If you provide a setter method with - * the - same name as a column, it will be used to update the value of that column. If you provide a name that - does not match a column, this function will act as a virtual setter, that can act on and set other - values, but will not be persisted - */ - setterMethods?: DefineSetterMethodsOptions, - - /** - * Provide functions that are added to each instance (DAO). If you override methods provided by sequelize, - * you can access the original method using `this.constructor.super_.prototype`, e.g. - `this.constructor.super_.prototype.toJSON.apply(this, arguments)` - */ - instanceMethods?: Object, - - /** - * Provide functions that are added to the model (Model). If you override methods provided by sequelize, - * you can access the original method using `this.constructor.prototype`, e.g. - `this.constructor.prototype.find.apply(this, arguments)` - */ - classMethods?: Object, - schema?: string, - - /** - * You can also change the database engine, e.g. to MyISAM. InnoDB is the default. - */ - engine?: string, - charset?: string, - - /** - * Finaly you can specify a comment for the table in MySQL and PG - */ - comment?: string, - collate?: string, - - /** - * Set the initial AUTO_INCREMENT value for the table in MySQL. - */ - initialAutoIncrement?: string, - - /** - * An object of hook function that are called before and after certain lifecycle events. - * The possible hooks are: beforeValidate, afterValidate, beforeBulkCreate, beforeBulkDestroy, - beforeBulkUpdate, beforeCreate, beforeDestroy, beforeUpdate, afterCreate, afterDestroy, afterUpdate, - afterBulkCreate, afterBulkDestory and afterBulkUpdate. See Hooks for more information about hook - functions and their signatures. Each property can either be a function, or an array of functions. - */ - hooks?: HooksDefineOptions, - - /** - * An object of model wide validations. Validations have access to all model values via `this`. If the - * validator function takes an argument, it is asumed to be async, and is called with a callback that - accepts an optional error. - */ - validate?: DefineValidateOptions, - - /** - * Enable optimistic locking. When enabled, sequelize will add a version count attribute - * to the model and throw an OptimisticLockingError error when stale instances are saved. - Set to true or a string with the attribute name you want to use to enable. - */ - version?: boolean | string, - }; - - /** - * @see Model.options - */ - declare export type ResolvedDefineOptions> = { - /** - * Define the default search scope to use for this model. Scopes have the same form as the options passed to - * find / findAll. - */ - defaultScope: AnyFindOptions, - - /** - * More scopes, defined in the same way as defaultScope above. See `Model.scope` for more information about - * how scopes are defined, and what you can do with them - */ - scopes: DefineScopeOptions, - - /** - * Don't persits null values. This means that all columns with null values will not be saved. - */ - omitNull: boolean, - - /** - * Adds createdAt and updatedAt timestamps to the model. Default true. - */ - timestamps: boolean, - - /** - * Calling destroy will not delete the model, but instead set a deletedAt timestamp if this is true. Needs - * timestamps=true to work. Default false. - */ - paranoid: boolean, - - /** - * Converts all camelCased columns to underscored if true. Default false. - */ - underscored: boolean, - - /** - * Converts camelCased model names to underscored tablenames if true. Default false. - */ - underscoredAll: boolean, - - /** - * Indicates if the model's table has a trigger associated with it. Default false. - */ - hasTrigger?: boolean, - - /** - * If freezeTableName is true, sequelize will not try to alter the DAO name to get the table name. - * Otherwise, the dao name will be pluralized. Default false. - */ - freezeTableName: boolean, - - /** - * An object with two attributes, `singular` and `plural`, which are used when this model is associated to - * others. - */ - name: { - singular: string, - plural: string, - }, - - /** - * Indexes for the provided database table - */ - indexes: DefineIndexesOptions[], - - /** - * Override the name of the createdAt column if a string is provided, or disable it if false. Timestamps - * must be true. Not affected by underscored setting. - */ - createdAt?: string | boolean, - - /** - * Override the name of the deletedAt column if a string is provided, or disable it if false. Timestamps - * must be true. Not affected by underscored setting. - */ - deletedAt?: string | boolean, - - /** - * Override the name of the updatedAt column if a string is provided, or disable it if false. Timestamps - * must be true. Not affected by underscored setting. - */ - updatedAt?: string | boolean, - - /** - * Defaults to pluralized model name, unless freezeTableName is true, in which case it uses model name - * verbatim - */ - tableName?: string, - - /** - * Provide getter functions that work like those defined per column. If you provide a getter method with - * the - same name as a column, it will be used to access the value of that column. If you provide a name that - does not match a column, this function will act as a virtual getter, that can fetch multiple other - values - */ - getterMethods?: DefineGetterMethodsOptions, - - /** - * Provide setter functions that work like those defined per column. If you provide a setter method with - * the - same name as a column, it will be used to update the value of that column. If you provide a name that - does not match a column, this function will act as a virtual setter, that can act on and set other - values, but will not be persisted - */ - setterMethods?: DefineSetterMethodsOptions, - - /** - * Provide functions that are added to each instance (DAO). If you override methods provided by sequelize, - * you can access the original method using `this.constructor.super_.prototype`, e.g. - `this.constructor.super_.prototype.toJSON.apply(this, arguments)` - */ - instanceMethods?: Object, - - /** - * Provide functions that are added to the model (Model). If you override methods provided by sequelize, - * you can access the original method using `this.constructor.prototype`, e.g. - `this.constructor.prototype.find.apply(this, arguments)` - */ - classMethods?: Object, - schema: ?string, - schemaDelimeter: string, - - /** - * You can also change the database engine, e.g. to MyISAM. InnoDB is the default. - */ - engine?: string, - charset?: string, - - /** - * Finaly you can specify a comment for the table in MySQL and PG - */ - comment?: string, - collate?: string, - - /** - * Set the initial AUTO_INCREMENT value for the table in MySQL. - */ - initialAutoIncrement?: string, - - /** - * An object of hook function that are called before and after certain lifecycle events. - * The possible hooks are: beforeValidate, afterValidate, beforeBulkCreate, beforeBulkDestroy, - beforeBulkUpdate, beforeCreate, beforeDestroy, beforeUpdate, afterCreate, afterDestroy, afterUpdate, - afterBulkCreate, afterBulkDestory and afterBulkUpdate. See Hooks for more information about hook - functions and their signatures. Each property can either be a function, or an array of functions. - */ - hooks: HooksDefineOptions, - - /** - * An object of model wide validations. Validations have access to all model values via `this`. If the - * validator function takes an argument, it is asumed to be async, and is called with a callback that - accepts an optional error. - */ - validate: DefineValidateOptions, - - /** - * Enable optimistic locking. When enabled, sequelize will add a version count attribute - * to the model and throw an OptimisticLockingError error when stale instances are saved. - Set to true or a string with the attribute name you want to use to enable. - */ - version?: boolean | string, - - sequelize: Sequelize, - }; - - /** - * Sync Options - * @see Sequelize.sync - */ - declare export type SyncOptions = { - /** - * If force is true, each DAO will do DROP TABLE IF EXISTS ..., before it tries to create its own table - */ - force?: boolean, - - /** - * Match a regex against the database name before syncing, a safety check for cases where force: true is - * used in tests but not live code - */ - match?: RegExp, - - /** - * A function that logs sql queries, or false for no logging - */ - logging?: Function | boolean, - - /** - * The schema that the tables should be created in. This can be overriden for each table in sequelize.define - */ - schema?: string, - - /** - * Alters tables to fit models. Not recommended for production use. Deletes data in columns - * that were removed or had their type changed in the model. - */ - alter?: boolean, - - /** - * If hooks is true then beforeSync, afterSync, beforBulkSync, afterBulkSync hooks will be called - */ - hooks?: boolean, - - /** - * An optional parameter to specify the schema search_path (Postgres only) - */ - searchPath?: string, - }; - - declare export type SetOptions = {}; - - /** - * Connection Pool options - * @see Options - */ - declare export type PoolOptions = { - /** - * Maximum connections of the pool - */ - max?: number, - - /** - * Minimum connections of the pool - */ - min?: number, - - /** - * The maximum time, in milliseconds, that a connection can be idle before being released. - */ - idle?: number, - - /** - * The maximum time, in milliseconds, that pool will try to get connection before throwing error - */ - acquire?: number, - - /** - * A function that validates a connection. Called with client. The default function checks that client is an - * object, and that its state is not disconnected. - */ - validate?: (client?: any) => boolean, - evict?: number, - }; - - /** - * Interface for replication Options in the sequelize constructor - * @see Options - */ - declare export type ReplicationOptions = { - read?: { - host?: string, - port?: string | number, - username?: string, - password?: string, - database?: string, - }, - write?: { - host?: string, - port?: string | number, - username?: string, - password?: string, - database?: string, - }, - }; - - /** - * Interface for retry Options in the sequelize constructor and QueryOptions - * @see Options, QueryOptions - */ - declare export type RetryOptions = { - /** - * Only retry a query if the error matches one of these strings or Regexes. - */ - match?: Array, - - /** - * How many times a failing query is automatically retried. Set to 0 to disable retrying on SQL_BUSY error. - */ - max?: number, - }; - - /** - * Operator symbols to be used when querying data - */ - declare export type Operators = { - eq: Symbol, - ne: Symbol, - gte: Symbol, - gt: Symbol, - lte: Symbol, - lt: Symbol, - not: Symbol, - is: Symbol, - in: Symbol, - notIn: Symbol, - like: Symbol, - notLike: Symbol, - iLike: Symbol, - notILike: Symbol, - regexp: Symbol, - notRegexp: Symbol, - iRegexp: Symbol, - notIRegexp: Symbol, - between: Symbol, - notBetween: Symbol, - overlap: Symbol, - contains: Symbol, - contained: Symbol, - adjacent: Symbol, - strictLeft: Symbol, - strictRight: Symbol, - noExtendRight: Symbol, - noExtendLeft: Symbol, - and: Symbol, - or: Symbol, - any: Symbol, - all: Symbol, - values: Symbol, - col: Symbol, - placeholder: Symbol, - join: Symbol, - raw: Symbol, - Aliases: { - $eq: Symbol, - $ne: Symbol, - $gte: Symbol, - $gt: Symbol, - $lte: Symbol, - $lt: Symbol, - $not: Symbol, - $in: Symbol, - $notIn: Symbol, - $is: Symbol, - $like: Symbol, - $notLike: Symbol, - $iLike: Symbol, - $notILike: Symbol, - $regexp: Symbol, - $notRegexp: Symbol, - $iRegexp: Symbol, - $notIRegexp: Symbol, - $between: Symbol, - $notBetween: Symbol, - $overlap: Symbol, - $contains: Symbol, - $contained: Symbol, - $adjacent: Symbol, - $strictLeft: Symbol, - $strictRight: Symbol, - $noExtendRight: Symbol, - $noExtendLeft: Symbol, - $and: Symbol, - $or: Symbol, - $any: Symbol, - $all: Symbol, - $values: Symbol, - $col: Symbol, - $raw: Symbol, - }, - LegacyAliases: { - ne: Symbol, - not: Symbol, - in: Symbol, - notIn: Symbol, - gte: Symbol, - gt: Symbol, - lte: Symbol, - lt: Symbol, - like: Symbol, - ilike: Symbol, - $ilike: Symbol, - nlike: Symbol, - $notlike: Symbol, - notilike: Symbol, - '..': Symbol, - between: Symbol, - '!..': Symbol, - notbetween: Symbol, - nbetween: Symbol, - overlap: Symbol, - '&&': Symbol, - '@>': Symbol, - '<@': Symbol, - $eq: Symbol, - $ne: Symbol, - $gte: Symbol, - $gt: Symbol, - $lte: Symbol, - $lt: Symbol, - $not: Symbol, - $in: Symbol, - $notIn: Symbol, - $is: Symbol, - $like: Symbol, - $notLike: Symbol, - $iLike: Symbol, - $notILike: Symbol, - $regexp: Symbol, - $notRegexp: Symbol, - $iRegexp: Symbol, - $notIRegexp: Symbol, - $between: Symbol, - $notBetween: Symbol, - $overlap: Symbol, - $contains: Symbol, - $contained: Symbol, - $adjacent: Symbol, - $strictLeft: Symbol, - $strictRight: Symbol, - $noExtendRight: Symbol, - $noExtendLeft: Symbol, - $and: Symbol, - $or: Symbol, - $any: Symbol, - $all: Symbol, - $values: Symbol, - $col: Symbol, - $raw: Symbol, - }, - }; - - declare export type OperatorsAliases = { - [key: string]: Symbol, - }; - - /** - * Options for the constructor of Sequelize main class - */ - declare export type Options = { - /** - * The dialect of the database you are connecting to. One of mysql, postgres, sqlite, mariadb and mssql. - * - Defaults to 'mysql' - */ - dialect?: string, - - /** - * If specified, load the dialect library from this path. For example, if you want to use pg.js instead of - * pg when connecting to a pg database, you should specify 'pg.js' here - */ - dialectModulePath?: string, - - /** - * An object of additional options, which are passed directly to the connection library - */ - dialectOptions?: Object, - - /** - * Only used by sqlite. - * - Defaults to ':memory:' - */ - storage?: string, - - /** - * The host of the relational database. - * - Defaults to 'localhost' - */ - host?: string, - - /** - * The port of the relational database. - */ - port?: number, - - /** - * The protocol of the relational database. - * - Defaults to 'tcp' - */ - protocol?: string, - - /** - * The username which is used to authenticate against the database. - */ - username?: string, - - /** - * The password which is used to authenticate against the database. - */ - password?: string, - - /** - * The name of the database - */ - database?: string, - - /** - * Default options for model definitions. See sequelize.define for options - */ - define?: DefineOptions, - - /** - * Default options for sequelize.query - */ - query?: QueryOptions, - - /** - * Default options for sequelize.set - */ - set?: SetOptions, - - /** - * Default options for sequelize.sync - */ - sync?: SyncOptions, - - /** - * The timezone used when converting a date from the database into a JavaScript date. The timezone is also - * used to SET TIMEZONE when connecting to the server, to ensure that the result of NOW, CURRENT_TIMESTAMP - and other time related functions have in the right timezone. For best cross platform performance use the - format - +/-HH:MM. Will also accept string versions of timezones used by moment.js (e.g. 'America/Los_Angeles'); - this is useful to capture daylight savings time changes. - - Defaults to '+00:00' - */ - timezone?: string, - - /** - * A function that gets executed everytime Sequelize would log something. - * - Defaults to console.log - */ - logging?: boolean | Function, - - /** - * A flag that defines if null values should be passed to SQL queries or not. - * - Defaults to false - */ - omitNull?: boolean, - - /** - * A flag that defines if native library shall be used or not. Currently only has an effect for postgres - * - Defaults to false - */ - native?: boolean, - - /** - * Use read / write replication. To enable replication, pass an object, with two properties, read and write. - * Write should be an object (a single server for handling writes), and read an array of object (several - servers to handle reads). Each read/write server can have the following properties: `host`, `port`, - `username`, `password`, `database` - - Defaults to false - */ - replication?: ReplicationOptions, - - /** - * Set of flags that control when a query is automatically retried. - */ - retry?: RetryOptions, - - /** - * Run built in type validators on insert and update, - * e.g. validate that arguments passed to integer fields are integer-like. - - Defaults to false - */ - typeValidation?: boolean, - - /** - * Connection pool options - */ - pool?: PoolOptions, - - /** - * Set to `false` to make table names and attributes case-insensitive on Postgres and skip double quoting of - * them. - - Defaults to true - */ - quoteIdentifiers?: boolean, - - /** - * Set the default transaction isolation level. See `Sequelize.Transaction.ISOLATION_LEVELS` for possible - * options. - - Defaults to 'REPEATABLE_READ' - */ - isolationLevel?: TransactionIsolationLevel, - - /** - * Set the default transaction type. See `Sequelize.Transaction.TYPES` for possible - * options. - - Defaults to 'DEFERRED' - */ - transactionType?: TransactionType, - - /** - * Print query execution time in milliseconds when logging SQL. - * - Defaults to false - */ - benchmark?: boolean, - - /** - * String based operator alias, default value is true which will enable all operators alias. - * Pass object to limit set of aliased operators or false to disable completely. - */ - operatorsAliases?: boolean | OperatorsAliases, - }; - - declare export type QueryOptionsTransactionRequired = { - transaction: Transaction, - }; - - declare export type ModelsHashInterface = { - [name: string]: Class>, - }; - - /** - * This is the main class, the entry point to sequelize. To use it, you just need to - * import sequelize: - - ```js - var Sequelize = require('sequelize'); - ``` - - In addition to sequelize, the connection library for the dialect you want to use - should also be installed in your project. You don't need to import it however, as - sequelize will take care of that. - */ - declare export default class Sequelize { - constructor( - database: string, - username?: ?string, - password?: ?string, - options?: Options, - ): Sequelize; - constructor(database: string, options?: Options): Sequelize; - constructor(options: Options): Sequelize; - - /** - * A modified version of bluebird promises, that allows listening for sql events - */ - static Promise: typeof Promise; - Promise: typeof Promise; - - /** - * Available query types for use with `sequelize.query` - */ - static QueryTypes: QueryTypes; - QueryTypes: QueryTypes; - - /** - * Exposes the validator.js object, so you can extend it with custom validation functions. - * The validator is exposed both on the instance, and on the constructor. - */ - static Validator: Validator; - Validator: Validator; - - /** - * A Model represents a table in the database. Sometimes you might also see it referred to as model, or - * simply as factory. This class should not be instantiated directly, it is created using sequelize.define, - and already created models can be loaded using sequelize.import - */ - static Model: typeof Model; - Model: typeof Model; - - /** - * A reference to the sequelize transaction class. Use this to access isolationLevels when creating a - * transaction - */ - static Transaction: typeof Transaction; - Transaction: typeof Transaction; - - /** - * A reference to the deferrable collection. Use this to access the different deferrable options. - */ - static Deferrable: Deferrable; - Deferrable: Deferrable; - - /** - * A reference to the sequelize instance class. - */ - static Op: Operators; - Op: Operators; - - /** - * Creates a object representing a database function. This can be used in search queries, both in where and - * order parts, and as default values in column definitions. If you want to refer to columns in your - function, you should use `sequelize.col`, so that the columns are properly interpreted as columns and - not a strings. - - Convert a user's username to upper case - ```js - instance.updateAttributes({ - username: self.sequelize.fn('upper', self.sequelize.col('username')) - }) - ``` - * @param fn The function you want to call - * @param args All further arguments will be passed as arguments to the function - */ - static fn(fn: string, ...args: any[]): fn; - fn(fn: string, ...args: any[]): fn; - - /** - * Creates a object representing a column in the DB. This is often useful in conjunction with - * `sequelize.fn`, since raw string arguments to fn will be escaped. - * @param col The name of the column - */ - static col(col: string): col; - col(col: string): col; - - /** - * Creates a object representing a call to the cast function. - * @param val The value to cast - * @param type The type to cast it to - */ - static cast(val: any, type: string): cast; - cast(val: any, type: string): cast; - - /** - * Creates a object representing a literal, i.e. something that will not be escaped. - * @param val - */ - static literal(val: any): literal; - literal(val: any): literal; - static asIs(val: any): literal; - asIs(val: any): literal; - - /** - * An AND query - * @param args Each argument will be joined by AND - */ - static and(...args: $ReadOnlyArray): AndOperator; - and(...args: $ReadOnlyArray): AndOperator; - - /** - * An OR query - * @param args Each argument will be joined by OR - */ - static or(...args: $ReadOnlyArray): OrOperator; - or(...args: $ReadOnlyArray): OrOperator; - - /** - * Creates an object representing nested where conditions for postgres's json data-type. - * @param conditionsOrPath A hash containing strings/numbers or other nested hash, a string using dot - notation or a string using postgres json syntax. - * @param value An optional value to compare against. Produces a string of the form " = - ''". - */ - static json( - conditionsOrPath: string | Object, - value?: string | number | boolean, - ): json; - json( - conditionsOrPath: string | Object, - value?: string | number | boolean, - ): json; - - /** - * A way of specifying attr = condition. - * - The attr can either be an object taken from `Model.rawAttributes` (for example `Model.rawAttributes.id` - or - `Model.rawAttributes.name`). The attribute should be defined in your model definition. The attribute can - also be an object from one of the sequelize utility functions (`sequelize.fn`, `sequelize.col` etc.) - - For string attributes, use the regular `{ where: { attr: something }}` syntax. If you don't want your - string to be escaped, use `sequelize.literal`. - * @param attr The attribute, which can be either an attribute object from `Model.rawAttributes` or a - sequelize object, for example an instance of `sequelize.fn`. For simple string attributes, use the - POJO syntax - * @param comparator Comparator - * @param logic The condition. Can be both a simply type, or a further condition (`.or`, `.and`, `.literal` - etc.) - */ - static where( - attr: Object, - comparator: string, - logic: string | Object, - ): where; - where(attr: Object, comparator: string, logic: string | Object): where; - static where(attr: Object, logic: string | Object): where; - where(attr: Object, logic: string | Object): where; - static condition( - attr: Object, - comparator: string, - logic: string | Object, - ): where; - condition(attr: Object, comparator: string, logic: string | Object): where; - static condition(attr: Object, logic: string | Object): where; - condition(attr: Object, logic: string | Object): where; - - static Error: typeof BaseError; - static ValidationError: typeof ValidationError; - static ValidationErrorItem: typeof ValidationErrorItem; - static DatabaseError: typeof DatabaseError; - static TimeoutError: typeof TimeoutError; - static UniqueConstraintError: typeof UniqueConstraintError; - static ExclusionConstraintError: typeof ExclusionConstraintError; - static ForeignKeyConstraintError: typeof ForeignKeyConstraintError; - static ConnectionError: typeof ConnectionError; - static ConnectionRefusedError: typeof ConnectionRefusedError; - static AccessDeniedError: typeof AccessDeniedError; - static HostNotFoundError: typeof HostNotFoundError; - static HostNotReachableError: typeof HostNotReachableError; - static InvalidConnectionError: typeof InvalidConnectionError; - static ConnectionTimedOutError: typeof ConnectionTimedOutError; - static EmptyResultError: typeof EmptyResultError; - - Error: typeof BaseError; - ValidationError: typeof ValidationError; - ValidationErrorItem: typeof ValidationErrorItem; - DatabaseError: typeof DatabaseError; - TimeoutError: typeof TimeoutError; - UniqueConstraintError: typeof UniqueConstraintError; - ExclusionConstraintError: typeof ExclusionConstraintError; - ForeignKeyConstraintError: typeof ForeignKeyConstraintError; - ConnectionError: typeof ConnectionError; - ConnectionRefusedError: typeof ConnectionRefusedError; - AccessDeniedError: typeof AccessDeniedError; - HostNotFoundError: typeof HostNotFoundError; - HostNotReachableError: typeof HostNotReachableError; - InvalidConnectionError: typeof InvalidConnectionError; - ConnectionTimedOutError: typeof ConnectionTimedOutError; - EmptyResultError: typeof EmptyResultError; - - static ABSTRACT: DataTypeAbstract; - static STRING: DataTypeString; - static CHAR: DataTypeChar; - static TEXT: DataTypeText; - static NUMBER: DataTypeNumber; - static INTEGER: DataTypeInteger; - static BIGINT: DataTypeBigInt; - static FLOAT: DataTypeFloat; - static TIME: DataTypeTime; - static DATE: DataTypeDate; - static DATEONLY: DataTypeDateOnly; - static BOOLEAN: DataTypeBoolean; - static NOW: DataTypeNow; - static BLOB: DataTypeBlob; - static DECIMAL: DataTypeDecimal; - static NUMERIC: DataTypeDecimal; - static UUID: DataTypeUUID; - static UUIDV1: DataTypeUUIDv1; - static UUIDV4: DataTypeUUIDv4; - static HSTORE: DataTypeHStore; - static JSON: DataTypeJSONType; - static JSONB: DataTypeJSONB; - static VIRTUAL: DataTypeVirtual; - static ARRAY: DataTypeArray; - static NONE: DataTypeVirtual; - static ENUM: DataTypeEnum; - static RANGE: DataTypeRange; - static REAL: DataTypeReal; - static DOUBLE: DataTypeDouble; - static GEOMETRY: DataTypeGeometry; - - /** - * Add a hook to the model - * @param hookType - * @param name Provide a name for the hook function. It can be used to remove the hook later or to order - hooks based on some sort of priority system in the future. - * @param fn The hook function - * @alias hook - */ - static addHook(hookType: string, name: string, fn: Function): this; - static addHook(hookType: string, fn: Function): this; - static hook(hookType: string, name: string, fn: Function): this; - static hook(hookType: string, fn: Function): this; - - /** - * Remove hook from the model - * @param hookType - * @param name - */ - static removeHook(hookType: string, name: string): this; - - /** - * Check whether the model has any hooks of this type - * @param hookType - * @alias hasHooks - */ - static hasHook(hookType: string): boolean; - static hasHooks(hookType: string): boolean; - - /** - * A hook that is run before validation - * @param name - * @param fn A callback function that is called with instance, options - */ - static beforeValidate(name: string, fn: AsyncFn2, Object>): void; - static beforeValidate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after validation - * @param name - * @param fn A callback function that is called with instance, options - */ - static afterValidate(name: string, fn: AsyncFn2, Object>): void; - static afterValidate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after validation - * @param name - * @param fn A callback function that is called with instance, options - */ - static validationFailed( - name: string, - fn: AsyncFn3, Object, ValidationError>, - ): void; - static validationFailed( - fn: AsyncFn3, Object, ValidationError>, - ): void; - - /** - * A hook that is run before creating a single instance - * @param name - * @param fn A callback function that is called with attributes, options - */ - static beforeCreate(name: string, fn: AsyncFn2, Object>): void; - static beforeCreate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after creating a single instance - * @param name - * @param fn A callback function that is called with attributes, options - */ - static afterCreate(name: string, fn: AsyncFn2, Object>): void; - static afterCreate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run before destroying a single instance - * @param name - * @param fn A callback function that is called with instance, options - * @alias beforeDelete - */ - static beforeDestroy(name: string, fn: AsyncFn2, Object>): void; - static beforeDestroy(fn: AsyncFn2, Object>): void; - static beforeDelete(name: string, fn: AsyncFn2, Object>): void; - static beforeDelete(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after destroying a single instance - * @param name - * @param fn A callback function that is called with instance, options - * @alias afterDelete - */ - static afterDestroy(name: string, fn: AsyncFn2, Object>): void; - static afterDestroy(fn: AsyncFn2, Object>): void; - static afterDelete(name: string, fn: AsyncFn2, Object>): void; - static afterDelete(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run before updating a single instance - * @param name - * @param fn A callback function that is called with instance, options - */ - static beforeUpdate(name: string, fn: AsyncFn2, Object>): void; - static beforeUpdate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after updating a single instance - * @param name - * @param fn A callback function that is called with instance, options - */ - static afterUpdate(name: string, fn: AsyncFn2, Object>): void; - static afterUpdate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run before creating instances in bulk - * @param name - * @param fn A callback function that is called with instances, options - */ - static beforeBulkCreate( - name: string, - fn: AsyncFn2[], Object>, - ): void; - static beforeBulkCreate(fn: AsyncFn2[], Object>): void; - - /** - * A hook that is run after creating instances in bulk - * @param name - * @param fn A callback function that is called with instances, options - * @name afterBulkCreate - */ - static afterBulkCreate( - name: string, - fn: AsyncFn2[], Object>, - ): void; - static afterBulkCreate(fn: AsyncFn2[], Object>): void; - - /** - * A hook that is run before destroying instances in bulk - * @param name - * @param fn A callback function that is called with options - * @alias beforeBulkDelete - */ - static beforeBulkDestroy(name: string, fn: AsyncFn1): void; - static beforeBulkDestroy(fn: AsyncFn1): void; - static beforeBulkDelete(name: string, fn: AsyncFn1): void; - static beforeBulkDelete(fn: AsyncFn1): void; - - /** - * A hook that is run after destroying instances in bulk - * @param name - * @param fn A callback function that is called with options - * @alias afterBulkDelete - */ - static afterBulkDestroy(name: string, fn: AsyncFn1): void; - static afterBulkDestroy(fn: AsyncFn1): void; - static afterBulkDelete(name: string, fn: AsyncFn1): void; - static afterBulkDelete(fn: AsyncFn1): void; - - /** - * A hook that is run after updating instances in bulk - * @param name - * @param fn A callback function that is called with options - */ - static beforeBulkUpdate(name: string, fn: AsyncFn1): void; - static beforeBulkUpdate(fn: AsyncFn1): void; - - /** - * A hook that is run after updating instances in bulk - * @param name - * @param fn A callback function that is called with options - */ - static afterBulkUpdate(name: string, fn: AsyncFn1): void; - static afterBulkUpdate(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query - * @param name - * @param fn A callback function that is called with options - */ - static beforeFind(name: string, fn: AsyncFn1): void; - static beforeFind(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query, after any { include: {all: ...} } options are expanded - * @param name - * @param fn A callback function that is called with options - */ - static beforeFindAfterExpandIncludeAll( - name: string, - fn: AsyncFn1, - ): void; - static beforeFindAfterExpandIncludeAll(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query, after all option parsing is complete - * @param name - * @param fn A callback function that is called with options - */ - static beforeFindAfterOptions(name: string, fn: AsyncFn1): void; - static beforeFindAfterOptions(fn: AsyncFn1): void; - - /** - * A hook that is run after a find (select) query - * @param name - * @param fn A callback function that is called with instance(s), options - */ - static afterFind( - name: string, - AsyncFn2 | Model[], Object>, - ): void; - static afterFind(AsyncFn2 | Model[], Object>): void; - - /** - * A hook that is run before a define call - * @param name - * @param fn A callback function that is called with attributes, options - */ - static beforeDefine( - name: string, - fn: AsyncFn2, - ): void; - static beforeDefine(fn: AsyncFn2): void; - - /** - * A hook that is run after a define call - * @param name - * @param fn A callback function that is called with factory - */ - static afterDefine( - name: string, - fn: AsyncFn1, any>>, - ): void; - static afterDefine(fn: AsyncFn1, any>>): void; - - /** - * A hook that is run before Sequelize() call - * @param name - * @param fn A callback function that is called with config, options - */ - static beforeInit(name: string, fn: AsyncFn2): void; - static beforeInit(fn: AsyncFn2): void; - - /** - * A hook that is run after Sequelize() call - * @param name - * @param fn A callback function that is called with sequelize - */ - static afterInit(name: string, fn: AsyncFn1): void; - static afterInit(fn: AsyncFn1): void; - - /** - * A hook that is run before Model.sync call - * @param name - * @param fn A callback function that is called with options passed to Model.sync - */ - static beforeSync(name: string, fn: AsyncFn1): void; - static beforeSync(fn: AsyncFn1): void; - - /** - * A hook that is run after Model.sync call - * @param name - * @param fn A callback function that is called with options passed to Model.sync - */ - static afterSync(name: string, fn: AsyncFn1): void; - static afterSync(fn: AsyncFn1): void; - - /** - * A hook that is run before sequelize.sync call - * @param name - * @param fn A callback function that is called with options passed to sequelize.sync - */ - static beforeBulkSync(name: string, fn: AsyncFn1): void; - static beforeBulkSync(fn: AsyncFn1): void; - - /** - * A hook that is run after sequelize.sync call - * @param name - * @param fn A callback function that is called with options passed to sequelize.sync - */ - static afterBulkSync(name: string, fn: AsyncFn1): void; - static afterBulkSync(fn: AsyncFn1): void; - - /** - * Add a hook to the model - * @param hookType - * @param name Provide a name for the hook function. It can be used to remove the hook later or to order - hooks based on some sort of priority system in the future. - * @param fn The hook function - * @alias hook - */ - addHook(hookType: string, name: string, fn: Function): this; - addHook(hookType: string, fn: Function): this; - hook(hookType: string, name: string, fn: Function): this; - hook(hookType: string, fn: Function): this; - - /** - * Remove hook from the model - * @param hookType - * @param name - */ - removeHook(hookType: string, name: string): this; - - /** - * Check whether the model has any hooks of this type - * @param hookType - * @alias hasHooks - */ - hasHook(hookType: string): boolean; - hasHooks(hookType: string): boolean; - - /** - * A hook that is run before validation - * @param name - * @param fn A callback function that is called with instance, options - */ - beforeValidate(name: string, fn: AsyncFn2, Object>): void; - beforeValidate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after validation - * @param name - * @param fn A callback function that is called with instance, options - */ - afterValidate(name: string, fn: AsyncFn2, Object>): void; - afterValidate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after validation - * @param name - * @param fn A callback function that is called with instance, options - */ - validationFailed( - name: string, - fn: AsyncFn3, Object, ValidationError>, - ): void; - validationFailed(fn: AsyncFn3, Object, ValidationError>): void; - - /** - * A hook that is run before creating a single instance - * @param name - * @param fn A callback function that is called with attributes, options - */ - beforeCreate(name: string, fn: AsyncFn2, Object>): void; - beforeCreate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after creating a single instance - * @param name - * @param fn A callback function that is called with attributes, options - */ - afterCreate(name: string, fn: AsyncFn2, Object>): void; - afterCreate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run before destroying a single instance - * @param name - * @param fn A callback function that is called with instance, options - * @alias beforeDelete - */ - beforeDestroy(name: string, fn: AsyncFn2, Object>): void; - beforeDestroy(fn: AsyncFn2, Object>): void; - beforeDelete(name: string, fn: AsyncFn2, Object>): void; - beforeDelete(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after destroying a single instance - * @param name - * @param fn A callback function that is called with instance, options - * @alias afterDelete - */ - afterDestroy(name: string, fn: AsyncFn2, Object>): void; - afterDestroy(fn: AsyncFn2, Object>): void; - afterDelete(name: string, fn: AsyncFn2, Object>): void; - afterDelete(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run before updating a single instance - * @param name - * @param fn A callback function that is called with instance, options - */ - beforeUpdate(name: string, fn: AsyncFn2, Object>): void; - beforeUpdate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run after updating a single instance - * @param name - * @param fn A callback function that is called with instance, options - */ - afterUpdate(name: string, fn: AsyncFn2, Object>): void; - afterUpdate(fn: AsyncFn2, Object>): void; - - /** - * A hook that is run before creating instances in bulk - * @param name - * @param fn A callback function that is called with instances, options - */ - beforeBulkCreate(name: string, fn: AsyncFn2[], Object>): void; - beforeBulkCreate(fn: AsyncFn2[], Object>): void; - - /** - * A hook that is run after creating instances in bulk - * @param name - * @param fn A callback function that is called with instances, options - * @name afterBulkCreate - */ - afterBulkCreate(name: string, fn: AsyncFn2[], Object>): void; - afterBulkCreate(fn: AsyncFn2[], Object>): void; - - /** - * A hook that is run before destroying instances in bulk - * @param name - * @param fn A callback function that is called with options - * @alias beforeBulkDelete - */ - beforeBulkDestroy(name: string, fn: AsyncFn1): void; - beforeBulkDestroy(fn: AsyncFn1): void; - beforeBulkDelete(name: string, fn: AsyncFn1): void; - beforeBulkDelete(fn: AsyncFn1): void; - - /** - * A hook that is run after destroying instances in bulk - * @param name - * @param fn A callback function that is called with options - * @alias afterBulkDelete - */ - afterBulkDestroy(name: string, fn: AsyncFn1): void; - afterBulkDestroy(fn: AsyncFn1): void; - afterBulkDelete(name: string, fn: AsyncFn1): void; - afterBulkDelete(fn: AsyncFn1): void; - - /** - * A hook that is run after updating instances in bulk - * @param name - * @param fn A callback function that is called with options - */ - beforeBulkUpdate(name: string, fn: AsyncFn1): void; - beforeBulkUpdate(fn: AsyncFn1): void; - - /** - * A hook that is run after updating instances in bulk - * @param name - * @param fn A callback function that is called with options - */ - afterBulkUpdate(name: string, fn: AsyncFn1): void; - afterBulkUpdate(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query - * @param name - * @param fn A callback function that is called with options - */ - beforeFind(name: string, fn: AsyncFn1): void; - beforeFind(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query, after any { include: {all: ...} } options are expanded - * @param name - * @param fn A callback function that is called with options - */ - beforeFindAfterExpandIncludeAll(name: string, fn: AsyncFn1): void; - beforeFindAfterExpandIncludeAll(fn: AsyncFn1): void; - - /** - * A hook that is run before a find (select) query, after all option parsing is complete - * @param name - * @param fn A callback function that is called with options - */ - beforeFindAfterOptions(name: string, fn: AsyncFn1): void; - beforeFindAfterOptions(fn: AsyncFn1): void; - - /** - * A hook that is run after a find (select) query - * @param name - * @param fn A callback function that is called with instance(s), options - */ - afterFind(name: string, AsyncFn2 | Model[], Object>): void; - afterFind(AsyncFn2 | Model[], Object>): void; - - /** - * A hook that is run before a define call - * @param name - * @param fn A callback function that is called with attributes, options - */ - beforeDefine(name: string, fn: AsyncFn2): void; - beforeDefine(fn: AsyncFn2): void; - - /** - * A hook that is run after a define call - * @param name - * @param fn A callback function that is called with factory - */ - afterDefine(name: string, fn: AsyncFn1, any>>): void; - afterDefine(fn: AsyncFn1, any>>): void; - - /** - * A hook that is run before Sequelize() call - * @param name - * @param fn A callback function that is called with config, options - */ - beforeInit(name: string, fn: AsyncFn2): void; - beforeInit(fn: AsyncFn2): void; - - /** - * A hook that is run after Sequelize() call - * @param name - * @param fn A callback function that is called with sequelize - */ - afterInit(name: string, fn: AsyncFn1): void; - afterInit(fn: AsyncFn1): void; - - /** - * A hook that is run before Model.sync call - * @param name - * @param fn A callback function that is called with options passed to Model.sync - */ - beforeSync(name: string, fn: AsyncFn1): void; - beforeSync(fn: AsyncFn1): void; - - /** - * A hook that is run after Model.sync call - * @param name - * @param fn A callback function that is called with options passed to Model.sync - */ - afterSync(name: string, fn: AsyncFn1): void; - afterSync(fn: AsyncFn1): void; - - /** - * A hook that is run before sequelize.sync call - * @param name - * @param fn A callback function that is called with options passed to sequelize.sync - */ - beforeBulkSync(name: string, fn: AsyncFn1): void; - beforeBulkSync(fn: AsyncFn1): void; - - /** - * A hook that is run after sequelize.sync call - * @param name - * @param fn A callback function that is called with options passed to sequelize.sync - */ - afterBulkSync(name: string, fn: AsyncFn1): void; - afterBulkSync(fn: AsyncFn1): void; - - /** - * Defined models. - */ - models: ModelsHashInterface; - - /** - * Defined options. - */ - options: Options; - - /** - * Returns the specified dialect. - */ - getDialect(): string; - - /** - * Returns an instance of QueryInterface. - */ - getQueryInterface(): QueryInterface; - - /** - * Define a new model, representing a table in the DB. - * - The table columns are define by the hash that is given as the second argument. Each attribute of the - hash - represents a column. A short table definition might look like this: - - ```js - sequelize.define('modelName', { - columnA: { - type: Sequelize.BOOLEAN, - validate: { - is: ["[a-z]",'i'], // will only allow letters - max: 23, // only allow values <= 23 - isIn: { - args: [['en', 'zh']], - msg: "Must be English or Chinese" - } - }, - field: 'column_a' - // Other attributes here - }, - columnB: Sequelize.STRING, - columnC: 'MY VERY OWN COLUMN TYPE' - }) - - sequelize.models.modelName // The model will now be available in models under the name given to define - ``` - - As shown above, column definitions can be either strings, a reference to one of the datatypes that are - predefined on the Sequelize constructor, or an object that allows you to specify both the type of the - column, and other attributes such as default values, foreign key constraints and custom setters and - getters. - - For a list of possible data types, see - http://docs.sequelizejs.com/en/latest/docs/models-definition/#data-types - - For more about getters and setters, see - http://docs.sequelizejs.com/en/latest/docs/models-definition/#getters-setters - - For more about instance and class methods, see - http://docs.sequelizejs.com/en/latest/docs/models-definition/#expansion-of-models - - For more about validation, see - http://docs.sequelizejs.com/en/latest/docs/models-definition/#validations - * @param modelName The name of the model. The model will be stored in `sequelize.models` under this name - * @param attributes An object, where each attribute is a column of the table. Each column can be either a - DataType, a string or a type-description object, with the properties described below: - * @param options These options are merged with the default define options provided to the Sequelize - constructor - */ - define< - TAttributes, - TPlainAttributes, - TInstance: Model, - >( - modelName: string, - attributes: DefineAttributes, - options?: DefineOptions, - ): Class; - - /** - * Fetch a Model which is already defined - * @param modelName The name of a model defined with Sequelize.define - */ - model>>(modelName: string): ModelClass; - - /** - * Checks whether a model with the given name is defined - * @param modelName The name of a model defined with Sequelize.define - */ - isDefined(modelName: string): boolean; - - /** - * Imports a model defined in another file - * - Imported models are cached, so multiple calls to import with the same path will not load the file - multiple times - - See https://github.com/sequelize/sequelize/blob/master/examples/using-multiple-model-files/Task.js for a - short example of how to define your models in separate files so that they can be imported by - sequelize.import - * @param path The path to the file that holds the model you want to import. If the part is relative, it - will be resolved relatively to the calling file - * @param defineFunction An optional function that provides model definitions. Useful if you do not - want to use the module root as the define function - */ - import>>( - path: string, - defineFunction?: ( - sequelize: Sequelize, - dataTypes: DataTypes, - ) => ModelClass, - ): ModelClass; - - /** - * Execute a query on the DB, with the posibility to bypass all the sequelize goodness. - * - By default, the function will return two arguments: an array of results, and a metadata object, - containing number of affected rows etc. Use `.spread` to access the results. - - If you are running a type of query where you don't need the metadata, for example a `SELECT` query, you - can pass in a query type to make sequelize format the results: - - ```js - sequelize.query('SELECT...').spread(function (results, metadata) { - // Raw query - use spread - }); - - sequelize.query('SELECT...', { type: sequelize.QueryTypes.SELECT }).then(function (results) { - // SELECT query - use then - }) - ``` - * @param sql - * @param options Query options - */ - query( - sql: - | string - | { - query: string, - values: any[], - }, - options?: QueryOptions, - ): Promise; - - /** - * Execute a query which would set an environment or user variable. The variables are set per connection, - * so this function needs a transaction. - - Only works for MySQL. - * @param variables Object with multiple variables. - * @param options Query options. - */ - set( - variables: Object, - options: QueryOptionsTransactionRequired, - ): Promise; - - /** - * Escape value. - * @param value Value that needs to be escaped - */ - escape(value: string): string; - - /** - * Create a new database schema. - * - Note,that this is a schema in the - [postgres sense of the word](http://www.postgresql.org/docs/9.1/static/ddl-schemas.html), - not a database table. In mysql and sqlite, this command will do nothing. - * @param schema Name of the schema - * @param options Options supplied - * @param options .logging A function that logs sql queries, or false for no logging - */ - createSchema( - schema: string, - options: { - logging?: boolean | Function, - }, - ): Promise; - - /** - * Show all defined schemas - * - Note,that this is a schema in the - [postgres sense of the word](http://www.postgresql.org/docs/9.1/static/ddl-schemas.html), - not a database table. In mysql and sqlite, this will show all tables. - * @param options Options supplied - * @param options .logging A function that logs sql queries, or false for no logging - */ - showAllSchemas(options: { - logging?: boolean | Function, - }): Promise; - - /** - * Drop a single schema - * - Note,that this is a schema in the - [postgres sense of the word](http://www.postgresql.org/docs/9.1/static/ddl-schemas.html), - not a database table. In mysql and sqlite, this drop a table matching the schema name - * @param schema Name of the schema - * @param options Options supplied - * @param options .logging A function that logs sql queries, or false for no logging - */ - dropSchema( - schema: string, - options: { - logging?: boolean | Function, - }, - ): Promise; - - /** - * Drop all schemas - * - Note,that this is a schema in the - [postgres sense of the word](http://www.postgresql.org/docs/9.1/static/ddl-schemas.html), - not a database table. In mysql and sqlite, this is the equivalent of drop all tables. - * @param options Options supplied - * @param options .logging A function that logs sql queries, or false for no logging - */ - dropAllSchemas(options: { - logging?: boolean | Function, - }): Promise; - - /** - * Sync all defined models to the DB. - * @param options Sync Options - */ - sync(options?: SyncOptions): Promise; - - /** - * Truncate all tables defined through the sequelize models. This is done - * by calling Model.truncate() on each model. - * @param The options passed to Model.destroy in addition to truncate - * @param .transaction] - * @param .logging] A function that logs sql queries, or false for no logging - */ - truncate(options?: DestroyOptions): Promise; - - /** - * Drop all tables defined through this sequelize instance. This is done by calling Model.drop on each model - * @see {Model#drop} for options - * @param options The options passed to each call to Model.drop - */ - drop(options?: DropOptions): Promise; - - /** - * Test the connection by trying to authenticate - * @param options Query Options for authentication - */ - authenticate(options?: QueryOptions): Promise; - validate(options?: QueryOptions): Promise; - - /** - * Start a transaction. When using transactions, you should pass the transaction in the options argument - * in order for the query to happen under that transaction - - ```js - sequelize.transaction().then(function (t) { - return User.find(..., { transaction: t}).then(function (user) { - return user.updateAttributes(..., { transaction: t}); - }) - .then(t.commit.bind(t)) - .catch(t.rollback.bind(t)); - }) - ``` - - A syntax for automatically committing or rolling back based on the promise chain resolution is also - supported: - - ```js - sequelize.transaction(function (t) { // Note that we use a callback rather than a promise.then() - return User.find(..., { transaction: t}).then(function (user) { - return user.updateAttributes(..., { transaction: t}); - }); - }).then(function () { - // Commited - }).catch(function (err) { - // Rolled back - console.error(err); - }); - ``` - - If you have [CLS](https://github.com/othiym23/node-continuation-local-storage) enabled, the transaction - will automatically be passed to any query that runs witin the callback. To enable CLS, add it do your - project, create a namespace and set it on the sequelize constructor: - - ```js - var cls = require('continuation-local-storage'), - ns = cls.createNamespace('....'); - var Sequelize = require('sequelize'); - Sequelize.cls = ns; - ``` - Note, that CLS is enabled for all sequelize instances, and all instances will share the same namespace - * @param options Transaction Options - * @param autoCallback Callback for the transaction - */ - transaction>( - autoCallback: Fn, - ): Promise; - transaction>( - options: TransactionOptions, - autoCallback: Fn, - ): Promise; - transaction(options?: TransactionOptions): Promise; - - /** - * Close all connections used by this sequelize instance, and free all references so the instance can be - * garbage collected. - - Normally this is done on process exit, so you only need to call this method if you are creating multiple - instances, and want to garbage collect some of them. - */ - close(): Promise; - - /** - * Returns the database version - */ - databaseVersion(): Promise; - } - - /** - * Validator Interface - */ - declare export type Validator = { - notEmpty(str: string): boolean, - len(str: string, min: number, max: number): boolean, - isUrl(str: string): boolean, - isIPv6(str: string): boolean, - isIPv4(str: string): boolean, - notIn(str: string, values: string[]): boolean, - regex(str: string, pattern: string, modifiers: string): boolean, - notRegex(str: string, pattern: string, modifiers: string): boolean, - isDecimal(str: string): boolean, - min(str: string, val: number): boolean, - max(str: string, val: number): boolean, - not(str: string, pattern: string, modifiers: string): boolean, - contains(str: string, element: string[]): boolean, - notContains(str: string, element: string[]): boolean, - is(str: string, pattern: string, modifiers: string): boolean, - }; - - /** - * The transaction object is used to identify a running transaction. It is created by calling - * `Sequelize.transaction()`. - - To run a query under a transaction, you should pass the transaction in the options object. - */ - declare export class Transaction { - /** - * Commit the transaction - */ - commit(): Promise; - - /** - * Rollback (abort) the transaction - */ - rollback(): Promise; - - /** - * A hook that is run after a transaction is committed - */ - afterCommit(hook: (transaction: Transaction) => Promise): void; - - /** - * Isolations levels can be set per-transaction by passing `options.isolationLevel` to - * `sequelize.transaction`. Default to `REPEATABLE_READ` but you can override the default isolation level - by passing - `options.isolationLevel` in `new Sequelize`. - - The possible isolations levels to use when starting a transaction: - - ```js - { - READ_UNCOMMITTED: "READ_UNCOMMITTED", - READ_COMMITTED: "READ_COMMITTED", - REPEATABLE_READ: "REPEATABLE_READ", - SERIALIZABLE: "SERIALIZABLE" - } - ``` - - Pass in the desired level as the first argument: - - ```js - return sequelize.transaction({ - isolationLevel: Sequelize.Transaction.SERIALIZABLE - }, function (t) { - - // your transactions - - }).then(function(result) { - // transaction has been committed. Do something after the commit if required. - }).catch(function(err) { - // do something with the err. - }); - ``` - * @see ISOLATION_LEVELS - */ - static ISOLATION_LEVELS: TransactionIsolationLevels; - ISOLATION_LEVELS: TransactionIsolationLevels; - - /** - * Transaction type can be set per-transaction by passing `options.type` to - * `sequelize.transaction`. Default to `DEFERRED` but you can override the default isolation level - by passing `options.transactionType` in `new Sequelize`. - - The transaction types to use when starting a transaction: - - ```js - { - DEFERRED: "DEFERRED", - IMMEDIATE: "IMMEDIATE", - EXCLUSIVE: "EXCLUSIVE" - } - ``` - - Pass in the transaction type the first argument: - - ```js - return sequelize.transaction({ - type: Sequelize.Transaction.EXCLUSIVE - }, function (t) { - - // your transactions - - }).then(function(result) { - // transaction has been committed. Do something after the commit if required. - }).catch(function(err) { - // do something with the err. - }); - ``` - * @see Sequelize.Transaction.TYPES - */ - static TYPES: TransactionTypes; - TYPES: TransactionTypes; - - /** - * Possible options for row locking. Used in conjuction with `find` calls: - * - ```js - t1 // is a transaction - t1.LOCK.UPDATE, - t1.LOCK.SHARE, - t1.LOCK.KEY_SHARE, // Postgres 9.3+ only - t1.LOCK.NO_KEY_UPDATE // Postgres 9.3+ only - ``` - - Usage: - ```js - t1 // is a transaction - Model.findAll({ - where: ..., - transaction: t1, - lock: t1.LOCK... - }); - ``` - - Postgres also supports specific locks while eager loading by using OF: - ```js - UserModel.findAll({ - where: ..., - include: [TaskModel, ...], - transaction: t1, - lock: { - level: t1.LOCK..., - of: UserModel - } - }); - ``` - UserModel will be locked but TaskModel won't! - */ - static LOCK: TransactionLock; - LOCK: TransactionLock; - } - - declare export type TransactionIsolationLevelReadUncommitted = - 'READ_UNCOMMITTED'; - - declare export type TransactionIsolationLevelReadCommitted = 'READ_COMMITTED'; - - declare export type TransactionIsolationLevelRepeatableRead = - 'REPEATABLE_READ'; - - declare export type TransactionIsolationLevelSerializable = 'SERIALIZABLE'; - - declare export type TransactionIsolationLevel = - | TransactionIsolationLevelReadUncommitted - | TransactionIsolationLevelReadCommitted - | TransactionIsolationLevelRepeatableRead - | TransactionIsolationLevelSerializable; - - /** - * Isolations levels can be set per-transaction by passing `options.isolationLevel` to `sequelize.transaction`. - * Default to `REPEATABLE_READ` but you can override the default isolation level by passing - `options.isolationLevel` in `new Sequelize`. - */ - declare export type TransactionIsolationLevels = { - READ_UNCOMMITTED: TransactionIsolationLevelReadUncommitted, - READ_COMMITTED: TransactionIsolationLevelReadCommitted, - REPEATABLE_READ: TransactionIsolationLevelRepeatableRead, - SERIALIZABLE: TransactionIsolationLevelSerializable, - }; - - declare export type TransactionTypeDeferred = 'DEFERRED'; - - declare export type TransactionTypeImmediate = 'IMMEDIATE'; - - declare export type TransactionTypeExclusive = 'EXCLUSIVE'; - - declare export type TransactionType = - | TransactionTypeDeferred - | TransactionTypeImmediate - | TransactionTypeExclusive; - - /** - * Transaction type can be set per-transaction by passing `options.type` to `sequelize.transaction`. - * Default to `DEFERRED` but you can override the default isolation level by passing - `options.transactionType` in `new Sequelize`. - */ - declare export type TransactionTypes = { - DEFERRED: TransactionTypeDeferred, - IMMEDIATE: TransactionTypeImmediate, - EXCLUSIVE: TransactionTypeExclusive, - }; - - declare export type TransactionLockLevelUpdate = 'UPDATE'; - - declare export type TransactionLockLevelShare = 'SHARE'; - - declare export type TransactionLockLevelKeyShare = 'KEY_SHARE'; - - declare export type TransactionLockLevelNoKeyUpdate = 'NO_KEY_UPDATE'; - - declare export type TransactionLockLevel = - | TransactionLockLevelUpdate - | TransactionLockLevelShare - | TransactionLockLevelKeyShare - | TransactionLockLevelNoKeyUpdate; - - /** - * Possible options for row locking. Used in conjuction with `find` calls: - */ - declare export type TransactionLock = { - UPDATE: TransactionLockLevelUpdate, - SHARE: TransactionLockLevelShare, - KEY_SHARE: TransactionLockLevelKeyShare, - NO_KEY_UPDATE: TransactionLockLevelNoKeyUpdate, - }; - - /** - * Options provided when the transaction is created - * @see sequelize.transaction() - */ - declare export type TransactionOptions = { - autocommit?: boolean, - - /** - * See `Sequelize.Transaction.ISOLATION_LEVELS` for possible options - */ - isolationLevel?: TransactionIsolationLevel, - - /** - * See `Sequelize.Transaction.TYPES` for possible options - */ - type?: TransactionType, - - /** - * A function that gets executed while running the query to log the sql. - */ - logging?: Function, - }; - - declare type TransactionAutoCallback = (t: Transaction) => Promise | T; - - declare export interface fn { - fn: string; - args: any[]; - } - - declare export interface col { - col: string; - } - - declare export interface cast { - val: any; - type: string; - } - - declare export interface literal { - val: any; - } - - declare export interface json { - conditions?: Object; - path?: string; - value?: string | number | boolean; - } - - declare export interface where { - attribute: Object; - comparator?: string; - logic: string | Object; - } -} diff --git a/flow-typed/npm/serialize-javascript_vx.x.x.js b/flow-typed/npm/serialize-javascript_vx.x.x.js deleted file mode 100644 index d91c1ef22..000000000 --- a/flow-typed/npm/serialize-javascript_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 14a04bb8371e06dd0e2d6ffe613b54a2 -// flow-typed version: <>/serialize-javascript_v^1.5.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'serialize-javascript' - * - * 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 'serialize-javascript' { - 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 'serialize-javascript/index' { - declare module.exports: $Exports<'serialize-javascript'>; -} -declare module 'serialize-javascript/index.js' { - declare module.exports: $Exports<'serialize-javascript'>; -} diff --git a/flow-typed/npm/source-map-support_vx.x.x.js b/flow-typed/npm/source-map-support_vx.x.x.js deleted file mode 100644 index cf95a9772..000000000 --- a/flow-typed/npm/source-map-support_vx.x.x.js +++ /dev/null @@ -1,48 +0,0 @@ -// flow-typed signature: 7604de2dceb57328ca0ab616df029876 -// flow-typed version: <>/source-map-support_v^0.5.9/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'source-map-support' - * - * 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-support' { - 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-support/browser-source-map-support' { - declare module.exports: any; -} - -declare module 'source-map-support/register' { - declare module.exports: any; -} - -declare module 'source-map-support/source-map-support' { - declare module.exports: any; -} - -// Filename aliases -declare module 'source-map-support/browser-source-map-support.js' { - declare module.exports: $Exports< - 'source-map-support/browser-source-map-support', - >; -} -declare module 'source-map-support/register.js' { - declare module.exports: $Exports<'source-map-support/register'>; -} -declare module 'source-map-support/source-map-support.js' { - declare module.exports: $Exports<'source-map-support/source-map-support'>; -} diff --git a/flow-typed/npm/sqlite3_vx.x.x.js b/flow-typed/npm/sqlite3_vx.x.x.js deleted file mode 100644 index bcc10271d..000000000 --- a/flow-typed/npm/sqlite3_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: db3c61b9901d66062685bb9aa1ecbe03 -// flow-typed version: <>/sqlite3_v^4.0.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'sqlite3' - * - * 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 'sqlite3' { - 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 'sqlite3/lib/index' { - declare module.exports: any; -} - -declare module 'sqlite3/lib/sqlite3' { - declare module.exports: any; -} - -declare module 'sqlite3/lib/trace' { - declare module.exports: any; -} - -declare module 'sqlite3/sqlite3' { - declare module.exports: any; -} - -// Filename aliases -declare module 'sqlite3/lib/index.js' { - declare module.exports: $Exports<'sqlite3/lib/index'>; -} -declare module 'sqlite3/lib/sqlite3.js' { - declare module.exports: $Exports<'sqlite3/lib/sqlite3'>; -} -declare module 'sqlite3/lib/trace.js' { - declare module.exports: $Exports<'sqlite3/lib/trace'>; -} -declare module 'sqlite3/sqlite3.js' { - declare module.exports: $Exports<'sqlite3/sqlite3'>; -} diff --git a/flow-typed/npm/stylelint-config-standard_vx.x.x.js b/flow-typed/npm/stylelint-config-standard_vx.x.x.js deleted file mode 100644 index 6f6f23834..000000000 --- a/flow-typed/npm/stylelint-config-standard_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 32384270fd50523efe124579f4d26805 -// flow-typed version: <>/stylelint-config-standard_v^18.2.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'stylelint-config-standard' - * - * 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 'stylelint-config-standard' { - 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 'stylelint-config-standard/index' { - declare module.exports: $Exports<'stylelint-config-standard'>; -} -declare module 'stylelint-config-standard/index.js' { - declare module.exports: $Exports<'stylelint-config-standard'>; -} diff --git a/flow-typed/npm/stylelint-order_vx.x.x.js b/flow-typed/npm/stylelint-order_vx.x.x.js deleted file mode 100644 index f8d9544c8..000000000 --- a/flow-typed/npm/stylelint-order_vx.x.x.js +++ /dev/null @@ -1,286 +0,0 @@ -// flow-typed signature: dc2e3dc2366efaa0db2269fa213d6319 -// flow-typed version: <>/stylelint-order_v^1.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'stylelint-order' - * - * 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 'stylelint-order' { - 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 'stylelint-order/rules/checkAlphabeticalOrder' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/index' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/calcAtRulePatternPriority' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/calcRulePatternPriority' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/checkNode' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/checkOrder' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/createExpectedOrder' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/getDescription' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/getOrderData' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/index' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/order/validatePrimaryOption' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-alphabetical-order/index' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/addEmptyLineBefore' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/checkEmptyLineBefore' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/checkNode' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/checkOrder' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/createExpectedOrder' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/createFlatOrder' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/getNodeData' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/hasEmptyLineBefore' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/index' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/removeEmptyLinesBefore' { - declare module.exports: any; -} - -declare module 'stylelint-order/rules/properties-order/validatePrimaryOption' { - declare module.exports: any; -} - -declare module 'stylelint-order/utils/index' { - declare module.exports: any; -} - -declare module 'stylelint-order/utils/isAtVariable' { - declare module.exports: any; -} - -declare module 'stylelint-order/utils/isCustomProperty' { - declare module.exports: any; -} - -declare module 'stylelint-order/utils/isDollarVariable' { - declare module.exports: any; -} - -declare module 'stylelint-order/utils/isProperty' { - declare module.exports: any; -} - -declare module 'stylelint-order/utils/isRuleWithNodes' { - declare module.exports: any; -} - -declare module 'stylelint-order/utils/isStandardSyntaxProperty' { - declare module.exports: any; -} - -declare module 'stylelint-order/utils/namespace' { - declare module.exports: any; -} - -// Filename aliases -declare module 'stylelint-order/index' { - declare module.exports: $Exports<'stylelint-order'>; -} -declare module 'stylelint-order/index.js' { - declare module.exports: $Exports<'stylelint-order'>; -} -declare module 'stylelint-order/rules/checkAlphabeticalOrder.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/checkAlphabeticalOrder', - >; -} -declare module 'stylelint-order/rules/index.js' { - declare module.exports: $Exports<'stylelint-order/rules/index'>; -} -declare module 'stylelint-order/rules/order/calcAtRulePatternPriority.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/order/calcAtRulePatternPriority', - >; -} -declare module 'stylelint-order/rules/order/calcRulePatternPriority.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/order/calcRulePatternPriority', - >; -} -declare module 'stylelint-order/rules/order/checkNode.js' { - declare module.exports: $Exports<'stylelint-order/rules/order/checkNode'>; -} -declare module 'stylelint-order/rules/order/checkOrder.js' { - declare module.exports: $Exports<'stylelint-order/rules/order/checkOrder'>; -} -declare module 'stylelint-order/rules/order/createExpectedOrder.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/order/createExpectedOrder', - >; -} -declare module 'stylelint-order/rules/order/getDescription.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/order/getDescription', - >; -} -declare module 'stylelint-order/rules/order/getOrderData.js' { - declare module.exports: $Exports<'stylelint-order/rules/order/getOrderData'>; -} -declare module 'stylelint-order/rules/order/index.js' { - declare module.exports: $Exports<'stylelint-order/rules/order/index'>; -} -declare module 'stylelint-order/rules/order/validatePrimaryOption.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/order/validatePrimaryOption', - >; -} -declare module 'stylelint-order/rules/properties-alphabetical-order/index.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-alphabetical-order/index', - >; -} -declare module 'stylelint-order/rules/properties-order/addEmptyLineBefore.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/addEmptyLineBefore', - >; -} -declare module 'stylelint-order/rules/properties-order/checkEmptyLineBefore.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/checkEmptyLineBefore', - >; -} -declare module 'stylelint-order/rules/properties-order/checkNode.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/checkNode', - >; -} -declare module 'stylelint-order/rules/properties-order/checkOrder.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/checkOrder', - >; -} -declare module 'stylelint-order/rules/properties-order/createExpectedOrder.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/createExpectedOrder', - >; -} -declare module 'stylelint-order/rules/properties-order/createFlatOrder.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/createFlatOrder', - >; -} -declare module 'stylelint-order/rules/properties-order/getNodeData.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/getNodeData', - >; -} -declare module 'stylelint-order/rules/properties-order/hasEmptyLineBefore.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/hasEmptyLineBefore', - >; -} -declare module 'stylelint-order/rules/properties-order/index.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/index', - >; -} -declare module 'stylelint-order/rules/properties-order/removeEmptyLinesBefore.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/removeEmptyLinesBefore', - >; -} -declare module 'stylelint-order/rules/properties-order/validatePrimaryOption.js' { - declare module.exports: $Exports< - 'stylelint-order/rules/properties-order/validatePrimaryOption', - >; -} -declare module 'stylelint-order/utils/index.js' { - declare module.exports: $Exports<'stylelint-order/utils/index'>; -} -declare module 'stylelint-order/utils/isAtVariable.js' { - declare module.exports: $Exports<'stylelint-order/utils/isAtVariable'>; -} -declare module 'stylelint-order/utils/isCustomProperty.js' { - declare module.exports: $Exports<'stylelint-order/utils/isCustomProperty'>; -} -declare module 'stylelint-order/utils/isDollarVariable.js' { - declare module.exports: $Exports<'stylelint-order/utils/isDollarVariable'>; -} -declare module 'stylelint-order/utils/isProperty.js' { - declare module.exports: $Exports<'stylelint-order/utils/isProperty'>; -} -declare module 'stylelint-order/utils/isRuleWithNodes.js' { - declare module.exports: $Exports<'stylelint-order/utils/isRuleWithNodes'>; -} -declare module 'stylelint-order/utils/isStandardSyntaxProperty.js' { - declare module.exports: $Exports< - 'stylelint-order/utils/isStandardSyntaxProperty', - >; -} -declare module 'stylelint-order/utils/namespace.js' { - declare module.exports: $Exports<'stylelint-order/utils/namespace'>; -} diff --git a/flow-typed/npm/stylelint_vx.x.x.js b/flow-typed/npm/stylelint_vx.x.x.js deleted file mode 100644 index 2aa7536a6..000000000 --- a/flow-typed/npm/stylelint_vx.x.x.js +++ /dev/null @@ -1,2554 +0,0 @@ -// flow-typed signature: 79e5324369feaa2d1d166dba2ec534e5 -// flow-typed version: <>/stylelint_v^9.5.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'stylelint' - * - * 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 'stylelint' { - 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 'stylelint/bin/stylelint' { - declare module.exports: any; -} - -declare module 'stylelint/flow-typed/postcss' { - declare module.exports: any; -} - -declare module 'stylelint/flow-typed/stylelint' { - declare module.exports: any; -} - -declare module 'stylelint/lib/assignDisabledRanges' { - declare module.exports: any; -} - -declare module 'stylelint/lib/augmentConfig' { - declare module.exports: any; -} - -declare module 'stylelint/lib/cli' { - declare module.exports: any; -} - -declare module 'stylelint/lib/createPlugin' { - declare module.exports: any; -} - -declare module 'stylelint/lib/createStylelint' { - declare module.exports: any; -} - -declare module 'stylelint/lib/createStylelintResult' { - declare module.exports: any; -} - -declare module 'stylelint/lib/dynamicRequire' { - declare module.exports: any; -} - -declare module 'stylelint/lib/formatters/compactFormatter' { - declare module.exports: any; -} - -declare module 'stylelint/lib/formatters/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/formatters/jsonFormatter' { - declare module.exports: any; -} - -declare module 'stylelint/lib/formatters/needlessDisablesStringFormatter' { - declare module.exports: any; -} - -declare module 'stylelint/lib/formatters/stringFormatter' { - declare module.exports: any; -} - -declare module 'stylelint/lib/formatters/unixFormatter' { - declare module.exports: any; -} - -declare module 'stylelint/lib/formatters/verboseFormatter' { - declare module.exports: any; -} - -declare module 'stylelint/lib/getConfigForFile' { - declare module.exports: any; -} - -declare module 'stylelint/lib/getPostcssResult' { - declare module.exports: any; -} - -declare module 'stylelint/lib/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/isPathIgnored' { - declare module.exports: any; -} - -declare module 'stylelint/lib/lintSource' { - declare module.exports: any; -} - -declare module 'stylelint/lib/needlessDisables' { - declare module.exports: any; -} - -declare module 'stylelint/lib/normalizeRuleSettings' { - declare module.exports: any; -} - -declare module 'stylelint/lib/postcssPlugin' { - declare module.exports: any; -} - -declare module 'stylelint/lib/printConfig' { - declare module.exports: any; -} - -declare module 'stylelint/lib/reference/keywordSets' { - declare module.exports: any; -} - -declare module 'stylelint/lib/reference/namedColorData' { - declare module.exports: any; -} - -declare module 'stylelint/lib/reference/propertySets' { - declare module.exports: any; -} - -declare module 'stylelint/lib/reference/punctuationSets' { - declare module.exports: any; -} - -declare module 'stylelint/lib/reference/shorthandData' { - declare module.exports: any; -} - -declare module 'stylelint/lib/requireRule' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-empty-line-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-name-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-name-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-name-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-no-unknown/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-no-vendor-prefix/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-semicolon-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-semicolon-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/at-rule-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/atRuleNameSpaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-closing-brace-empty-line-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-closing-brace-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-closing-brace-newline-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-closing-brace-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-closing-brace-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-no-empty/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-opening-brace-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-opening-brace-newline-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-opening-brace-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/block-opening-brace-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/color-hex-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/color-hex-length/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/color-named/generateColorFuncs' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/color-named/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/color-no-hex/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/color-no-invalid-hex/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/comment-empty-line-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/comment-no-empty/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/comment-whitespace-inside/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/comment-word-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/custom-media-pattern/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/custom-property-empty-line-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/custom-property-pattern/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-bang-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-bang-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-no-duplicate-properties/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-no-redundant-longhand-properties/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-no-shorthand-property-overrides/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-semicolon-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-semicolon-newline-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-semicolon-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-semicolon-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-single-line-max-declarations/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-block-trailing-semicolon/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-colon-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-colon-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-colon-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-empty-line-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-no-important/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-property-unit-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-property-unit-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-property-value-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declaration-property-value-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declarationBangSpaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/declarationColonSpaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/findMediaOperator' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/font-family-name-quotes/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/font-family-no-duplicate-names/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/font-family-no-missing-generic-family-keyword/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/font-weight-notation/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-calc-no-unspaced-operator/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-comma-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-comma-newline-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-comma-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-comma-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-linear-gradient-no-nonstandard-direction/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-max-empty-lines/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-name-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-parentheses-newline-inside/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-parentheses-space-inside/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-url-no-scheme-relative/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-url-quotes/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-url-scheme-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-url-scheme-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/function-whitespace-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/functionCommaSpaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/indentation/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/keyframe-declaration-no-important/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/keyframes-name-pattern/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/length-zero-no-unit/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/linebreaks/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/max-empty-lines/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/max-line-length/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/max-nesting-depth/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-colon-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-colon-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-name-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-name-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-name-no-unknown/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-name-no-vendor-prefix/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-name-value-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-name-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-parentheses-space-inside/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-range-operator-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-feature-range-operator-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-query-list-comma-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-query-list-comma-newline-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-query-list-comma-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/media-query-list-comma-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/mediaFeatureColonSpaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/mediaQueryListCommaWhitespaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-descending-specificity/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-duplicate-at-import-rules/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-duplicate-selectors/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-empty-source/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-eol-whitespace/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-extra-semicolons/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-invalid-double-slash-comments/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-missing-end-of-source-newline/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/no-unknown-animations/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/number-leading-zero/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/number-max-precision/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/number-no-trailing-zeros/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/property-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/property-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/property-no-unknown/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/property-no-vendor-prefix/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/property-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/rule-empty-line-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-attribute-brackets-space-inside/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-attribute-operator-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-attribute-operator-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-attribute-operator-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-attribute-operator-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-attribute-quotes/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-class-pattern/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-combinator-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-combinator-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-combinator-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-combinator-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-descendant-combinator-no-non-space/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-id-pattern/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-list-comma-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-list-comma-newline-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-list-comma-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-list-comma-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-attribute/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-class/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-combinators/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-compound-selectors/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-empty-lines/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-id/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-pseudo-class/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-specificity/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-type/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-max-universal/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-nested-pattern/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-no-qualifying-type/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-no-vendor-prefix/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-class-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-class-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-class-no-unknown/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-class-parentheses-space-inside/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-class-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-element-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-element-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-element-colon-notation/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-element-no-unknown/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-pseudo-element-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-type-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selector-type-no-unknown/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selectorAttributeOperatorSpaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selectorCombinatorSpaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/selectorListCommaWhitespaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/shorthand-property-no-redundant-values/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/string-no-newline/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/string-quotes/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/time-min-milliseconds/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/unit-blacklist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/unit-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/unit-no-unknown/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/unit-whitelist/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/value-keyword-case/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/value-list-comma-newline-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/value-list-comma-newline-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/value-list-comma-space-after/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/value-list-comma-space-before/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/value-list-max-empty-lines/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/value-no-vendor-prefix/index' { - declare module.exports: any; -} - -declare module 'stylelint/lib/rules/valueListCommaWhitespaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/standalone' { - declare module.exports: any; -} - -declare module 'stylelint/lib/testUtils/basicChecks' { - declare module.exports: any; -} - -declare module 'stylelint/lib/testUtils/createRuleTester' { - declare module.exports: any; -} - -declare module 'stylelint/lib/testUtils/mergeTestDescriptions' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/addEmptyLineBefore' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/atRuleParamIndex' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/beforeBlockString' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/blockString' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/blurComments' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/blurFunctionArguments' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/blurInterpolation' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/checkAgainstRule' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/configurationError' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/containsString' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/declarationValueIndex' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/eachDeclarationBlock' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/eachRoot' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/FileCache' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/findAnimationName' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/findAtRuleContext' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/findFontFamily' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/findListStyleType' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/functionArgumentsSearch' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/getCacheFile' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/getFormatterOptionsText' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/getModulePath' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/getNextNonSharedLineCommentNode' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/getOsEol' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/getPreviousNonSharedLineCommentNode' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/getSchemeFromUrl' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/getUnitFromValueNode' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hasBlock' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hasEmptyBlock' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hasEmptyLine' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hash' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hasInterpolation' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hasLessInterpolation' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hasPsvInterpolation' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hasScssInterpolation' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/hasTplInterpolation' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isAfterComment' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isAfterSingleLineComment' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isAfterStandardPropertyDeclaration' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isAutoprefixable' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isBlocklessAtRuleAfterBlocklessAtRule' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isCounterIncrementCustomIdentValue' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isCounterResetCustomIdentValue' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isCustomElement' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isCustomMediaQuery' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isCustomProperty' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isCustomPropertySet' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isCustomSelector' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isFirstNested' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isFirstNodeOfRoot' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isKeyframeRule' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isKeyframeSelector' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isNumbery' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isOnlyWhitespace' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isRangeContextMediaFeature' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isSharedLineComment' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isSingleLineString' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxAtRule' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxCombinator' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxDeclaration' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxFunction' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxMediaFeature' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxMediaFeatureName' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxProperty' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxRule' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxSelector' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxTypeSelector' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxUrl' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isStandardSyntaxValue' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isValidFontSize' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isValidHex' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isVariable' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/isWhitespace' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/matchesStringOrRegExp' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/nextNonCommentNode' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/nodeContextLookup' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/optionsMatches' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/parseSelector' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/rawNodeString' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/removeEmptyLinesBefore' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/report' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/ruleMessages' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/validateObjectWithStringArrayProps' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/validateOptions' { - declare module.exports: any; -} - -declare module 'stylelint/lib/utils/whitespaceChecker' { - declare module.exports: any; -} - -declare module 'stylelint/lib/vendor/writeFileAtomic' { - declare module.exports: any; -} - -// Filename aliases -declare module 'stylelint/bin/stylelint.js' { - declare module.exports: $Exports<'stylelint/bin/stylelint'>; -} -declare module 'stylelint/flow-typed/postcss.js' { - declare module.exports: $Exports<'stylelint/flow-typed/postcss'>; -} -declare module 'stylelint/flow-typed/stylelint.js' { - declare module.exports: $Exports<'stylelint/flow-typed/stylelint'>; -} -declare module 'stylelint/lib/assignDisabledRanges.js' { - declare module.exports: $Exports<'stylelint/lib/assignDisabledRanges'>; -} -declare module 'stylelint/lib/augmentConfig.js' { - declare module.exports: $Exports<'stylelint/lib/augmentConfig'>; -} -declare module 'stylelint/lib/cli.js' { - declare module.exports: $Exports<'stylelint/lib/cli'>; -} -declare module 'stylelint/lib/createPlugin.js' { - declare module.exports: $Exports<'stylelint/lib/createPlugin'>; -} -declare module 'stylelint/lib/createStylelint.js' { - declare module.exports: $Exports<'stylelint/lib/createStylelint'>; -} -declare module 'stylelint/lib/createStylelintResult.js' { - declare module.exports: $Exports<'stylelint/lib/createStylelintResult'>; -} -declare module 'stylelint/lib/dynamicRequire.js' { - declare module.exports: $Exports<'stylelint/lib/dynamicRequire'>; -} -declare module 'stylelint/lib/formatters/compactFormatter.js' { - declare module.exports: $Exports<'stylelint/lib/formatters/compactFormatter'>; -} -declare module 'stylelint/lib/formatters/index.js' { - declare module.exports: $Exports<'stylelint/lib/formatters/index'>; -} -declare module 'stylelint/lib/formatters/jsonFormatter.js' { - declare module.exports: $Exports<'stylelint/lib/formatters/jsonFormatter'>; -} -declare module 'stylelint/lib/formatters/needlessDisablesStringFormatter.js' { - declare module.exports: $Exports< - 'stylelint/lib/formatters/needlessDisablesStringFormatter', - >; -} -declare module 'stylelint/lib/formatters/stringFormatter.js' { - declare module.exports: $Exports<'stylelint/lib/formatters/stringFormatter'>; -} -declare module 'stylelint/lib/formatters/unixFormatter.js' { - declare module.exports: $Exports<'stylelint/lib/formatters/unixFormatter'>; -} -declare module 'stylelint/lib/formatters/verboseFormatter.js' { - declare module.exports: $Exports<'stylelint/lib/formatters/verboseFormatter'>; -} -declare module 'stylelint/lib/getConfigForFile.js' { - declare module.exports: $Exports<'stylelint/lib/getConfigForFile'>; -} -declare module 'stylelint/lib/getPostcssResult.js' { - declare module.exports: $Exports<'stylelint/lib/getPostcssResult'>; -} -declare module 'stylelint/lib/index.js' { - declare module.exports: $Exports<'stylelint/lib/index'>; -} -declare module 'stylelint/lib/isPathIgnored.js' { - declare module.exports: $Exports<'stylelint/lib/isPathIgnored'>; -} -declare module 'stylelint/lib/lintSource.js' { - declare module.exports: $Exports<'stylelint/lib/lintSource'>; -} -declare module 'stylelint/lib/needlessDisables.js' { - declare module.exports: $Exports<'stylelint/lib/needlessDisables'>; -} -declare module 'stylelint/lib/normalizeRuleSettings.js' { - declare module.exports: $Exports<'stylelint/lib/normalizeRuleSettings'>; -} -declare module 'stylelint/lib/postcssPlugin.js' { - declare module.exports: $Exports<'stylelint/lib/postcssPlugin'>; -} -declare module 'stylelint/lib/printConfig.js' { - declare module.exports: $Exports<'stylelint/lib/printConfig'>; -} -declare module 'stylelint/lib/reference/keywordSets.js' { - declare module.exports: $Exports<'stylelint/lib/reference/keywordSets'>; -} -declare module 'stylelint/lib/reference/namedColorData.js' { - declare module.exports: $Exports<'stylelint/lib/reference/namedColorData'>; -} -declare module 'stylelint/lib/reference/propertySets.js' { - declare module.exports: $Exports<'stylelint/lib/reference/propertySets'>; -} -declare module 'stylelint/lib/reference/punctuationSets.js' { - declare module.exports: $Exports<'stylelint/lib/reference/punctuationSets'>; -} -declare module 'stylelint/lib/reference/shorthandData.js' { - declare module.exports: $Exports<'stylelint/lib/reference/shorthandData'>; -} -declare module 'stylelint/lib/requireRule.js' { - declare module.exports: $Exports<'stylelint/lib/requireRule'>; -} -declare module 'stylelint/lib/rules/at-rule-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-empty-line-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-empty-line-before/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-name-case/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-name-case/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-name-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-name-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-name-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-name-space-after/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-no-unknown/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-no-unknown/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-no-vendor-prefix/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-no-vendor-prefix/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-semicolon-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-semicolon-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-semicolon-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-semicolon-space-before/index', - >; -} -declare module 'stylelint/lib/rules/at-rule-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/at-rule-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/atRuleNameSpaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/atRuleNameSpaceChecker', - >; -} -declare module 'stylelint/lib/rules/block-closing-brace-empty-line-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-closing-brace-empty-line-before/index', - >; -} -declare module 'stylelint/lib/rules/block-closing-brace-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-closing-brace-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/block-closing-brace-newline-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-closing-brace-newline-before/index', - >; -} -declare module 'stylelint/lib/rules/block-closing-brace-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-closing-brace-space-after/index', - >; -} -declare module 'stylelint/lib/rules/block-closing-brace-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-closing-brace-space-before/index', - >; -} -declare module 'stylelint/lib/rules/block-no-empty/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/block-no-empty/index'>; -} -declare module 'stylelint/lib/rules/block-opening-brace-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-opening-brace-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/block-opening-brace-newline-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-opening-brace-newline-before/index', - >; -} -declare module 'stylelint/lib/rules/block-opening-brace-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-opening-brace-space-after/index', - >; -} -declare module 'stylelint/lib/rules/block-opening-brace-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/block-opening-brace-space-before/index', - >; -} -declare module 'stylelint/lib/rules/color-hex-case/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/color-hex-case/index'>; -} -declare module 'stylelint/lib/rules/color-hex-length/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/color-hex-length/index', - >; -} -declare module 'stylelint/lib/rules/color-named/generateColorFuncs.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/color-named/generateColorFuncs', - >; -} -declare module 'stylelint/lib/rules/color-named/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/color-named/index'>; -} -declare module 'stylelint/lib/rules/color-no-hex/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/color-no-hex/index'>; -} -declare module 'stylelint/lib/rules/color-no-invalid-hex/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/color-no-invalid-hex/index', - >; -} -declare module 'stylelint/lib/rules/comment-empty-line-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/comment-empty-line-before/index', - >; -} -declare module 'stylelint/lib/rules/comment-no-empty/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/comment-no-empty/index', - >; -} -declare module 'stylelint/lib/rules/comment-whitespace-inside/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/comment-whitespace-inside/index', - >; -} -declare module 'stylelint/lib/rules/comment-word-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/comment-word-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/custom-media-pattern/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/custom-media-pattern/index', - >; -} -declare module 'stylelint/lib/rules/custom-property-empty-line-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/custom-property-empty-line-before/index', - >; -} -declare module 'stylelint/lib/rules/custom-property-pattern/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/custom-property-pattern/index', - >; -} -declare module 'stylelint/lib/rules/declaration-bang-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-bang-space-after/index', - >; -} -declare module 'stylelint/lib/rules/declaration-bang-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-bang-space-before/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-no-duplicate-properties/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-no-duplicate-properties/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-no-redundant-longhand-properties/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-no-redundant-longhand-properties/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-no-shorthand-property-overrides/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-no-shorthand-property-overrides/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-semicolon-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-semicolon-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-semicolon-newline-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-semicolon-newline-before/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-semicolon-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-semicolon-space-after/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-semicolon-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-semicolon-space-before/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-single-line-max-declarations/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-single-line-max-declarations/index', - >; -} -declare module 'stylelint/lib/rules/declaration-block-trailing-semicolon/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-block-trailing-semicolon/index', - >; -} -declare module 'stylelint/lib/rules/declaration-colon-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-colon-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/declaration-colon-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-colon-space-after/index', - >; -} -declare module 'stylelint/lib/rules/declaration-colon-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-colon-space-before/index', - >; -} -declare module 'stylelint/lib/rules/declaration-empty-line-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-empty-line-before/index', - >; -} -declare module 'stylelint/lib/rules/declaration-no-important/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-no-important/index', - >; -} -declare module 'stylelint/lib/rules/declaration-property-unit-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-property-unit-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/declaration-property-unit-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-property-unit-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/declaration-property-value-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-property-value-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/declaration-property-value-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declaration-property-value-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/declarationBangSpaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declarationBangSpaceChecker', - >; -} -declare module 'stylelint/lib/rules/declarationColonSpaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/declarationColonSpaceChecker', - >; -} -declare module 'stylelint/lib/rules/findMediaOperator.js' { - declare module.exports: $Exports<'stylelint/lib/rules/findMediaOperator'>; -} -declare module 'stylelint/lib/rules/font-family-name-quotes/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/font-family-name-quotes/index', - >; -} -declare module 'stylelint/lib/rules/font-family-no-duplicate-names/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/font-family-no-duplicate-names/index', - >; -} -declare module 'stylelint/lib/rules/font-family-no-missing-generic-family-keyword/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/font-family-no-missing-generic-family-keyword/index', - >; -} -declare module 'stylelint/lib/rules/font-weight-notation/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/font-weight-notation/index', - >; -} -declare module 'stylelint/lib/rules/function-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/function-calc-no-unspaced-operator/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-calc-no-unspaced-operator/index', - >; -} -declare module 'stylelint/lib/rules/function-comma-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-comma-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/function-comma-newline-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-comma-newline-before/index', - >; -} -declare module 'stylelint/lib/rules/function-comma-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-comma-space-after/index', - >; -} -declare module 'stylelint/lib/rules/function-comma-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-comma-space-before/index', - >; -} -declare module 'stylelint/lib/rules/function-linear-gradient-no-nonstandard-direction/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-linear-gradient-no-nonstandard-direction/index', - >; -} -declare module 'stylelint/lib/rules/function-max-empty-lines/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-max-empty-lines/index', - >; -} -declare module 'stylelint/lib/rules/function-name-case/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-name-case/index', - >; -} -declare module 'stylelint/lib/rules/function-parentheses-newline-inside/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-parentheses-newline-inside/index', - >; -} -declare module 'stylelint/lib/rules/function-parentheses-space-inside/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-parentheses-space-inside/index', - >; -} -declare module 'stylelint/lib/rules/function-url-no-scheme-relative/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-url-no-scheme-relative/index', - >; -} -declare module 'stylelint/lib/rules/function-url-quotes/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-url-quotes/index', - >; -} -declare module 'stylelint/lib/rules/function-url-scheme-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-url-scheme-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/function-url-scheme-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-url-scheme-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/function-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/function-whitespace-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/function-whitespace-after/index', - >; -} -declare module 'stylelint/lib/rules/functionCommaSpaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/functionCommaSpaceChecker', - >; -} -declare module 'stylelint/lib/rules/indentation/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/indentation/index'>; -} -declare module 'stylelint/lib/rules/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/index'>; -} -declare module 'stylelint/lib/rules/keyframe-declaration-no-important/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/keyframe-declaration-no-important/index', - >; -} -declare module 'stylelint/lib/rules/keyframes-name-pattern/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/keyframes-name-pattern/index', - >; -} -declare module 'stylelint/lib/rules/length-zero-no-unit/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/length-zero-no-unit/index', - >; -} -declare module 'stylelint/lib/rules/linebreaks/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/linebreaks/index'>; -} -declare module 'stylelint/lib/rules/max-empty-lines/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/max-empty-lines/index'>; -} -declare module 'stylelint/lib/rules/max-line-length/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/max-line-length/index'>; -} -declare module 'stylelint/lib/rules/max-nesting-depth/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/max-nesting-depth/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-colon-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-colon-space-after/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-colon-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-colon-space-before/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-name-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-name-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-name-case/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-name-case/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-name-no-unknown/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-name-no-unknown/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-name-no-vendor-prefix/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-name-no-vendor-prefix/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-name-value-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-name-value-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-name-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-name-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-parentheses-space-inside/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-parentheses-space-inside/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-range-operator-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-range-operator-space-after/index', - >; -} -declare module 'stylelint/lib/rules/media-feature-range-operator-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-feature-range-operator-space-before/index', - >; -} -declare module 'stylelint/lib/rules/media-query-list-comma-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-query-list-comma-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/media-query-list-comma-newline-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-query-list-comma-newline-before/index', - >; -} -declare module 'stylelint/lib/rules/media-query-list-comma-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-query-list-comma-space-after/index', - >; -} -declare module 'stylelint/lib/rules/media-query-list-comma-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/media-query-list-comma-space-before/index', - >; -} -declare module 'stylelint/lib/rules/mediaFeatureColonSpaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/mediaFeatureColonSpaceChecker', - >; -} -declare module 'stylelint/lib/rules/mediaQueryListCommaWhitespaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/mediaQueryListCommaWhitespaceChecker', - >; -} -declare module 'stylelint/lib/rules/no-descending-specificity/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/no-descending-specificity/index', - >; -} -declare module 'stylelint/lib/rules/no-duplicate-at-import-rules/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/no-duplicate-at-import-rules/index', - >; -} -declare module 'stylelint/lib/rules/no-duplicate-selectors/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/no-duplicate-selectors/index', - >; -} -declare module 'stylelint/lib/rules/no-empty-source/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/no-empty-source/index'>; -} -declare module 'stylelint/lib/rules/no-eol-whitespace/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/no-eol-whitespace/index', - >; -} -declare module 'stylelint/lib/rules/no-extra-semicolons/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/no-extra-semicolons/index', - >; -} -declare module 'stylelint/lib/rules/no-invalid-double-slash-comments/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/no-invalid-double-slash-comments/index', - >; -} -declare module 'stylelint/lib/rules/no-missing-end-of-source-newline/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/no-missing-end-of-source-newline/index', - >; -} -declare module 'stylelint/lib/rules/no-unknown-animations/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/no-unknown-animations/index', - >; -} -declare module 'stylelint/lib/rules/number-leading-zero/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/number-leading-zero/index', - >; -} -declare module 'stylelint/lib/rules/number-max-precision/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/number-max-precision/index', - >; -} -declare module 'stylelint/lib/rules/number-no-trailing-zeros/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/number-no-trailing-zeros/index', - >; -} -declare module 'stylelint/lib/rules/property-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/property-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/property-case/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/property-case/index'>; -} -declare module 'stylelint/lib/rules/property-no-unknown/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/property-no-unknown/index', - >; -} -declare module 'stylelint/lib/rules/property-no-vendor-prefix/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/property-no-vendor-prefix/index', - >; -} -declare module 'stylelint/lib/rules/property-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/property-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/rule-empty-line-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/rule-empty-line-before/index', - >; -} -declare module 'stylelint/lib/rules/selector-attribute-brackets-space-inside/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-attribute-brackets-space-inside/index', - >; -} -declare module 'stylelint/lib/rules/selector-attribute-operator-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-attribute-operator-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/selector-attribute-operator-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-attribute-operator-space-after/index', - >; -} -declare module 'stylelint/lib/rules/selector-attribute-operator-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-attribute-operator-space-before/index', - >; -} -declare module 'stylelint/lib/rules/selector-attribute-operator-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-attribute-operator-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/selector-attribute-quotes/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-attribute-quotes/index', - >; -} -declare module 'stylelint/lib/rules/selector-class-pattern/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-class-pattern/index', - >; -} -declare module 'stylelint/lib/rules/selector-combinator-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-combinator-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/selector-combinator-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-combinator-space-after/index', - >; -} -declare module 'stylelint/lib/rules/selector-combinator-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-combinator-space-before/index', - >; -} -declare module 'stylelint/lib/rules/selector-combinator-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-combinator-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/selector-descendant-combinator-no-non-space/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-descendant-combinator-no-non-space/index', - >; -} -declare module 'stylelint/lib/rules/selector-id-pattern/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-id-pattern/index', - >; -} -declare module 'stylelint/lib/rules/selector-list-comma-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-list-comma-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/selector-list-comma-newline-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-list-comma-newline-before/index', - >; -} -declare module 'stylelint/lib/rules/selector-list-comma-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-list-comma-space-after/index', - >; -} -declare module 'stylelint/lib/rules/selector-list-comma-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-list-comma-space-before/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-attribute/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-attribute/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-class/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-class/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-combinators/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-combinators/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-compound-selectors/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-compound-selectors/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-empty-lines/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-empty-lines/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-id/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/selector-max-id/index'>; -} -declare module 'stylelint/lib/rules/selector-max-pseudo-class/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-pseudo-class/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-specificity/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-specificity/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-type/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-type/index', - >; -} -declare module 'stylelint/lib/rules/selector-max-universal/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-max-universal/index', - >; -} -declare module 'stylelint/lib/rules/selector-nested-pattern/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-nested-pattern/index', - >; -} -declare module 'stylelint/lib/rules/selector-no-qualifying-type/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-no-qualifying-type/index', - >; -} -declare module 'stylelint/lib/rules/selector-no-vendor-prefix/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-no-vendor-prefix/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-class-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-class-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-class-case/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-class-case/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-class-no-unknown/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-class-no-unknown/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-class-parentheses-space-inside/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-class-parentheses-space-inside/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-class-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-class-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-element-blacklist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-element-blacklist/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-element-case/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-element-case/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-element-colon-notation/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-element-colon-notation/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-element-no-unknown/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-element-no-unknown/index', - >; -} -declare module 'stylelint/lib/rules/selector-pseudo-element-whitelist/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-pseudo-element-whitelist/index', - >; -} -declare module 'stylelint/lib/rules/selector-type-case/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-type-case/index', - >; -} -declare module 'stylelint/lib/rules/selector-type-no-unknown/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selector-type-no-unknown/index', - >; -} -declare module 'stylelint/lib/rules/selectorAttributeOperatorSpaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selectorAttributeOperatorSpaceChecker', - >; -} -declare module 'stylelint/lib/rules/selectorCombinatorSpaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selectorCombinatorSpaceChecker', - >; -} -declare module 'stylelint/lib/rules/selectorListCommaWhitespaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/selectorListCommaWhitespaceChecker', - >; -} -declare module 'stylelint/lib/rules/shorthand-property-no-redundant-values/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/shorthand-property-no-redundant-values/index', - >; -} -declare module 'stylelint/lib/rules/string-no-newline/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/string-no-newline/index', - >; -} -declare module 'stylelint/lib/rules/string-quotes/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/string-quotes/index'>; -} -declare module 'stylelint/lib/rules/time-min-milliseconds/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/time-min-milliseconds/index', - >; -} -declare module 'stylelint/lib/rules/unit-blacklist/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/unit-blacklist/index'>; -} -declare module 'stylelint/lib/rules/unit-case/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/unit-case/index'>; -} -declare module 'stylelint/lib/rules/unit-no-unknown/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/unit-no-unknown/index'>; -} -declare module 'stylelint/lib/rules/unit-whitelist/index.js' { - declare module.exports: $Exports<'stylelint/lib/rules/unit-whitelist/index'>; -} -declare module 'stylelint/lib/rules/value-keyword-case/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/value-keyword-case/index', - >; -} -declare module 'stylelint/lib/rules/value-list-comma-newline-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/value-list-comma-newline-after/index', - >; -} -declare module 'stylelint/lib/rules/value-list-comma-newline-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/value-list-comma-newline-before/index', - >; -} -declare module 'stylelint/lib/rules/value-list-comma-space-after/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/value-list-comma-space-after/index', - >; -} -declare module 'stylelint/lib/rules/value-list-comma-space-before/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/value-list-comma-space-before/index', - >; -} -declare module 'stylelint/lib/rules/value-list-max-empty-lines/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/value-list-max-empty-lines/index', - >; -} -declare module 'stylelint/lib/rules/value-no-vendor-prefix/index.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/value-no-vendor-prefix/index', - >; -} -declare module 'stylelint/lib/rules/valueListCommaWhitespaceChecker.js' { - declare module.exports: $Exports< - 'stylelint/lib/rules/valueListCommaWhitespaceChecker', - >; -} -declare module 'stylelint/lib/standalone.js' { - declare module.exports: $Exports<'stylelint/lib/standalone'>; -} -declare module 'stylelint/lib/testUtils/basicChecks.js' { - declare module.exports: $Exports<'stylelint/lib/testUtils/basicChecks'>; -} -declare module 'stylelint/lib/testUtils/createRuleTester.js' { - declare module.exports: $Exports<'stylelint/lib/testUtils/createRuleTester'>; -} -declare module 'stylelint/lib/testUtils/mergeTestDescriptions.js' { - declare module.exports: $Exports< - 'stylelint/lib/testUtils/mergeTestDescriptions', - >; -} -declare module 'stylelint/lib/utils/addEmptyLineBefore.js' { - declare module.exports: $Exports<'stylelint/lib/utils/addEmptyLineBefore'>; -} -declare module 'stylelint/lib/utils/atRuleParamIndex.js' { - declare module.exports: $Exports<'stylelint/lib/utils/atRuleParamIndex'>; -} -declare module 'stylelint/lib/utils/beforeBlockString.js' { - declare module.exports: $Exports<'stylelint/lib/utils/beforeBlockString'>; -} -declare module 'stylelint/lib/utils/blockString.js' { - declare module.exports: $Exports<'stylelint/lib/utils/blockString'>; -} -declare module 'stylelint/lib/utils/blurComments.js' { - declare module.exports: $Exports<'stylelint/lib/utils/blurComments'>; -} -declare module 'stylelint/lib/utils/blurFunctionArguments.js' { - declare module.exports: $Exports<'stylelint/lib/utils/blurFunctionArguments'>; -} -declare module 'stylelint/lib/utils/blurInterpolation.js' { - declare module.exports: $Exports<'stylelint/lib/utils/blurInterpolation'>; -} -declare module 'stylelint/lib/utils/checkAgainstRule.js' { - declare module.exports: $Exports<'stylelint/lib/utils/checkAgainstRule'>; -} -declare module 'stylelint/lib/utils/configurationError.js' { - declare module.exports: $Exports<'stylelint/lib/utils/configurationError'>; -} -declare module 'stylelint/lib/utils/containsString.js' { - declare module.exports: $Exports<'stylelint/lib/utils/containsString'>; -} -declare module 'stylelint/lib/utils/declarationValueIndex.js' { - declare module.exports: $Exports<'stylelint/lib/utils/declarationValueIndex'>; -} -declare module 'stylelint/lib/utils/eachDeclarationBlock.js' { - declare module.exports: $Exports<'stylelint/lib/utils/eachDeclarationBlock'>; -} -declare module 'stylelint/lib/utils/eachRoot.js' { - declare module.exports: $Exports<'stylelint/lib/utils/eachRoot'>; -} -declare module 'stylelint/lib/utils/FileCache.js' { - declare module.exports: $Exports<'stylelint/lib/utils/FileCache'>; -} -declare module 'stylelint/lib/utils/findAnimationName.js' { - declare module.exports: $Exports<'stylelint/lib/utils/findAnimationName'>; -} -declare module 'stylelint/lib/utils/findAtRuleContext.js' { - declare module.exports: $Exports<'stylelint/lib/utils/findAtRuleContext'>; -} -declare module 'stylelint/lib/utils/findFontFamily.js' { - declare module.exports: $Exports<'stylelint/lib/utils/findFontFamily'>; -} -declare module 'stylelint/lib/utils/findListStyleType.js' { - declare module.exports: $Exports<'stylelint/lib/utils/findListStyleType'>; -} -declare module 'stylelint/lib/utils/functionArgumentsSearch.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/functionArgumentsSearch', - >; -} -declare module 'stylelint/lib/utils/getCacheFile.js' { - declare module.exports: $Exports<'stylelint/lib/utils/getCacheFile'>; -} -declare module 'stylelint/lib/utils/getFormatterOptionsText.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/getFormatterOptionsText', - >; -} -declare module 'stylelint/lib/utils/getModulePath.js' { - declare module.exports: $Exports<'stylelint/lib/utils/getModulePath'>; -} -declare module 'stylelint/lib/utils/getNextNonSharedLineCommentNode.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/getNextNonSharedLineCommentNode', - >; -} -declare module 'stylelint/lib/utils/getOsEol.js' { - declare module.exports: $Exports<'stylelint/lib/utils/getOsEol'>; -} -declare module 'stylelint/lib/utils/getPreviousNonSharedLineCommentNode.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/getPreviousNonSharedLineCommentNode', - >; -} -declare module 'stylelint/lib/utils/getSchemeFromUrl.js' { - declare module.exports: $Exports<'stylelint/lib/utils/getSchemeFromUrl'>; -} -declare module 'stylelint/lib/utils/getUnitFromValueNode.js' { - declare module.exports: $Exports<'stylelint/lib/utils/getUnitFromValueNode'>; -} -declare module 'stylelint/lib/utils/hasBlock.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hasBlock'>; -} -declare module 'stylelint/lib/utils/hasEmptyBlock.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hasEmptyBlock'>; -} -declare module 'stylelint/lib/utils/hasEmptyLine.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hasEmptyLine'>; -} -declare module 'stylelint/lib/utils/hash.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hash'>; -} -declare module 'stylelint/lib/utils/hasInterpolation.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hasInterpolation'>; -} -declare module 'stylelint/lib/utils/hasLessInterpolation.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hasLessInterpolation'>; -} -declare module 'stylelint/lib/utils/hasPsvInterpolation.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hasPsvInterpolation'>; -} -declare module 'stylelint/lib/utils/hasScssInterpolation.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hasScssInterpolation'>; -} -declare module 'stylelint/lib/utils/hasTplInterpolation.js' { - declare module.exports: $Exports<'stylelint/lib/utils/hasTplInterpolation'>; -} -declare module 'stylelint/lib/utils/isAfterComment.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isAfterComment'>; -} -declare module 'stylelint/lib/utils/isAfterSingleLineComment.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isAfterSingleLineComment', - >; -} -declare module 'stylelint/lib/utils/isAfterStandardPropertyDeclaration.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isAfterStandardPropertyDeclaration', - >; -} -declare module 'stylelint/lib/utils/isAutoprefixable.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isAutoprefixable'>; -} -declare module 'stylelint/lib/utils/isBlocklessAtRuleAfterBlocklessAtRule.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isBlocklessAtRuleAfterBlocklessAtRule', - >; -} -declare module 'stylelint/lib/utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule', - >; -} -declare module 'stylelint/lib/utils/isCounterIncrementCustomIdentValue.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isCounterIncrementCustomIdentValue', - >; -} -declare module 'stylelint/lib/utils/isCounterResetCustomIdentValue.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isCounterResetCustomIdentValue', - >; -} -declare module 'stylelint/lib/utils/isCustomElement.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isCustomElement'>; -} -declare module 'stylelint/lib/utils/isCustomMediaQuery.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isCustomMediaQuery'>; -} -declare module 'stylelint/lib/utils/isCustomProperty.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isCustomProperty'>; -} -declare module 'stylelint/lib/utils/isCustomPropertySet.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isCustomPropertySet'>; -} -declare module 'stylelint/lib/utils/isCustomSelector.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isCustomSelector'>; -} -declare module 'stylelint/lib/utils/isFirstNested.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isFirstNested'>; -} -declare module 'stylelint/lib/utils/isFirstNodeOfRoot.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isFirstNodeOfRoot'>; -} -declare module 'stylelint/lib/utils/isKeyframeRule.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isKeyframeRule'>; -} -declare module 'stylelint/lib/utils/isKeyframeSelector.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isKeyframeSelector'>; -} -declare module 'stylelint/lib/utils/isNumbery.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isNumbery'>; -} -declare module 'stylelint/lib/utils/isOnlyWhitespace.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isOnlyWhitespace'>; -} -declare module 'stylelint/lib/utils/isRangeContextMediaFeature.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isRangeContextMediaFeature', - >; -} -declare module 'stylelint/lib/utils/isSharedLineComment.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isSharedLineComment'>; -} -declare module 'stylelint/lib/utils/isSingleLineString.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isSingleLineString'>; -} -declare module 'stylelint/lib/utils/isStandardSyntaxAtRule.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxAtRule', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxCombinator.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxCombinator', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxDeclaration.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxDeclaration', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxFunction.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxFunction', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxMediaFeature.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxMediaFeature', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxMediaFeatureName.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxMediaFeatureName', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxProperty.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxProperty', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxRule.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isStandardSyntaxRule'>; -} -declare module 'stylelint/lib/utils/isStandardSyntaxSelector.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxSelector', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxTypeSelector.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/isStandardSyntaxTypeSelector', - >; -} -declare module 'stylelint/lib/utils/isStandardSyntaxUrl.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isStandardSyntaxUrl'>; -} -declare module 'stylelint/lib/utils/isStandardSyntaxValue.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isStandardSyntaxValue'>; -} -declare module 'stylelint/lib/utils/isValidFontSize.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isValidFontSize'>; -} -declare module 'stylelint/lib/utils/isValidHex.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isValidHex'>; -} -declare module 'stylelint/lib/utils/isVariable.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isVariable'>; -} -declare module 'stylelint/lib/utils/isWhitespace.js' { - declare module.exports: $Exports<'stylelint/lib/utils/isWhitespace'>; -} -declare module 'stylelint/lib/utils/matchesStringOrRegExp.js' { - declare module.exports: $Exports<'stylelint/lib/utils/matchesStringOrRegExp'>; -} -declare module 'stylelint/lib/utils/nextNonCommentNode.js' { - declare module.exports: $Exports<'stylelint/lib/utils/nextNonCommentNode'>; -} -declare module 'stylelint/lib/utils/nodeContextLookup.js' { - declare module.exports: $Exports<'stylelint/lib/utils/nodeContextLookup'>; -} -declare module 'stylelint/lib/utils/optionsMatches.js' { - declare module.exports: $Exports<'stylelint/lib/utils/optionsMatches'>; -} -declare module 'stylelint/lib/utils/parseSelector.js' { - declare module.exports: $Exports<'stylelint/lib/utils/parseSelector'>; -} -declare module 'stylelint/lib/utils/rawNodeString.js' { - declare module.exports: $Exports<'stylelint/lib/utils/rawNodeString'>; -} -declare module 'stylelint/lib/utils/removeEmptyLinesBefore.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/removeEmptyLinesBefore', - >; -} -declare module 'stylelint/lib/utils/report.js' { - declare module.exports: $Exports<'stylelint/lib/utils/report'>; -} -declare module 'stylelint/lib/utils/ruleMessages.js' { - declare module.exports: $Exports<'stylelint/lib/utils/ruleMessages'>; -} -declare module 'stylelint/lib/utils/validateObjectWithStringArrayProps.js' { - declare module.exports: $Exports< - 'stylelint/lib/utils/validateObjectWithStringArrayProps', - >; -} -declare module 'stylelint/lib/utils/validateOptions.js' { - declare module.exports: $Exports<'stylelint/lib/utils/validateOptions'>; -} -declare module 'stylelint/lib/utils/whitespaceChecker.js' { - declare module.exports: $Exports<'stylelint/lib/utils/whitespaceChecker'>; -} -declare module 'stylelint/lib/vendor/writeFileAtomic.js' { - declare module.exports: $Exports<'stylelint/lib/vendor/writeFileAtomic'>; -} diff --git a/flow-typed/npm/svg-url-loader_vx.x.x.js b/flow-typed/npm/svg-url-loader_vx.x.x.js deleted file mode 100644 index 674169c5a..000000000 --- a/flow-typed/npm/svg-url-loader_vx.x.x.js +++ /dev/null @@ -1,102 +0,0 @@ -// flow-typed signature: f885fa6499243690443456ac169497ec -// flow-typed version: <>/svg-url-loader_v^2.3.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'svg-url-loader' - * - * 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 'svg-url-loader' { - 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 'svg-url-loader/test/input/4047B-encoded-styled' { - declare module.exports: any; -} - -declare module 'svg-url-loader/test/input/4099B-encoded-styled' { - declare module.exports: any; -} - -declare module 'svg-url-loader/test/input/4104B-encoded-unstyled' { - declare module.exports: any; -} - -declare module 'svg-url-loader/test/input/css' { - declare module.exports: any; -} - -declare module 'svg-url-loader/test/input/icon-with-declaration' { - declare module.exports: any; -} - -declare module 'svg-url-loader/test/input/icon' { - declare module.exports: any; -} - -declare module 'svg-url-loader/test/input/less' { - declare module.exports: any; -} - -declare module 'svg-url-loader/test/input/scss' { - declare module.exports: any; -} - -declare module 'svg-url-loader/test/loader.spec' { - declare module.exports: any; -} - -// Filename aliases -declare module 'svg-url-loader/index' { - declare module.exports: $Exports<'svg-url-loader'>; -} -declare module 'svg-url-loader/index.js' { - declare module.exports: $Exports<'svg-url-loader'>; -} -declare module 'svg-url-loader/test/input/4047B-encoded-styled.js' { - declare module.exports: $Exports< - 'svg-url-loader/test/input/4047B-encoded-styled', - >; -} -declare module 'svg-url-loader/test/input/4099B-encoded-styled.js' { - declare module.exports: $Exports< - 'svg-url-loader/test/input/4099B-encoded-styled', - >; -} -declare module 'svg-url-loader/test/input/4104B-encoded-unstyled.js' { - declare module.exports: $Exports< - 'svg-url-loader/test/input/4104B-encoded-unstyled', - >; -} -declare module 'svg-url-loader/test/input/css.js' { - declare module.exports: $Exports<'svg-url-loader/test/input/css'>; -} -declare module 'svg-url-loader/test/input/icon-with-declaration.js' { - declare module.exports: $Exports< - 'svg-url-loader/test/input/icon-with-declaration', - >; -} -declare module 'svg-url-loader/test/input/icon.js' { - declare module.exports: $Exports<'svg-url-loader/test/input/icon'>; -} -declare module 'svg-url-loader/test/input/less.js' { - declare module.exports: $Exports<'svg-url-loader/test/input/less'>; -} -declare module 'svg-url-loader/test/input/scss.js' { - declare module.exports: $Exports<'svg-url-loader/test/input/scss'>; -} -declare module 'svg-url-loader/test/loader.spec.js' { - declare module.exports: $Exports<'svg-url-loader/test/loader.spec'>; -} diff --git a/flow-typed/npm/universal-router_vx.x.x.js b/flow-typed/npm/universal-router_vx.x.x.js deleted file mode 100644 index a4f432923..000000000 --- a/flow-typed/npm/universal-router_vx.x.x.js +++ /dev/null @@ -1,119 +0,0 @@ -// flow-typed signature: 5bf1d5da362f0115fd1c19e6efc4514f -// flow-typed version: <>/universal-router_v^6.0.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'universal-router' - * - * 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 'universal-router' { - 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 'universal-router/generateUrls/index' { - declare module.exports: any; -} - -declare module 'universal-router/generateUrls/module' { - declare module.exports: any; -} - -declare module 'universal-router/module' { - declare module.exports: any; -} - -declare module 'universal-router/src/generateUrls' { - declare module.exports: any; -} - -declare module 'universal-router/src/matchPath' { - declare module.exports: any; -} - -declare module 'universal-router/src/matchRoute' { - declare module.exports: any; -} - -declare module 'universal-router/src/resolveRoute' { - declare module.exports: any; -} - -declare module 'universal-router/src/UniversalRouter' { - declare module.exports: any; -} - -declare module 'universal-router/universal-router-generate-urls' { - declare module.exports: any; -} - -declare module 'universal-router/universal-router-generate-urls.min' { - declare module.exports: any; -} - -declare module 'universal-router/universal-router' { - declare module.exports: any; -} - -declare module 'universal-router/universal-router.min' { - declare module.exports: any; -} - -// Filename aliases -declare module 'universal-router/generateUrls/index.js' { - declare module.exports: $Exports<'universal-router/generateUrls/index'>; -} -declare module 'universal-router/generateUrls/module.js' { - declare module.exports: $Exports<'universal-router/generateUrls/module'>; -} -declare module 'universal-router/index' { - declare module.exports: $Exports<'universal-router'>; -} -declare module 'universal-router/index.js' { - declare module.exports: $Exports<'universal-router'>; -} -declare module 'universal-router/module.js' { - declare module.exports: $Exports<'universal-router/module'>; -} -declare module 'universal-router/src/generateUrls.js' { - declare module.exports: $Exports<'universal-router/src/generateUrls'>; -} -declare module 'universal-router/src/matchPath.js' { - declare module.exports: $Exports<'universal-router/src/matchPath'>; -} -declare module 'universal-router/src/matchRoute.js' { - declare module.exports: $Exports<'universal-router/src/matchRoute'>; -} -declare module 'universal-router/src/resolveRoute.js' { - declare module.exports: $Exports<'universal-router/src/resolveRoute'>; -} -declare module 'universal-router/src/UniversalRouter.js' { - declare module.exports: $Exports<'universal-router/src/UniversalRouter'>; -} -declare module 'universal-router/universal-router-generate-urls.js' { - declare module.exports: $Exports< - 'universal-router/universal-router-generate-urls', - >; -} -declare module 'universal-router/universal-router-generate-urls.min.js' { - declare module.exports: $Exports< - 'universal-router/universal-router-generate-urls.min', - >; -} -declare module 'universal-router/universal-router.js' { - declare module.exports: $Exports<'universal-router/universal-router'>; -} -declare module 'universal-router/universal-router.min.js' { - declare module.exports: $Exports<'universal-router/universal-router.min'>; -} diff --git a/flow-typed/npm/url-loader_vx.x.x.js b/flow-typed/npm/url-loader_vx.x.x.js deleted file mode 100644 index 59e265810..000000000 --- a/flow-typed/npm/url-loader_vx.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: 2b6e753e90021dd97dad1559de658125 -// flow-typed version: <>/url-loader_v^1.1.1/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'url-loader' - * - * 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 'url-loader' { - 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 'url-loader/dist/cjs' { - declare module.exports: any; -} - -declare module 'url-loader/dist/index' { - declare module.exports: any; -} - -declare module 'url-loader/dist/utils/normalizeFallback' { - declare module.exports: any; -} - -// Filename aliases -declare module 'url-loader/dist/cjs.js' { - declare module.exports: $Exports<'url-loader/dist/cjs'>; -} -declare module 'url-loader/dist/index.js' { - declare module.exports: $Exports<'url-loader/dist/index'>; -} -declare module 'url-loader/dist/utils/normalizeFallback.js' { - declare module.exports: $Exports<'url-loader/dist/utils/normalizeFallback'>; -} diff --git a/flow-typed/npm/webpack-assets-manifest_vx.x.x.js b/flow-typed/npm/webpack-assets-manifest_vx.x.x.js deleted file mode 100644 index 83b11ac48..000000000 --- a/flow-typed/npm/webpack-assets-manifest_vx.x.x.js +++ /dev/null @@ -1,41 +0,0 @@ -// flow-typed signature: 280078e0ef7482efc89cd964ad4cbe45 -// flow-typed version: <>/webpack-assets-manifest_v^3.0.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'webpack-assets-manifest' - * - * 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 'webpack-assets-manifest' { - 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 'webpack-assets-manifest/src/helpers' { - declare module.exports: any; -} - -declare module 'webpack-assets-manifest/src/WebpackAssetsManifest' { - declare module.exports: any; -} - -// Filename aliases -declare module 'webpack-assets-manifest/src/helpers.js' { - declare module.exports: $Exports<'webpack-assets-manifest/src/helpers'>; -} -declare module 'webpack-assets-manifest/src/WebpackAssetsManifest.js' { - declare module.exports: $Exports< - 'webpack-assets-manifest/src/WebpackAssetsManifest', - >; -} diff --git a/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js b/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js deleted file mode 100644 index e3b89a54d..000000000 --- a/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js +++ /dev/null @@ -1,276 +0,0 @@ -// flow-typed signature: d7b5b6ec238a7dc0cc7ac02d2b7ded39 -// flow-typed version: <>/webpack-bundle-analyzer_v^3.0.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'webpack-bundle-analyzer' - * - * 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 'webpack-bundle-analyzer' { - 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 'webpack-bundle-analyzer/lib/analyzer' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/bin/analyzer' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/index' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/Logger' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/parseUtils' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/tree/BaseFolder' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/tree/ConcatenatedModule' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/tree/ContentFolder' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/tree/ContentModule' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/tree/Folder' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/tree/Module' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/tree/Node' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/tree/utils' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/utils' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/lib/viewer' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/public/viewer' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/analyzer' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/bin/analyzer' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/BundleAnalyzerPlugin' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/index' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/Logger' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/parseUtils' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/tree/BaseFolder' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/tree/ConcatenatedModule' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/tree/ContentFolder' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/tree/ContentModule' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/tree/Folder' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/tree/Module' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/tree/Node' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/tree/utils' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/utils' { - declare module.exports: any; -} - -declare module 'webpack-bundle-analyzer/src/viewer' { - declare module.exports: any; -} - -// Filename aliases -declare module 'webpack-bundle-analyzer/lib/analyzer.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/analyzer'>; -} -declare module 'webpack-bundle-analyzer/lib/bin/analyzer.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/bin/analyzer'>; -} -declare module 'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin', - >; -} -declare module 'webpack-bundle-analyzer/lib/index.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/index'>; -} -declare module 'webpack-bundle-analyzer/lib/Logger.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/Logger'>; -} -declare module 'webpack-bundle-analyzer/lib/parseUtils.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/parseUtils'>; -} -declare module 'webpack-bundle-analyzer/lib/tree/BaseFolder.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/lib/tree/BaseFolder', - >; -} -declare module 'webpack-bundle-analyzer/lib/tree/ConcatenatedModule.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/lib/tree/ConcatenatedModule', - >; -} -declare module 'webpack-bundle-analyzer/lib/tree/ContentFolder.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/lib/tree/ContentFolder', - >; -} -declare module 'webpack-bundle-analyzer/lib/tree/ContentModule.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/lib/tree/ContentModule', - >; -} -declare module 'webpack-bundle-analyzer/lib/tree/Folder.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/Folder'>; -} -declare module 'webpack-bundle-analyzer/lib/tree/Module.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/Module'>; -} -declare module 'webpack-bundle-analyzer/lib/tree/Node.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/Node'>; -} -declare module 'webpack-bundle-analyzer/lib/tree/utils.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/utils'>; -} -declare module 'webpack-bundle-analyzer/lib/utils.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/utils'>; -} -declare module 'webpack-bundle-analyzer/lib/viewer.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/lib/viewer'>; -} -declare module 'webpack-bundle-analyzer/public/viewer.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/public/viewer'>; -} -declare module 'webpack-bundle-analyzer/src/analyzer.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/analyzer'>; -} -declare module 'webpack-bundle-analyzer/src/bin/analyzer.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/bin/analyzer'>; -} -declare module 'webpack-bundle-analyzer/src/BundleAnalyzerPlugin.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/src/BundleAnalyzerPlugin', - >; -} -declare module 'webpack-bundle-analyzer/src/index.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/index'>; -} -declare module 'webpack-bundle-analyzer/src/Logger.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/Logger'>; -} -declare module 'webpack-bundle-analyzer/src/parseUtils.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/parseUtils'>; -} -declare module 'webpack-bundle-analyzer/src/tree/BaseFolder.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/src/tree/BaseFolder', - >; -} -declare module 'webpack-bundle-analyzer/src/tree/ConcatenatedModule.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/src/tree/ConcatenatedModule', - >; -} -declare module 'webpack-bundle-analyzer/src/tree/ContentFolder.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/src/tree/ContentFolder', - >; -} -declare module 'webpack-bundle-analyzer/src/tree/ContentModule.js' { - declare module.exports: $Exports< - 'webpack-bundle-analyzer/src/tree/ContentModule', - >; -} -declare module 'webpack-bundle-analyzer/src/tree/Folder.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/Folder'>; -} -declare module 'webpack-bundle-analyzer/src/tree/Module.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/Module'>; -} -declare module 'webpack-bundle-analyzer/src/tree/Node.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/Node'>; -} -declare module 'webpack-bundle-analyzer/src/tree/utils.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/utils'>; -} -declare module 'webpack-bundle-analyzer/src/utils.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/utils'>; -} -declare module 'webpack-bundle-analyzer/src/viewer.js' { - declare module.exports: $Exports<'webpack-bundle-analyzer/src/viewer'>; -} diff --git a/flow-typed/npm/webpack-dev-middleware_vx.x.x.js b/flow-typed/npm/webpack-dev-middleware_vx.x.x.js deleted file mode 100644 index 41ec487fb..000000000 --- a/flow-typed/npm/webpack-dev-middleware_vx.x.x.js +++ /dev/null @@ -1,75 +0,0 @@ -// flow-typed signature: bfc0908040702efbe7d142c849f43b61 -// flow-typed version: <>/webpack-dev-middleware_v^3.3.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'webpack-dev-middleware' - * - * 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 'webpack-dev-middleware' { - 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 'webpack-dev-middleware/lib/context' { - declare module.exports: any; -} - -declare module 'webpack-dev-middleware/lib/DevMiddlewareError' { - declare module.exports: any; -} - -declare module 'webpack-dev-middleware/lib/fs' { - declare module.exports: any; -} - -declare module 'webpack-dev-middleware/lib/middleware' { - declare module.exports: any; -} - -declare module 'webpack-dev-middleware/lib/reporter' { - declare module.exports: any; -} - -declare module 'webpack-dev-middleware/lib/util' { - declare module.exports: any; -} - -// Filename aliases -declare module 'webpack-dev-middleware/index' { - declare module.exports: $Exports<'webpack-dev-middleware'>; -} -declare module 'webpack-dev-middleware/index.js' { - declare module.exports: $Exports<'webpack-dev-middleware'>; -} -declare module 'webpack-dev-middleware/lib/context.js' { - declare module.exports: $Exports<'webpack-dev-middleware/lib/context'>; -} -declare module 'webpack-dev-middleware/lib/DevMiddlewareError.js' { - declare module.exports: $Exports< - 'webpack-dev-middleware/lib/DevMiddlewareError', - >; -} -declare module 'webpack-dev-middleware/lib/fs.js' { - declare module.exports: $Exports<'webpack-dev-middleware/lib/fs'>; -} -declare module 'webpack-dev-middleware/lib/middleware.js' { - declare module.exports: $Exports<'webpack-dev-middleware/lib/middleware'>; -} -declare module 'webpack-dev-middleware/lib/reporter.js' { - declare module.exports: $Exports<'webpack-dev-middleware/lib/reporter'>; -} -declare module 'webpack-dev-middleware/lib/util.js' { - declare module.exports: $Exports<'webpack-dev-middleware/lib/util'>; -} diff --git a/flow-typed/npm/webpack-hot-middleware_vx.x.x.js b/flow-typed/npm/webpack-hot-middleware_vx.x.x.js deleted file mode 100644 index bc7c741be..000000000 --- a/flow-typed/npm/webpack-hot-middleware_vx.x.x.js +++ /dev/null @@ -1,60 +0,0 @@ -// flow-typed signature: 6659dd8c212f7bfcf5f60a2fa494f56e -// flow-typed version: <>/webpack-hot-middleware_v^2.24.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'webpack-hot-middleware' - * - * 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 'webpack-hot-middleware' { - 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 'webpack-hot-middleware/client-overlay' { - declare module.exports: any; -} - -declare module 'webpack-hot-middleware/client' { - declare module.exports: any; -} - -declare module 'webpack-hot-middleware/helpers' { - declare module.exports: any; -} - -declare module 'webpack-hot-middleware/middleware' { - declare module.exports: any; -} - -declare module 'webpack-hot-middleware/process-update' { - declare module.exports: any; -} - -// Filename aliases -declare module 'webpack-hot-middleware/client-overlay.js' { - declare module.exports: $Exports<'webpack-hot-middleware/client-overlay'>; -} -declare module 'webpack-hot-middleware/client.js' { - declare module.exports: $Exports<'webpack-hot-middleware/client'>; -} -declare module 'webpack-hot-middleware/helpers.js' { - declare module.exports: $Exports<'webpack-hot-middleware/helpers'>; -} -declare module 'webpack-hot-middleware/middleware.js' { - declare module.exports: $Exports<'webpack-hot-middleware/middleware'>; -} -declare module 'webpack-hot-middleware/process-update.js' { - declare module.exports: $Exports<'webpack-hot-middleware/process-update'>; -} diff --git a/flow-typed/npm/webpack-node-externals_vx.x.x.js b/flow-typed/npm/webpack-node-externals_vx.x.x.js deleted file mode 100644 index ba27334d4..000000000 --- a/flow-typed/npm/webpack-node-externals_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: b1f98af9d8f22dc7e7fc844d0d994203 -// flow-typed version: <>/webpack-node-externals_v^1.7.2/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'webpack-node-externals' - * - * 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 'webpack-node-externals' { - 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 'webpack-node-externals/utils' { - declare module.exports: any; -} - -// Filename aliases -declare module 'webpack-node-externals/index' { - declare module.exports: $Exports<'webpack-node-externals'>; -} -declare module 'webpack-node-externals/index.js' { - declare module.exports: $Exports<'webpack-node-externals'>; -} -declare module 'webpack-node-externals/utils.js' { - declare module.exports: $Exports<'webpack-node-externals/utils'>; -} diff --git a/flow-typed/npm/webpack_v4.x.x.js b/flow-typed/npm/webpack_v4.x.x.js deleted file mode 100644 index 8a999ba43..000000000 --- a/flow-typed/npm/webpack_v4.x.x.js +++ /dev/null @@ -1,571 +0,0 @@ -// flow-typed signature: 913544cc68b8b8e005726dd1e9689f85 -// flow-typed version: 5d209e063b/webpack_v4.x.x/flow_>=v0.71.x - -import * as http from 'http'; -import fs from 'fs'; - -declare module 'webpack' { - declare class WebpackError extends Error { - constructor(message: string): WebpackError; - inspect(): string; - } - - declare type WebpackCompiler = { - // <...> - }; - - declare type WebpackMultiCompiler = { - // <...> - }; - - declare class WebpackCompilation { - constructor(compiler: WebpackCompiler): WebpackCompilation; - // <...> - } - - declare class WebpackStats { - constructor(compilation: WebpackCompilation): WebpackStats; - // <...> - } - - declare type NonEmptyArrayOfUniqueStringValues = Array; - - declare type EntryObject = { - [k: string]: string | NonEmptyArrayOfUniqueStringValues, - }; - - declare type EntryItem = string | NonEmptyArrayOfUniqueStringValues; - - declare type EntryStatic = EntryObject | EntryItem; - - declare type EntryDynamic = () => EntryStatic | Promise; - - declare type Entry = EntryDynamic | EntryStatic; - - declare type ArrayOfStringValues = Array; - - declare type ExternalItem = - | string - | { - [k: string]: - | string - | { - [k: string]: any, - } - | ArrayOfStringValues - | boolean, - } - | RegExp; - - declare type Externals = - | (( - context: string, - request: string, - callback: (err?: Error, result?: string) => void, - ) => void) - | ExternalItem - | Array< - | (( - context: string, - request: string, - callback: (err?: Error, result?: string) => void, - ) => void) - | ExternalItem, - >; - - declare type RuleSetCondition = - | RegExp - | string - | ((value: string) => boolean) - | RuleSetConditions - | { - and?: RuleSetConditions, - exclude?: RuleSetConditionOrConditions, - include?: RuleSetConditionOrConditions, - not?: RuleSetConditions, - or?: RuleSetConditions, - test?: RuleSetConditionOrConditions, - }; - - declare type RuleSetConditions = Array; - - declare type RuleSetConditionOrConditions = - | RuleSetCondition - | RuleSetConditions; - - declare type RuleSetLoader = string; - - declare type RuleSetQuery = { [k: string]: any } | string; - - declare type RuleSetUseItem = - | RuleSetLoader - | Function - | { - ident?: string, - loader?: RuleSetLoader, - options?: RuleSetQuery, - query?: RuleSetQuery, - }; - - declare type RuleSetUse = RuleSetUseItem | Function | Array; - - declare type RuleSetRule = { - compiler?: RuleSetConditionOrConditions, - enforce?: 'pre' | 'post', - exclude?: RuleSetConditionOrConditions, - include?: RuleSetConditionOrConditions, - issuer?: RuleSetConditionOrConditions, - loader?: RuleSetLoader | RuleSetUse, - loaders?: RuleSetUse, - oneOf?: RuleSetRules, - options?: RuleSetQuery, - parser?: { - [k: string]: any, - }, - query?: RuleSetQuery, - resolve?: ResolveOptions, - resource?: RuleSetConditionOrConditions, - resourceQuery?: RuleSetConditionOrConditions, - rules?: RuleSetRules, - sideEffects?: boolean, - test?: RuleSetConditionOrConditions, - type?: - | 'javascript/auto' - | 'javascript/dynamic' - | 'javascript/esm' - | 'json' - | 'webassembly/experimental', - use?: RuleSetUse, - }; - - declare type RuleSetRules = Array; - - declare type ModuleOptions = { - defaultRules?: RuleSetRules, - exprContextCritical?: boolean, - exprContextRecursive?: boolean, - exprContextRegExp?: boolean | RegExp, - exprContextRequest?: string, - noParse?: Array | RegExp | Function | Array | string, - rules?: RuleSetRules, - strictExportPresence?: boolean, - strictThisContextOnImports?: boolean, - unknownContextCritical?: boolean, - unknownContextRecursive?: boolean, - unknownContextRegExp?: boolean | RegExp, - unknownContextRequest?: string, - unsafeCache?: boolean | Function, - wrappedContextCritical?: boolean, - wrappedContextRecursive?: boolean, - wrappedContextRegExp?: RegExp, - }; - - declare type NodeOptions = { - Buffer?: false | true | 'mock', - __dirname?: false | true | 'mock', - __filename?: false | true | 'mock', - console?: false | true | 'mock', - global?: boolean, - process?: false | true | 'mock', - [k: string]: false | true | 'mock' | 'empty', - }; - - declare type WebpackPluginFunction = (compiler: WebpackCompiler) => void; - - declare type WebpackPluginInstance = { - apply: WebpackPluginFunction, - [k: string]: any, - }; - - declare type OptimizationSplitChunksOptions = { - automaticNameDelimiter?: string, - cacheGroups?: { - [k: string]: - | false - | Function - | string - | RegExp - | { - automaticNameDelimiter?: string, - automaticNamePrefix?: string, - chunks?: ('initial' | 'async' | 'all') | Function, - enforce?: boolean, - filename?: string, - maxAsyncRequests?: number, - maxInitialRequests?: number, - maxSize?: number, - minChunks?: number, - minSize?: number, - name?: boolean | Function | string, - priority?: number, - reuseExistingChunk?: boolean, - test?: Function | string | RegExp, - }, - }, - chunks?: ('initial' | 'async' | 'all') | Function, - fallbackCacheGroup?: { - automaticNameDelimiter?: string, - maxSize?: number, - minSize?: number, - }, - filename?: string, - hidePathInfo?: boolean, - maxAsyncRequests?: number, - maxInitialRequests?: number, - maxSize?: number, - minChunks?: number, - minSize?: number, - name?: boolean | Function | string, - }; - - declare type OptimizationOptions = { - checkWasmTypes?: boolean, - chunkIds?: 'natural' | 'named' | 'size' | 'total-size' | false, - concatenateModules?: boolean, - flagIncludedChunks?: boolean, - hashedModuleIds?: boolean, - mangleWasmImports?: boolean, - mergeDuplicateChunks?: boolean, - minimize?: boolean, - minimizer?: Array, - moduleIds?: 'natural' | 'named' | 'hashed' | 'size' | 'total-size' | false, - namedChunks?: boolean, - namedModules?: boolean, - noEmitOnErrors?: boolean, - nodeEnv?: false | string, - occurrenceOrder?: boolean, - portableRecords?: boolean, - providedExports?: boolean, - removeAvailableModules?: boolean, - removeEmptyChunks?: boolean, - runtimeChunk?: - | boolean - | ('single' | 'multiple') - | { - name?: string | Function, - }, - sideEffects?: boolean, - splitChunks?: false | OptimizationSplitChunksOptions, - usedExports?: boolean, - }; - - declare type LibraryCustomUmdObject = { - amd?: string, - commonjs?: string, - root?: string | ArrayOfStringValues, - }; - - declare type OutputOptions = { - auxiliaryComment?: - | string - | { - amd?: string, - commonjs?: string, - commonjs2?: string, - root?: string, - }, - chunkCallbackName?: string, - chunkFilename?: string, - chunkLoadTimeout?: number, - crossOriginLoading?: false | 'anonymous' | 'use-credentials', - devtoolFallbackModuleFilenameTemplate?: string | Function, - devtoolLineToLine?: boolean | { [k: string]: any }, - devtoolModuleFilenameTemplate?: string | Function, - devtoolNamespace?: string, - filename?: string | Function, - globalObject?: string, - hashDigest?: string, - hashDigestLength?: number, - hashFunction?: string | Function, - hashSalt?: string, - hotUpdateChunkFilename?: string | Function, - hotUpdateFunction?: string, - hotUpdateMainFilename?: string | Function, - jsonpFunction?: string, - jsonpScriptType?: false | 'text/javascript' | 'module', - library?: string | Array | LibraryCustomUmdObject, - libraryExport?: string | ArrayOfStringValues, - libraryTarget?: - | 'var' - | 'assign' - | 'this' - | 'window' - | 'self' - | 'global' - | 'commonjs' - | 'commonjs2' - | 'commonjs-module' - | 'amd' - | 'amd-require' - | 'umd' - | 'umd2' - | 'jsonp', - path?: string, - pathinfo?: boolean, - publicPath?: string | Function, - sourceMapFilename?: string, - sourcePrefix?: string, - strictModuleExceptionHandling?: boolean, - umdNamedDefine?: boolean, - webassemblyModuleFilename?: string, - }; - - declare type PerformanceOptions = { - assetFilter?: Function, - hints?: false | 'warning' | 'error', - maxAssetSize?: number, - maxEntrypointSize?: number, - }; - - declare type ArrayOfStringOrStringArrayValues = Array>; - - declare type ResolveOptions = { - alias?: - | { [k: string]: string } - | Array<{ - alias?: string, - name?: string, - onlyModule?: boolean, - }>, - aliasFields?: ArrayOfStringOrStringArrayValues, - cachePredicate?: Function, - cacheWithContext?: boolean, - concord?: boolean, - descriptionFiles?: ArrayOfStringValues, - enforceExtension?: boolean, - enforceModuleExtension?: boolean, - extensions?: ArrayOfStringValues, - fileSystem?: { [k: string]: any }, - mainFields?: ArrayOfStringOrStringArrayValues, - mainFiles?: ArrayOfStringValues, - moduleExtensions?: ArrayOfStringValues, - modules?: ArrayOfStringValues, - plugins?: Array, - resolver?: { [k: string]: any }, - symlinks?: boolean, - unsafeCache?: boolean | { [k: string]: any }, - useSyncFileSystemCalls?: boolean, - }; - - declare type FilterItemTypes = RegExp | string | Function; - - declare type FilterTypes = FilterItemTypes | Array; - - declare type StatsOptions = - | boolean - | ('none' | 'errors-only' | 'minimal' | 'normal' | 'detailed' | 'verbose') - | { - all?: boolean, - assets?: boolean, - assetsSort?: string, - builtAt?: boolean, - cached?: boolean, - cachedAssets?: boolean, - children?: boolean, - chunkGroups?: boolean, - chunkModules?: boolean, - chunkOrigins?: boolean, - chunks?: boolean, - chunksSort?: string, - colors?: - | boolean - | { - bold?: string, - cyan?: string, - green?: string, - magenta?: string, - red?: string, - yellow?: string, - }, - context?: string, - depth?: boolean, - entrypoints?: boolean, - env?: boolean, - errorDetails?: boolean, - errors?: boolean, - exclude?: FilterTypes | boolean, - excludeAssets?: FilterTypes, - excludeModules?: FilterTypes | boolean, - hash?: boolean, - maxModules?: number, - moduleAssets?: boolean, - moduleTrace?: boolean, - modules?: boolean, - modulesSort?: string, - nestedModules?: boolean, - optimizationBailout?: boolean, - outputPath?: boolean, - performance?: boolean, - providedExports?: boolean, - publicPath?: boolean, - reasons?: boolean, - source?: boolean, - timings?: boolean, - usedExports?: boolean, - version?: boolean, - warnings?: boolean, - warningsFilter?: FilterTypes, - }; - - declare type WatchOptions = { - aggregateTimeout?: number, - ignored?: { [k: string]: any }, - poll?: boolean | number, - stdin?: boolean, - }; - - declare type WebpackOptions = { - amd?: { [k: string]: any }, - bail?: boolean, - cache?: boolean | { [k: string]: any }, - context?: string, - dependencies?: Array, - devServer?: { - after?: (app: any, server: http.Server) => void, - allowedHosts?: string[], - before?: (app: any, server: http.Server) => void, - bonjour?: boolean, - clientLogLevel?: 'none' | 'info' | 'error' | 'warning', - compress?: boolean, - contentBase?: false | string | string[] | number, - disableHostCheck?: boolean, - filename?: string, - headers?: { [key: string]: string }, - historyApiFallback?: - | boolean - | { - rewrites?: Array<{ from: string, to: string }>, - disableDotRule?: boolean, - }, - host?: string, - hot?: boolean, - hotOnly?: boolean, - https?: - | boolean - | { - key: string, - cert: string, - ca?: string, - }, - index?: string, - inline?: boolean, - lazy?: boolean, - noInfo?: boolean, - open?: boolean | string, - openPage?: string, - overlay?: - | boolean - | { - errors?: boolean, - warnings?: boolean, - }, - pfx?: string, - pfxPassphrase?: string, - port?: number, - proxy?: Object | Array, - public?: string, - publicPath?: string, - quiet?: boolean, - socket?: string, - staticOptions?: { - dotfiles?: string, - etag?: boolean, - extensions?: false | string[], - fallthrough?: boolean, - immutable?: boolean, - index?: false | string, - lastModified?: boolean, - maxAge?: number, - redirect?: boolean, - setHeaders?: ( - res: http.OutgoingMessage, - path: string, - stat: fs.Stat, - ) => void, - }, - stats?: StatsOptions, - useLocalIp?: boolean, - watchContentBase?: boolean, - watchOptions?: WatchOptions, - publicPath?: string, - }, - devtool?: - | '@cheap-eval-source-map' - | '@cheap-module-eval-source-map' - | '@cheap-module-source-map' - | '@cheap-source-map' - | '@eval-source-map' - | '@eval' - | '@hidden-source-map' - | '@inline-source-map' - | '@nosources-source-map' - | '@source-map' - | '#@cheap-eval-source-map' - | '#@cheap-module-eval-source-map' - | '#@cheap-module-source-map' - | '#@cheap-source-map' - | '#@eval-source-map' - | '#@eval' - | '#@hidden-source-map' - | '#@inline-source-map' - | '#@nosources-source-map' - | '#@source-map' - | '#cheap-eval-source-map' - | '#cheap-module-eval-source-map' - | '#cheap-module-source-map' - | '#cheap-source-map' - | '#eval-source-map' - | '#eval' - | '#hidden-source-map' - | '#inline-source-map' - | '#nosources-source-map' - | '#source-map' - | 'cheap-eval-source-map' - | 'cheap-module-eval-source-map' - | 'cheap-module-source-map' - | 'cheap-source-map' - | 'eval-source-map' - | 'eval' - | 'hidden-source-map' - | 'inline-source-map' - | 'nosources-source-map' - | 'source-map' - | false, - entry?: Entry, - externals?: Externals, - loader?: { [k: string]: any }, - mode?: 'development' | 'production' | 'none', - module?: ModuleOptions, - name?: string, - node?: false | NodeOptions, - optimization?: OptimizationOptions, - output?: OutputOptions, - parallelism?: number, - performance?: false | PerformanceOptions, - plugins?: Array, - profile?: boolean, - recordsInputPath?: string, - recordsOutputPath?: string, - recordsPath?: string, - resolve?: ResolveOptions, - resolveLoader?: ResolveOptions, - serve?: { [k: string]: any }, - stats?: StatsOptions, - target?: - | 'web' - | 'webworker' - | 'node' - | 'async-node' - | 'node-webkit' - | 'electron-main' - | 'electron-renderer' - | ((compiler: WebpackCompiler) => void), - watch?: boolean, - watchOptions?: WatchOptions, - }; - - declare module.exports: ( - options: WebpackOptions, - callback: (error: WebpackError, stats: WebpackStats) => void, - ) => WebpackCompiler | WebpackMultiCompiler; -} diff --git a/jest.config.js b/jest.config.js index 22c241261..93f226385 100644 --- a/jest.config.js +++ b/jest.config.js @@ -34,7 +34,7 @@ module.exports = { // https://facebook.github.io/jest/docs/en/configuration.html#collectcoveragefrom-array collectCoverageFrom: [ - 'src/**/*.{js,jsx}', + 'src/**/*.{ts,tsx,js,jsx}', '!**/node_modules/**', '!**/vendor/**', ], @@ -55,7 +55,7 @@ module.exports = { // The default extensions Jest will look for. // https://facebook.github.io/jest/docs/en/configuration.html#modulefileextensions-array-string - moduleFileExtensions: ['js', 'json', 'jsx', 'node'], + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], // moduleDirectories: // [array] @@ -90,8 +90,8 @@ module.exports = { // timers: // [string] transform: { - '\\.(js|jsx)$': '/node_modules/babel-jest', - '\\.(gql|graphql)$': '/node_modules/jest-transform-graphql', + '\\.(ts|tsx|js|jsx)$': 'babel-jest', + '\\.(gql|graphql)$': 'jest-transform-graphql', '^(?!.*\\.(js|jsx|json|css|less|styl|scss|sass|sss)$)': '/tools/lib/fileTransformer.js', }, diff --git a/package.json b/package.json index 5bdf6caae..d180f1563 100644 --- a/package.json +++ b/package.json @@ -58,13 +58,60 @@ "@babel/plugin-transform-react-constant-elements": "^7.2.0", "@babel/plugin-transform-react-inline-elements": "^7.2.0", "@babel/preset-env": "^7.4.1", - "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.0.0", + "@types/autoprefixer": "^9.4.0", + "@types/babel-core": "^6.25.6", + "@types/body-parser": "^1.17.0", + "@types/browser-sync": "^0.0.43", + "@types/chokidar": "^2.1.3", + "@types/classnames": "^2.2.7", + "@types/cookie-parser": "^1.4.1", + "@types/cssnano": "^4.0.0", + "@types/enzyme": "^3.9.1", + "@types/eslint": "^4.16.6", + "@types/eslint-plugin-prettier": "^2.2.0", + "@types/express": "^4.16.1", + "@types/express-jwt": "^0.0.42", + "@types/glob": "^7.1.1", + "@types/graphql": "^14.2.0", + "@types/history": "^4.7.2", + "@types/jest": "^24.0.11", + "@types/jsonwebtoken": "^8.3.2", + "@types/lodash.merge": "^4.6.6", + "@types/markdown-it": "^0.0.7", + "@types/mkdirp": "^0.5.2", + "@types/node-fetch": "^2.1.7", + "@types/passport": "^1.0.0", + "@types/passport-facebook": "^2.1.8", + "@types/postcss-calc": "^7.0.0", + "@types/postcss-nested": "^4.1.0", + "@types/prettier": "^1.16.1", + "@types/query-string": "^6.3.0", + "@types/react": "^16.8.10", + "@types/react-dev-utils": "^7.0.1", + "@types/react-dom": "^16.8.3", + "@types/react-test-renderer": "^16.8.1", + "@types/rimraf": "^2.0.2", + "@types/sequelize": "^4.27.46", + "@types/serialize-javascript": "^1.5.0", + "@types/source-map-support": "^0.5.0", + "@types/sqlite3": "^3.1.5", + "@types/stylelint": "^9.10.0", + "@types/typescript": "^2.0.0", + "@types/universal-router": "^8.0.0", + "@types/webpack": "^4.4.27", + "@types/webpack-assets-manifest": "^3.0.0", + "@types/webpack-bundle-analyzer": "^2.13.1", + "@types/webpack-dev-middleware": "^2.0.2", + "@types/webpack-hot-middleware": "^2.16.5", + "@types/webpack-node-externals": "^1.6.3", + "@types/whatwg-fetch": "^0.0.33", + "@typescript-eslint/eslint-plugin": "^1.6.0", "apollo": "^2.6.2", "autoprefixer": "^9.5.0", "babel-core": "^7.0.0-bridge.0", "babel-eslint": "^10.0.1", - "babel-jest": "^24.5.0", + "babel-jest": "^24.7.1", "babel-loader": "^8.0.5", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "browser-sync": "^2.26.3", @@ -78,19 +125,16 @@ "eslint-import-resolver-node": "^0.3.2", "eslint-loader": "^2.1.2", "eslint-plugin-css-modules": "^2.11.0", - "eslint-plugin-flowtype": "^3.4.2", "eslint-plugin-import": "^2.16.0", "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-prettier": "^3.0.1", "eslint-plugin-react": "^7.12.4", "file-loader": "^3.0.1", - "flow-bin": "^0.88.0", - "flow-typed": "^2.5.1", "front-matter": "^3.0.1", "glob": "^7.1.3", "husky": "^1.3.1", "identity-obj-proxy": "^3.0.0", - "jest": "^24.5.0", + "jest": "^24.7.1", "jest-codemods": "^0.19.1", "jest-transform-graphql": "^2.1.0", "lint-staged": "^8.1.5", @@ -126,6 +170,7 @@ "stylelint-config-standard": "^18.2.0", "stylelint-order": "^2.1.0", "svg-url-loader": "^2.3.2", + "typescript": "^3.4.1", "url-loader": "^1.1.2", "webpack": "^4.29.6", "webpack-assets-manifest": "^3.1.1", @@ -155,27 +200,25 @@ }, "scripts": { "precommit": "lint-staged", - "lint-js": "eslint --ignore-path .gitignore --ignore-pattern \"/flow-typed/*\" --ignore-pattern \"!**/.*\" .", + "lint-js": "eslint --ignore-path .gitignore --ignore-pattern \"!**/.*\" .", "lint-css": "stylelint \"src/**/*.{css,less,styl,scss,sass,sss}\"", - "lint": "yarn run lint-js && yarn run lint-css", + "lint": "yarn codegen && yarn tsc && yarn run lint-js && yarn run lint-css", "fix-js": "yarn run lint-js --fix", "fix-css": "yarn run lint-css --fix", "fix": "yarn run fix-js && yarn run fix-css", - "flow": "flow", - "flow:check": "flow check", - "codegen": "babel-node tools/run codegen", + "codegen": "babel-node --extensions '.ts' tools/run codegen", "test": "jest", "test-watch": "yarn run test --watch --notify", "test-cover": "yarn run test --coverage", "coverage": "yarn run test-cover && opn coverage/lcov-report/index.html", - "clean": "babel-node tools/run clean", - "copy": "babel-node tools/run copy", - "bundle": "babel-node tools/run bundle", - "build": "babel-node tools/run build", + "clean": "babel-node --extensions '.ts' tools/run clean", + "copy": "babel-node --extensions '.ts' tools/run copy", + "bundle": "babel-node --extensions '.ts' tools/run bundle", + "build": "babel-node --extensions '.ts' tools/run build", "build-stats": "yarn run build --release --analyse", - "deploy": "babel-node tools/run deploy", - "render": "babel-node tools/run render", - "serve": "babel-node tools/run runServer", - "start": "babel-node tools/run start" + "deploy": "babel-node --extensions '.ts' tools/run deploy", + "render": "babel-node --extensions '.ts' tools/run render", + "serve": "babel-node --extensions '.ts' tools/run runServer", + "start": "babel-node --extensions '.ts' tools/run start" } } diff --git a/src/DOMUtils.js b/src/DOMUtils.ts similarity index 73% rename from src/DOMUtils.js rename to src/DOMUtils.ts index 11c132f0d..c8bbd5fbc 100644 --- a/src/DOMUtils.js +++ b/src/DOMUtils.ts @@ -7,7 +7,7 @@ * LICENSE.txt file in the root directory of this source tree. */ -export function updateTag(tagName, keyName, keyValue, attrName, attrValue) { +export function updateTag(tagName: string, keyName: string, keyValue: string, attrName: string, attrValue: string) { const node = document.head.querySelector( `${tagName}[${keyName}="${keyValue}"]`, ); @@ -15,7 +15,7 @@ export function updateTag(tagName, keyName, keyValue, attrName, attrValue) { // Remove and create a new tag in order to make it work with bookmarks in Safari if (node) { - node.parentNode.removeChild(node); + node.parentNode!.removeChild(node); } if (typeof attrValue === 'string') { const nextNode = document.createElement(tagName); @@ -25,14 +25,14 @@ export function updateTag(tagName, keyName, keyValue, attrName, attrValue) { } } -export function updateMeta(name, content) { +export function updateMeta(name: string, content: string) { updateTag('meta', 'name', name, 'content', content); } -export function updateCustomMeta(property, content) { +export function updateCustomMeta(property: string, content: string) { updateTag('meta', 'property', property, 'content', content); } -export function updateLink(rel, href) { +export function updateLink(rel: string, href: string) { updateTag('link', 'rel', rel, 'href', href); } diff --git a/src/client.js b/src/client.tsx similarity index 87% rename from src/client.js rename to src/client.tsx index ac95f3134..36d8098ad 100644 --- a/src/client.js +++ b/src/client.tsx @@ -8,23 +8,25 @@ */ import 'whatwg-fetch'; -import React from 'react'; +import React, {ComponentElement, ReactComponentElement, ReactElement} from 'react'; import ReactDOM from 'react-dom'; import deepForceUpdate from 'react-deep-force-update'; import queryString from 'query-string'; import gql from 'graphql-tag'; import { createPath } from 'history'; import App from './components/App'; +import {Location} from "history"; import history from './history'; import { updateMeta } from './DOMUtils'; -import createApolloClient from './core/createApolloClient'; +import createApolloClient from './core/createApolloClient/createApolloClient.client'; import router from './router'; +import {AppContextTypes} from "./context"; const apolloClient = createApolloClient(); // Enables critical path CSS rendering // https://github.com/kriasoft/isomorphic-style-loader -const insertCss = (...styles) => { +const insertCss = (...styles: any[]) => { // eslint-disable-next-line no-underscore-dangle const removeCss = styles.map(x => x._insertCss()); return () => { @@ -34,24 +36,24 @@ const insertCss = (...styles) => { // Global (context) variables that can be easily accessed from any React component // https://facebook.github.io/react/docs/context.html -const context = {}; +const context: AppContextTypes = { pathname: '' }; const container = document.getElementById('app'); let currentLocation = history.location; -let appInstance; +let appInstance: typeof App | void; -const scrollPositionsHistory = {}; +const scrollPositionsHistory: {[key: string]: {scrollX: number, scrollY: number}} = {}; // Re-render the app when window.location changes -async function onLocationChange(location, action) { +async function onLocationChange(location: Location, action?: any) { // Remember the latest scroll position for the previous location - scrollPositionsHistory[currentLocation.key] = { + scrollPositionsHistory[currentLocation.key || ''] = { scrollX: window.pageXOffset, scrollY: window.pageYOffset, }; // Delete stored scroll position for next page if any if (action === 'PUSH') { - delete scrollPositionsHistory[location.key]; + delete scrollPositionsHistory[location.key || '']; } currentLocation = location; @@ -90,7 +92,7 @@ async function onLocationChange(location, action) { } const elem = document.getElementById('css'); - if (elem) elem.parentNode.removeChild(elem); + if (elem) elem.parentNode!.removeChild(elem); return; } @@ -106,7 +108,7 @@ async function onLocationChange(location, action) { let scrollX = 0; let scrollY = 0; - const pos = scrollPositionsHistory[location.key]; + const pos = scrollPositionsHistory[location.key || '']; if (pos) { scrollX = pos.scrollX; scrollY = pos.scrollY; @@ -155,6 +157,7 @@ onLocationChange(currentLocation); // Enable Hot Module Replacement (HMR) if (module.hot) { module.hot.accept('./router', () => { + // @ts-ignore TODO if (appInstance && appInstance.updater.isMounted(appInstance)) { // Force-update the whole tree, including components that refuse to update deepForceUpdate(appInstance); diff --git a/src/components/App.js b/src/components/App.tsx similarity index 65% rename from src/components/App.js rename to src/components/App.tsx index 2f8a529c4..e697b6ac2 100644 --- a/src/components/App.js +++ b/src/components/App.tsx @@ -7,30 +7,24 @@ * LICENSE.txt file in the root directory of this source tree. */ -// @flow - -import React from 'react'; -import type { Node } from 'react'; +import React, {ReactNode} from 'react'; import { ApolloProvider } from 'react-apollo'; import StyleContext from 'isomorphic-style-loader/StyleContext'; -import type { AppContextTypes } from '../context'; -import AppContext from '../context'; +import AppContext, { AppContextTypes } from '../context'; -type Props = {| - insertCss: Function, - client: Object, - context: AppContextTypes, - children: Node, -|}; +interface Props { + insertCss: Function; + client: any; + context: AppContextTypes; + children: ReactNode; +} const App = ({ client, insertCss, context, children }: Props) => ( // NOTE: If you need to add or modify header, footer etc. of the app, // please do that inside the Layout component. - - {children} - + {children} ); diff --git a/src/components/Feedback/Feedback.js b/src/components/Feedback/Feedback.tsx similarity index 100% rename from src/components/Feedback/Feedback.js rename to src/components/Feedback/Feedback.tsx diff --git a/src/components/Feedback/package.json b/src/components/Feedback/package.json index af617baab..8f02097c6 100644 --- a/src/components/Feedback/package.json +++ b/src/components/Feedback/package.json @@ -2,5 +2,5 @@ "name": "Feedback", "version": "0.0.0", "private": true, - "main": "./Feedback.js" + "main": "./Feedback.tsx" } diff --git a/src/components/Footer/Footer.js b/src/components/Footer/Footer.tsx similarity index 91% rename from src/components/Footer/Footer.js rename to src/components/Footer/Footer.tsx index 92f6437d5..698bd9bd5 100644 --- a/src/components/Footer/Footer.js +++ b/src/components/Footer/Footer.tsx @@ -7,12 +7,12 @@ * LICENSE.txt file in the root directory of this source tree. */ -import React from 'react'; +import React, {FunctionComponent} from 'react'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './Footer.css'; import Link from '../Link'; -const Footer = () => ( +const Footer: FunctionComponent = () => (
© Your Company diff --git a/src/components/Footer/package.json b/src/components/Footer/package.json index a725ef669..1062f3d6c 100644 --- a/src/components/Footer/package.json +++ b/src/components/Footer/package.json @@ -2,5 +2,5 @@ "name": "Footer", "version": "0.0.0", "private": true, - "main": "./Footer.js" + "main": "./Footer.tsx" } diff --git a/src/components/Header/Header.js b/src/components/Header/Header.tsx similarity index 100% rename from src/components/Header/Header.js rename to src/components/Header/Header.tsx diff --git a/src/components/Header/package.json b/src/components/Header/package.json index e5c88299a..611570001 100644 --- a/src/components/Header/package.json +++ b/src/components/Header/package.json @@ -2,5 +2,5 @@ "name": "Header", "version": "0.0.0", "private": true, - "main": "./Header.js" + "main": "./Header.tsx" } diff --git a/src/components/Html.js b/src/components/Html.tsx similarity index 59% rename from src/components/Html.js rename to src/components/Html.tsx index 5d24a53be..5f4a25f17 100644 --- a/src/components/Html.js +++ b/src/components/Html.tsx @@ -7,34 +7,26 @@ * LICENSE.txt file in the root directory of this source tree. */ -// @flow - import React from 'react'; import serialize from 'serialize-javascript'; import config from '../config'; /* eslint-disable react/no-danger */ -type PropTypes = {| - title: string, - description: string, +interface PropTypes { + title: string; + description: string; styles?: Array<{ - id: string, - cssText: string, - }>, - scripts?: Array, - app: Object, // eslint-disable-line - children: string, -|}; + id: string; + cssText: string; + }>; + + scripts?: string[]; + app: any; + children: string; +} -const Html = ({ - title, - description, - styles = [], - scripts = [], - app, - children, -}: PropTypes) => ( +const Html = ({ title, description, styles = [], scripts = [], app, children }: PropTypes) => ( @@ -42,45 +34,35 @@ const Html = ({ {title} - {scripts.map(script => ( + {scripts.map((script) => ( ))} + - {styles.map(style => ( -