add stylelint

This commit is contained in:
41666 2019-04-03 01:53:46 -05:00
parent 47a2e5694e
commit 928c9cf07c
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
83 changed files with 10807 additions and 1770 deletions

View file

@ -1,21 +0,0 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
indent_style = space
indent_size = 2
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ node_modules
.data .data
yarn-error\.log yarn-error\.log
*.log

4
.stylelintrc Normal file
View file

@ -0,0 +1,4 @@
{
"processors": ["stylelint-processor-styled-components"],
"extends": ["stylelint-config-standard", "stylelint-config-styled-components"]
}

BIN
API.paw

Binary file not shown.

View file

@ -1,7 +1,3 @@
module.exports = { module.exports = {
babelrcRoots: [
'.',
'./ui'
],
ignore: [ './node_modules', './flow-typed', './ui' ]
} }

87
flow-typed/npm/@babel/cli_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,87 @@
// flow-typed signature: 2ecc7a75cc677a7dda8c3407049d06f3
// flow-typed version: <<STUB>>/@babel/cli_v^7.4.3/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/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 '@babel/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 '@babel/cli/bin/babel-external-helpers' {
declare module.exports: any;
}
declare module '@babel/cli/bin/babel' {
declare module.exports: any;
}
declare module '@babel/cli/lib/babel-external-helpers' {
declare module.exports: any;
}
declare module '@babel/cli/lib/babel/dir' {
declare module.exports: any;
}
declare module '@babel/cli/lib/babel/file' {
declare module.exports: any;
}
declare module '@babel/cli/lib/babel/index' {
declare module.exports: any;
}
declare module '@babel/cli/lib/babel/options' {
declare module.exports: any;
}
declare module '@babel/cli/lib/babel/util' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/cli/bin/babel-external-helpers.js' {
declare module.exports: $Exports<'@babel/cli/bin/babel-external-helpers'>;
}
declare module '@babel/cli/bin/babel.js' {
declare module.exports: $Exports<'@babel/cli/bin/babel'>;
}
declare module '@babel/cli/index' {
declare module.exports: $Exports<'@babel/cli'>;
}
declare module '@babel/cli/index.js' {
declare module.exports: $Exports<'@babel/cli'>;
}
declare module '@babel/cli/lib/babel-external-helpers.js' {
declare module.exports: $Exports<'@babel/cli/lib/babel-external-helpers'>;
}
declare module '@babel/cli/lib/babel/dir.js' {
declare module.exports: $Exports<'@babel/cli/lib/babel/dir'>;
}
declare module '@babel/cli/lib/babel/file.js' {
declare module.exports: $Exports<'@babel/cli/lib/babel/file'>;
}
declare module '@babel/cli/lib/babel/index.js' {
declare module.exports: $Exports<'@babel/cli/lib/babel/index'>;
}
declare module '@babel/cli/lib/babel/options.js' {
declare module.exports: $Exports<'@babel/cli/lib/babel/options'>;
}
declare module '@babel/cli/lib/babel/util.js' {
declare module.exports: $Exports<'@babel/cli/lib/babel/util'>;
}

298
flow-typed/npm/@babel/core_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,298 @@
// flow-typed signature: f9ce5b944d6802a562649660e3c46b76
// flow-typed version: <<STUB>>/@babel/core_v^7.4.3/flow_v0.96.0
/**
* 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' {
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.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'>;
}

46
flow-typed/npm/@babel/node_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,46 @@
// flow-typed signature: 5d8f66090c1972993ced16f5c6ba4267
// flow-typed version: <<STUB>>/@babel/node_v^7.2.2/flow_v0.96.0
/**
* 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'>;
}

View file

@ -0,0 +1,32 @@
// flow-typed signature: 6e2bcba2dbfc7e3c856b4a63b7cb236f
// flow-typed version: <<STUB>>/@babel/plugin-proposal-class-properties_v^7.4.0/flow_v0.96.0
/**
* 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'>;
}

View file

@ -0,0 +1,32 @@
// flow-typed signature: d632091ed9fdac1cc8e92e219789192b
// flow-typed version: <<STUB>>/@babel/plugin-proposal-optional-chaining_v^7.2.0/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/plugin-proposal-optional-chaining'
*
* 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-optional-chaining' {
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-optional-chaining/lib/index' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/plugin-proposal-optional-chaining/lib/index.js' {
declare module.exports: $Exports<'@babel/plugin-proposal-optional-chaining/lib/index'>;
}

View file

@ -0,0 +1,32 @@
// flow-typed signature: 9f05f59645ad5270fa3905f29e58b81d
// flow-typed version: <<STUB>>/@babel/plugin-syntax-dynamic-import_v^7.2.0/flow_v0.96.0
/**
* 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'>;
}

View file

@ -0,0 +1,53 @@
// flow-typed signature: 489e57e1e66d02415a2265fc0ee1b2ad
// flow-typed version: <<STUB>>/@babel/plugin-transform-runtime_v^7.4.3/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/plugin-transform-runtime'
*
* 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-runtime' {
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-runtime/lib/helpers' {
declare module.exports: any;
}
declare module '@babel/plugin-transform-runtime/lib/index' {
declare module.exports: any;
}
declare module '@babel/plugin-transform-runtime/lib/runtime-corejs2-definitions' {
declare module.exports: any;
}
declare module '@babel/plugin-transform-runtime/lib/runtime-corejs3-definitions' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/plugin-transform-runtime/lib/helpers.js' {
declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/helpers'>;
}
declare module '@babel/plugin-transform-runtime/lib/index.js' {
declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/index'>;
}
declare module '@babel/plugin-transform-runtime/lib/runtime-corejs2-definitions.js' {
declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/runtime-corejs2-definitions'>;
}
declare module '@babel/plugin-transform-runtime/lib/runtime-corejs3-definitions.js' {
declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/runtime-corejs3-definitions'>;
}

View file

@ -0,0 +1,200 @@
// flow-typed signature: c48f89dc24c96871cbe461a64bded15f
// flow-typed version: <<STUB>>/@babel/preset-env_v^7.4.3/flow_v0.96.0
/**
* 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-ins.json' {
declare module.exports: any;
}
declare module '@babel/preset-env/data/corejs2-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/debug' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/filter-items' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/get-option-specific-excludes' {
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/polyfills/corejs2/built-in-definitions' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/corejs2/entry-plugin' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/corejs2/usage-plugin' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/corejs3/built-in-definitions' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/corejs3/entry-plugin' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/corejs3/shipped-proposals' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/corejs3/usage-plugin' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/regenerator/entry-plugin' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/polyfills/regenerator/usage-plugin' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/targets-parser' {
declare module.exports: any;
}
declare module '@babel/preset-env/lib/utils' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/preset-env/data/built-ins.json.js' {
declare module.exports: $Exports<'@babel/preset-env/data/built-ins.json'>;
}
declare module '@babel/preset-env/data/corejs2-built-in-features.js' {
declare module.exports: $Exports<'@babel/preset-env/data/corejs2-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/debug.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/debug'>;
}
declare module '@babel/preset-env/lib/filter-items.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/filter-items'>;
}
declare module '@babel/preset-env/lib/get-option-specific-excludes.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/get-option-specific-excludes'>;
}
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/polyfills/corejs2/built-in-definitions.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs2/built-in-definitions'>;
}
declare module '@babel/preset-env/lib/polyfills/corejs2/entry-plugin.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs2/entry-plugin'>;
}
declare module '@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default'>;
}
declare module '@babel/preset-env/lib/polyfills/corejs2/usage-plugin.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs2/usage-plugin'>;
}
declare module '@babel/preset-env/lib/polyfills/corejs3/built-in-definitions.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs3/built-in-definitions'>;
}
declare module '@babel/preset-env/lib/polyfills/corejs3/entry-plugin.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs3/entry-plugin'>;
}
declare module '@babel/preset-env/lib/polyfills/corejs3/shipped-proposals.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs3/shipped-proposals'>;
}
declare module '@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs3/usage-plugin'>;
}
declare module '@babel/preset-env/lib/polyfills/regenerator/entry-plugin.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/regenerator/entry-plugin'>;
}
declare module '@babel/preset-env/lib/polyfills/regenerator/usage-plugin.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/regenerator/usage-plugin'>;
}
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/utils.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/utils'>;
}

View file

@ -0,0 +1,32 @@
// flow-typed signature: 8f65f5a975bcf1cebc7acc6a0da81c6e
// flow-typed version: <<STUB>>/@babel/preset-flow_v^7.0.0/flow_v0.96.0
/**
* 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'>;
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: 01151c94eb6a0e3faf3e226f6a3d32ef // flow-typed signature: 3c28071d58ead00dc9427f3cadc04ecb
// flow-typed version: <<STUB>>/@discordjs/uws_v^11.149.1/flow_v0.95.1 // flow-typed version: <<STUB>>/@discordjs/uws_v^11.149.1/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,417 +0,0 @@
// flow-typed signature: a72e4dfb7c44d3a502f4733b739eaaca
// flow-typed version: <<STUB>>/@primer/components_v^12.0.0/flow_v0.95.1
/**
* This is an autogenerated libdef stub for:
*
* '@primer/components'
*
* 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 '@primer/components' {
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 '@primer/components/codemods/__tests__/v1' {
declare module.exports: any;
}
declare module '@primer/components/codemods/__tests__/v12' {
declare module.exports: any;
}
declare module '@primer/components/codemods/__tests__/v2' {
declare module.exports: any;
}
declare module '@primer/components/codemods/__tests__/v3' {
declare module.exports: any;
}
declare module '@primer/components/codemods/__tests__/v4' {
declare module.exports: any;
}
declare module '@primer/components/codemods/lib/modifyProps' {
declare module.exports: any;
}
declare module '@primer/components/codemods/lib/prettify' {
declare module.exports: any;
}
declare module '@primer/components/codemods/lib/renameImports' {
declare module.exports: any;
}
declare module '@primer/components/codemods/lib/replaceImportSource' {
declare module.exports: any;
}
declare module '@primer/components/codemods/v1' {
declare module.exports: any;
}
declare module '@primer/components/codemods/v12' {
declare module.exports: any;
}
declare module '@primer/components/codemods/v2' {
declare module.exports: any;
}
declare module '@primer/components/codemods/v3' {
declare module.exports: any;
}
declare module '@primer/components/codemods/v4' {
declare module.exports: any;
}
declare module '@primer/components/css' {
declare module.exports: any;
}
declare module '@primer/components/dist/css' {
declare module.exports: any;
}
declare module '@primer/components/dist/index.esm' {
declare module.exports: any;
}
declare module '@primer/components/dist/index.umd' {
declare module.exports: any;
}
declare module '@primer/components/src/Avatar' {
declare module.exports: any;
}
declare module '@primer/components/src/AvatarPair' {
declare module.exports: any;
}
declare module '@primer/components/src/BaseStyles' {
declare module.exports: any;
}
declare module '@primer/components/src/BorderBox' {
declare module.exports: any;
}
declare module '@primer/components/src/Box' {
declare module.exports: any;
}
declare module '@primer/components/src/BranchName' {
declare module.exports: any;
}
declare module '@primer/components/src/Button' {
declare module.exports: any;
}
declare module '@primer/components/src/ButtonDanger' {
declare module.exports: any;
}
declare module '@primer/components/src/ButtonOutline' {
declare module.exports: any;
}
declare module '@primer/components/src/ButtonPrimary' {
declare module.exports: any;
}
declare module '@primer/components/src/ButtonStyles' {
declare module.exports: any;
}
declare module '@primer/components/src/Caret' {
declare module.exports: any;
}
declare module '@primer/components/src/CircleBadge' {
declare module.exports: any;
}
declare module '@primer/components/src/CircleOcticon' {
declare module.exports: any;
}
declare module '@primer/components/src/constants' {
declare module.exports: any;
}
declare module '@primer/components/src/CounterLabel' {
declare module.exports: any;
}
declare module '@primer/components/src/css' {
declare module.exports: any;
}
declare module '@primer/components/src/Details' {
declare module.exports: any;
}
declare module '@primer/components/src/Donut' {
declare module.exports: any;
}
declare module '@primer/components/src/Dropdown' {
declare module.exports: any;
}
declare module '@primer/components/src/DropdownStyles' {
declare module.exports: any;
}
declare module '@primer/components/src/FilterList' {
declare module.exports: any;
}
declare module '@primer/components/src/Flash' {
declare module.exports: any;
}
declare module '@primer/components/src/Flex' {
declare module.exports: any;
}
declare module '@primer/components/src/Heading' {
declare module.exports: any;
}
declare module '@primer/components/src/index' {
declare module.exports: any;
}
declare module '@primer/components/src/Label' {
declare module.exports: any;
}
declare module '@primer/components/src/Link' {
declare module.exports: any;
}
declare module '@primer/components/src/PointerBox' {
declare module.exports: any;
}
declare module '@primer/components/src/Position' {
declare module.exports: any;
}
declare module '@primer/components/src/PrimerComponentsAnimation' {
declare module.exports: any;
}
declare module '@primer/components/src/StateLabel' {
declare module.exports: any;
}
declare module '@primer/components/src/StyledOcticon' {
declare module.exports: any;
}
declare module '@primer/components/src/Text' {
declare module.exports: any;
}
declare module '@primer/components/src/TextInput' {
declare module.exports: any;
}
declare module '@primer/components/src/theme' {
declare module.exports: any;
}
declare module '@primer/components/src/Tooltip' {
declare module.exports: any;
}
declare module '@primer/components/src/UnderlineNav' {
declare module.exports: any;
}
// Filename aliases
declare module '@primer/components/codemods/__tests__/v1.js' {
declare module.exports: $Exports<'@primer/components/codemods/__tests__/v1'>;
}
declare module '@primer/components/codemods/__tests__/v12.js' {
declare module.exports: $Exports<'@primer/components/codemods/__tests__/v12'>;
}
declare module '@primer/components/codemods/__tests__/v2.js' {
declare module.exports: $Exports<'@primer/components/codemods/__tests__/v2'>;
}
declare module '@primer/components/codemods/__tests__/v3.js' {
declare module.exports: $Exports<'@primer/components/codemods/__tests__/v3'>;
}
declare module '@primer/components/codemods/__tests__/v4.js' {
declare module.exports: $Exports<'@primer/components/codemods/__tests__/v4'>;
}
declare module '@primer/components/codemods/lib/modifyProps.js' {
declare module.exports: $Exports<'@primer/components/codemods/lib/modifyProps'>;
}
declare module '@primer/components/codemods/lib/prettify.js' {
declare module.exports: $Exports<'@primer/components/codemods/lib/prettify'>;
}
declare module '@primer/components/codemods/lib/renameImports.js' {
declare module.exports: $Exports<'@primer/components/codemods/lib/renameImports'>;
}
declare module '@primer/components/codemods/lib/replaceImportSource.js' {
declare module.exports: $Exports<'@primer/components/codemods/lib/replaceImportSource'>;
}
declare module '@primer/components/codemods/v1.js' {
declare module.exports: $Exports<'@primer/components/codemods/v1'>;
}
declare module '@primer/components/codemods/v12.js' {
declare module.exports: $Exports<'@primer/components/codemods/v12'>;
}
declare module '@primer/components/codemods/v2.js' {
declare module.exports: $Exports<'@primer/components/codemods/v2'>;
}
declare module '@primer/components/codemods/v3.js' {
declare module.exports: $Exports<'@primer/components/codemods/v3'>;
}
declare module '@primer/components/codemods/v4.js' {
declare module.exports: $Exports<'@primer/components/codemods/v4'>;
}
declare module '@primer/components/css.js' {
declare module.exports: $Exports<'@primer/components/css'>;
}
declare module '@primer/components/dist/css.js' {
declare module.exports: $Exports<'@primer/components/dist/css'>;
}
declare module '@primer/components/dist/index.esm.js' {
declare module.exports: $Exports<'@primer/components/dist/index.esm'>;
}
declare module '@primer/components/dist/index.umd.js' {
declare module.exports: $Exports<'@primer/components/dist/index.umd'>;
}
declare module '@primer/components/src/Avatar.js' {
declare module.exports: $Exports<'@primer/components/src/Avatar'>;
}
declare module '@primer/components/src/AvatarPair.js' {
declare module.exports: $Exports<'@primer/components/src/AvatarPair'>;
}
declare module '@primer/components/src/BaseStyles.js' {
declare module.exports: $Exports<'@primer/components/src/BaseStyles'>;
}
declare module '@primer/components/src/BorderBox.js' {
declare module.exports: $Exports<'@primer/components/src/BorderBox'>;
}
declare module '@primer/components/src/Box.js' {
declare module.exports: $Exports<'@primer/components/src/Box'>;
}
declare module '@primer/components/src/BranchName.js' {
declare module.exports: $Exports<'@primer/components/src/BranchName'>;
}
declare module '@primer/components/src/Button.js' {
declare module.exports: $Exports<'@primer/components/src/Button'>;
}
declare module '@primer/components/src/ButtonDanger.js' {
declare module.exports: $Exports<'@primer/components/src/ButtonDanger'>;
}
declare module '@primer/components/src/ButtonOutline.js' {
declare module.exports: $Exports<'@primer/components/src/ButtonOutline'>;
}
declare module '@primer/components/src/ButtonPrimary.js' {
declare module.exports: $Exports<'@primer/components/src/ButtonPrimary'>;
}
declare module '@primer/components/src/ButtonStyles.js' {
declare module.exports: $Exports<'@primer/components/src/ButtonStyles'>;
}
declare module '@primer/components/src/Caret.js' {
declare module.exports: $Exports<'@primer/components/src/Caret'>;
}
declare module '@primer/components/src/CircleBadge.js' {
declare module.exports: $Exports<'@primer/components/src/CircleBadge'>;
}
declare module '@primer/components/src/CircleOcticon.js' {
declare module.exports: $Exports<'@primer/components/src/CircleOcticon'>;
}
declare module '@primer/components/src/constants.js' {
declare module.exports: $Exports<'@primer/components/src/constants'>;
}
declare module '@primer/components/src/CounterLabel.js' {
declare module.exports: $Exports<'@primer/components/src/CounterLabel'>;
}
declare module '@primer/components/src/css.js' {
declare module.exports: $Exports<'@primer/components/src/css'>;
}
declare module '@primer/components/src/Details.js' {
declare module.exports: $Exports<'@primer/components/src/Details'>;
}
declare module '@primer/components/src/Donut.js' {
declare module.exports: $Exports<'@primer/components/src/Donut'>;
}
declare module '@primer/components/src/Dropdown.js' {
declare module.exports: $Exports<'@primer/components/src/Dropdown'>;
}
declare module '@primer/components/src/DropdownStyles.js' {
declare module.exports: $Exports<'@primer/components/src/DropdownStyles'>;
}
declare module '@primer/components/src/FilterList.js' {
declare module.exports: $Exports<'@primer/components/src/FilterList'>;
}
declare module '@primer/components/src/Flash.js' {
declare module.exports: $Exports<'@primer/components/src/Flash'>;
}
declare module '@primer/components/src/Flex.js' {
declare module.exports: $Exports<'@primer/components/src/Flex'>;
}
declare module '@primer/components/src/Heading.js' {
declare module.exports: $Exports<'@primer/components/src/Heading'>;
}
declare module '@primer/components/src/index.js' {
declare module.exports: $Exports<'@primer/components/src/index'>;
}
declare module '@primer/components/src/Label.js' {
declare module.exports: $Exports<'@primer/components/src/Label'>;
}
declare module '@primer/components/src/Link.js' {
declare module.exports: $Exports<'@primer/components/src/Link'>;
}
declare module '@primer/components/src/PointerBox.js' {
declare module.exports: $Exports<'@primer/components/src/PointerBox'>;
}
declare module '@primer/components/src/Position.js' {
declare module.exports: $Exports<'@primer/components/src/Position'>;
}
declare module '@primer/components/src/PrimerComponentsAnimation.js' {
declare module.exports: $Exports<'@primer/components/src/PrimerComponentsAnimation'>;
}
declare module '@primer/components/src/StateLabel.js' {
declare module.exports: $Exports<'@primer/components/src/StateLabel'>;
}
declare module '@primer/components/src/StyledOcticon.js' {
declare module.exports: $Exports<'@primer/components/src/StyledOcticon'>;
}
declare module '@primer/components/src/Text.js' {
declare module.exports: $Exports<'@primer/components/src/Text'>;
}
declare module '@primer/components/src/TextInput.js' {
declare module.exports: $Exports<'@primer/components/src/TextInput'>;
}
declare module '@primer/components/src/theme.js' {
declare module.exports: $Exports<'@primer/components/src/theme'>;
}
declare module '@primer/components/src/Tooltip.js' {
declare module.exports: $Exports<'@primer/components/src/Tooltip'>;
}
declare module '@primer/components/src/UnderlineNav.js' {
declare module.exports: $Exports<'@primer/components/src/UnderlineNav'>;
}

375
flow-typed/npm/@roleypoly/ui_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,375 @@
// flow-typed signature: 96e25376ad0cc98347e01eae00fc9561
// flow-typed version: <<STUB>>/@roleypoly/ui_v^2.0.0/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* '@roleypoly/ui'
*
* 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 '@roleypoly/ui' {
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 '@roleypoly/ui/components/__test__/discord-button.test' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/__test__/discord-guild-pic.test' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/demos/tap' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/demos/typing' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/discord-button' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/discord-guild-pic' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/global-colors' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/header/auth' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/header/common' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/header/unauth' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/layout' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/logo' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/role/__test__/demo.test' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/role/__test__/Role.test' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/role/demo' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/role/index' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/role/role.styled' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/social-cards' {
declare module.exports: any;
}
declare module '@roleypoly/ui/components/tooltip' {
declare module.exports: any;
}
declare module '@roleypoly/ui/config/demo' {
declare module.exports: any;
}
declare module '@roleypoly/ui/config/redux' {
declare module.exports: any;
}
declare module '@roleypoly/ui/config/rpc' {
declare module.exports: any;
}
declare module '@roleypoly/ui/connector' {
declare module.exports: any;
}
declare module '@roleypoly/ui/containers/header-bar' {
declare module.exports: any;
}
declare module '@roleypoly/ui/kit/__test__/media.test' {
declare module.exports: any;
}
declare module '@roleypoly/ui/kit/debug-breakpoints' {
declare module.exports: any;
}
declare module '@roleypoly/ui/kit/media' {
declare module.exports: any;
}
declare module '@roleypoly/ui/lib/redirect' {
declare module.exports: any;
}
declare module '@roleypoly/ui/next.config' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_app' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_document' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_error' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_internal/_discordbot/_auth' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_internal/_discordbot/_magic' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_internal/_server_add' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_internal/_server' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_test/error' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/_test/landing-mock' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/auth/expired' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/auth/login' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/help/why-no-roles' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/index' {
declare module.exports: any;
}
declare module '@roleypoly/ui/pages/testrpc' {
declare module.exports: any;
}
declare module '@roleypoly/ui/rpc/index' {
declare module.exports: any;
}
declare module '@roleypoly/ui/setupTests' {
declare module.exports: any;
}
declare module '@roleypoly/ui/stores/currentServer' {
declare module.exports: any;
}
declare module '@roleypoly/ui/stores/roles' {
declare module.exports: any;
}
declare module '@roleypoly/ui/stores/servers' {
declare module.exports: any;
}
declare module '@roleypoly/ui/stores/user' {
declare module.exports: any;
}
declare module '@roleypoly/ui/types' {
declare module.exports: any;
}
// Filename aliases
declare module '@roleypoly/ui/components/__test__/discord-button.test.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/__test__/discord-button.test'>;
}
declare module '@roleypoly/ui/components/__test__/discord-guild-pic.test.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/__test__/discord-guild-pic.test'>;
}
declare module '@roleypoly/ui/components/demos/tap.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/demos/tap'>;
}
declare module '@roleypoly/ui/components/demos/typing.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/demos/typing'>;
}
declare module '@roleypoly/ui/components/discord-button.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/discord-button'>;
}
declare module '@roleypoly/ui/components/discord-guild-pic.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/discord-guild-pic'>;
}
declare module '@roleypoly/ui/components/global-colors.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/global-colors'>;
}
declare module '@roleypoly/ui/components/header/auth.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/header/auth'>;
}
declare module '@roleypoly/ui/components/header/common.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/header/common'>;
}
declare module '@roleypoly/ui/components/header/unauth.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/header/unauth'>;
}
declare module '@roleypoly/ui/components/layout.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/layout'>;
}
declare module '@roleypoly/ui/components/logo.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/logo'>;
}
declare module '@roleypoly/ui/components/role/__test__/demo.test.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/role/__test__/demo.test'>;
}
declare module '@roleypoly/ui/components/role/__test__/Role.test.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/role/__test__/Role.test'>;
}
declare module '@roleypoly/ui/components/role/demo.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/role/demo'>;
}
declare module '@roleypoly/ui/components/role/index.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/role/index'>;
}
declare module '@roleypoly/ui/components/role/role.styled.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/role/role.styled'>;
}
declare module '@roleypoly/ui/components/social-cards.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/social-cards'>;
}
declare module '@roleypoly/ui/components/tooltip.js' {
declare module.exports: $Exports<'@roleypoly/ui/components/tooltip'>;
}
declare module '@roleypoly/ui/config/demo.js' {
declare module.exports: $Exports<'@roleypoly/ui/config/demo'>;
}
declare module '@roleypoly/ui/config/redux.js' {
declare module.exports: $Exports<'@roleypoly/ui/config/redux'>;
}
declare module '@roleypoly/ui/config/rpc.js' {
declare module.exports: $Exports<'@roleypoly/ui/config/rpc'>;
}
declare module '@roleypoly/ui/connector.js' {
declare module.exports: $Exports<'@roleypoly/ui/connector'>;
}
declare module '@roleypoly/ui/containers/header-bar.js' {
declare module.exports: $Exports<'@roleypoly/ui/containers/header-bar'>;
}
declare module '@roleypoly/ui/kit/__test__/media.test.js' {
declare module.exports: $Exports<'@roleypoly/ui/kit/__test__/media.test'>;
}
declare module '@roleypoly/ui/kit/debug-breakpoints.js' {
declare module.exports: $Exports<'@roleypoly/ui/kit/debug-breakpoints'>;
}
declare module '@roleypoly/ui/kit/media.js' {
declare module.exports: $Exports<'@roleypoly/ui/kit/media'>;
}
declare module '@roleypoly/ui/lib/redirect.js' {
declare module.exports: $Exports<'@roleypoly/ui/lib/redirect'>;
}
declare module '@roleypoly/ui/next.config.js' {
declare module.exports: $Exports<'@roleypoly/ui/next.config'>;
}
declare module '@roleypoly/ui/pages/_app.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_app'>;
}
declare module '@roleypoly/ui/pages/_document.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_document'>;
}
declare module '@roleypoly/ui/pages/_error.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_error'>;
}
declare module '@roleypoly/ui/pages/_internal/_discordbot/_auth.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_internal/_discordbot/_auth'>;
}
declare module '@roleypoly/ui/pages/_internal/_discordbot/_magic.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_internal/_discordbot/_magic'>;
}
declare module '@roleypoly/ui/pages/_internal/_server_add.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_internal/_server_add'>;
}
declare module '@roleypoly/ui/pages/_internal/_server.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_internal/_server'>;
}
declare module '@roleypoly/ui/pages/_test/error.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_test/error'>;
}
declare module '@roleypoly/ui/pages/_test/landing-mock.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/_test/landing-mock'>;
}
declare module '@roleypoly/ui/pages/auth/expired.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/auth/expired'>;
}
declare module '@roleypoly/ui/pages/auth/login.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/auth/login'>;
}
declare module '@roleypoly/ui/pages/help/why-no-roles.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/help/why-no-roles'>;
}
declare module '@roleypoly/ui/pages/index.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/index'>;
}
declare module '@roleypoly/ui/pages/testrpc.js' {
declare module.exports: $Exports<'@roleypoly/ui/pages/testrpc'>;
}
declare module '@roleypoly/ui/rpc/index.js' {
declare module.exports: $Exports<'@roleypoly/ui/rpc/index'>;
}
declare module '@roleypoly/ui/setupTests.js' {
declare module.exports: $Exports<'@roleypoly/ui/setupTests'>;
}
declare module '@roleypoly/ui/stores/currentServer.js' {
declare module.exports: $Exports<'@roleypoly/ui/stores/currentServer'>;
}
declare module '@roleypoly/ui/stores/roles.js' {
declare module.exports: $Exports<'@roleypoly/ui/stores/roles'>;
}
declare module '@roleypoly/ui/stores/servers.js' {
declare module.exports: $Exports<'@roleypoly/ui/stores/servers'>;
}
declare module '@roleypoly/ui/stores/user.js' {
declare module.exports: $Exports<'@roleypoly/ui/stores/user'>;
}
declare module '@roleypoly/ui/types.js' {
declare module.exports: $Exports<'@roleypoly/ui/types'>;
}

38
flow-typed/npm/await-outside_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,38 @@
// flow-typed signature: 8720acc61688402d711803862c45492c
// flow-typed version: <<STUB>>/await-outside_v^2.1.2/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'await-outside'
*
* 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 'await-outside' {
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 'await-outside/repl' {
declare module.exports: any;
}
// Filename aliases
declare module 'await-outside/index' {
declare module.exports: $Exports<'await-outside'>;
}
declare module 'await-outside/index.js' {
declare module.exports: $Exports<'await-outside'>;
}
declare module 'await-outside/repl.js' {
declare module.exports: $Exports<'await-outside/repl'>;
}

109
flow-typed/npm/babel-eslint_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,109 @@
// flow-typed signature: 03bb20be27e0b5d1aa1965337e650c6b
// flow-typed version: <<STUB>>/babel-eslint_v^10.0.1/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'babel-eslint' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-eslint/lib/analyze-scope' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/attachComments' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertComments' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/index' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/toAST' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/toToken' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/toTokens' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/index' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/parse-with-scope' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/parse' {
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-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/visitor-keys.js' {
declare module.exports: $Exports<'babel-eslint/lib/visitor-keys'>;
}

View file

@ -0,0 +1,130 @@
// flow-typed signature: 762dc1876e202de0624c5a3ce5e332ee
// flow-typed version: <<STUB>>/babel-plugin-styled-components_v^1.10.0/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-styled-components'
*
* 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-styled-components' {
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-styled-components/lib/css/placeholderUtils' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/index' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/minify/index' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/utils/detectors' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/utils/getName' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/utils/hash' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/utils/options' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/utils/prefixDigit' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/visitors/assignStyledRequired' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/visitors/displayNameAndId' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/visitors/minify' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/visitors/pure' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/index' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile' {
declare module.exports: any;
}
declare module 'babel-plugin-styled-components/lib/visitors/transpileCssProp' {
declare module.exports: any;
}
// Filename aliases
declare module 'babel-plugin-styled-components/lib/css/placeholderUtils.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/placeholderUtils'>;
}
declare module 'babel-plugin-styled-components/lib/index.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/index'>;
}
declare module 'babel-plugin-styled-components/lib/minify/index.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/minify/index'>;
}
declare module 'babel-plugin-styled-components/lib/utils/detectors.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/detectors'>;
}
declare module 'babel-plugin-styled-components/lib/utils/getName.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/getName'>;
}
declare module 'babel-plugin-styled-components/lib/utils/hash.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/hash'>;
}
declare module 'babel-plugin-styled-components/lib/utils/options.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/options'>;
}
declare module 'babel-plugin-styled-components/lib/utils/prefixDigit.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/prefixDigit'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/assignStyledRequired.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/assignStyledRequired'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/displayNameAndId.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/displayNameAndId'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/minify.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/minify'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/pure.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/pure'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/index.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/index'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/transpileCssProp.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/transpileCssProp'>;
}

View file

@ -0,0 +1,32 @@
// flow-typed signature: 7ad707961a09c60074833a670e7c5a83
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-transform-flow-strip-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-flow-strip-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-flow-strip-types/lib/index' {
declare module.exports: any;
}
// Filename aliases
declare module 'babel-plugin-transform-flow-strip-types/lib/index.js' {
declare module.exports: $Exports<'babel-plugin-transform-flow-strip-types/lib/index'>;
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: ebcf7353364f219af707d81b3e8caab3 // flow-typed signature: a702dffd35f68a7893add59bbf83b8fb
// flow-typed version: <<STUB>>/bufferutil_v^4.0.1/flow_v0.95.1 // flow-typed version: <<STUB>>/bufferutil_v^4.0.1/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: c48eff6514eb814fbcf5d5c6fb604b61 // flow-typed signature: 96816851f91a21f2f9741343c162ccf0
// flow-typed version: <<STUB>>/color_v^3.1.0/flow_v0.95.1 // flow-typed version: <<STUB>>/color_v^3.1.0/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: 78eaeca6fae5b7e2b773e29cdd96b28b // flow-typed signature: caf3f0e2c38724e409492d77a58a5080
// flow-typed version: <<STUB>>/dotenv_v^7.0.0/flow_v0.95.1 // flow-typed version: <<STUB>>/dotenv_v^7.0.0/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -0,0 +1,81 @@
// flow-typed signature: 7a4ce8257d745ddee5ef466f19a4d40e
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.11.2/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'enzyme-adapter-react-16'
*
* 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 'enzyme-adapter-react-16' {
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 'enzyme-adapter-react-16/build/detectFiberTags' {
declare module.exports: any;
}
declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath' {
declare module.exports: any;
}
declare module 'enzyme-adapter-react-16/build/index' {
declare module.exports: any;
}
declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter' {
declare module.exports: any;
}
declare module 'enzyme-adapter-react-16/src/detectFiberTags' {
declare module.exports: any;
}
declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath' {
declare module.exports: any;
}
declare module 'enzyme-adapter-react-16/src/index' {
declare module.exports: any;
}
declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter' {
declare module.exports: any;
}
// Filename aliases
declare module 'enzyme-adapter-react-16/build/detectFiberTags.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/build/detectFiberTags'>;
}
declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath'>;
}
declare module 'enzyme-adapter-react-16/build/index.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/build/index'>;
}
declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/build/ReactSixteenAdapter'>;
}
declare module 'enzyme-adapter-react-16/src/detectFiberTags.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/src/detectFiberTags'>;
}
declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath'>;
}
declare module 'enzyme-adapter-react-16/src/index.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/src/index'>;
}
declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/src/ReactSixteenAdapter'>;
}

73
flow-typed/npm/enzyme-to-json_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,73 @@
// flow-typed signature: e171aee9f22d1c3e6741f5870c2b069f
// flow-typed version: <<STUB>>/enzyme-to-json_v^3.3.5/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'enzyme-to-json'
*
* 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 'enzyme-to-json' {
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 'enzyme-to-json/createSerializer' {
declare module.exports: any;
}
declare module 'enzyme-to-json/mount' {
declare module.exports: any;
}
declare module 'enzyme-to-json/render' {
declare module.exports: any;
}
declare module 'enzyme-to-json/serializer' {
declare module.exports: any;
}
declare module 'enzyme-to-json/shallow' {
declare module.exports: any;
}
declare module 'enzyme-to-json/utils' {
declare module.exports: any;
}
// Filename aliases
declare module 'enzyme-to-json/createSerializer.js' {
declare module.exports: $Exports<'enzyme-to-json/createSerializer'>;
}
declare module 'enzyme-to-json/index' {
declare module.exports: $Exports<'enzyme-to-json'>;
}
declare module 'enzyme-to-json/index.js' {
declare module.exports: $Exports<'enzyme-to-json'>;
}
declare module 'enzyme-to-json/mount.js' {
declare module.exports: $Exports<'enzyme-to-json/mount'>;
}
declare module 'enzyme-to-json/render.js' {
declare module.exports: $Exports<'enzyme-to-json/render'>;
}
declare module 'enzyme-to-json/serializer.js' {
declare module.exports: $Exports<'enzyme-to-json/serializer'>;
}
declare module 'enzyme-to-json/shallow.js' {
declare module.exports: $Exports<'enzyme-to-json/shallow'>;
}
declare module 'enzyme-to-json/utils.js' {
declare module.exports: $Exports<'enzyme-to-json/utils'>;
}

135
flow-typed/npm/enzyme_v3.x.x.js vendored Normal file
View file

@ -0,0 +1,135 @@
// flow-typed signature: f6bad512110ebc6da85b1ddda297fe3d
// flow-typed version: f04d291d8b/enzyme_v3.x.x/flow_>=v0.53.x
declare module "enzyme" {
declare type PredicateFunction<T: Wrapper<*>> = (
wrapper: T,
index: number
) => boolean;
declare type UntypedSelector = string | {[key: string]: number|string|boolean};
declare type EnzymeSelector = UntypedSelector | React$ElementType;
// 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<RootComponent> {
equals(node: React$Element<any>): boolean,
find(selector: UntypedSelector): this,
find<T: React$ElementType>(selector: T): ReactWrapper<T>,
findWhere(predicate: PredicateFunction<this>): this,
filter(selector: UntypedSelector): this,
filter<T: React$ElementType>(selector: T): ReactWrapper<T>,
filterWhere(predicate: PredicateFunction<this>): this,
hostNodes(): this,
contains(nodes: React$Node): boolean,
containsMatchingElement(node: React$Node): boolean,
containsAllMatchingElements(nodes: React$Node): boolean,
containsAnyMatchingElements(nodes: React$Node): 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?: UntypedSelector): this,
children<T: React$ElementType>(selector: T): ReactWrapper<T>,
childAt(index: number): this,
parents(selector?: UntypedSelector): this,
parents<T: React$ElementType>(selector: T): ReactWrapper<T>,
parent(): this,
closest(selector: UntypedSelector): this,
closest<T: React$ElementType>(selector: T): ReactWrapper<T>,
render(): CheerioWrapper,
renderProp(propName: string): (...args: Array<any>) => 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<any>): 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<RootComponent>,
update(): this,
debug(options?: Object): string,
type(): string | Function | null,
name(): string,
forEach(fn: (node: this, index: number) => mixed): this,
map<T>(fn: (node: this, index: number) => T): Array<T>,
reduce<T>(
fn: (value: T, node: this, index: number) => T,
initialValue?: T
): Array<T>,
reduceRight<T>(
fn: (value: T, node: this, index: number) => T,
initialValue?: T
): Array<T>,
some(selector: EnzymeSelector): boolean,
someWhere(predicate: PredicateFunction<this>): boolean,
every(selector: EnzymeSelector): boolean,
everyWhere(predicate: PredicateFunction<this>): boolean,
length: number
}
declare class ReactWrapper<T> extends Wrapper<T> {
constructor(nodes: React$Element<T>, root: any, options?: ?Object): ReactWrapper<T>,
mount(): this,
ref(refName: string): this,
detach(): void
}
declare class ShallowWrapper<T> extends Wrapper<T> {
constructor(
nodes: React$Element<T>,
root: any,
options?: ?Object
): ShallowWrapper<T>,
equals(node: React$Node): boolean,
shallow(options?: { context?: Object }): ShallowWrapper<T>,
getElement(): React$Node,
getElements(): Array<React$Node>
}
declare function shallow<T>(
node: React$Element<T>,
options?: { context?: Object, disableLifecycleMethods?: boolean }
): ShallowWrapper<T>;
declare function mount<T>(
node: React$Element<T>,
options?: {
context?: Object,
attachTo?: HTMLElement,
childContextTypes?: Object
}
): ReactWrapper<T>;
declare function render<T>(
node: React$Element<T>,
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
};
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: 232d4beefbeac5079b067cce43313beb // flow-typed signature: a4fb1c51462475d842d068273db86843
// flow-typed version: <<STUB>>/erlpack_vdiscordapp/erlpack/flow_v0.95.1 // flow-typed version: <<STUB>>/erlpack_vdiscordapp/erlpack/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -0,0 +1,459 @@
// flow-typed signature: 6116ca3cb569193eb8a9047fbbf5992b
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^3.4.2/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-flowtype'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'eslint-plugin-flowtype' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'eslint-plugin-flowtype/dist/bin/addAssertions' {
declare module.exports: any;
}
declare module 'eslint-plugin-flowtype/dist/bin/checkDocs' {
declare module.exports: any;
}
declare module 'eslint-plugin-flowtype/dist/bin/checkTests' {
declare module.exports: any;
}
declare module 'eslint-plugin-flowtype/dist/bin/utilities' {
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/noMixed' {
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/requireCompoundTypeAlias' {
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/dist/bin/addAssertions.js' {
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/bin/addAssertions'>;
}
declare module 'eslint-plugin-flowtype/dist/bin/checkDocs.js' {
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/bin/checkDocs'>;
}
declare module 'eslint-plugin-flowtype/dist/bin/checkTests.js' {
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/bin/checkTests'>;
}
declare module 'eslint-plugin-flowtype/dist/bin/utilities.js' {
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/bin/utilities'>;
}
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/noMixed.js' {
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noMixed'>;
}
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/requireCompoundTypeAlias.js' {
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireCompoundTypeAlias'>;
}
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'>;
}

2531
flow-typed/npm/eslint_vx.x.x.js vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
// flow-typed signature: 06bf263dc6466d2c2cb5f92073fb9484 // flow-typed signature: e8145f7f4fa94963b20c369e3e852cb5
// flow-typed version: <<STUB>>/fast-redux_v^0.7.1/flow_v0.95.1 // flow-typed version: <<STUB>>/fast-redux_v^0.7.1/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

6
flow-typed/npm/flow-bin_v0.x.x.js vendored Normal file
View file

@ -0,0 +1,6 @@
// 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;
}

193
flow-typed/npm/flow-typed_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,193 @@
// flow-typed signature: f3ae05820edaf0274406f3fe2a57a6cd
// flow-typed version: <<STUB>>/flow-typed_v^2.5.1/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'flow-typed'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'flow-typed' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'flow-typed/dist/cli' {
declare module.exports: any;
}
declare module 'flow-typed/dist/commands/create-stub' {
declare module.exports: any;
}
declare module 'flow-typed/dist/commands/install' {
declare module.exports: any;
}
declare module 'flow-typed/dist/commands/runTests' {
declare module.exports: any;
}
declare module 'flow-typed/dist/commands/search' {
declare module.exports: any;
}
declare module 'flow-typed/dist/commands/update-cache' {
declare module.exports: any;
}
declare module 'flow-typed/dist/commands/update' {
declare module.exports: any;
}
declare module 'flow-typed/dist/commands/validateDefs' {
declare module.exports: any;
}
declare module 'flow-typed/dist/commands/version' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/cacheRepoUtils' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/codeSign' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/fileUtils' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/flowProjectUtils' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/flowVersion' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/git' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/github' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/isInFlowTypedRepo' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/libDefs' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/node' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/npm/npmLibDefs' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/npm/npmProjectUtils' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/semver' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/stubUtils' {
declare module.exports: any;
}
declare module 'flow-typed/dist/lib/validationErrors' {
declare module.exports: any;
}
// Filename aliases
declare module 'flow-typed/dist/cli.js' {
declare module.exports: $Exports<'flow-typed/dist/cli'>;
}
declare module 'flow-typed/dist/commands/create-stub.js' {
declare module.exports: $Exports<'flow-typed/dist/commands/create-stub'>;
}
declare module 'flow-typed/dist/commands/install.js' {
declare module.exports: $Exports<'flow-typed/dist/commands/install'>;
}
declare module 'flow-typed/dist/commands/runTests.js' {
declare module.exports: $Exports<'flow-typed/dist/commands/runTests'>;
}
declare module 'flow-typed/dist/commands/search.js' {
declare module.exports: $Exports<'flow-typed/dist/commands/search'>;
}
declare module 'flow-typed/dist/commands/update-cache.js' {
declare module.exports: $Exports<'flow-typed/dist/commands/update-cache'>;
}
declare module 'flow-typed/dist/commands/update.js' {
declare module.exports: $Exports<'flow-typed/dist/commands/update'>;
}
declare module 'flow-typed/dist/commands/validateDefs.js' {
declare module.exports: $Exports<'flow-typed/dist/commands/validateDefs'>;
}
declare module 'flow-typed/dist/commands/version.js' {
declare module.exports: $Exports<'flow-typed/dist/commands/version'>;
}
declare module 'flow-typed/dist/lib/cacheRepoUtils.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/cacheRepoUtils'>;
}
declare module 'flow-typed/dist/lib/codeSign.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/codeSign'>;
}
declare module 'flow-typed/dist/lib/fileUtils.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/fileUtils'>;
}
declare module 'flow-typed/dist/lib/flowProjectUtils.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/flowProjectUtils'>;
}
declare module 'flow-typed/dist/lib/flowVersion.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/flowVersion'>;
}
declare module 'flow-typed/dist/lib/git.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/git'>;
}
declare module 'flow-typed/dist/lib/github.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/github'>;
}
declare module 'flow-typed/dist/lib/isInFlowTypedRepo.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/isInFlowTypedRepo'>;
}
declare module 'flow-typed/dist/lib/libDefs.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/libDefs'>;
}
declare module 'flow-typed/dist/lib/node.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/node'>;
}
declare module 'flow-typed/dist/lib/npm/npmLibDefs.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmLibDefs'>;
}
declare module 'flow-typed/dist/lib/npm/npmProjectUtils.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmProjectUtils'>;
}
declare module 'flow-typed/dist/lib/semver.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/semver'>;
}
declare module 'flow-typed/dist/lib/stubUtils.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/stubUtils'>;
}
declare module 'flow-typed/dist/lib/validationErrors.js' {
declare module.exports: $Exports<'flow-typed/dist/lib/validationErrors'>;
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: b5e779fb691b989b687ffd5e63af3289 // flow-typed signature: 1c08784b6a012c1b27c4f356abcf4857
// flow-typed version: <<STUB>>/fnv-plus_v^1.2.12/flow_v0.95.1 // flow-typed version: <<STUB>>/fnv-plus_v^1.2.12/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -0,0 +1,74 @@
// flow-typed signature: 2c9e2d1f0921ec053c378e873bc9f27c
// flow-typed version: <<STUB>>/jest-styled-components_v^6.3.1/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'jest-styled-components'
*
* 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-styled-components' {
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-styled-components/native/index' {
declare module.exports: any;
}
declare module 'jest-styled-components/serializer/index' {
declare module.exports: any;
}
declare module 'jest-styled-components/src/index' {
declare module.exports: any;
}
declare module 'jest-styled-components/src/native/toHaveStyleRule' {
declare module.exports: any;
}
declare module 'jest-styled-components/src/styleSheetSerializer' {
declare module.exports: any;
}
declare module 'jest-styled-components/src/toHaveStyleRule' {
declare module.exports: any;
}
declare module 'jest-styled-components/src/utils' {
declare module.exports: any;
}
// Filename aliases
declare module 'jest-styled-components/native/index.js' {
declare module.exports: $Exports<'jest-styled-components/native/index'>;
}
declare module 'jest-styled-components/serializer/index.js' {
declare module.exports: $Exports<'jest-styled-components/serializer/index'>;
}
declare module 'jest-styled-components/src/index.js' {
declare module.exports: $Exports<'jest-styled-components/src/index'>;
}
declare module 'jest-styled-components/src/native/toHaveStyleRule.js' {
declare module.exports: $Exports<'jest-styled-components/src/native/toHaveStyleRule'>;
}
declare module 'jest-styled-components/src/styleSheetSerializer.js' {
declare module.exports: $Exports<'jest-styled-components/src/styleSheetSerializer'>;
}
declare module 'jest-styled-components/src/toHaveStyleRule.js' {
declare module.exports: $Exports<'jest-styled-components/src/toHaveStyleRule'>;
}
declare module 'jest-styled-components/src/utils.js' {
declare module.exports: $Exports<'jest-styled-components/src/utils'>;
}

1186
flow-typed/npm/jest_v24.x.x.js vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
// flow-typed signature: cb1761dc3a3803793f73bbefea974071 // flow-typed signature: 238a686d4f6643cbcb06749cdc91081f
// flow-typed version: <<STUB>>/keygrip_v^1.0.3/flow_v0.95.1 // flow-typed version: <<STUB>>/keygrip_v^1.0.3/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: 21d8ab5d2812f9d37301a5fcf05c9684 // flow-typed signature: 280b0a9bc1df1d2b791509beb8ae723c
// flow-typed version: <<STUB>>/koa-better-router_v^2.1.1/flow_v0.95.1 // flow-typed version: <<STUB>>/koa-better-router_v^2.1.1/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: d1be64845a74b078fc3d13032eabff02 // flow-typed signature: 749cfcd8abd66a98e3ea559173f58ec7
// flow-typed version: <<STUB>>/koa-session_v^5.10.1/flow_v0.95.1 // flow-typed version: <<STUB>>/koa-session_v^5.10.1/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

304
flow-typed/npm/koa_v2.0.x.js vendored Normal file
View file

@ -0,0 +1,304 @@
// flow-typed signature: 6d4f3af739940c5f8cec03ee95584b66
// flow-typed version: d512dfb5d1/koa_v2.0.x/flow_>=v0.94.x
/*
* Type def from from source code of koa.
* this: https://github.com/koajs/koa/commit/fabf5864c6a5dca0782b867a263b1b0825a05bf9
**/
declare module 'koa' {
declare type JSON = | string | number | boolean | null | JSONObject | JSONArray;
declare type JSONObject = { [key: string]: JSON };
declare type JSONArray = Array<JSON>;
declare type SimpleHeader = {
'set-cookie'?: Array<string>,
[key: string]: string,
};
declare type RequestJSON = {
'method': string,
'url': string,
'header': SimpleHeader,
};
declare type RequestInspect = void|RequestJSON;
declare type Request = {
app: Application,
req: http$IncomingMessage<>,
res: http$ServerResponse,
ctx: Context,
response: Response,
fresh: boolean,
header: SimpleHeader,
headers: SimpleHeader, // alias as header
host: string,
hostname: string,
href: string,
idempotent: boolean,
ip: string,
ips: string[],
method: string,
origin: string,
originalUrl: string,
path: string,
protocol: string,
query: {[key: string]: string}, // always string
querystring: string,
search: string,
secure: boolean, // Shorthand for ctx.protocol == "https" to check if a request was issued via TLS.
socket: net$Socket,
stale: boolean,
subdomains: string[],
type: string,
url: string,
charset: string|void,
length: number|void,
// Those functions comes from https://github.com/jshttp/accepts/blob/master/index.js
// request.js$L445
// https://github.com/jshttp/accepts/blob/master/test/type.js
accepts: ((args: string[]) => string|false)&
// ToDo: There is an issue https://github.com/facebook/flow/issues/3009
// if you meet some error here, temporarily add an additional annotation
// like: `request.accepts((['json', 'text']:Array<string>))` to fix it.
((arg: string, ...args: string[]) => string|false) &
( () => string[] ) , // return the old value.
// https://github.com/jshttp/accepts/blob/master/index.js#L153
// https://github.com/jshttp/accepts/blob/master/test/charset.js
acceptsCharsets: ( (args: string[]) => buffer$Encoding|false)&
// ToDo: https://github.com/facebook/flow/issues/3009
// if you meet some error here, see L70.
( (arg: string, ...args: string[]) => buffer$Encoding|false ) &
( () => string[] ),
// https://github.com/jshttp/accepts/blob/master/index.js#L119
// https://github.com/jshttp/accepts/blob/master/test/encoding.js
acceptsEncodings: ( (args: string[]) => string|false)&
// ToDo: https://github.com/facebook/flow/issues/3009
// if you meet some error here, see L70.
( (arg: string, ...args: string[]) => string|false ) &
( () => string[] ),
// https://github.com/jshttp/accepts/blob/master/index.js#L185
// https://github.com/jshttp/accepts/blob/master/test/language.js
acceptsLanguages: ( (args: string[]) => string|false) &
// ToDo: https://github.com/facebook/flow/issues/3009
// if you meet some error here, see L70.
( (arg: string, ...args: string[]) => string|false ) &
( () => string[] ),
get: (field: string) => string,
/* https://github.com/jshttp/type-is/blob/master/test/test.js
* Check if the incoming request contains the "Content-Type"
* header field, and it contains any of the give mime `type`s.
* If there is no request body, `null` is returned.
* If there is no content type, `false` is returned.
* Otherwise, it returns the first `type` that matches.
*/
is: ( (args: string[]) => null|false|string)&
( (arg: string, ...args: string[]) => null|false|string ) &
( () => string ), // should return the mime type
toJSON: () => RequestJSON,
inspect: () => RequestInspect,
[key: string]: mixed, // props added by middlewares.
};
declare type ResponseJSON = {
'status': mixed,
'message': mixed,
'header': mixed,
};
declare type ResponseInspect = {
'status': mixed,
'message': mixed,
'header': mixed,
'body': mixed,
};
declare type Response = {
app: Application,
req: http$IncomingMessage<>,
res: http$ServerResponse,
ctx: Context,
request: Request,
// docs/api/response.md#L113.
body: string | Buffer | stream$Stream | JSONObject | null, // JSON contains null
etag: string,
header: SimpleHeader,
headers: SimpleHeader, // alias as header
headerSent: boolean,
// can be set with string|Date, but get with Date.
// set lastModified(v: string|Date), // 0.36 doesn't support this.
lastModified: Date,
message: string,
socket: net$Socket,
status: number,
type: string,
writable: boolean,
// charset: string, // doesn't find in response.js
length: number|void,
append: (field: string, val: string | string[]) => void,
attachment: (filename?: string) => void,
get: (field: string) => string,
// https://github.com/jshttp/type-is/blob/master/test/test.js
// https://github.com/koajs/koa/blob/v2.x/lib/response.js#L382
is: ( (arg: string[]) => false|string) &
( (arg: string, ...args: string[]) => false|string ) &
( () => string ), // should return the mime type
redirect: (url: string, alt?: string) => void,
remove: (field: string) => void,
// https://github.com/koajs/koa/blob/v2.x/lib/response.js#L418
set: ((field: string, val: string | string[]) => void)&
((field: {[key: string]: string | string[]}) => void),
vary: (field: string) => void,
// https://github.com/koajs/koa/blob/v2.x/lib/response.js#L519
toJSON(): ResponseJSON,
inspect(): ResponseInspect,
[key: string]: mixed, // props added by middlewares.
}
declare type ContextJSON = {
request: RequestJSON,
response: ResponseJSON,
app: ApplicationJSON,
originalUrl: string,
req: '<original node req>',
res: '<original node res>',
socket: '<original node socket>',
};
// https://github.com/pillarjs/cookies
declare type CookiesSetOptions = {
domain: string, // domain of the cookie (no default).
maxAge: number, // milliseconds from Date.now() for expiry
expires?: Date, //cookie's expiration date (expires at the end of session by default).
path?: string, // the path of the cookie (/ by default).
secure?: boolean, // false by default for HTTP, true by default for HTTPS
httpOnly?: boolean, // a boolean indicating whether the cookie is only to be sent over HTTP(S),
// and not made available to client JavaScript (true by default).
signed?: boolean, // whether the cookie is to be signed (false by default)
overwrite?: boolean, // whether to overwrite previously set cookies of the same name (false by default).
};
declare type Cookies = {
get: (name: string, options?: {signed: boolean}) => string|void,
set: ((name: string, value: string, options?: CookiesSetOptions) => Context)&
// delete cookie (an outbound header with an expired date is used.)
( (name: string) => Context),
};
// The default props of context come from two files
// `application.createContext` & `context.js`
declare type Context = {
accept: $PropertyType<Request, 'accept'>,
app: Application,
cookies: Cookies,
name?: string, // ?
originalUrl: string,
req: http$IncomingMessage<>,
request: Request,
res: http$ServerResponse,
respond?: boolean, // should not be used, allow bypassing koa application.js#L193
response: Response,
state: {},
// context.js#L55
assert: (test: mixed, status: number, message?: string, opts?: mixed) => void,
// context.js#L107
// if (!(err instanceof Error)) err = new Error(`non-error thrown: ${err}`);
onerror: (err?: mixed) => void,
// context.js#L70
throw: (( statusOrErr: string|number|Error, errOrStatus?: string|number|Error,
opts?: {}) => void) &
(( statusOrErr: string|number|Error, opts?: Object) => void),
toJSON(): ContextJSON,
inspect(): ContextJSON,
// ToDo: add const for some props,
// while the `const props` feature of Flow is landing in future
// cherry pick from response
attachment: $PropertyType<Response, 'attachment'>,
redirect: $PropertyType<Response, 'redirect'>,
remove: $PropertyType<Response, 'remove'>,
vary: $PropertyType<Response, 'vary'>,
set: $PropertyType<Response, 'set'>,
append: $PropertyType<Response, 'append'>,
flushHeaders: $PropertyType<Response, 'flushHeaders'>,
status: $PropertyType<Response, 'status'>,
message: $PropertyType<Response, 'message'>,
body: $PropertyType<Response, 'body'>,
length: $PropertyType<Response, 'length'>,
type: $PropertyType<Response, 'type'>,
lastModified: $PropertyType<Response, 'lastModified'>,
etag: $PropertyType<Response, 'etag'>,
headerSent: $PropertyType<Response, 'headerSent'>,
writable: $PropertyType<Response, 'writable'>,
// cherry pick from request
acceptsLanguages: $PropertyType<Request, 'acceptsLanguages'>,
acceptsEncodings: $PropertyType<Request, 'acceptsEncodings'>,
acceptsCharsets: $PropertyType<Request, 'acceptsCharsets'>,
accepts: $PropertyType<Request, 'accepts'>,
get: $PropertyType<Request, 'get'>,
is: $PropertyType<Request, 'is'>,
querystring: $PropertyType<Request, 'querystring'>,
idempotent: $PropertyType<Request, 'idempotent'>,
socket: $PropertyType<Request, 'socket'>,
search: $PropertyType<Request, 'search'>,
method: $PropertyType<Request, 'method'>,
query: $PropertyType<Request, 'query'>,
path: $PropertyType<Request, 'path'>,
url: $PropertyType<Request, 'url'>,
origin: $PropertyType<Request, 'origin'>,
href: $PropertyType<Request, 'href'>,
subdomains: $PropertyType<Request, 'subdomains'>,
protocol: $PropertyType<Request, 'protocol'>,
host: $PropertyType<Request, 'host'>,
hostname: $PropertyType<Request, 'hostname'>,
header: $PropertyType<Request, 'header'>,
headers: $PropertyType<Request, 'headers'>,
secure: $PropertyType<Request, 'secure'>,
stale: $PropertyType<Request, 'stale'>,
fresh: $PropertyType<Request, 'fresh'>,
ips: $PropertyType<Request, 'ips'>,
ip: $PropertyType<Request, 'ip'>,
[key: string]: mixed, // props added by middlewares.
}
declare type Middleware =
(ctx: Context, next: () => Promise<void>) => Promise<void>|void;
declare type ApplicationJSON = {
'subdomainOffset': mixed,
'proxy': mixed,
'env': string,
};
declare class Application extends events$EventEmitter {
context: Context,
// request handler for node's native http server.
callback: () => (req: http$IncomingMessage<>, res: http$ServerResponse) => void,
env: string,
keys?: Array<string>|Object, // https://github.com/crypto-utils/keygrip
middleware: Array<Middleware>,
name?: string, // optionally give your application a name
proxy: boolean, // when true proxy header fields will be trusted
request: Request,
response: Response,
server: http$Server,
subdomainOffset: number,
listen: $PropertyType<http$Server, 'listen'>,
toJSON(): ApplicationJSON,
inspect(): ApplicationJSON,
use(fn: Middleware): this,
}
declare module.exports: Class<Application>;
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: 5e5c502f9a7bc24ff89ff2c48b7972ea // flow-typed signature: 3a2d1ff04b4afb17dfd267fdc0b5b8fa
// flow-typed version: <<STUB>>/kompression_v^1.0.0/flow_v0.95.1 // flow-typed version: <<STUB>>/kompression_v^1.0.0/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: c3667e1504ef05505e7e48f76cba29a3 // flow-typed signature: 9c4895c10427bdd08f133aef585b83f4
// flow-typed version: <<STUB>>/ksuid_v^1.1.3/flow_v0.95.1 // flow-typed version: <<STUB>>/ksuid_v^1.2.0/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

38
flow-typed/npm/lerna_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,38 @@
// flow-typed signature: 0a018fbd656d71c850dea629bbf50432
// flow-typed version: <<STUB>>/lerna_v^3.13.1/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'lerna'
*
* 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 'lerna' {
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 'lerna/cli' {
declare module.exports: any;
}
// Filename aliases
declare module 'lerna/cli.js' {
declare module.exports: $Exports<'lerna/cli'>;
}
declare module 'lerna/index' {
declare module.exports: $Exports<'lerna'>;
}
declare module 'lerna/index.js' {
declare module.exports: $Exports<'lerna'>;
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: 7c7f68aafd7a465ed13f83eec4983ff1 // flow-typed signature: aa3a1b0dfcedde8b8abcd0a7c7bb4270
// flow-typed version: <<STUB>>/lru-cache_v^5.1.1/flow_v0.95.1 // flow-typed version: <<STUB>>/lru-cache_v^5.1.1/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: c88b73e7590eadbdffc19aedb4e392c0 // flow-typed signature: 38bef6fa4c49572bbcfbcd6afc1015fa
// flow-typed version: <<STUB>>/moniker_v^0.1.2/flow_v0.95.1 // flow-typed version: <<STUB>>/moniker_v^0.1.2/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: a0f2442fec3839683a9f9487162d97ab // flow-typed signature: 992c245c5628a3bc1775f9c8b188d229
// flow-typed version: <<STUB>>/nanoid_v^2.0.1/flow_v0.95.1 // flow-typed version: <<STUB>>/nanoid_v^2.0.1/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: 0e327154e74d7e93ca5989e2213b0786 // flow-typed signature: 4d2b06c9821bfefd96d89afab05f912d
// flow-typed version: <<STUB>>/next-redux-wrapper_v^3.0.0-alpha.2/flow_v0.95.1 // flow-typed version: <<STUB>>/next-redux-wrapper_v^3.0.0-alpha.2/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: ba79ec46c4addc590b492a3213176c05 // flow-typed signature: 1c8f1d21224d6a9acdd7743fb382f28d
// flow-typed version: <<STUB>>/next_v^8.0.3/flow_v0.95.1 // flow-typed version: <<STUB>>/next_v^8.0.4/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:
@ -46,11 +46,11 @@ declare module 'next/constants' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/build/babel/plugins/commonjs' { declare module 'next/dist/build/babel/plugins/amp-attributes' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/build/babel/plugins/next-to-next-server' { declare module 'next/dist/build/babel/plugins/commonjs' {
declare module.exports: any; declare module.exports: any;
} }
@ -118,6 +118,10 @@ declare module 'next/dist/build/webpack/loaders/noop-loader' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/build/webpack/plugins/all-modules-identified-plugin' {
declare module.exports: any;
}
declare module 'next/dist/build/webpack/plugins/build-manifest-plugin' { declare module 'next/dist/build/webpack/plugins/build-manifest-plugin' {
declare module.exports: any; declare module.exports: any;
} }
@ -126,6 +130,10 @@ declare module 'next/dist/build/webpack/plugins/chunk-names-plugin' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/build/webpack/plugins/hashed-chunk-ids-plugin' {
declare module.exports: any;
}
declare module 'next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader' { declare module 'next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader' {
declare module.exports: any; declare module.exports: any;
} }
@ -150,7 +158,7 @@ declare module 'next/dist/build/webpack/plugins/serverless-plugin' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/build/webpack/plugins/terser-webpack-plugin/src/cjs' { declare module 'next/dist/build/webpack/plugins/shared-runtime-plugin' {
declare module.exports: any; declare module.exports: any;
} }
@ -170,7 +178,7 @@ declare module 'next/dist/build/webpack/plugins/terser-webpack-plugin/src/worker
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/build/webpack/plugins/unlink-file-plugin' { declare module 'next/dist/build/webpack/plugins/unlink-removed-pages-plugin' {
declare module.exports: any; declare module.exports: any;
} }
@ -178,6 +186,26 @@ declare module 'next/dist/build/write-build-id' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/cli/next-build' {
declare module.exports: any;
}
declare module 'next/dist/cli/next-dev' {
declare module.exports: any;
}
declare module 'next/dist/cli/next-export' {
declare module.exports: any;
}
declare module 'next/dist/cli/next-start' {
declare module.exports: any;
}
declare module 'next/dist/client/amp-dev' {
declare module.exports: any;
}
declare module 'next/dist/client/dev-error-overlay/eventsource' { declare module 'next/dist/client/dev-error-overlay/eventsource' {
declare module.exports: any; declare module.exports: any;
} }
@ -194,6 +222,10 @@ declare module 'next/dist/client/error-boundary' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/client/event-source-polyfill' {
declare module.exports: any;
}
declare module 'next/dist/client/head-manager' { declare module 'next/dist/client/head-manager' {
declare module.exports: any; declare module.exports: any;
} }
@ -222,6 +254,10 @@ declare module 'next/dist/client/on-demand-entries-client' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/client/on-demand-entries-utils' {
declare module.exports: any;
}
declare module 'next/dist/client/page-loader' { declare module 'next/dist/client/page-loader' {
declare module.exports: any; declare module.exports: any;
} }
@ -242,6 +278,26 @@ declare module 'next/dist/client/with-router' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/compiled/arg/index' {
declare module.exports: any;
}
declare module 'next/dist/compiled/nanoid/index' {
declare module.exports: any;
}
declare module 'next/dist/compiled/resolve/index' {
declare module.exports: any;
}
declare module 'next/dist/compiled/text-table/index' {
declare module.exports: any;
}
declare module 'next/dist/compiled/unistore/unistore' {
declare module.exports: any;
}
declare module 'next/dist/export/index' { declare module 'next/dist/export/index' {
declare module.exports: any; declare module.exports: any;
} }
@ -254,7 +310,11 @@ declare module 'next/dist/lib/constants' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/lib/promisify' { declare module 'next/dist/lib/recursive-delete' {
declare module.exports: any;
}
declare module 'next/dist/lib/recursive-readdir' {
declare module.exports: any; declare module.exports: any;
} }
@ -286,6 +346,10 @@ declare module 'next/dist/server/lib/error-overlay-middleware' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'next/dist/server/lib/find-page-file' {
declare module.exports: any;
}
declare module 'next/dist/server/lib/start-server' { declare module 'next/dist/server/lib/start-server' {
declare module.exports: any; declare module.exports: any;
} }
@ -349,12 +413,12 @@ declare module 'next/config.js' {
declare module 'next/constants.js' { declare module 'next/constants.js' {
declare module.exports: $Exports<'next/constants'>; declare module.exports: $Exports<'next/constants'>;
} }
declare module 'next/dist/build/babel/plugins/amp-attributes.js' {
declare module.exports: $Exports<'next/dist/build/babel/plugins/amp-attributes'>;
}
declare module 'next/dist/build/babel/plugins/commonjs.js' { declare module 'next/dist/build/babel/plugins/commonjs.js' {
declare module.exports: $Exports<'next/dist/build/babel/plugins/commonjs'>; declare module.exports: $Exports<'next/dist/build/babel/plugins/commonjs'>;
} }
declare module 'next/dist/build/babel/plugins/next-to-next-server.js' {
declare module.exports: $Exports<'next/dist/build/babel/plugins/next-to-next-server'>;
}
declare module 'next/dist/build/babel/plugins/react-loadable-plugin.js' { declare module 'next/dist/build/babel/plugins/react-loadable-plugin.js' {
declare module.exports: $Exports<'next/dist/build/babel/plugins/react-loadable-plugin'>; declare module.exports: $Exports<'next/dist/build/babel/plugins/react-loadable-plugin'>;
} }
@ -403,12 +467,18 @@ declare module 'next/dist/build/webpack/loaders/next-serverless-loader.js' {
declare module 'next/dist/build/webpack/loaders/noop-loader.js' { declare module 'next/dist/build/webpack/loaders/noop-loader.js' {
declare module.exports: $Exports<'next/dist/build/webpack/loaders/noop-loader'>; declare module.exports: $Exports<'next/dist/build/webpack/loaders/noop-loader'>;
} }
declare module 'next/dist/build/webpack/plugins/all-modules-identified-plugin.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/all-modules-identified-plugin'>;
}
declare module 'next/dist/build/webpack/plugins/build-manifest-plugin.js' { declare module 'next/dist/build/webpack/plugins/build-manifest-plugin.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/build-manifest-plugin'>; declare module.exports: $Exports<'next/dist/build/webpack/plugins/build-manifest-plugin'>;
} }
declare module 'next/dist/build/webpack/plugins/chunk-names-plugin.js' { declare module 'next/dist/build/webpack/plugins/chunk-names-plugin.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/chunk-names-plugin'>; declare module.exports: $Exports<'next/dist/build/webpack/plugins/chunk-names-plugin'>;
} }
declare module 'next/dist/build/webpack/plugins/hashed-chunk-ids-plugin.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/hashed-chunk-ids-plugin'>;
}
declare module 'next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js' { declare module 'next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader'>; declare module.exports: $Exports<'next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader'>;
} }
@ -427,8 +497,8 @@ declare module 'next/dist/build/webpack/plugins/react-loadable-plugin.js' {
declare module 'next/dist/build/webpack/plugins/serverless-plugin.js' { declare module 'next/dist/build/webpack/plugins/serverless-plugin.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/serverless-plugin'>; declare module.exports: $Exports<'next/dist/build/webpack/plugins/serverless-plugin'>;
} }
declare module 'next/dist/build/webpack/plugins/terser-webpack-plugin/src/cjs.js' { declare module 'next/dist/build/webpack/plugins/shared-runtime-plugin.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/terser-webpack-plugin/src/cjs'>; declare module.exports: $Exports<'next/dist/build/webpack/plugins/shared-runtime-plugin'>;
} }
declare module 'next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js' { declare module 'next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/terser-webpack-plugin/src/index'>; declare module.exports: $Exports<'next/dist/build/webpack/plugins/terser-webpack-plugin/src/index'>;
@ -442,12 +512,27 @@ declare module 'next/dist/build/webpack/plugins/terser-webpack-plugin/src/TaskRu
declare module 'next/dist/build/webpack/plugins/terser-webpack-plugin/src/worker.js' { declare module 'next/dist/build/webpack/plugins/terser-webpack-plugin/src/worker.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/terser-webpack-plugin/src/worker'>; declare module.exports: $Exports<'next/dist/build/webpack/plugins/terser-webpack-plugin/src/worker'>;
} }
declare module 'next/dist/build/webpack/plugins/unlink-file-plugin.js' { declare module 'next/dist/build/webpack/plugins/unlink-removed-pages-plugin.js' {
declare module.exports: $Exports<'next/dist/build/webpack/plugins/unlink-file-plugin'>; declare module.exports: $Exports<'next/dist/build/webpack/plugins/unlink-removed-pages-plugin'>;
} }
declare module 'next/dist/build/write-build-id.js' { declare module 'next/dist/build/write-build-id.js' {
declare module.exports: $Exports<'next/dist/build/write-build-id'>; declare module.exports: $Exports<'next/dist/build/write-build-id'>;
} }
declare module 'next/dist/cli/next-build.js' {
declare module.exports: $Exports<'next/dist/cli/next-build'>;
}
declare module 'next/dist/cli/next-dev.js' {
declare module.exports: $Exports<'next/dist/cli/next-dev'>;
}
declare module 'next/dist/cli/next-export.js' {
declare module.exports: $Exports<'next/dist/cli/next-export'>;
}
declare module 'next/dist/cli/next-start.js' {
declare module.exports: $Exports<'next/dist/cli/next-start'>;
}
declare module 'next/dist/client/amp-dev.js' {
declare module.exports: $Exports<'next/dist/client/amp-dev'>;
}
declare module 'next/dist/client/dev-error-overlay/eventsource.js' { declare module 'next/dist/client/dev-error-overlay/eventsource.js' {
declare module.exports: $Exports<'next/dist/client/dev-error-overlay/eventsource'>; declare module.exports: $Exports<'next/dist/client/dev-error-overlay/eventsource'>;
} }
@ -460,6 +545,9 @@ declare module 'next/dist/client/dev-error-overlay/hot-dev-client.js' {
declare module 'next/dist/client/error-boundary.js' { declare module 'next/dist/client/error-boundary.js' {
declare module.exports: $Exports<'next/dist/client/error-boundary'>; declare module.exports: $Exports<'next/dist/client/error-boundary'>;
} }
declare module 'next/dist/client/event-source-polyfill.js' {
declare module.exports: $Exports<'next/dist/client/event-source-polyfill'>;
}
declare module 'next/dist/client/head-manager.js' { declare module 'next/dist/client/head-manager.js' {
declare module.exports: $Exports<'next/dist/client/head-manager'>; declare module.exports: $Exports<'next/dist/client/head-manager'>;
} }
@ -481,6 +569,9 @@ declare module 'next/dist/client/noop.js' {
declare module 'next/dist/client/on-demand-entries-client.js' { declare module 'next/dist/client/on-demand-entries-client.js' {
declare module.exports: $Exports<'next/dist/client/on-demand-entries-client'>; declare module.exports: $Exports<'next/dist/client/on-demand-entries-client'>;
} }
declare module 'next/dist/client/on-demand-entries-utils.js' {
declare module.exports: $Exports<'next/dist/client/on-demand-entries-utils'>;
}
declare module 'next/dist/client/page-loader.js' { declare module 'next/dist/client/page-loader.js' {
declare module.exports: $Exports<'next/dist/client/page-loader'>; declare module.exports: $Exports<'next/dist/client/page-loader'>;
} }
@ -496,6 +587,21 @@ declare module 'next/dist/client/webpack-hot-middleware-client.js' {
declare module 'next/dist/client/with-router.js' { declare module 'next/dist/client/with-router.js' {
declare module.exports: $Exports<'next/dist/client/with-router'>; declare module.exports: $Exports<'next/dist/client/with-router'>;
} }
declare module 'next/dist/compiled/arg/index.js' {
declare module.exports: $Exports<'next/dist/compiled/arg/index'>;
}
declare module 'next/dist/compiled/nanoid/index.js' {
declare module.exports: $Exports<'next/dist/compiled/nanoid/index'>;
}
declare module 'next/dist/compiled/resolve/index.js' {
declare module.exports: $Exports<'next/dist/compiled/resolve/index'>;
}
declare module 'next/dist/compiled/text-table/index.js' {
declare module.exports: $Exports<'next/dist/compiled/text-table/index'>;
}
declare module 'next/dist/compiled/unistore/unistore.js' {
declare module.exports: $Exports<'next/dist/compiled/unistore/unistore'>;
}
declare module 'next/dist/export/index.js' { declare module 'next/dist/export/index.js' {
declare module.exports: $Exports<'next/dist/export/index'>; declare module.exports: $Exports<'next/dist/export/index'>;
} }
@ -505,8 +611,11 @@ declare module 'next/dist/export/worker.js' {
declare module 'next/dist/lib/constants.js' { declare module 'next/dist/lib/constants.js' {
declare module.exports: $Exports<'next/dist/lib/constants'>; declare module.exports: $Exports<'next/dist/lib/constants'>;
} }
declare module 'next/dist/lib/promisify.js' { declare module 'next/dist/lib/recursive-delete.js' {
declare module.exports: $Exports<'next/dist/lib/promisify'>; declare module.exports: $Exports<'next/dist/lib/recursive-delete'>;
}
declare module 'next/dist/lib/recursive-readdir.js' {
declare module.exports: $Exports<'next/dist/lib/recursive-readdir'>;
} }
declare module 'next/dist/pages/_app.js' { declare module 'next/dist/pages/_app.js' {
declare module.exports: $Exports<'next/dist/pages/_app'>; declare module.exports: $Exports<'next/dist/pages/_app'>;
@ -529,6 +638,9 @@ declare module 'next/dist/server/htmlescape.js' {
declare module 'next/dist/server/lib/error-overlay-middleware.js' { declare module 'next/dist/server/lib/error-overlay-middleware.js' {
declare module.exports: $Exports<'next/dist/server/lib/error-overlay-middleware'>; declare module.exports: $Exports<'next/dist/server/lib/error-overlay-middleware'>;
} }
declare module 'next/dist/server/lib/find-page-file.js' {
declare module.exports: $Exports<'next/dist/server/lib/find-page-file'>;
}
declare module 'next/dist/server/lib/start-server.js' { declare module 'next/dist/server/lib/start-server.js' {
declare module.exports: $Exports<'next/dist/server/lib/start-server'>; declare module.exports: $Exports<'next/dist/server/lib/start-server'>;
} }

186
flow-typed/npm/npm-run-all_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,186 @@
// flow-typed signature: d3e3f20e25052acefaea4789ae208913
// flow-typed version: <<STUB>>/npm-run-all_v^4.1.5/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* 'npm-run-all'
*
* 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 'npm-run-all' {
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 'npm-run-all/bin/common/bootstrap' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/common/parse-cli-args' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/common/version' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/npm-run-all/help' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/npm-run-all/index' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/npm-run-all/main' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/run-p/help' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/run-p/index' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/run-p/main' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/run-s/help' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/run-s/index' {
declare module.exports: any;
}
declare module 'npm-run-all/bin/run-s/main' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/create-header' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/create-prefix-transform-stream' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/index' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/match-tasks' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/npm-run-all-error' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/read-package-json' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/run-task' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/run-tasks' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/spawn-posix' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/spawn-win32' {
declare module.exports: any;
}
declare module 'npm-run-all/lib/spawn' {
declare module.exports: any;
}
// Filename aliases
declare module 'npm-run-all/bin/common/bootstrap.js' {
declare module.exports: $Exports<'npm-run-all/bin/common/bootstrap'>;
}
declare module 'npm-run-all/bin/common/parse-cli-args.js' {
declare module.exports: $Exports<'npm-run-all/bin/common/parse-cli-args'>;
}
declare module 'npm-run-all/bin/common/version.js' {
declare module.exports: $Exports<'npm-run-all/bin/common/version'>;
}
declare module 'npm-run-all/bin/npm-run-all/help.js' {
declare module.exports: $Exports<'npm-run-all/bin/npm-run-all/help'>;
}
declare module 'npm-run-all/bin/npm-run-all/index.js' {
declare module.exports: $Exports<'npm-run-all/bin/npm-run-all/index'>;
}
declare module 'npm-run-all/bin/npm-run-all/main.js' {
declare module.exports: $Exports<'npm-run-all/bin/npm-run-all/main'>;
}
declare module 'npm-run-all/bin/run-p/help.js' {
declare module.exports: $Exports<'npm-run-all/bin/run-p/help'>;
}
declare module 'npm-run-all/bin/run-p/index.js' {
declare module.exports: $Exports<'npm-run-all/bin/run-p/index'>;
}
declare module 'npm-run-all/bin/run-p/main.js' {
declare module.exports: $Exports<'npm-run-all/bin/run-p/main'>;
}
declare module 'npm-run-all/bin/run-s/help.js' {
declare module.exports: $Exports<'npm-run-all/bin/run-s/help'>;
}
declare module 'npm-run-all/bin/run-s/index.js' {
declare module.exports: $Exports<'npm-run-all/bin/run-s/index'>;
}
declare module 'npm-run-all/bin/run-s/main.js' {
declare module.exports: $Exports<'npm-run-all/bin/run-s/main'>;
}
declare module 'npm-run-all/lib/create-header.js' {
declare module.exports: $Exports<'npm-run-all/lib/create-header'>;
}
declare module 'npm-run-all/lib/create-prefix-transform-stream.js' {
declare module.exports: $Exports<'npm-run-all/lib/create-prefix-transform-stream'>;
}
declare module 'npm-run-all/lib/index.js' {
declare module.exports: $Exports<'npm-run-all/lib/index'>;
}
declare module 'npm-run-all/lib/match-tasks.js' {
declare module.exports: $Exports<'npm-run-all/lib/match-tasks'>;
}
declare module 'npm-run-all/lib/npm-run-all-error.js' {
declare module.exports: $Exports<'npm-run-all/lib/npm-run-all-error'>;
}
declare module 'npm-run-all/lib/read-package-json.js' {
declare module.exports: $Exports<'npm-run-all/lib/read-package-json'>;
}
declare module 'npm-run-all/lib/run-task.js' {
declare module.exports: $Exports<'npm-run-all/lib/run-task'>;
}
declare module 'npm-run-all/lib/run-tasks.js' {
declare module.exports: $Exports<'npm-run-all/lib/run-tasks'>;
}
declare module 'npm-run-all/lib/spawn-posix.js' {
declare module.exports: $Exports<'npm-run-all/lib/spawn-posix'>;
}
declare module 'npm-run-all/lib/spawn-win32.js' {
declare module.exports: $Exports<'npm-run-all/lib/spawn-win32'>;
}
declare module 'npm-run-all/lib/spawn.js' {
declare module.exports: $Exports<'npm-run-all/lib/spawn'>;
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: 99514c32c6f8056b2df67df4ffb95603 // flow-typed signature: 8e8c9a84f803a59256f9f3e1cbd881cf
// flow-typed version: <<STUB>>/pg-hstore_v^2.3.2/flow_v0.95.1 // flow-typed version: <<STUB>>/pg-hstore_v^2.3.2/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: dad6284bf6f912fd330569657fab1893 // flow-typed signature: 7f5e8b57ee4758dcf72c992783b2e2f4
// flow-typed version: <<STUB>>/react-redux_v^6.0.1/flow_v0.95.1 // flow-typed version: <<STUB>>/react-redux_v^6.0.1/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -0,0 +1,81 @@
// flow-typed signature: b6bb53397d83d2d821e258cc73818d1b
// flow-typed version: 9c71eca8ef/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<any>;
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<ReactTestInstance | string>,
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>): any
};
declare module "react-test-renderer" {
declare export type ReactTestRenderer = {
toJSON(): null | ReactTestRendererJSON,
toTree(): null | ReactTestRendererTree,
unmount(nextElement?: React$Element<any>): void,
update(nextElement: React$Element<any>): void,
getInstance(): ?ReactComponentInstance,
root: ReactTestInstance
};
declare type Thenable = {
then(resolve: () => mixed, reject?: () => mixed): mixed,
};
declare function create(
nextElement: React$Element<any>,
options?: TestRendererOptions
): ReactTestRenderer;
declare function act(callback: () => void): Thenable;
}
declare module "react-test-renderer/shallow" {
declare export default class ShallowRenderer {
static createRenderer(): ShallowRenderer;
getMountedInstance(): ReactTestInstance;
getRenderOutput<E: React$Element<any>>(): E;
getRenderOutput(): React$Element<any>;
render(element: React$Element<any>, context?: any): void;
unmount(): void;
}
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: 51057f814ff2f7b0ef13c738ee8daa0b // flow-typed signature: c53c9fc70f7372ce9e832b9ea8a26abc
// flow-typed version: <<STUB>>/react-typist_v^2.0.5/flow_v0.95.1 // flow-typed version: <<STUB>>/react-typist_v^2.0.5/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,5 +1,5 @@
// flow-typed signature: f43b8b4416b341971a4f2147d037dc7c // flow-typed signature: 1a122dbad56853cd53bd5e76c532449c
// flow-typed version: <<STUB>>/redux-thunk_v^2.3.0/flow_v0.95.1 // flow-typed version: <<STUB>>/redux-thunk_v^2.3.0/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

View file

@ -1,8 +1,7 @@
// flow-typed signature: df80bdd535bfed9cf3223e077f3b4543 // flow-typed signature: 55b84d40e54f80cef7b74a34aa052ad5
// flow-typed version: c4c8963c9c/redux_v4.x.x/flow_>=v0.55.x // flow-typed version: 2c899a110b/redux_v4.x.x/flow_>=v0.89.x
declare module 'redux' { declare module 'redux' {
/* /*
S = State S = State
@ -12,48 +11,86 @@ declare module 'redux' {
*/ */
declare export type DispatchAPI<A> = (action: A) => A; declare export type DispatchAPI<A> = (action: A) => A;
declare export type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>;
declare export type Dispatch<A: { type: * }> = DispatchAPI<A>;
declare export type MiddlewareAPI<S, A, D = Dispatch<A>> = { declare export type MiddlewareAPI<S, A, D = Dispatch<A>> = {
dispatch: D; dispatch: D,
getState(): S; getState(): S,
}; };
declare export type Store<S, A, D = Dispatch<A>> = { declare export type Store<S, A, D = Dispatch<A>> = {
// rewrite MiddlewareAPI members in order to get nicer error messages (intersections produce long messages) // rewrite MiddlewareAPI members in order to get nicer error messages (intersections produce long messages)
dispatch: D; dispatch: D,
getState(): S; getState(): S,
subscribe(listener: () => void): () => void; subscribe(listener: () => void): () => void,
replaceReducer(nextReducer: Reducer<S, A>): void replaceReducer(nextReducer: Reducer<S, A>): void,
}; };
declare export type Reducer<S, A> = (state: S | void, action: A) => S; declare export type Reducer<S, A> = (state: S | void, action: A) => S;
declare export type CombinedReducer<S, A> = (state: $Shape<S> & {} | void, action: A) => S; declare export type CombinedReducer<S, A> = (
state: ($Shape<S> & {}) | void,
action: A
) => S;
declare export type Middleware<S, A, D = Dispatch<A>> = declare export type Middleware<S, A, D = Dispatch<A>> = (
(api: MiddlewareAPI<S, A, D>) => api: MiddlewareAPI<S, A, D>
(next: D) => D; ) => (next: D) => D;
declare export type StoreCreator<S, A, D = Dispatch<A>> = { declare export type StoreCreator<S, A, D = Dispatch<A>> = {
(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; (reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>,
(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; (
reducer: Reducer<S, A>,
preloadedState: S,
enhancer?: StoreEnhancer<S, A, D>
): Store<S, A, D>,
}; };
declare export type StoreEnhancer<S, A, D = Dispatch<A>> = (next: StoreCreator<S, A, D>) => StoreCreator<S, A, D>; declare export type StoreEnhancer<S, A, D = Dispatch<A>> = (
next: StoreCreator<S, A, D>
) => StoreCreator<S, A, D>;
declare export function createStore<S, A, D>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; declare export function createStore<S, A, D>(
declare export function createStore<S, A, D>(reducer: Reducer<S, A>, preloadedState?: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; reducer: Reducer<S, A>,
enhancer?: StoreEnhancer<S, A, D>
): Store<S, A, D>;
declare export function createStore<S, A, D>(
reducer: Reducer<S, A>,
preloadedState?: S,
enhancer?: StoreEnhancer<S, A, D>
): Store<S, A, D>;
declare export function applyMiddleware<S, A, D>(...middlewares: Array<Middleware<S, A, D>>): StoreEnhancer<S, A, D>; declare export function applyMiddleware<S, A, D>(
...middlewares: Array<Middleware<S, A, D>>
): StoreEnhancer<S, A, D>;
declare export type ActionCreator<A, B> = (...args: Array<B>) => A; declare export type ActionCreator<A, B> = (...args: Array<B>) => A;
declare export type ActionCreators<K, A> = { [key: K]: ActionCreator<A, any> }; declare export type ActionCreators<K, A> = {
[key: K]: ActionCreator<A, any>,
};
declare export function bindActionCreators<A, C: ActionCreator<A, any>, D: DispatchAPI<A>>(actionCreator: C, dispatch: D): C; declare export function bindActionCreators<
declare export function bindActionCreators<A, K, C: ActionCreators<K, A>, D: DispatchAPI<A>>(actionCreators: C, dispatch: D): C; A,
C: ActionCreator<A, any>,
D: DispatchAPI<A>
>(
actionCreator: C,
dispatch: D
): C;
declare export function bindActionCreators<
A,
K,
C: ActionCreators<K, A>,
D: DispatchAPI<A>
>(
actionCreators: C,
dispatch: D
): C;
declare export function combineReducers<O: Object, A>(reducers: O): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>; declare export function combineReducers<O: {}, A>(
reducers: O
): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>;
declare export var compose: $Compose; declare export var compose: $Compose;
} }

View file

@ -1,5 +1,5 @@
// flow-typed signature: 305f9b3ac81987b7dc9ac2faa2df163d // flow-typed signature: 58ce1952558f262c71e58bc37d262d63
// flow-typed version: <<STUB>>/sequelize_v^5.1.0/flow_v0.95.1 // flow-typed version: <<STUB>>/sequelize_v^5.2.10/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:
@ -378,6 +378,10 @@ declare module 'sequelize/lib/utils/classToInvokable' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'sequelize/lib/utils/deprecations' {
declare module.exports: any;
}
declare module 'sequelize/lib/utils/logger' { declare module 'sequelize/lib/utils/logger' {
declare module.exports: any; declare module.exports: any;
} }
@ -660,6 +664,9 @@ declare module 'sequelize/lib/utils.js' {
declare module 'sequelize/lib/utils/classToInvokable.js' { declare module 'sequelize/lib/utils/classToInvokable.js' {
declare module.exports: $Exports<'sequelize/lib/utils/classToInvokable'>; declare module.exports: $Exports<'sequelize/lib/utils/classToInvokable'>;
} }
declare module 'sequelize/lib/utils/deprecations.js' {
declare module.exports: $Exports<'sequelize/lib/utils/deprecations'>;
}
declare module 'sequelize/lib/utils/logger.js' { declare module 'sequelize/lib/utils/logger.js' {
declare module.exports: $Exports<'sequelize/lib/utils/logger'>; declare module.exports: $Exports<'sequelize/lib/utils/logger'>;
} }

45
flow-typed/npm/standard_vx.x.x.js vendored Normal file
View file

@ -0,0 +1,45 @@
// flow-typed signature: 76c84602b15b454720a69bba83c126e2
// flow-typed version: <<STUB>>/standard_v12.0.1/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* '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 '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.
*/
declare module 'standard/bin/cmd' {
declare module.exports: any;
}
declare module 'standard/options' {
declare module.exports: any;
}
// Filename aliases
declare module 'standard/bin/cmd.js' {
declare module.exports: $Exports<'standard/bin/cmd'>;
}
declare module 'standard/index' {
declare module.exports: $Exports<'standard'>;
}
declare module 'standard/index.js' {
declare module.exports: $Exports<'standard'>;
}
declare module 'standard/options.js' {
declare module.exports: $Exports<'standard/options'>;
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: c40f09e5cdfd545132cf19c5b4efca69 // flow-typed signature: bbf22a64d0791ea07c7c6b6c1d118705
// flow-typed version: <<STUB>>/superagent_v^4.1.0/flow_v0.95.1 // flow-typed version: <<STUB>>/superagent_v^5.0.2/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:
@ -22,7 +22,11 @@ declare module 'superagent' {
* require those files directly. Feel free to delete any files that aren't * require those files directly. Feel free to delete any files that aren't
* needed. * needed.
*/ */
declare module 'superagent/dump' { declare module 'superagent/dist/superagent' {
declare module.exports: any;
}
declare module 'superagent/dist/superagent.min' {
declare module.exports: any; declare module.exports: any;
} }
@ -90,17 +94,12 @@ declare module 'superagent/lib/utils' {
declare module.exports: any; declare module.exports: any;
} }
declare module 'superagent/superagent' {
declare module.exports: any;
}
declare module 'superagent/test' {
declare module.exports: any;
}
// Filename aliases // Filename aliases
declare module 'superagent/dump.js' { declare module 'superagent/dist/superagent.js' {
declare module.exports: $Exports<'superagent/dump'>; declare module.exports: $Exports<'superagent/dist/superagent'>;
}
declare module 'superagent/dist/superagent.min.js' {
declare module.exports: $Exports<'superagent/dist/superagent.min'>;
} }
declare module 'superagent/lib/agent-base.js' { declare module 'superagent/lib/agent-base.js' {
declare module.exports: $Exports<'superagent/lib/agent-base'>; declare module.exports: $Exports<'superagent/lib/agent-base'>;
@ -150,9 +149,3 @@ declare module 'superagent/lib/response-base.js' {
declare module 'superagent/lib/utils.js' { declare module 'superagent/lib/utils.js' {
declare module.exports: $Exports<'superagent/lib/utils'>; declare module.exports: $Exports<'superagent/lib/utils'>;
} }
declare module 'superagent/superagent.js' {
declare module.exports: $Exports<'superagent/superagent'>;
}
declare module 'superagent/test.js' {
declare module.exports: $Exports<'superagent/test'>;
}

View file

@ -1,5 +1,5 @@
// flow-typed signature: 27b1b18a6dfe500914cf8170c92467a5 // flow-typed signature: ea32702e42500ea2f15fd4c3b3c503a5
// flow-typed version: <<STUB>>/zlib-sync_v^0.1.4/flow_v0.95.1 // flow-typed version: <<STUB>>/zlib-sync_v^0.1.4/flow_v0.96.0
/** /**
* This is an autogenerated libdef stub for: * This is an autogenerated libdef stub for:

8
lerna.json Normal file
View file

@ -0,0 +1,8 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*"
],
"version": "2.0.0"
}

View file

@ -3,68 +3,29 @@
"version": "2.0.0", "version": "2.0.0",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "NODE_ENV=production node dist/index.js", "lerna": "lerna",
"dev": "babel-node index.js", "start": "lerna run start",
"build": "npm-run-all build:*", "dev": "lerna run dev",
"build:ui": "NODE_ENV=production next build ui", "build": "lerna run build",
"build:server": "NODE_ENV=production babel --delete-dir-on-start -d dist .", "flow:install": "flow-mono install-types",
"remotedebug": "remotedebug_ios_webkit_adapter --port=9000 > /dev/null", "remotedebug": "remotedebug_ios_webkit_adapter --port=9000 > /dev/null",
"test": "jest", "test": "jest",
"rpcrepl": "babel-node util/rpcrepl.js" "lint:css": "stylelint 'packages/roleypoly-ui/**/*.js'",
}, "rpcrepl": "babel-node packages/roleypoly-server/util/rpcrepl.js"
"dependencies": {
"@discordjs/uws": "^11.149.1",
"@primer/components": "^12.0.1",
"bufferutil": "^4.0.1",
"chalk": "^2.4.2",
"color": "^3.1.0",
"dotenv": "^7.0.0",
"eris": "^0.9.0",
"erlpack": "discordapp/erlpack",
"eventemitter3": "^3.1.0",
"fast-redux": "^0.7.1",
"fnv-plus": "^1.2.12",
"glob": "^7.1.3",
"immutable": "^4.0.0-rc.12",
"invariant": "^2.2.4",
"keygrip": "^1.0.3",
"koa": "^2.7.0",
"koa-better-router": "^2.1.1",
"koa-bodyparser": "^4.2.1",
"koa-session": "^5.10.1",
"kompression": "^1.0.0",
"ksuid": "^1.2.0",
"lru-cache": "^5.1.1",
"moment": "^2.24.0",
"moniker": "^0.1.2",
"nanoid": "^2.0.1",
"next": "8.0.3",
"next-redux-wrapper": "^3.0.0-alpha.2",
"pg": "^7.9.0",
"pg-hstore": "^2.3.2",
"primer": "^11.0.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-redux": "^6.0.1",
"react-typist": "^2.0.5",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.8",
"redux-thunk": "^2.3.0",
"sequelize": "^5.1.0",
"socket.io": "^2.2.0",
"styled-components": "^4.2.0",
"superagent": "^5.0.2",
"zlib-sync": "^0.1.4"
}, },
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.2.3", "@babel/cli": "^7.4.3",
"@babel/core": "^7.4.0", "@babel/core": "^7.4.3",
"@babel/node": "^7.2.2", "@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.4.0", "@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-optional-chaining": "^7.2.0", "@babel/plugin-proposal-optional-chaining": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.4.0", "@babel/plugin-transform-runtime": "^7.4.3",
"@babel/preset-env": "^7.4.2", "@babel/preset-env": "^7.4.3",
"@babel/preset-flow": "^7.0.0", "@babel/preset-flow": "^7.0.0",
"await-outside": "^2.1.2", "await-outside": "^2.1.2",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.1",
@ -74,14 +35,25 @@
"enzyme": "^3.9.0", "enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.11.2", "enzyme-adapter-react-16": "^1.11.2",
"enzyme-to-json": "^3.3.5", "enzyme-to-json": "^3.3.5",
"eslint": "^5.16.0",
"eslint-plugin-flowtype": "^3.4.2", "eslint-plugin-flowtype": "^3.4.2",
"flow-bin": "^0.96.0", "flow-bin": "^0.96.0",
"flow-mono-cli": "^1.5.0",
"flow-typed": "^2.5.1", "flow-typed": "^2.5.1",
"jest": "^24.6.0", "jest": "^24.7.0",
"jest-styled-components": "^6.3.1", "jest-styled-components": "^6.3.1",
"lerna": "^3.13.1",
"next": "^8.0.4",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-test-renderer": "^16.8.6", "react-test-renderer": "^16.8.6",
"standard": "12.0.1" "standard": "12.0.1",
"styled-components": "^4.2.0",
"stylelint": "^9.10.1",
"stylelint-config-standard": "^18.2.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.6.0"
}, },
"standard": { "standard": {
"parser": "babel-eslint", "parser": "babel-eslint",
@ -89,33 +61,13 @@
"flowtype" "flowtype"
], ],
"globals": [ "globals": [
"$Shape" "$Shape",
"$Call"
] ]
}, },
"jest": { "jest": {
"projects": [ "projects": [
{ "projects/*/jest.config.js"
"displayName": "server",
"rootDir": "<rootDir>",
"testPathIgnorePatterns": [
"/node_modules/",
"/ui/"
]
},
{
"displayName": "ui",
"rootDir": "<rootDir>/ui",
"setupFiles": [
"<rootDir>/setupTests.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/.next/"
]
}
] ]
} }
} }

View file

@ -1,9 +1,9 @@
// @flow // @flow
import Sequelize from 'sequelize' import Sequelize from 'sequelize'
import Next from 'next' import connector from '@roleypoly/ui/connector'
import type Next from 'next'
import betterRouter from 'koa-better-router' import betterRouter from 'koa-better-router'
import type EventEmitter from 'events' import type EventEmitter from 'events'
import fs from 'fs'
import logger from './logger' import logger from './logger'
import ServerService from './services/server' import ServerService from './services/server'
import DiscordService from './services/discord' import DiscordService from './services/discord'
@ -16,7 +16,6 @@ import fetchApis from './api'
import type SocketIO from 'socket.io' import type SocketIO from 'socket.io'
import type KoaApp, { Context } from 'koa' import type KoaApp, { Context } from 'koa'
const log = logger(__filename) const log = logger(__filename)
type HTTPHandler = (path: string, handler: (ctx: Context, next: () => void) => any) => void type HTTPHandler = (path: string, handler: (ctx: Context, next: () => void) => any) => void
@ -73,12 +72,8 @@ class Roleypoly {
const dev = process.env.NODE_ENV !== 'production' const dev = process.env.NODE_ENV !== 'production'
// simple check if we're in a compiled situation or not. // simple check if we're in a compiled situation or not.
let uiDir = './ui'
if (!fs.existsSync(uiDir) && fs.existsSync('../ui')) {
uiDir = '../ui'
}
const ui = Next({ dev, dir: uiDir }) const ui = connector({ dev })
const uiHandler = ui.getRequestHandler() const uiHandler = ui.getRequestHandler()
const appUrl = process.env.APP_URL const appUrl = process.env.APP_URL

View file

@ -3,13 +3,11 @@ import 'dotenv/config'
import logger from './logger' import logger from './logger'
import http from 'http' import http from 'http'
import Koa from 'koa' import Koa from 'koa'
import SocketIO from 'socket.io'
import Roleypoly from './Roleypoly' import Roleypoly from './Roleypoly'
import ksuid from 'ksuid' import ksuid from 'ksuid'
import bodyParser from 'koa-bodyparser' import bodyParser from 'koa-bodyparser'
import compress from 'kompression' import compress from 'kompression'
import session from 'koa-session' import session from 'koa-session'
import invariant from 'invariant'
import Keygrip from 'keygrip' import Keygrip from 'keygrip'
const log = logger(__filename) const log = logger(__filename)
@ -17,13 +15,12 @@ const app = new Koa()
// Create the server and socket.io server // Create the server and socket.io server
const server = http.createServer(app.callback()) const server = http.createServer(app.callback())
const io = SocketIO(server, { transports: ['websocket'], path: '/api/socket.io' })
const M = new Roleypoly(io, app) // eslint-disable-line no-unused-vars const M = new Roleypoly(null, app) // eslint-disable-line no-unused-vars
const appKey = process.env.APP_KEY const appKey = process.env.APP_KEY
if (appKey == null) { if (appKey == null || appKey === '') {
throw invariant(false, '') throw new Error('APP_KEY not set')
} }
app.keys = new Keygrip([ appKey ]) app.keys = new Keygrip([ appKey ])

View file

@ -0,0 +1,62 @@
{
"name": "@roleypoly/server",
"private": true,
"version": "2.0.0",
"scripts": {
"dev": "babel-node index.js",
"start": "NODE_ENV=production node dist/index.js",
"pretest": "standard --fix",
"build": "NODE_ENV=production babel --delete-dir-on-start -d dist ."
},
"dependencies": {
"@discordjs/uws": "^11.149.1",
"@roleypoly/types": "^2.0.0",
"@roleypoly/ui": "^2.0.0",
"bufferutil": "^4.0.1",
"chalk": "^2.4.2",
"dotenv": "^7.0.0",
"eris": "^0.9.0",
"erlpack": "discordapp/erlpack",
"eventemitter3": "^3.1.0",
"fnv-plus": "^1.2.12",
"glob": "^7.1.3",
"immutable": "^4.0.0-rc.12",
"keygrip": "^1.0.3",
"koa": "^2.7.0",
"koa-better-router": "^2.1.1",
"koa-bodyparser": "^4.2.1",
"koa-session": "^5.10.1",
"kompression": "^1.0.0",
"ksuid": "^1.2.0",
"lru-cache": "^5.1.1",
"moment": "^2.24.0",
"moniker": "^0.1.2",
"nanoid": "^2.0.1",
"pg": "^7.9.0",
"pg-hstore": "^2.3.2",
"sequelize": "^5.2.10",
"superagent": "^5.0.2",
"zlib-sync": "^0.1.4"
},
"devDependencies": {
"@babel/cli": "^7.4.3",
"@babel/core": "^7.4.3",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@babel/preset-flow": "^7.0.0",
"await-outside": "^2.1.2",
"babel-eslint": "^10.0.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"chokidar": "^2.1.5",
"eslint-plugin-flowtype": "^3.4.2",
"flow-bin": "^0.96.0",
"flow-typed": "^2.5.1",
"jest": "^24.6.0",
"npm-run-all": "^4.1.5",
"standard": "12.0.1"
}
}

View file

@ -0,0 +1,9 @@
// @flow
export type Category = {
hidden: boolean,
name: string,
roles: string[],
_roles?: any,
type: 'single' | 'multi' | string
}

View file

@ -0,0 +1,21 @@
// @flow
export type {
PresentableRole,
CachedRole,
Permissions
} from './role'
export type {
PresentableServer,
ServerModel,
ServerSlug
} from './server'
export type {
Category
} from './category'
export type {
UserPartial,
Member
} from './user'

View file

@ -0,0 +1,5 @@
{
"name": "@roleypoly/types",
"version": "2.0.0",
"private": true
}

View file

@ -0,0 +1,22 @@
// @flow
export type PresentableRole = {
id: string,
color: number,
name: string,
position: number,
safe: boolean
}
export type Permissions = {
canManageRoles: boolean,
isAdmin: boolean,
faked?: boolean,
__faked?: Permissions
}
export type CachedRole = {
id: string,
position: number,
color?: number
}

View file

@ -0,0 +1,30 @@
// @flow
import type { Category } from './category'
import type { PresentableRole, Permissions } from './role'
export type ServerSlug = {
id: string,
name: string,
ownerID: string,
icon: string
}
export type ServerModel = {
id: string,
categories: {
[uuid: string]: Category
},
message: string
}
export type PresentableServer = ServerModel & {
id: string,
gm?: {
color: number | string,
nickname: string,
roles: string[]
},
server: ServerSlug,
roles: ?PresentableRole[],
perms: Permissions
}

View file

@ -0,0 +1,14 @@
// @flow
import type { Member as ErisMember } from 'eris'
export type UserPartial = {
id: string,
username: string,
discriminator: string,
avatar: string
}
export type Member = ErisMember & {
color?: number,
__faked?: true
}

View file

@ -0,0 +1,7 @@
const next = require('next')
const connector = ({ dev }) => {
return next({ dev })
}
module.exports = connector

View file

@ -0,0 +1,50 @@
{
"name": "@roleypoly/ui",
"private": true,
"version": "2.0.0",
"dependencies": {
"@roleypoly/types": "^2.0.0",
"color": "^3.1.0",
"eventemitter3": "^3.1.0",
"fast-redux": "^0.7.1",
"immutable": "^4.0.0-rc.12",
"moment": "^2.24.0",
"next": "^8.0.4",
"next-redux-wrapper": "^3.0.0-alpha.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-redux": "^6.0.1",
"react-typist": "^2.0.5",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.8",
"redux-thunk": "^2.3.0",
"styled-components": "^4.2.0",
"superagent": "^5.0.2"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.4.0",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.4.0",
"@babel/preset-env": "^7.4.2",
"@babel/preset-flow": "^7.0.0",
"await-outside": "^2.1.2",
"babel-eslint": "^10.0.1",
"babel-plugin-styled-components": "^1.10.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.11.2",
"enzyme-to-json": "^3.3.5",
"eslint-plugin-flowtype": "^3.4.2",
"flow-bin": "^0.96.0",
"flow-typed": "^2.5.1",
"jest": "^24.6.0",
"jest-styled-components": "^6.3.1",
"npm-run-all": "^4.1.5",
"react-test-renderer": "^16.8.6",
"standard": "12.0.1"
}
}

View file

@ -8,7 +8,7 @@ import { Provider } from 'react-redux'
import ErrorP, { Overlay } from './_error' import ErrorP, { Overlay } from './_error'
import styled from 'styled-components' import styled from 'styled-components'
import { withRedux } from '../config/redux' import { withRedux } from '../config/redux'
import type { UserPartial } from '../../services/discord' import type { UserPartial } from '@roleypoly/types'
type NextPage = React.Component<any> & React.StatelessFunctionalComponent<any> & { type NextPage = React.Component<any> & React.StatelessFunctionalComponent<any> & {
getInitialProps: (ctx: any, ...args: any) => any getInitialProps: (ctx: any, ...args: any) => any

View file

@ -1,6 +1,6 @@
// @flow // @flow
import superagent from 'superagent' import superagent from 'superagent'
import RPCError from '../../rpc/_error' import RPCError from '@roleypoly/server/rpc/_error'
export type RPCResponse = { export type RPCResponse = {
response?: mixed, response?: mixed,

View file

@ -1,8 +1,7 @@
// @flow // @flow
import { dynamicPropertyConfig } from 'fast-redux' import { dynamicPropertyConfig } from 'fast-redux'
// import { Map } from 'immutable' // import { Map } from 'immutable'
import type { PresentableServer } from '../../services/presentation' import type { PresentableServer } from '@roleypoly/types'
// import type { Category } from '../../models/Server'
import RPC from '../config/rpc' import RPC from '../config/rpc'
import { action } from './servers' import { action } from './servers'

View file

@ -1,10 +1,7 @@
// @flow // @flow
import type { ServerSlug as BackendServerSlug } from '../services/presentation'
import type Router from 'next/router' import type Router from 'next/router'
export type PageProps = { export type PageProps = {
router: Router, router: Router,
dispatch: (...any) => mixed dispatch: (...any) => mixed
} }
export type ServerSlug = BackendServerSlug

4517
yarn.lock

File diff suppressed because it is too large Load diff