diff --git a/.flowconfig b/.flowconfig index df2c6c5fb..651e7bf29 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,47 +1,2 @@ [ignore] -.*/coverage/.* -.*/build/.* -.*/dist/.* -.*\.tsx -.*\.ts -.*/node_modules/.* -/facebook/.* -/scripts/.* -/desktop/.*/lib/.* -/desktop/scripts/.* -/desktop/static/.* -/desktop/pkg/.* -/desktop/pkg-lib/.* -/desktop/doctor/.* -/desktop/app/.* -/desktop/babel-transformer/.* -/desktop/plugins/fb/relaydevtools/relay-devtools/DevtoolsUI.js$ -/website/.* -/desktop/plugins/sections/src/d3/d3.js$ -/react-native/ReactNativeFlipperExample/.* - -[libs] -desktop/flow-typed - -[options] -esproposal.export_star_as=enable -esproposal.optional_chaining=enable -module.use_strict=true -emoji=true -all=true -include_warnings=true -module.name_mapper='^\(.*\)\.tsx$' -> 'TsStub' -suppress_type=$FlowFixMe -module.system=haste - -[strict] -deprecated-type -nonstrict-import -sketchy-null -unclear-type -unsafe-getters-setters -untyped-import -untyped-type-import - -[version] -0.131.0 +.* diff --git a/.flowversion b/.flowversion deleted file mode 100644 index 43201770d..000000000 --- a/.flowversion +++ /dev/null @@ -1 +0,0 @@ -f72f5ceec399ffa46f26180d757a428b9c33d5a9 diff --git a/DEV_ENVIRONMENT.md b/DEV_ENVIRONMENT.md index 58c4bce71..ee7be7a43 100644 --- a/DEV_ENVIRONMENT.md +++ b/DEV_ENVIRONMENT.md @@ -2,19 +2,17 @@ ## Desktop app and Flipper Plugins (Javascript) -The flipper desktop source uses Flow, TypeScript, and ESLint. Feel free to use your preferred setup, but this is our recommended approach: +The flipper desktop source uses TypeScript and ESLint. Feel free to use your preferred setup, but this is our recommended approach: **Editor**: Visual Studio Code **Installed Extensions**: * ESLint - * Flow Language Support * TypeScript and JavaScript Language Features (enabled by default) **Settings**: ```json { - "flow.useNPMPackagedFlow": true, "javascript.validate.enable": false, "eslint.autoFixOnSave": true, "eslint.validate": [ diff --git a/desktop/.eslintignore b/desktop/.eslintignore index 3e4eb255a..7df55fd2f 100644 --- a/desktop/.eslintignore +++ b/desktop/.eslintignore @@ -4,7 +4,6 @@ latest resources templates node_modules -flow-typed lib !.eslintrc.js dist diff --git a/desktop/.eslintrc.js b/desktop/.eslintrc.js index 4ec76cef2..3eea31d20 100644 --- a/desktop/.eslintrc.js +++ b/desktop/.eslintrc.js @@ -43,6 +43,8 @@ module.exports = { ], rules: { // disable rules from eslint-config-fbjs + 'flowtype/define-flow-type': 0, + 'flowtype/use-flow-type': 0, 'react/react-in-jsx-scope': 0, // not needed with our metro implementation 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', @@ -67,7 +69,6 @@ module.exports = { // additional rules for this project 'header/header': [2, 'block', {pattern}], 'prettier/prettier': [2, prettierConfig], - 'flowtype/object-type-delimiter': [0], 'import/no-unresolved': [2, {commonjs: true, amd: true}], 'node/no-extraneous-import': [2, {allowModules: builtInModules}], 'node/no-extraneous-require': [2, {allowModules: builtInModules}], diff --git a/desktop/app/src/utils/crashReporterUtility.tsx b/desktop/app/src/utils/crashReporterUtility.tsx index 8e963466d..827cd2061 100644 --- a/desktop/app/src/utils/crashReporterUtility.tsx +++ b/desktop/app/src/utils/crashReporterUtility.tsx @@ -5,7 +5,6 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow */ import {DeviceLogEntry} from 'flipper-plugin'; diff --git a/desktop/app/src/utils/icons.ts b/desktop/app/src/utils/icons.ts index 57296fb5d..4f249bb5f 100644 --- a/desktop/app/src/utils/icons.ts +++ b/desktop/app/src/utils/icons.ts @@ -51,7 +51,6 @@ function getIconFileName( return `${icon.trimmedName}-${icon.variant}-${size}@${density}x.png`; } -// $FlowFixMe not using flow in this file export function buildLocalIconPath( name: string, size: number, @@ -66,7 +65,6 @@ export function buildLocalIconURL(name: string, size: number, density: number) { return `icons/${getIconFileName(icon, size, density)}`; } -// $FlowFixMe not using flow in this file export function buildIconURL(name: string, size: number, density: number) { const icon = getIconPartsFromName(name); // eslint-disable-next-line prettier/prettier @@ -81,7 +79,6 @@ export function buildIconURL(name: string, size: number, density: number) { ) { // From utils/isProduction const isProduction = !/node_modules[\\/]electron[\\/]/.test( - // $FlowFixMe process.execPath || remote.process.execPath, ); @@ -123,7 +120,6 @@ export function buildIconURL(name: string, size: number, density: number) { return url; } -// $FlowFixMe: not using flow in this file export function getIconURL(name: string, size: number, density: number) { if (name.indexOf('/') > -1) { return name; diff --git a/desktop/babel-transformer/src/fb-stubs.ts b/desktop/babel-transformer/src/fb-stubs.ts index 6db1f0dee..ac21a005a 100644 --- a/desktop/babel-transformer/src/fb-stubs.ts +++ b/desktop/babel-transformer/src/fb-stubs.ts @@ -33,7 +33,7 @@ module.exports = () => ({ !isFBFile(state.file.opts.filename) ) { throw new Error( - 'For files which are not under fb/ do not require directly from fb/, but rather from fb-stubs/ to not break flow-typing and make sure stubs are up-to-date.', + 'For files which are not under fb/ do not require directly from fb/, but rather from fb-stubs/ to not break typescript-typing and make sure stubs are up-to-date.', ); } else if ( requireFromFolder('fb-stubs', path.node.arguments[0].value) diff --git a/desktop/doctor/package.json b/desktop/doctor/package.json index b9539d1d4..03a28fe23 100644 --- a/desktop/doctor/package.json +++ b/desktop/doctor/package.json @@ -12,7 +12,6 @@ "@typescript-eslint/eslint-plugin": "^2.8.0", "eslint": "^7.12.1", "eslint-plugin-babel": "^5.3.1", - "eslint-plugin-flowtype": "^4.7.0", "eslint-plugin-header": "^3.0.0", "eslint-plugin-jsx-a11y": "^6.3.1", "eslint-plugin-prettier": "^3.1.1", diff --git a/desktop/flow-typed/TsStub.js b/desktop/flow-typed/TsStub.js deleted file mode 100644 index a5d1b2477..000000000 --- a/desktop/flow-typed/TsStub.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -declare module TsStub { - declare module.exports: any; -} diff --git a/desktop/flow-typed/flipper.js b/desktop/flow-typed/flipper.js deleted file mode 100644 index 3a07f8f19..000000000 --- a/desktop/flow-typed/flipper.js +++ /dev/null @@ -1,283 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -// This has been taken from the old plugin.js and manually stripped of -// implementation so only the types remain. -// It's not generated using flowgen because the typescript def is slightly weaker -// than the original flow one. (Persisted State generic param being used -// in reducers etc. - -import type {KeyboardActions} from './MenuBar.js'; -import type {App} from './App.js'; -import type {Logger} from './fb-interfaces/Logger.js'; -import type Client from './Client.js'; -import type {Store, MiddlewareAPI} from './reducers/index.js'; -import type {MetricType} from './utils/exportMetrics.tsx'; -import type {Node} from 'react'; -import type BaseDevice from './devices/BaseDevice.js'; -import type AndroidDevice from './devices/AndroidDevice'; -import type IOSDevice from './devices/IOSDevice'; - -declare module 'flipper' { - // This function is intended to be called from outside of the plugin. - // If you want to `call` from the plugin use, this.client.call - declare function callClient( - client: Client, - id: string, - ): (string, ?Object) => Promise; - - declare interface PluginClient { - // eslint-disable-next-line - send(method: string, params?: Object): void; - // eslint-disable-next-line - call(method: string, params?: Object): Promise; - // eslint-disable-next-line - subscribe(method: string, callback: (params: any) => void): void; - // eslint-disable-next-line - supportsMethod(method: string): Promise; - } - - declare type Logger = Logger; - - declare type PluginTarget = BaseDevice | Client; - - declare type Notification = {| - id: string, - title: string, - message: string | Node, - severity: 'warning' | 'error', - timestamp?: number, - category?: string, - action?: string, - |}; - - declare type Props = { - logger: Logger, - persistedState: T, - setPersistedState: (state: $Shape) => void, - target: PluginTarget, - deepLinkPayload: ?string, - selectPlugin: (pluginID: string, deepLinkPayload: ?string) => boolean, - isArchivedDevice: boolean, - selectedApp: ?string, - }; - - declare class FlipperBasePlugin< - State = *, - Actions = *, - PersistedState = *, - > extends React.Component, State> { - static title: ?string; - static id: string; - static icon: ?string; - static gatekeeper: ?string; - static entry: ?string; - static bugs: ?{ - email?: string, - url?: string, - }; - static keyboardActions: ?KeyboardActions; - static screenshot: ?string; - static defaultPersistedState: PersistedState; - static persistedStateReducer: ?( - persistedState: PersistedState, - method: string, - data: Object, - ) => $Shape; - static metricsReducer: ?( - persistedState: PersistedState, - ) => Promise; - static exportPersistedState: ?( - callClient: (string, ?Object) => Promise, - persistedState: ?PersistedState, - store: ?MiddlewareAPI, - ) => Promise; - static serializePersistedState: ( - persistedState: PersistedState, - statusUpdate?: (msg: string) => void, - idler?: Idler, - ) => Promise; - static deserializePersistedState: ( - serializedString: string, - ) => PersistedState; - static getActiveNotifications: ?( - persistedState: PersistedState, - ) => Array; - static onRegisterDevice: ?( - store: Store, - baseDevice: BaseDevice, - setPersistedState: ( - pluginKey: string, - newPluginState: ?PersistedState, - ) => void, - ) => void; - // forbid instance properties that should be static - title: empty; - id: empty; - persist: empty; - icon: empty; - keyboardActions: empty; - screenshot: empty; - - reducers: { - [actionName: string]: (state: State, actionData: Object) => $Shape, - }; - app: App; - onKeyboardAction: ?(action: string) => void; - - toJSON(): string; - - init(): void; - teardown(): void; - computeNotifications(props: Props<*>, state: State): Array; - // methods to be overridden by subclasses - _init(): void; - _teardown(): void; - - dispatchAction(actionData: Actions): void; - } - - declare class FlipperDevicePlugin< - S = *, - A = *, - P = *, - > extends FlipperBasePlugin { - device: BaseDevice; - - constructor(props: Props

): void; - - _init(): void; - - _teardown(): void; - - static supportsDevice(device: BaseDevice): boolean; - } - - declare class FlipperPlugin extends FlipperBasePlugin< - S, - A, - P, - > { - constructor(props: Props

): void; - - subscriptions: Array<{ - method: string, - callback: Function, - }>; - - client: PluginClient; - realClient: Client; - - getDevice(): Promise; - - getAndroidDevice(): AndroidDevice; - - getIOSDevice(): IOSDevice; - - _teardown(): void; - - _init(): void; - } - - declare var AndroidDevice: any; - declare var BaseDevice: any; - declare var Block: any; - declare var Box: any; - declare var Button: any; - declare var ButtonGroup: any; - declare var Checkbox: any; - declare var CodeBlock: any; - declare var Component: any; - declare var ContextMenu: any; - declare var DataDescription: any; - declare var DataInspector: any; - declare var DetailSidebar: any; - declare var Device: any; - declare var DeviceLogEntry: any; - declare var Element: any; - declare var ElementID: any; - declare var ElementSearchResultSet: any; - declare var ElementsInspector: any; - declare var ErrorBlock: any; - declare var ErrorBlockContainer: any; - declare var Filter: any; - declare var FlexBox: any; - declare var FlexCenter: any; - declare var FlexColumn: any; - declare var FlexRow: any; - declare var FlipperBasePlugin: any; - declare var FlipperPlugin: any; - declare var GK: any; - declare var Glyph: any; - declare var Heading: any; - declare var HorizontalRule: any; - declare var Input: any; - declare var Label: any; - declare var Link: any; - declare var LoadingIndicator: any; - declare var LogLevel: any; - declare var ManagedDataInspector: any; - declare var ManagedTable: any; - declare var ManagedTable_immutable: any; - declare var MarkerTimeline: any; - declare var MetricType: any; - declare var MiddlewareAPI: any; - declare var OS: any; - declare var Panel: any; - declare var PureComponent: any; - declare var SearchBox: any; - declare var SearchIcon: any; - declare var SearchInput: any; - declare var Searchable: any; - declare var SearchableProps: any; - declare var SearchableTable: any; - declare var SearchableTable_immutable: any; - declare var Select: any; - declare var Sheet: any; - declare var Sidebar: any; - declare var SidebarExtensions: any; - declare var Spacer: any; - declare var StackTrace: any; - declare var StatusIndicator: any; - declare var Store: any; - declare var Tab: any; - declare var TableBodyRow: any; - declare var TableColumnOrder: any; - declare var TableColumnSizes: any; - declare var TableColumns: any; - declare var TableHighlightedRows: any; - declare var TableRowSortOrder: any; - declare var TableRows: any; - declare var TableRows_immutable: any; - declare var Tabs: any; - declare var Text: any; - declare var Textarea: any; - declare var ToggleButton: any; - declare var Toolbar: any; - declare var Tooltip: any; - declare var Value: any; - declare var VerticalRule: any; - declare var View: any; - declare var bufferToBlob: any; - declare var clipboard: any; - declare var colors: any; - declare var constants: any; - declare var createPaste: any; - declare var createTablePlugin: any; - declare var getPersistedState: any; - declare var getPluginKey: any; - declare var getStringFromErrorLike: any; - declare var graphQLQuery: any; - declare var isProduction: any; - declare var keyframes: any; - declare var renderValue: any; - declare var shouldParseAndroidLog: any; - declare var styled: any; - declare var textContent: any; -} diff --git a/desktop/flow-typed/npm/adbkit-fb_vx.x.x.js b/desktop/flow-typed/npm/adbkit-fb_vx.x.x.js deleted file mode 100644 index c1368acfb..000000000 --- a/desktop/flow-typed/npm/adbkit-fb_vx.x.x.js +++ /dev/null @@ -1,507 +0,0 @@ -// flow-typed signature: 7849d9ce4b390afcfc917a08445a20eb -// flow-typed version: <>/adbkit-fb_v2.10.1/flow_v0.59.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'adbkit-fb' - * - * 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 'adbkit-fb' { - 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 'adbkit-fb/lib/adb' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/auth' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/client' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-serial/forward' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-serial/getdevicepath' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-serial/getserialno' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-serial/getstate' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-serial/listforwards' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-serial/waitfordevice' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/clear' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/framebuffer' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/getfeatures' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/getpackages' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/getproperties' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/install' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/isinstalled' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/listreverses' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/local' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/log' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/logcat' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/monkey' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/reboot' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/remount' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/reverse' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/root' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/screencap' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/shell' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/startactivity' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/startservice' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/sync' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/tcp' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/tcpip' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/trackjdwp' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/uninstall' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/usb' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host-transport/waitbootcomplete' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host/connect' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host/devices' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host/deviceswithpaths' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host/disconnect' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host/kill' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host/trackdevices' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host/transport' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/command/host/version' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/connection' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/dump' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/framebuffer/rgbtransform' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/keycode' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/linetransform' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/parser' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/proc/stat' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/protocol' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/sync' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/sync/entry' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/sync/pulltransfer' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/sync/pushtransfer' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/sync/stats' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/tcpusb/packet' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/tcpusb/packetreader' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/tcpusb/rollingcounter' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/tcpusb/server' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/tcpusb/service' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/tcpusb/servicemap' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/tcpusb/socket' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/tracker' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/adb/util' { - declare module.exports: any; -} - -declare module 'adbkit-fb/lib/cli' { - declare module.exports: any; -} - -// Filename aliases -declare module 'adbkit-fb/index' { - declare module.exports: $Exports<'adbkit-fb'>; -} -declare module 'adbkit-fb/index.js' { - declare module.exports: $Exports<'adbkit-fb'>; -} -declare module 'adbkit-fb/lib/adb.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb'>; -} -declare module 'adbkit-fb/lib/adb/auth.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/auth'>; -} -declare module 'adbkit-fb/lib/adb/client.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/client'>; -} -declare module 'adbkit-fb/lib/adb/command.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command'>; -} -declare module 'adbkit-fb/lib/adb/command/host-serial/forward.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-serial/forward'>; -} -declare module 'adbkit-fb/lib/adb/command/host-serial/getdevicepath.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-serial/getdevicepath'>; -} -declare module 'adbkit-fb/lib/adb/command/host-serial/getserialno.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-serial/getserialno'>; -} -declare module 'adbkit-fb/lib/adb/command/host-serial/getstate.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-serial/getstate'>; -} -declare module 'adbkit-fb/lib/adb/command/host-serial/listforwards.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-serial/listforwards'>; -} -declare module 'adbkit-fb/lib/adb/command/host-serial/waitfordevice.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-serial/waitfordevice'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/clear.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/clear'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/framebuffer.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/framebuffer'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/getfeatures.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/getfeatures'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/getpackages.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/getpackages'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/getproperties.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/getproperties'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/install.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/install'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/isinstalled.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/isinstalled'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/listreverses.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/listreverses'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/local.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/local'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/log.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/log'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/logcat.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/logcat'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/monkey.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/monkey'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/reboot.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/reboot'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/remount.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/remount'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/reverse.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/reverse'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/root.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/root'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/screencap.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/screencap'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/shell.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/shell'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/startactivity.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/startactivity'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/startservice.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/startservice'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/sync.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/sync'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/tcp.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/tcp'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/tcpip.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/tcpip'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/trackjdwp.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/trackjdwp'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/uninstall.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/uninstall'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/usb.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/usb'>; -} -declare module 'adbkit-fb/lib/adb/command/host-transport/waitbootcomplete.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host-transport/waitbootcomplete'>; -} -declare module 'adbkit-fb/lib/adb/command/host/connect.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host/connect'>; -} -declare module 'adbkit-fb/lib/adb/command/host/devices.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host/devices'>; -} -declare module 'adbkit-fb/lib/adb/command/host/deviceswithpaths.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host/deviceswithpaths'>; -} -declare module 'adbkit-fb/lib/adb/command/host/disconnect.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host/disconnect'>; -} -declare module 'adbkit-fb/lib/adb/command/host/kill.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host/kill'>; -} -declare module 'adbkit-fb/lib/adb/command/host/trackdevices.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host/trackdevices'>; -} -declare module 'adbkit-fb/lib/adb/command/host/transport.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host/transport'>; -} -declare module 'adbkit-fb/lib/adb/command/host/version.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/command/host/version'>; -} -declare module 'adbkit-fb/lib/adb/connection.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/connection'>; -} -declare module 'adbkit-fb/lib/adb/dump.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/dump'>; -} -declare module 'adbkit-fb/lib/adb/framebuffer/rgbtransform.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/framebuffer/rgbtransform'>; -} -declare module 'adbkit-fb/lib/adb/keycode.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/keycode'>; -} -declare module 'adbkit-fb/lib/adb/linetransform.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/linetransform'>; -} -declare module 'adbkit-fb/lib/adb/parser.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/parser'>; -} -declare module 'adbkit-fb/lib/adb/proc/stat.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/proc/stat'>; -} -declare module 'adbkit-fb/lib/adb/protocol.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/protocol'>; -} -declare module 'adbkit-fb/lib/adb/sync.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/sync'>; -} -declare module 'adbkit-fb/lib/adb/sync/entry.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/sync/entry'>; -} -declare module 'adbkit-fb/lib/adb/sync/pulltransfer.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/sync/pulltransfer'>; -} -declare module 'adbkit-fb/lib/adb/sync/pushtransfer.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/sync/pushtransfer'>; -} -declare module 'adbkit-fb/lib/adb/sync/stats.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/sync/stats'>; -} -declare module 'adbkit-fb/lib/adb/tcpusb/packet.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/tcpusb/packet'>; -} -declare module 'adbkit-fb/lib/adb/tcpusb/packetreader.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/tcpusb/packetreader'>; -} -declare module 'adbkit-fb/lib/adb/tcpusb/rollingcounter.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/tcpusb/rollingcounter'>; -} -declare module 'adbkit-fb/lib/adb/tcpusb/server.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/tcpusb/server'>; -} -declare module 'adbkit-fb/lib/adb/tcpusb/service.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/tcpusb/service'>; -} -declare module 'adbkit-fb/lib/adb/tcpusb/servicemap.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/tcpusb/servicemap'>; -} -declare module 'adbkit-fb/lib/adb/tcpusb/socket.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/tcpusb/socket'>; -} -declare module 'adbkit-fb/lib/adb/tracker.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/tracker'>; -} -declare module 'adbkit-fb/lib/adb/util.js' { - declare module.exports: $Exports<'adbkit-fb/lib/adb/util'>; -} -declare module 'adbkit-fb/lib/cli.js' { - declare module.exports: $Exports<'adbkit-fb/lib/cli'>; -} diff --git a/desktop/flow-typed/npm/dateformat_vx.x.x.js b/desktop/flow-typed/npm/dateformat_vx.x.x.js deleted file mode 100644 index c17fff8ff..000000000 --- a/desktop/flow-typed/npm/dateformat_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 3d651fc79523c92efe95077d29cac82f -// flow-typed version: <>/dateformat_v3.0.3/flow_v0.102.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'dateformat' - * - * 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 'dateformat' { - 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 'dateformat/lib/dateformat' { - declare module.exports: any; -} - -// Filename aliases -declare module 'dateformat/lib/dateformat.js' { - declare module.exports: $Exports<'dateformat/lib/dateformat'>; -} diff --git a/desktop/flow-typed/npm/electron-v5.0.2.js b/desktop/flow-typed/npm/electron-v5.0.2.js deleted file mode 100644 index ec16ad033..000000000 --- a/desktop/flow-typed/npm/electron-v5.0.2.js +++ /dev/null @@ -1,4282 +0,0 @@ -/** - * Copyright 2018-present Facebook. - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * @format - * @flow - * - * This is an autogenerated libdef for: electron-v5.0.2 renderer process - */ - -declare module 'electron' { - declare module.exports: { - clipboard: { - readText: (type?: ?'selection' | 'clipboard') => string, - writeText: (text: string, type?: ?'selection' | 'clipboard') => void, - readHTML: (type?: ?'selection' | 'clipboard') => string, - writeHTML: (markup: string, type?: ?'selection' | 'clipboard') => void, - readImage: (type?: ?'selection' | 'clipboard') => NativeImage, - writeImage: ( - image: NativeImage, - type?: ?'selection' | 'clipboard', - ) => void, - readRTF: (type?: ?'selection' | 'clipboard') => string, - writeRTF: (text: string, type?: ?'selection' | 'clipboard') => void, - readBookmark: () => { - title: string, - url: string, - }, - writeBookmark: ( - title: string, - url: string, - type?: ?'selection' | 'clipboard', - ) => void, - readFindText: () => string, - writeFindText: (text: string) => void, - clear: (type?: ?'selection' | 'clipboard') => void, - availableFormats: (type?: ?'selection' | 'clipboard') => Array, - has: (format: string, type?: ?'selection' | 'clipboard') => boolean, - read: (format: string) => string, - readBuffer: (format: string) => Buffer, - writeBuffer: ( - format: string, - buffer: Buffer, - type?: ?'selection' | 'clipboard', - ) => void, - write: ( - data: { - text?: ?string, - html?: ?string, - image?: ?NativeImage, - rtf?: ?string, - bookmark?: ?string, - }, - type?: ?'selection' | 'clipboard', - ) => void, - }, - crashReporter: { - start: (options: { - companyName: string, - submitURL: string, - productName?: ?string, - uploadToServer?: ?boolean, - ignoreSystemCrashHandler?: ?boolean, - extra?: ?{}, - crashesDirectory?: ?string, - }) => void, - getLastCrashReport: () => CrashReport, - getUploadedReports: () => Array, - getUploadToServer: () => boolean, - setUploadToServer: (uploadToServer: boolean) => void, - addExtraParameter: (key: string, value: string) => void, - removeExtraParameter: (key: string) => void, - getParameters: () => void, - }, - desktopCapturer: { - getSources: ( - options: { - types: Array, - thumbnailSize?: ?Size, - fetchWindowIcons?: ?boolean, - }, - callback: Function, - ) => void, - getSources: (options: { - types: Array, - thumbnailSize?: ?Size, - fetchWindowIcons?: ?boolean, - }) => Promise, - }, - ipcRenderer: { - on: (channel: string, listener: Function) => void, - once: (channel: string, listener: Function) => void, - removeListener: (channel: string, listener: Function) => void, - removeAllListeners: (channel: string) => void, - send: (channel: string, ...args: Array) => void, - sendSync: (channel: string, ...args: Array) => any, - sendTo: ( - webContentsId: number, - channel: string, - ...args: Array - ) => void, - sendToHost: (channel: string, ...args: Array) => void, - }, - nativeImage: { - createEmpty: () => NativeImage, - createFromPath: (path: string) => NativeImage, - createFromBuffer: ( - buffer: Buffer, - options?: ?{ - width?: ?number, - height?: ?number, - scaleFactor?: ?number, - }, - ) => NativeImage, - createFromDataURL: (dataURL: string) => NativeImage, - createFromNamedImage: ( - imageName: string, - hslShift: Array, - ) => NativeImage, - }, - process: { - crash: () => void, - getCreationTime: () => number | null, - getCPUUsage: () => CPUUsage, - getIOCounters: () => IOCounters, - getHeapStatistics: () => { - totalHeapSize: number, - totalHeapSizeExecutable: number, - totalPhysicalSize: number, - totalAvailableSize: number, - usedHeapSize: number, - heapSizeLimit: number, - mallocedMemory: number, - peakMallocedMemory: number, - doesZapGarbage: boolean, - }, - getProcessMemoryInfo: () => { - residentSet: number, - private: number, - shared: number, - }, - getSystemMemoryInfo: () => { - total: number, - free: number, - swapTotal: number, - swapFree: number, - }, - takeHeapSnapshot: (filePath: string) => boolean, - hang: () => void, - setFdLimit: (maxDescriptors: number) => void, - on: (eventName: 'loaded', callback: () => void) => void, - once: (eventName: 'loaded', callback: () => void) => void, - defaultApp?: ?boolean, - isMainFrame?: ?boolean, - mas?: ?boolean, - noAsar?: ?boolean, - noDeprecation?: ?boolean, - enablePromiseAPIs?: ?boolean, - resourcesPath?: ?string, - sandboxed?: ?boolean, - throwDeprecation?: ?boolean, - traceDeprecation?: ?boolean, - traceProcessWarnings?: ?boolean, - type?: ?string, - windowsStore?: ?boolean, - versions: { - chrome?: ?string, - electron?: ?string, - }, - }, - remote: { - require: (module: string) => any, - getCurrentWindow: () => BrowserWindow, - getCurrentWebContents: () => WebContents, - getGlobal: (name: string) => any, - process?: ?any, - app: { - quit: () => void, - exit: (exitCode?: ?number) => void, - relaunch: ( - options?: ?{ - args?: ?Array, - execPath?: ?string, - }, - ) => void, - isReady: () => boolean, - whenReady: () => Promise, - focus: () => void, - hide: () => void, - show: () => void, - getAppPath: () => string, - getPath: (name: string) => string, - getFileIcon: ( - path: string, - options?: ?{ - size: 'small' | 'normal' | 'large', - }, - callback: Function, - ) => void, - getFileIcon: ( - path: string, - options?: ?{ - size: 'small' | 'normal' | 'large', - }, - ) => Promise, - setPath: (name: string, path: string) => void, - getVersion: () => string, - getName: () => string, - setName: (name: string) => void, - getLocale: () => string, - getLocaleCountryCode: () => string, - addRecentDocument: (path: string) => void, - clearRecentDocuments: () => void, - setAsDefaultProtocolClient: ( - protocol: string, - path?: ?string, - args?: ?Array, - ) => boolean, - removeAsDefaultProtocolClient: ( - protocol: string, - path?: ?string, - args?: ?Array, - ) => boolean, - isDefaultProtocolClient: ( - protocol: string, - path?: ?string, - args?: ?Array, - ) => boolean, - setUserTasks: (tasks: Array) => boolean, - getJumpListSettings: () => { - minItems: number, - removedItems: Array, - }, - setJumpList: (categories: Array) => void, - requestSingleInstanceLock: () => boolean, - hasSingleInstanceLock: () => boolean, - releaseSingleInstanceLock: () => void, - setUserActivity: ( - type: string, - userInfo: {}, - webpageURL?: ?string, - ) => void, - getCurrentActivityType: () => string, - invalidateCurrentActivity: (type: string) => void, - updateCurrentActivity: (type: string, userInfo: {}) => void, - setAppUserModelId: (id: string) => void, - importCertificate: ( - options: { - certificate: string, - password: string, - }, - callback: Function, - ) => void, - disableHardwareAcceleration: () => void, - disableDomainBlockingFor3DAPIs: () => void, - getAppMetrics: () => Array, - getGPUFeatureStatus: () => GPUFeatureStatus, - getGPUInfo: (infoType: string) => Promise, - setBadgeCount: (count: number) => boolean, - getBadgeCount: () => number, - isUnityRunning: () => boolean, - getLoginItemSettings: ( - options?: ?{ - path?: ?string, - args?: ?Array, - }, - ) => { - options?: ?{ - path?: ?string, - args?: ?Array, - }, - openAtLogin: boolean, - openAsHidden: boolean, - wasOpenedAtLogin: boolean, - wasOpenedAsHidden: boolean, - restoreState: boolean, - }, - setLoginItemSettings: (settings: { - openAtLogin?: ?boolean, - openAsHidden?: ?boolean, - path?: ?string, - args?: ?Array, - }) => void, - isAccessibilitySupportEnabled: () => boolean, - setAccessibilitySupportEnabled: (enabled: boolean) => void, - showAboutPanel: () => void, - setAboutPanelOptions: (options: { - applicationName?: ?string, - applicationVersion?: ?string, - copyright?: ?string, - version?: ?string, - credits?: ?string, - website?: ?string, - iconPath?: ?string, - }) => void, - startAccessingSecurityScopedResource: ( - bookmarkData: string, - ) => Function, - enableSandbox: () => void, - isInApplicationsFolder: () => boolean, - moveToApplicationsFolder: () => boolean, - on: (( - eventName: 'will-finish-launching', - callback: () => void, - ) => void) & - ((eventName: 'ready', callback: (launchInfo: {}) => void) => void) & - ((eventName: 'window-all-closed', callback: () => void) => void) & - (( - eventName: 'before-quit', - callback: (event: Event) => void, - ) => void) & - ((eventName: 'will-quit', callback: (event: Event) => void) => void) & - (( - eventName: 'quit', - callback: (event: Event, exitCode: number) => void, - ) => void) & - (( - eventName: 'open-file', - callback: (event: Event, path: string) => void, - ) => void) & - (( - eventName: 'open-url', - callback: (event: Event, url: string) => void, - ) => void) & - (( - eventName: 'activate', - callback: (event: Event, hasVisibleWindows: boolean) => void, - ) => void) & - (( - eventName: 'continue-activity', - callback: (event: Event, type: string, userInfo: {}) => void, - ) => void) & - (( - eventName: 'will-continue-activity', - callback: (event: Event, type: string) => void, - ) => void) & - (( - eventName: 'continue-activity-error', - callback: (event: Event, type: string, error: string) => void, - ) => void) & - (( - eventName: 'activity-was-continued', - callback: (event: Event, type: string, userInfo: {}) => void, - ) => void) & - (( - eventName: 'update-activity-state', - callback: (event: Event, type: string, userInfo: {}) => void, - ) => void) & - (( - eventName: 'new-window-for-tab', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'browser-window-blur', - callback: (event: Event, window: BrowserWindow) => void, - ) => void) & - (( - eventName: 'browser-window-focus', - callback: (event: Event, window: BrowserWindow) => void, - ) => void) & - (( - eventName: 'browser-window-created', - callback: (event: Event, window: BrowserWindow) => void, - ) => void) & - (( - eventName: 'web-contents-created', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'certificate-error', - callback: ( - event: Event, - webContents: WebContents, - url: string, - error: string, - certificate: Certificate, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'select-client-certificate', - callback: ( - event: Event, - webContents: WebContents, - url: URL, - certificateList: Array, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'login', - callback: ( - event: Event, - webContents: WebContents, - request: { - method: string, - url: URL, - referrer: URL, - }, - authInfo: { - isProxy: boolean, - scheme: string, - host: string, - port: number, - realm: string, - }, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'gpu-process-crashed', - callback: (event: Event, killed: boolean) => void, - ) => void) & - (( - eventName: 'accessibility-support-changed', - callback: ( - event: Event, - accessibilitySupportEnabled: boolean, - ) => void, - ) => void) & - (( - eventName: 'session-created', - callback: (session: Session) => void, - ) => void) & - (( - eventName: 'second-instance', - callback: ( - event: Event, - argv: Array, - workingDirectory: string, - ) => void, - ) => void) & - (( - eventName: 'desktop-capturer-get-sources', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'remote-require', - callback: ( - event: Event, - webContents: WebContents, - moduleName: string, - ) => void, - ) => void) & - (( - eventName: 'remote-get-global', - callback: ( - event: Event, - webContents: WebContents, - globalName: string, - ) => void, - ) => void) & - (( - eventName: 'remote-get-builtin', - callback: ( - event: Event, - webContents: WebContents, - moduleName: string, - ) => void, - ) => void) & - (( - eventName: 'remote-get-current-window', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'remote-get-current-web-contents', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'remote-get-guest-web-contents', - callback: ( - event: Event, - webContents: WebContents, - guestWebContents: WebContents, - ) => void, - ) => void), - once: (( - eventName: 'will-finish-launching', - callback: () => void, - ) => void) & - ((eventName: 'ready', callback: (launchInfo: {}) => void) => void) & - ((eventName: 'window-all-closed', callback: () => void) => void) & - (( - eventName: 'before-quit', - callback: (event: Event) => void, - ) => void) & - ((eventName: 'will-quit', callback: (event: Event) => void) => void) & - (( - eventName: 'quit', - callback: (event: Event, exitCode: number) => void, - ) => void) & - (( - eventName: 'open-file', - callback: (event: Event, path: string) => void, - ) => void) & - (( - eventName: 'open-url', - callback: (event: Event, url: string) => void, - ) => void) & - (( - eventName: 'activate', - callback: (event: Event, hasVisibleWindows: boolean) => void, - ) => void) & - (( - eventName: 'continue-activity', - callback: (event: Event, type: string, userInfo: {}) => void, - ) => void) & - (( - eventName: 'will-continue-activity', - callback: (event: Event, type: string) => void, - ) => void) & - (( - eventName: 'continue-activity-error', - callback: (event: Event, type: string, error: string) => void, - ) => void) & - (( - eventName: 'activity-was-continued', - callback: (event: Event, type: string, userInfo: {}) => void, - ) => void) & - (( - eventName: 'update-activity-state', - callback: (event: Event, type: string, userInfo: {}) => void, - ) => void) & - (( - eventName: 'new-window-for-tab', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'browser-window-blur', - callback: (event: Event, window: BrowserWindow) => void, - ) => void) & - (( - eventName: 'browser-window-focus', - callback: (event: Event, window: BrowserWindow) => void, - ) => void) & - (( - eventName: 'browser-window-created', - callback: (event: Event, window: BrowserWindow) => void, - ) => void) & - (( - eventName: 'web-contents-created', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'certificate-error', - callback: ( - event: Event, - webContents: WebContents, - url: string, - error: string, - certificate: Certificate, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'select-client-certificate', - callback: ( - event: Event, - webContents: WebContents, - url: URL, - certificateList: Array, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'login', - callback: ( - event: Event, - webContents: WebContents, - request: { - method: string, - url: URL, - referrer: URL, - }, - authInfo: { - isProxy: boolean, - scheme: string, - host: string, - port: number, - realm: string, - }, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'gpu-process-crashed', - callback: (event: Event, killed: boolean) => void, - ) => void) & - (( - eventName: 'accessibility-support-changed', - callback: ( - event: Event, - accessibilitySupportEnabled: boolean, - ) => void, - ) => void) & - (( - eventName: 'session-created', - callback: (session: Session) => void, - ) => void) & - (( - eventName: 'second-instance', - callback: ( - event: Event, - argv: Array, - workingDirectory: string, - ) => void, - ) => void) & - (( - eventName: 'desktop-capturer-get-sources', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'remote-require', - callback: ( - event: Event, - webContents: WebContents, - moduleName: string, - ) => void, - ) => void) & - (( - eventName: 'remote-get-global', - callback: ( - event: Event, - webContents: WebContents, - globalName: string, - ) => void, - ) => void) & - (( - eventName: 'remote-get-builtin', - callback: ( - event: Event, - webContents: WebContents, - moduleName: string, - ) => void, - ) => void) & - (( - eventName: 'remote-get-current-window', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'remote-get-current-web-contents', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'remote-get-guest-web-contents', - callback: ( - event: Event, - webContents: WebContents, - guestWebContents: WebContents, - ) => void, - ) => void), - isPackaged?: ?boolean, - commandLine: { - appendSwitch?: ?Function, - appendArgument?: ?Function, - hasSwitch?: ?Function, - getSwitchValue?: ?Function, - }, - dock: { - bounce?: ?Function, - cancelBounce?: ?Function, - downloadFinished?: ?Function, - setBadge?: ?Function, - getBadge?: ?Function, - hide?: ?Function, - show?: ?Function, - isVisible?: ?Function, - setMenu?: ?Function, - setIcon?: ?Function, - }, - }, - autoUpdater: { - setFeedURL: (options: { - url: string, - headers?: ?{}, - serverType?: ?string, - }) => void, - getFeedURL: () => string, - checkForUpdates: () => void, - quitAndInstall: () => void, - on: ((eventName: 'error', callback: (error: Error) => void) => void) & - ((eventName: 'checking-for-update', callback: () => void) => void) & - ((eventName: 'update-available', callback: () => void) => void) & - ((eventName: 'update-not-available', callback: () => void) => void) & - (( - eventName: 'update-downloaded', - callback: ( - event: Event, - releaseNotes: string, - releaseName: string, - releaseDate: Date, - updateURL: string, - ) => void, - ) => void) & - ((eventName: 'before-quit-for-update', callback: () => void) => void), - once: ((eventName: 'error', callback: (error: Error) => void) => void) & - ((eventName: 'checking-for-update', callback: () => void) => void) & - ((eventName: 'update-available', callback: () => void) => void) & - ((eventName: 'update-not-available', callback: () => void) => void) & - (( - eventName: 'update-downloaded', - callback: ( - event: Event, - releaseNotes: string, - releaseName: string, - releaseDate: Date, - updateURL: string, - ) => void, - ) => void) & - ((eventName: 'before-quit-for-update', callback: () => void) => void), - }, - clipboard: { - readText: (type?: ?'selection' | 'clipboard') => string, - writeText: (text: string, type?: ?'selection' | 'clipboard') => void, - readHTML: (type?: ?'selection' | 'clipboard') => string, - writeHTML: (markup: string, type?: ?'selection' | 'clipboard') => void, - readImage: (type?: ?'selection' | 'clipboard') => NativeImage, - writeImage: ( - image: NativeImage, - type?: ?'selection' | 'clipboard', - ) => void, - readRTF: (type?: ?'selection' | 'clipboard') => string, - writeRTF: (text: string, type?: ?'selection' | 'clipboard') => void, - readBookmark: () => { - title: string, - url: string, - }, - writeBookmark: ( - title: string, - url: string, - type?: ?'selection' | 'clipboard', - ) => void, - readFindText: () => string, - writeFindText: (text: string) => void, - clear: (type?: ?'selection' | 'clipboard') => void, - availableFormats: (type?: ?'selection' | 'clipboard') => Array, - has: (format: string, type?: ?'selection' | 'clipboard') => boolean, - read: (format: string) => string, - readBuffer: (format: string) => Buffer, - writeBuffer: ( - format: string, - buffer: Buffer, - type?: ?'selection' | 'clipboard', - ) => void, - write: ( - data: { - text?: ?string, - html?: ?string, - image?: ?NativeImage, - rtf?: ?string, - bookmark?: ?string, - }, - type?: ?'selection' | 'clipboard', - ) => void, - }, - contentTracing: { - getCategories: (callback: Function) => void, - getCategories: () => Promise, - startRecording: ( - options: TraceCategoriesAndOptions | TraceConfig, - callback: Function, - ) => void, - startRecording: ( - options: TraceCategoriesAndOptions | TraceConfig, - ) => Promise, - stopRecording: (resultFilePath: string, callback: Function) => void, - stopRecording: (resultFilePath: string) => Promise, - getTraceBufferUsage: (callback: Function) => void, - }, - crashReporter: { - start: (options: { - companyName: string, - submitURL: string, - productName?: ?string, - uploadToServer?: ?boolean, - ignoreSystemCrashHandler?: ?boolean, - extra?: ?{}, - crashesDirectory?: ?string, - }) => void, - getLastCrashReport: () => CrashReport, - getUploadedReports: () => Array, - getUploadToServer: () => boolean, - setUploadToServer: (uploadToServer: boolean) => void, - addExtraParameter: (key: string, value: string) => void, - removeExtraParameter: (key: string) => void, - getParameters: () => void, - }, - dialog: { - showOpenDialog: (( - browserWindow?: ?BrowserWindow, - options: { - title?: ?string, - defaultPath?: ?string, - buttonLabel?: ?string, - filters?: ?Array, - properties?: ?Array< - | 'openFile' - | 'openDirectory' - | 'multiSelections' - | 'showHiddenFiles' - | 'createDirectory' - | 'promptToCreate' - | 'noResolveAliases' - | 'treatPackageAsDirectory', - >, - message?: ?string, - securityScopedBookmarks?: ?boolean, - }, - callback?: ?Function, - ) => Array | typeof undefined) & - (( - options: { - title?: ?string, - defaultPath?: ?string, - buttonLabel?: ?string, - filters?: ?Array, - properties?: ?Array< - | 'openFile' - | 'openDirectory' - | 'multiSelections' - | 'showHiddenFiles' - | 'createDirectory' - | 'promptToCreate' - | 'noResolveAliases' - | 'treatPackageAsDirectory', - >, - message?: ?string, - securityScopedBookmarks?: ?boolean, - }, - callback?: ?Function, - ) => Array | typeof undefined), - showSaveDialog: (( - browserWindow?: ?BrowserWindow, - options: { - title?: ?string, - defaultPath?: ?string, - buttonLabel?: ?string, - filters?: ?Array, - message?: ?string, - nameFieldLabel?: ?string, - showsTagField?: ?boolean, - securityScopedBookmarks?: ?boolean, - }, - callback?: ?Function, - ) => string | typeof undefined) & - (( - options: { - title?: ?string, - defaultPath?: ?string, - buttonLabel?: ?string, - filters?: ?Array, - message?: ?string, - nameFieldLabel?: ?string, - showsTagField?: ?boolean, - securityScopedBookmarks?: ?boolean, - }, - callback?: ?Function, - ) => string | typeof undefined), - showMessageBox: (( - browserWindow?: ?BrowserWindow, - options: { - type?: ?string, - buttons?: ?Array, - defaultId?: ?number, - title?: ?string, - message: string, - detail?: ?string, - checkboxLabel?: ?string, - checkboxChecked?: ?boolean, - icon?: ?NativeImage, - cancelId?: ?number, - noLink?: ?boolean, - normalizeAccessKeys?: ?boolean, - }, - callback?: ?Function, - ) => number) & - (( - options: { - type?: ?string, - buttons?: ?Array, - defaultId?: ?number, - title?: ?string, - message: string, - detail?: ?string, - checkboxLabel?: ?string, - checkboxChecked?: ?boolean, - icon?: ?NativeImage, - cancelId?: ?number, - noLink?: ?boolean, - normalizeAccessKeys?: ?boolean, - }, - callback?: ?Function, - ) => number), - showErrorBox: (title: string, content: string) => void, - showCertificateTrustDialog: (( - browserWindow?: ?BrowserWindow, - options: { - certificate: Certificate, - message: string, - }, - callback: Function, - ) => void) & - (( - options: { - certificate: Certificate, - message: string, - }, - callback: Function, - ) => void), - }, - globalShortcut: { - register: (accelerator: Accelerator, callback: Function) => boolean, - registerAll: (accelerators: Array, callback: Function) => void, - isRegistered: (accelerator: Accelerator) => boolean, - unregister: (accelerator: Accelerator) => void, - unregisterAll: () => void, - }, - inAppPurchase: { - purchaseProduct: ( - productID: string, - quantity?: ?number, - callback?: ?Function, - ) => void, - getProducts: (productIDs: Array, callback: Function) => void, - canMakePayments: () => boolean, - getReceiptURL: () => string, - finishAllTransactions: () => void, - finishTransactionByDate: (date: string) => void, - on: ( - eventName: 'transactions-updated', - callback: (event: Event, transactions: Array) => void, - ) => void, - once: ( - eventName: 'transactions-updated', - callback: (event: Event, transactions: Array) => void, - ) => void, - }, - ipcMain: { - on: (channel: string, listener: Function) => void, - once: (channel: string, listener: Function) => void, - removeListener: (channel: string, listener: Function) => void, - removeAllListeners: (channel: string) => void, - }, - nativeImage: { - createEmpty: () => NativeImage, - createFromPath: (path: string) => NativeImage, - createFromBuffer: ( - buffer: Buffer, - options?: ?{ - width?: ?number, - height?: ?number, - scaleFactor?: ?number, - }, - ) => NativeImage, - createFromDataURL: (dataURL: string) => NativeImage, - createFromNamedImage: ( - imageName: string, - hslShift: Array, - ) => NativeImage, - }, - net: { - request: (options: Object | string) => ClientRequest, - }, - netLog: { - startLogging: (path: string) => void, - stopLogging: (callback?: ?Function) => void, - currentlyLogging?: ?boolean, - currentlyLoggingPath?: ?string, - }, - powerMonitor: { - on: ((eventName: 'suspend', callback: () => void) => void) & - ((eventName: 'resume', callback: () => void) => void) & - ((eventName: 'on-ac', callback: () => void) => void) & - ((eventName: 'on-battery', callback: () => void) => void) & - ((eventName: 'shutdown', callback: () => void) => void) & - ((eventName: 'lock-screen', callback: () => void) => void) & - ((eventName: 'unlock-screen', callback: () => void) => void), - once: ((eventName: 'suspend', callback: () => void) => void) & - ((eventName: 'resume', callback: () => void) => void) & - ((eventName: 'on-ac', callback: () => void) => void) & - ((eventName: 'on-battery', callback: () => void) => void) & - ((eventName: 'shutdown', callback: () => void) => void) & - ((eventName: 'lock-screen', callback: () => void) => void) & - ((eventName: 'unlock-screen', callback: () => void) => void), - }, - powerSaveBlocker: { - start: ( - type: 'prevent-app-suspension' | 'prevent-display-sleep', - ) => number, - stop: (id: number) => void, - isStarted: (id: number) => boolean, - }, - process: { - crash: () => void, - getCreationTime: () => number | null, - getCPUUsage: () => CPUUsage, - getIOCounters: () => IOCounters, - getHeapStatistics: () => { - totalHeapSize: number, - totalHeapSizeExecutable: number, - totalPhysicalSize: number, - totalAvailableSize: number, - usedHeapSize: number, - heapSizeLimit: number, - mallocedMemory: number, - peakMallocedMemory: number, - doesZapGarbage: boolean, - }, - getProcessMemoryInfo: () => { - residentSet: number, - private: number, - shared: number, - }, - getSystemMemoryInfo: () => { - total: number, - free: number, - swapTotal: number, - swapFree: number, - }, - takeHeapSnapshot: (filePath: string) => boolean, - hang: () => void, - setFdLimit: (maxDescriptors: number) => void, - on: (eventName: 'loaded', callback: () => void) => void, - once: (eventName: 'loaded', callback: () => void) => void, - defaultApp?: ?boolean, - isMainFrame?: ?boolean, - mas?: ?boolean, - noAsar?: ?boolean, - noDeprecation?: ?boolean, - enablePromiseAPIs?: ?boolean, - resourcesPath?: ?string, - sandboxed?: ?boolean, - throwDeprecation?: ?boolean, - traceDeprecation?: ?boolean, - traceProcessWarnings?: ?boolean, - type?: ?string, - windowsStore?: ?boolean, - versions: { - chrome?: ?string, - electron?: ?string, - }, - }, - protocol: { - registerSchemesAsPrivileged: ( - customSchemes: Array, - ) => void, - registerFileProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - registerBufferProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - registerStringProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - registerHttpProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - registerStreamProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - unregisterProtocol: (scheme: string, completion?: ?Function) => void, - isProtocolHandled: (scheme: string, callback: Function) => void, - isProtocolHandled: (scheme: string) => Promise, - interceptFileProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - interceptStringProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - interceptBufferProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - interceptHttpProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - interceptStreamProtocol: ( - scheme: string, - handler: Function, - completion?: ?Function, - ) => void, - uninterceptProtocol: (scheme: string, completion?: ?Function) => void, - }, - screen: { - getCursorScreenPoint: () => Point, - getPrimaryDisplay: () => Display, - getAllDisplays: () => Array, - getDisplayNearestPoint: (point: Point) => Display, - getDisplayMatching: (rect: Rectangle) => Display, - screenToDipPoint: (point: Point) => Point, - dipToScreenPoint: (point: Point) => Point, - screenToDipRect: ( - window: BrowserWindow | null, - rect: Rectangle, - ) => Rectangle, - dipToScreenRect: ( - window: BrowserWindow | null, - rect: Rectangle, - ) => Rectangle, - on: (( - eventName: 'display-added', - callback: (event: Event, newDisplay: Display) => void, - ) => void) & - (( - eventName: 'display-removed', - callback: (event: Event, oldDisplay: Display) => void, - ) => void) & - (( - eventName: 'display-metrics-changed', - callback: ( - event: Event, - display: Display, - changedMetrics: Array, - ) => void, - ) => void), - once: (( - eventName: 'display-added', - callback: (event: Event, newDisplay: Display) => void, - ) => void) & - (( - eventName: 'display-removed', - callback: (event: Event, oldDisplay: Display) => void, - ) => void) & - (( - eventName: 'display-metrics-changed', - callback: ( - event: Event, - display: Display, - changedMetrics: Array, - ) => void, - ) => void), - }, - session: { - fromPartition: ( - partition: string, - options?: ?{ - cache: boolean, - }, - ) => Session, - defaultSession?: ?Session, - }, - shell: { - showItemInFolder: (fullPath: string) => boolean, - openItem: (fullPath: string) => boolean, - openExternalSync: ( - url: string, - options?: ?{ - activate?: ?boolean, - workingDirectory?: ?string, - }, - ) => boolean, - openExternal: ( - url: string, - options?: ?{ - activate?: ?boolean, - workingDirectory?: ?string, - }, - ) => Promise, - moveItemToTrash: (fullPath: string) => boolean, - beep: () => void, - writeShortcutLink: ( - shortcutPath: string, - operation?: ?'create' | 'update' | 'replace', - options: ShortcutDetails, - ) => boolean, - readShortcutLink: (shortcutPath: string) => ShortcutDetails, - }, - systemPreferences: { - isDarkMode: () => boolean, - isSwipeTrackingFromScrollEventsEnabled: () => boolean, - postNotification: ( - event: string, - userInfo: {}, - deliverImmediately?: ?boolean, - ) => void, - postLocalNotification: (event: string, userInfo: {}) => void, - postWorkspaceNotification: (event: string, userInfo: {}) => void, - subscribeNotification: (event: string, callback: Function) => number, - subscribeLocalNotification: ( - event: string, - callback: Function, - ) => number, - subscribeWorkspaceNotification: ( - event: string, - callback: Function, - ) => void, - unsubscribeNotification: (id: number) => void, - unsubscribeLocalNotification: (id: number) => void, - unsubscribeWorkspaceNotification: (id: number) => void, - registerDefaults: (defaults: {}) => void, - getUserDefault: ( - key: string, - type: - | 'string' - | 'boolean' - | 'integer' - | 'float' - | 'double' - | 'url' - | 'array' - | 'dictionary', - ) => any, - setUserDefault: (key: string, type: string, value: string) => void, - removeUserDefault: (key: string) => void, - isAeroGlassEnabled: () => boolean, - getAccentColor: () => string, - getColor: ( - color: - | '3d-dark-shadow' - | '3d-dark-shadow' - | '3d-face' - | '3d-highlight' - | '3d-light' - | '3d-shadow' - | 'active-border' - | 'active-caption' - | 'active-caption-gradient' - | 'app-workspace' - | 'button-text' - | 'caption-text' - | 'desktop' - | 'disabled-text' - | 'highlight' - | 'highlight-text' - | 'hotlight' - | 'inactive-border' - | 'inactive-caption' - | 'inactive-caption-gradient' - | 'inactive-caption-text' - | 'info-background' - | 'info-text' - | 'menu' - | 'menu-highlight' - | 'menubar' - | 'menu-text' - | 'scrollbar' - | 'window' - | 'window-frame' - | 'window-text' - | 'alternate-selected-control-text' - | 'alternate-selected-control-text' - | 'control-background' - | 'control' - | 'control-text' - | 'disabled-control-text' - | 'find-highlight' - | 'grid' - | 'header-text' - | 'highlight' - | 'keyboard-focus-indicator' - | 'label' - | 'link' - | 'placeholder-text' - | 'quaternary-label' - | 'scrubber-textured-background' - | 'secondary-label' - | 'selected-content-background' - | 'selected-control' - | 'selected-control-text' - | 'selected-menu-item' - | 'selected-text-background' - | 'selected-text' - | 'separator' - | 'shadow' - | 'tertiary-label' - | 'text-background' - | 'text' - | 'under-page-background' - | 'unemphasized-selected-content-background' - | 'unemphasized-selected-text-background' - | 'unemphasized-selected-text' - | 'window-background' - | 'window-frame-text', - ) => string, - getSystemColor: ( - color: - | 'blue' - | 'brown' - | 'gray' - | 'green' - | 'orange' - | 'pink' - | 'purple' - | 'red' - | 'yellow', - ) => void, - isInvertedColorScheme: () => boolean, - isHighContrastColorScheme: () => boolean, - getEffectiveAppearance: () => 'dark' | 'light' | 'unknown', - getAppLevelAppearance: () => 'dark' | 'light' | 'unknown', - setAppLevelAppearance: (appearance: string | null) => void, - isTrustedAccessibilityClient: (prompt: boolean) => boolean, - getMediaAccessStatus: ( - mediaType: string, - ) => 'not-determined' | 'granted' | 'denied' | 'restricted' | 'unknown', - askForMediaAccess: (mediaType: 'microphone' | 'camera') => Promise, - on: (( - eventName: 'accent-color-changed', - callback: (event: Event, newColor: string) => void, - ) => void) & - (( - eventName: 'color-changed', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'inverted-color-scheme-changed', - callback: (event: Event, invertedColorScheme: boolean) => void, - ) => void) & - (( - eventName: 'high-contrast-color-scheme-changed', - callback: (event: Event, highContrastColorScheme: boolean) => void, - ) => void) & - (( - eventName: 'appearance-changed', - callback: (newAppearance: 'dark' | 'light') => void, - ) => void), - once: (( - eventName: 'accent-color-changed', - callback: (event: Event, newColor: string) => void, - ) => void) & - (( - eventName: 'color-changed', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'inverted-color-scheme-changed', - callback: (event: Event, invertedColorScheme: boolean) => void, - ) => void) & - (( - eventName: 'high-contrast-color-scheme-changed', - callback: (event: Event, highContrastColorScheme: boolean) => void, - ) => void) & - (( - eventName: 'appearance-changed', - callback: (newAppearance: 'dark' | 'light') => void, - ) => void), - }, - webContents: { - getAllWebContents: () => Array, - getFocusedWebContents: () => WebContents, - fromId: (id: number) => WebContents, - }, - BrowserView: Class, - BrowserWindow: Class, - ClientRequest: Class, - Cookies: Class, - Debugger: Class, - DownloadItem: Class, - IncomingMessage: Class, - Menu: Class

, - MenuItem: Class, - NativeImage: Class, - Notification: Class, - Session: Class, - TouchBar: Class, - Tray: Class, - WebContents: Class, - WebRequest: Class, - }, - screen: { - getCursorScreenPoint: () => Point, - getPrimaryDisplay: () => Display, - getAllDisplays: () => Array, - getDisplayNearestPoint: (point: Point) => Display, - getDisplayMatching: (rect: Rectangle) => Display, - screenToDipPoint: (point: Point) => Point, - dipToScreenPoint: (point: Point) => Point, - screenToDipRect: ( - window: BrowserWindow | null, - rect: Rectangle, - ) => Rectangle, - dipToScreenRect: ( - window: BrowserWindow | null, - rect: Rectangle, - ) => Rectangle, - on: (( - eventName: 'display-added', - callback: (event: Event, newDisplay: Display) => void, - ) => void) & - (( - eventName: 'display-removed', - callback: (event: Event, oldDisplay: Display) => void, - ) => void) & - (( - eventName: 'display-metrics-changed', - callback: ( - event: Event, - display: Display, - changedMetrics: Array, - ) => void, - ) => void), - once: (( - eventName: 'display-added', - callback: (event: Event, newDisplay: Display) => void, - ) => void) & - (( - eventName: 'display-removed', - callback: (event: Event, oldDisplay: Display) => void, - ) => void) & - (( - eventName: 'display-metrics-changed', - callback: ( - event: Event, - display: Display, - changedMetrics: Array, - ) => void, - ) => void), - }, - shell: { - showItemInFolder: (fullPath: string) => boolean, - openItem: (fullPath: string) => boolean, - openExternalSync: ( - url: string, - options?: ?{ - activate?: ?boolean, - workingDirectory?: ?string, - }, - ) => boolean, - openExternal: ( - url: string, - options?: ?{ - activate?: ?boolean, - workingDirectory?: ?string, - }, - ) => Promise, - moveItemToTrash: (fullPath: string) => boolean, - beep: () => void, - writeShortcutLink: ( - shortcutPath: string, - operation?: ?'create' | 'update' | 'replace', - options: ShortcutDetails, - ) => boolean, - readShortcutLink: (shortcutPath: string) => ShortcutDetails, - }, - webFrame: { - setZoomFactor: (factor: number) => void, - getZoomFactor: () => number, - setZoomLevel: (level: number) => void, - getZoomLevel: () => number, - setVisualZoomLevelLimits: ( - minimumLevel: number, - maximumLevel: number, - ) => void, - setLayoutZoomLevelLimits: ( - minimumLevel: number, - maximumLevel: number, - ) => void, - setSpellCheckProvider: ( - language: string, - provider: { - spellCheck: Function, - }, - ) => void, - insertText: (text: string) => void, - executeJavaScript: ( - code: string, - userGesture?: ?boolean, - callback?: ?Function, - ) => Promise, - executeJavaScriptInIsolatedWorld: ( - worldId: number, - scripts: Array, - userGesture?: ?boolean, - callback?: ?Function, - ) => void, - setIsolatedWorldContentSecurityPolicy: ( - worldId: number, - csp: string, - ) => void, - setIsolatedWorldHumanReadableName: ( - worldId: number, - name: string, - ) => void, - setIsolatedWorldSecurityOrigin: ( - worldId: number, - securityOrigin: string, - ) => void, - setIsolatedWorldInfo: ( - worldId: number, - info: { - securityOrigin?: ?string, - csp?: ?string, - name?: ?string, - }, - ) => void, - getResourceUsage: () => { - images: MemoryUsageDetails, - scripts: MemoryUsageDetails, - cssStyleSheets: MemoryUsageDetails, - xslStyleSheets: MemoryUsageDetails, - fonts: MemoryUsageDetails, - other: MemoryUsageDetails, - }, - clearCache: () => void, - getFrameForSelector: (selector: string) => WebFrame, - findFrameByName: (name: string) => WebFrame, - findFrameByRoutingId: (routingId: number) => WebFrame, - top?: ?WebFrame, - opener?: ?WebFrame, - parent?: ?WebFrame, - firstChild?: ?WebFrame, - nextSibling?: ?WebFrame, - routingId?: ?number, - }, - BrowserWindowProxy: Class, - NativeImage: Class, - }; - declare type BluetoothDevice = { - deviceName: string, - deviceId: string, - }; - declare type Certificate = { - data: string, - issuer: CertificatePrincipal, - issuerName: string, - issuerCert: Certificate, - subject: CertificatePrincipal, - subjectName: string, - serialNumber: string, - validStart: number, - validExpiry: number, - fingerprint: string, - }; - declare type CertificatePrincipal = { - commonName: string, - organizations: Array, - organizationUnits: Array, - locality: string, - state: string, - country: string, - }; - declare type Cookie = { - name: string, - value: string, - domain?: ?string, - hostOnly?: ?boolean, - path?: ?string, - secure?: ?boolean, - httpOnly?: ?boolean, - session?: ?boolean, - expirationDate?: ?number, - }; - declare type CPUUsage = { - percentCPUUsage: number, - idleWakeupsPerSecond: number, - }; - declare type CrashReport = { - date: Date, - id: string, - }; - declare type CustomScheme = { - scheme: string, - privileges?: ?{ - standard?: ?boolean, - secure?: ?boolean, - bypassCSP?: ?boolean, - allowServiceWorkers?: ?boolean, - supportFetchAPI?: ?boolean, - corsEnabled?: ?boolean, - }, - }; - declare type DesktopCapturerSource = { - id: string, - name: string, - thumbnail: NativeImage, - display_id: string, - appIcon: NativeImage, - }; - declare type Display = { - id: number, - rotation: number, - scaleFactor: number, - touchSupport: 'available' | 'unavailable' | 'unknown', - bounds: Rectangle, - size: Size, - workArea: Rectangle, - workAreaSize: Size, - }; - declare type FileFilter = { - name: string, - extensions: Array, - }; - declare type GPUFeatureStatus = { - '2d_canvas': string, - flash_3d: string, - flash_stage3d: string, - flash_stage3d_baseline: string, - gpu_compositing: string, - multiple_raster_threads: string, - native_gpu_memory_buffers: string, - rasterization: string, - video_decode: string, - video_encode: string, - vpx_decode: string, - webgl: string, - webgl2: string, - }; - declare type IOCounters = { - readOperationCount: number, - writeOperationCount: number, - otherOperationCount: number, - readTransferCount: number, - writeTransferCount: number, - otherTransferCount: number, - }; - declare type JumpListCategory = { - type?: ?'tasks' | 'frequent' | 'recent' | 'custom', - name?: ?string, - items?: ?Array, - }; - declare type JumpListItem = { - type?: ?'task' | 'separator' | 'file', - path?: ?string, - program?: ?string, - args?: ?string, - title?: ?string, - description?: ?string, - iconPath?: ?string, - iconIndex?: ?number, - }; - declare type MemoryInfo = { - pid: number, - workingSetSize: number, - peakWorkingSetSize: number, - privateBytes: number, - sharedBytes: number, - }; - declare type MemoryUsageDetails = { - count: number, - size: number, - liveSize: number, - }; - declare type MimeTypedBuffer = { - mimeType: string, - data: Buffer, - }; - declare type NotificationAction = { - type: 'button', - text?: ?string, - }; - declare type Point = { - x: number, - y: number, - }; - declare type PrinterInfo = { - name: string, - description: string, - status: number, - isDefault: boolean, - }; - declare type ProcessMetric = { - pid: number, - type: string, - cpu: CPUUsage, - }; - declare type Product = { - productIdentifier: string, - localizedDescription: string, - localizedTitle: string, - contentVersion: string, - contentLengths: Array, - price: number, - formattedPrice: string, - downloadable: boolean, - }; - declare type Rectangle = { - x: number, - y: number, - width: number, - height: number, - }; - declare type Referrer = { - url: string, - policy: - | 'default' - | 'unsafe-url' - | 'no-referrer-when-downgrade' - | 'no-referrer' - | 'origin' - | 'strict-origin-when-cross-origin' - | 'same-origin' - | 'strict-origin', - }; - declare type RemoveClientCertificate = { - type: string, - origin: string, - }; - declare type RemovePassword = { - type: string, - origin?: ?string, - scheme?: ?'basic' | 'digest' | 'ntlm' | 'negotiate', - realm?: ?string, - username?: ?string, - password?: ?string, - }; - declare type ScrubberItem = { - label?: ?string, - icon?: ?NativeImage, - }; - declare type SegmentedControlSegment = { - label?: ?string, - icon?: ?NativeImage, - enabled?: ?boolean, - }; - declare type ShortcutDetails = { - target: string, - cwd?: ?string, - args?: ?string, - description?: ?string, - icon?: ?string, - iconIndex?: ?number, - appUserModelId?: ?string, - }; - declare type Size = { - width: number, - height: number, - }; - declare type StreamProtocolResponse = { - statusCode: number, - headers: {}, - data: ReadableStream, - }; - declare type Task = { - program: string, - arguments: string, - title: string, - description: string, - iconPath: string, - iconIndex: number, - }; - declare type ThumbarButton = { - icon: NativeImage, - click: Function, - tooltip?: ?string, - flags?: ?Array, - }; - declare type TraceCategoriesAndOptions = { - categoryFilter: string, - traceOptions: string, - }; - declare type TraceConfig = { - included_categories?: ?Array, - excluded_categories?: ?Array, - memory_dump_config?: ?{}, - }; - declare type Transaction = { - transactionIdentifier: string, - transactionDate: string, - originalTransactionIdentifier: string, - transactionState: - | 'purchasing' - | 'purchased' - | 'failed' - | 'restored' - | 'deferred', - errorCode: number, - errorMessage: string, - payment: { - productIdentifier: string, - quantity: number, - }, - }; - declare type UploadBlob = { - type: string, - blobUUID: string, - }; - declare type UploadData = { - bytes: Buffer, - file: string, - blobUUID: string, - }; - declare type UploadFile = { - type: string, - filePath: string, - offset: number, - length: number, - modificationTime: number, - }; - declare type UploadRawData = { - type: string, - bytes: Buffer, - }; - declare type WebSource = { - code: string, - url?: ?string, - startLine?: ?number, - }; - declare class webviewTag extends HTMLElement { - loadURL: ( - url: URL, - options?: ?{ - httpReferrer?: ?string | Referrer, - userAgent?: ?string, - extraHeaders?: ?string, - postData?: - | ?Array - | Array - | Array, - baseURLForDataURL?: ?string, - }, - ) => void; - downloadURL: (url: string) => void; - getURL: () => string; - getTitle: () => string; - isLoading: () => boolean; - isLoadingMainFrame: () => boolean; - isWaitingForResponse: () => boolean; - stop: () => void; - reload: () => void; - reloadIgnoringCache: () => void; - canGoBack: () => boolean; - canGoForward: () => boolean; - canGoToOffset: (offset: number) => boolean; - clearHistory: () => void; - goBack: () => void; - goForward: () => void; - goToIndex: (index: number) => void; - goToOffset: (offset: number) => void; - isCrashed: () => boolean; - setUserAgent: (userAgent: string) => void; - getUserAgent: () => string; - insertCSS: (css: string) => void; - executeJavaScript: ( - code: string, - userGesture?: ?boolean, - callback?: ?Function, - ) => void; - openDevTools: () => void; - closeDevTools: () => void; - isDevToolsOpened: () => boolean; - isDevToolsFocused: () => boolean; - inspectElement: (x: number, y: number) => void; - inspectServiceWorker: () => void; - setAudioMuted: (muted: boolean) => void; - isAudioMuted: () => boolean; - isCurrentlyAudible: () => boolean; - undo: () => void; - redo: () => void; - cut: () => void; - copy: () => void; - paste: () => void; - pasteAndMatchStyle: () => void; - delete: () => void; - selectAll: () => void; - unselect: () => void; - replace: (text: string) => void; - replaceMisspelling: (text: string) => void; - insertText: (text: string) => void; - findInPage: ( - text: string, - options?: ?{ - forward?: ?boolean, - findNext?: ?boolean, - matchCase?: ?boolean, - wordStart?: ?boolean, - medialCapitalAsWordStart?: ?boolean, - }, - ) => number; - stopFindInPage: ( - action: 'clearSelection' | 'keepSelection' | 'activateSelection', - ) => void; - print: ( - options?: ?{ - silent?: ?boolean, - printBackground?: ?boolean, - deviceName?: ?string, - }, - ) => void; - printToPDF: ( - options: { - marginsType?: ?number, - pageSize?: ?string | Size, - printBackground?: ?boolean, - printSelectionOnly?: ?boolean, - landscape?: ?boolean, - }, - callback: Function, - ) => void; - capturePage: ((rect?: ?Rectangle, callback: Function) => void) & - ((callback: Function) => void) & - ((rect?: ?Rectangle) => void); - send: (channel: string, ...args: Array) => void; - sendInputEvent: (event: {}) => void; - setZoomFactor: (factor: number) => void; - setZoomLevel: (level: number) => void; - getZoomFactor: () => number; - getZoomLevel: () => number; - setVisualZoomLevelLimits: ( - minimumLevel: number, - maximumLevel: number, - ) => void; - setLayoutZoomLevelLimits: ( - minimumLevel: number, - maximumLevel: number, - ) => void; - showDefinitionForSelection: () => void; - getWebContents: () => WebContents; - on: (( - eventName: 'load-commit', - callback: (url: string, isMainFrame: boolean) => void, - ) => void) & - ((eventName: 'did-finish-load', callback: () => void) => void) & - (( - eventName: 'did-fail-load', - callback: ( - errorCode: number, - errorDescription: string, - validatedURL: string, - isMainFrame: boolean, - ) => void, - ) => void) & - (( - eventName: 'did-frame-finish-load', - callback: (isMainFrame: boolean) => void, - ) => void) & - ((eventName: 'did-start-loading', callback: () => void) => void) & - ((eventName: 'did-stop-loading', callback: () => void) => void) & - ((eventName: 'dom-ready', callback: () => void) => void) & - (( - eventName: 'page-title-updated', - callback: (title: string, explicitSet: boolean) => void, - ) => void) & - (( - eventName: 'page-favicon-updated', - callback: (favicons: Array) => void, - ) => void) & - ((eventName: 'enter-html-full-screen', callback: () => void) => void) & - ((eventName: 'leave-html-full-screen', callback: () => void) => void) & - (( - eventName: 'console-message', - callback: ( - level: number, - message: string, - line: number, - sourceId: string, - ) => void, - ) => void) & - (( - eventName: 'found-in-page', - callback: (result: { - requestId: number, - activeMatchOrdinal: number, - matches: number, - selectionArea: {}, - finalUpdate: boolean, - }) => void, - ) => void) & - (( - eventName: 'new-window', - callback: ( - url: string, - frameName: string, - disposition: - | 'default' - | 'foreground-tab' - | 'background-tab' - | 'new-window' - | 'save-to-disk' - | 'other', - options: {}, - ) => void, - ) => void) & - ((eventName: 'will-navigate', callback: (url: string) => void) => void) & - ((eventName: 'did-navigate', callback: (url: string) => void) => void) & - (( - eventName: 'did-navigate-in-page', - callback: (isMainFrame: boolean, url: string) => void, - ) => void) & - ((eventName: 'close', callback: () => void) => void) & - (( - eventName: 'ipc-message', - callback: (channel: string, args: Array) => void, - ) => void) & - ((eventName: 'crashed', callback: () => void) => void) & - (( - eventName: 'plugin-crashed', - callback: (name: string, version: string) => void, - ) => void) & - ((eventName: 'destroyed', callback: () => void) => void) & - ((eventName: 'media-started-playing', callback: () => void) => void) & - ((eventName: 'media-paused', callback: () => void) => void) & - (( - eventName: 'did-change-theme-color', - callback: (themeColor: string) => void, - ) => void) & - (( - eventName: 'update-target-url', - callback: (url: string) => void, - ) => void) & - ((eventName: 'devtools-opened', callback: () => void) => void) & - ((eventName: 'devtools-closed', callback: () => void) => void) & - ((eventName: 'devtools-focused', callback: () => void) => void); - once: (( - eventName: 'load-commit', - callback: (url: string, isMainFrame: boolean) => void, - ) => void) & - ((eventName: 'did-finish-load', callback: () => void) => void) & - (( - eventName: 'did-fail-load', - callback: ( - errorCode: number, - errorDescription: string, - validatedURL: string, - isMainFrame: boolean, - ) => void, - ) => void) & - (( - eventName: 'did-frame-finish-load', - callback: (isMainFrame: boolean) => void, - ) => void) & - ((eventName: 'did-start-loading', callback: () => void) => void) & - ((eventName: 'did-stop-loading', callback: () => void) => void) & - ((eventName: 'dom-ready', callback: () => void) => void) & - (( - eventName: 'page-title-updated', - callback: (title: string, explicitSet: boolean) => void, - ) => void) & - (( - eventName: 'page-favicon-updated', - callback: (favicons: Array) => void, - ) => void) & - ((eventName: 'enter-html-full-screen', callback: () => void) => void) & - ((eventName: 'leave-html-full-screen', callback: () => void) => void) & - (( - eventName: 'console-message', - callback: ( - level: number, - message: string, - line: number, - sourceId: string, - ) => void, - ) => void) & - (( - eventName: 'found-in-page', - callback: (result: { - requestId: number, - activeMatchOrdinal: number, - matches: number, - selectionArea: {}, - finalUpdate: boolean, - }) => void, - ) => void) & - (( - eventName: 'new-window', - callback: ( - url: string, - frameName: string, - disposition: - | 'default' - | 'foreground-tab' - | 'background-tab' - | 'new-window' - | 'save-to-disk' - | 'other', - options: {}, - ) => void, - ) => void) & - ((eventName: 'will-navigate', callback: (url: string) => void) => void) & - ((eventName: 'did-navigate', callback: (url: string) => void) => void) & - (( - eventName: 'did-navigate-in-page', - callback: (isMainFrame: boolean, url: string) => void, - ) => void) & - ((eventName: 'close', callback: () => void) => void) & - (( - eventName: 'ipc-message', - callback: (channel: string, args: Array) => void, - ) => void) & - ((eventName: 'crashed', callback: () => void) => void) & - (( - eventName: 'plugin-crashed', - callback: (name: string, version: string) => void, - ) => void) & - ((eventName: 'destroyed', callback: () => void) => void) & - ((eventName: 'media-started-playing', callback: () => void) => void) & - ((eventName: 'media-paused', callback: () => void) => void) & - (( - eventName: 'did-change-theme-color', - callback: (themeColor: string) => void, - ) => void) & - (( - eventName: 'update-target-url', - callback: (url: string) => void, - ) => void) & - ((eventName: 'devtools-opened', callback: () => void) => void) & - ((eventName: 'devtools-closed', callback: () => void) => void) & - ((eventName: 'devtools-focused', callback: () => void) => void); - } - declare class BrowserView { - constructor( - options?: ?{ - webPreferences?: ?{}, - }, - ): BrowserView; - static getAllViews: () => Array; - static fromWebContents: (webContents: WebContents) => BrowserView | null; - static fromId: (id: number) => BrowserView; - destroy: () => void; - isDestroyed: () => boolean; - setAutoResize: (options: { - width: boolean, - height: boolean, - }) => void; - setBounds: (bounds: Rectangle) => void; - setBackgroundColor: (color: string) => void; - webContents: WebContents; - id: number; - } - declare class BrowserWindow { - constructor( - options?: ?{ - width?: ?number, - height?: ?number, - x?: ?number, - y?: ?number, - useContentSize?: ?boolean, - center?: ?boolean, - minWidth?: ?number, - minHeight?: ?number, - maxWidth?: ?number, - maxHeight?: ?number, - resizable?: ?boolean, - movable?: ?boolean, - minimizable?: ?boolean, - maximizable?: ?boolean, - closable?: ?boolean, - focusable?: ?boolean, - alwaysOnTop?: ?boolean, - fullscreen?: ?boolean, - fullscreenable?: ?boolean, - simpleFullscreen?: ?boolean, - skipTaskbar?: ?boolean, - kiosk?: ?boolean, - title?: ?string, - icon?: ?NativeImage | string, - show?: ?boolean, - frame?: ?boolean, - parent?: ?BrowserWindow, - modal?: ?boolean, - acceptFirstMouse?: ?boolean, - disableAutoHideCursor?: ?boolean, - autoHideMenuBar?: ?boolean, - enableLargerThanScreen?: ?boolean, - backgroundColor?: ?string, - hasShadow?: ?boolean, - opacity?: ?number, - darkTheme?: ?boolean, - transparent?: ?boolean, - type?: ?string, - titleBarStyle?: - | ?'default' - | 'hidden' - | 'hiddenInset' - | 'customButtonsOnHover', - fullscreenWindowTitle?: ?boolean, - thickFrame?: ?boolean, - vibrancy?: - | ?'appearance-based' - | 'light' - | 'dark' - | 'titlebar' - | 'selection' - | 'menu' - | 'popover' - | 'sidebar' - | 'medium-light' - | 'ultra-dark', - zoomToPageWidth?: ?boolean, - tabbingIdentifier?: ?string, - webPreferences?: ?{ - devTools?: ?boolean, - nodeIntegration?: ?boolean, - nodeIntegrationInWorker?: ?boolean, - nodeIntegrationInSubFrames?: ?boolean, - preload?: ?string, - sandbox?: ?boolean, - enableRemoteModule?: ?boolean, - session?: ?Session, - partition?: ?string, - affinity?: ?string, - zoomFactor?: ?number, - javascript?: ?boolean, - webSecurity?: ?boolean, - allowRunningInsecureContent?: ?boolean, - images?: ?boolean, - textAreasAreResizable?: ?boolean, - webgl?: ?boolean, - webaudio?: ?boolean, - plugins?: ?boolean, - experimentalFeatures?: ?boolean, - scrollBounce?: ?boolean, - enableBlinkFeatures?: ?string, - disableBlinkFeatures?: ?string, - defaultFontFamily?: ?{ - standard?: ?string, - serif?: ?string, - sansSerif?: ?string, - monospace?: ?string, - cursive?: ?string, - fantasy?: ?string, - }, - defaultFontSize?: ?number, - defaultMonospaceFontSize?: ?number, - minimumFontSize?: ?number, - defaultEncoding?: ?string, - backgroundThrottling?: ?boolean, - offscreen?: ?boolean, - contextIsolation?: ?boolean, - nativeWindowOpen?: ?boolean, - webviewTag?: ?boolean, - additionalArguments?: ?Array, - safeDialogs?: ?boolean, - safeDialogsMessage?: ?string, - navigateOnDragDrop?: ?boolean, - autoplayPolicy?: - | ?'no-user-gesture-required' - | 'user-gesture-required' - | 'document-user-activation-required', - }, - }, - ): BrowserWindow; - static getAllWindows: () => Array; - static getFocusedWindow: () => BrowserWindow | null; - static fromWebContents: (webContents: WebContents) => BrowserWindow; - static fromBrowserView: (browserView: BrowserView) => BrowserWindow | null; - static fromId: (id: number) => BrowserWindow; - static addExtension: (path: string) => void; - static removeExtension: (name: string) => void; - static getExtensions: () => {}; - static addDevToolsExtension: (path: string) => void; - static removeDevToolsExtension: (name: string) => void; - static getDevToolsExtensions: () => {}; - destroy: () => void; - close: () => void; - focus: () => void; - blur: () => void; - isFocused: () => boolean; - isDestroyed: () => boolean; - show: () => void; - showInactive: () => void; - hide: () => void; - isVisible: () => boolean; - isModal: () => boolean; - maximize: () => void; - unmaximize: () => void; - isMaximized: () => boolean; - minimize: () => void; - restore: () => void; - isMinimized: () => boolean; - setFullScreen: (flag: boolean) => void; - isFullScreen: () => boolean; - setSimpleFullScreen: (flag: boolean) => void; - isSimpleFullScreen: () => boolean; - isNormal: () => boolean; - setAspectRatio: (aspectRatio: number, extraSize: Size) => void; - setBackgroundColor: (backgroundColor: string) => void; - previewFile: (path: string, displayName?: ?string) => void; - closeFilePreview: () => void; - setBounds: (bounds: Rectangle, animate?: ?boolean) => void; - getBounds: () => Rectangle; - setContentBounds: (bounds: Rectangle, animate?: ?boolean) => void; - getContentBounds: () => Rectangle; - getNormalBounds: () => Rectangle; - setEnabled: (enable: boolean) => void; - setSize: (width: number, height: number, animate?: ?boolean) => void; - getSize: () => Array; - setContentSize: (width: number, height: number, animate?: ?boolean) => void; - getContentSize: () => Array; - setMinimumSize: (width: number, height: number) => void; - getMinimumSize: () => Array; - setMaximumSize: (width: number, height: number) => void; - getMaximumSize: () => Array; - setResizable: (resizable: boolean) => void; - isResizable: () => boolean; - setMovable: (movable: boolean) => void; - isMovable: () => boolean; - setMinimizable: (minimizable: boolean) => void; - isMinimizable: () => boolean; - setMaximizable: (maximizable: boolean) => void; - isMaximizable: () => boolean; - setFullScreenable: (fullscreenable: boolean) => void; - isFullScreenable: () => boolean; - setClosable: (closable: boolean) => void; - isClosable: () => boolean; - setAlwaysOnTop: ( - flag: boolean, - level?: - | ?'normal' - | 'floating' - | 'torn-off-menu' - | 'modal-panel' - | 'main-menu' - | 'status' - | 'pop-up-menu' - | 'screen-saver', - relativeLevel?: ?number, - ) => void; - isAlwaysOnTop: () => boolean; - moveTop: () => void; - center: () => void; - setPosition: (x: number, y: number, animate?: ?boolean) => void; - getPosition: () => Array; - setTitle: (title: string) => void; - getTitle: () => string; - setSheetOffset: (offsetY: number, offsetX?: ?number) => void; - flashFrame: (flag: boolean) => void; - setSkipTaskbar: (skip: boolean) => void; - setKiosk: (flag: boolean) => void; - isKiosk: () => boolean; - getNativeWindowHandle: () => Buffer; - hookWindowMessage: (message: number, callback: Function) => void; - isWindowMessageHooked: (message: number) => boolean; - unhookWindowMessage: (message: number) => void; - unhookAllWindowMessages: () => void; - setRepresentedFilename: (filename: string) => void; - getRepresentedFilename: () => string; - setDocumentEdited: (edited: boolean) => void; - isDocumentEdited: () => boolean; - focusOnWebView: () => void; - blurWebView: () => void; - capturePage: ((rect?: ?Rectangle, callback: Function) => void) & - ((callback: Function) => void) & - ((rect?: ?Rectangle) => void); - loadURL: ( - url: string, - options?: ?{ - httpReferrer?: ?string | Referrer, - userAgent?: ?string, - extraHeaders?: ?string, - postData?: - | ?Array - | Array - | Array, - baseURLForDataURL?: ?string, - }, - ) => Promise; - loadFile: ( - filePath: string, - options?: ?{ - query?: ?{}, - search?: ?string, - hash?: ?string, - }, - ) => Promise; - reload: () => void; - setMenu: (menu: Menu | null) => void; - removeMenu: () => void; - setProgressBar: ( - progress: number, - options?: ?{ - mode: 'none' | 'normal' | 'indeterminate' | 'error' | 'paused', - }, - ) => void; - setOverlayIcon: (overlay: NativeImage | null, description: string) => void; - setHasShadow: (hasShadow: boolean) => void; - hasShadow: () => boolean; - setOpacity: (opacity: number) => void; - getOpacity: () => number; - setShape: (rects: Array) => void; - setThumbarButtons: (buttons: Array) => boolean; - setThumbnailClip: (region: Rectangle) => void; - setThumbnailToolTip: (toolTip: string) => void; - setAppDetails: (options: { - appId?: ?string, - appIconPath?: ?string, - appIconIndex?: ?number, - relaunchCommand?: ?string, - relaunchDisplayName?: ?string, - }) => void; - showDefinitionForSelection: () => void; - setIcon: (icon: NativeImage) => void; - setWindowButtonVisibility: (visible: boolean) => void; - setAutoHideMenuBar: (hide: boolean) => void; - isMenuBarAutoHide: () => boolean; - setMenuBarVisibility: (visible: boolean) => void; - isMenuBarVisible: () => boolean; - setVisibleOnAllWorkspaces: ( - visible: boolean, - options?: ?{ - visibleOnFullScreen?: ?boolean, - }, - ) => void; - isVisibleOnAllWorkspaces: () => boolean; - setIgnoreMouseEvents: ( - ignore: boolean, - options?: ?{ - forward?: ?boolean, - }, - ) => void; - setContentProtection: (enable: boolean) => void; - setFocusable: (focusable: boolean) => void; - setParentWindow: (parent: BrowserWindow) => void; - getParentWindow: () => BrowserWindow; - getChildWindows: () => Array; - setAutoHideCursor: (autoHide: boolean) => void; - selectPreviousTab: () => void; - selectNextTab: () => void; - mergeAllWindows: () => void; - moveTabToNewWindow: () => void; - toggleTabBar: () => void; - addTabbedWindow: (browserWindow: BrowserWindow) => void; - setVibrancy: ( - type: - | 'appearance-based' - | 'light' - | 'dark' - | 'titlebar' - | 'selection' - | 'menu' - | 'popover' - | 'sidebar' - | 'medium-light' - | 'ultra-dark', - ) => void; - setTouchBar: (touchBar: TouchBar) => void; - setBrowserView: (browserView: BrowserView) => void; - getBrowserView: () => BrowserView | null; - addBrowserView: (browserView: BrowserView) => void; - removeBrowserView: (browserView: BrowserView) => void; - getBrowserViews: () => void; - webContents: WebContents; - id: number; - on: (( - eventName: 'page-title-updated', - callback: (event: Event, title: string, explicitSet: boolean) => void, - ) => void) & - ((eventName: 'close', callback: (event: Event) => void) => void) & - ((eventName: 'closed', callback: () => void) => void) & - ((eventName: 'session-end', callback: () => void) => void) & - ((eventName: 'unresponsive', callback: () => void) => void) & - ((eventName: 'responsive', callback: () => void) => void) & - ((eventName: 'blur', callback: () => void) => void) & - ((eventName: 'focus', callback: () => void) => void) & - ((eventName: 'show', callback: () => void) => void) & - ((eventName: 'hide', callback: () => void) => void) & - ((eventName: 'ready-to-show', callback: () => void) => void) & - ((eventName: 'maximize', callback: () => void) => void) & - ((eventName: 'unmaximize', callback: () => void) => void) & - ((eventName: 'minimize', callback: () => void) => void) & - ((eventName: 'restore', callback: () => void) => void) & - (( - eventName: 'will-resize', - callback: (event: Event, newBounds: Rectangle) => void, - ) => void) & - ((eventName: 'resize', callback: () => void) => void) & - (( - eventName: 'will-move', - callback: (event: Event, newBounds: Rectangle) => void, - ) => void) & - ((eventName: 'move', callback: () => void) => void) & - ((eventName: 'moved', callback: () => void) => void) & - ((eventName: 'enter-full-screen', callback: () => void) => void) & - ((eventName: 'leave-full-screen', callback: () => void) => void) & - ((eventName: 'enter-html-full-screen', callback: () => void) => void) & - ((eventName: 'leave-html-full-screen', callback: () => void) => void) & - (( - eventName: 'always-on-top-changed', - callback: (event: Event, isAlwaysOnTop: boolean) => void, - ) => void) & - (( - eventName: 'app-command', - callback: (event: Event, command: string) => void, - ) => void) & - ((eventName: 'scroll-touch-begin', callback: () => void) => void) & - ((eventName: 'scroll-touch-end', callback: () => void) => void) & - ((eventName: 'scroll-touch-edge', callback: () => void) => void) & - (( - eventName: 'swipe', - callback: (event: Event, direction: string) => void, - ) => void) & - ((eventName: 'sheet-begin', callback: () => void) => void) & - ((eventName: 'sheet-end', callback: () => void) => void) & - ((eventName: 'new-window-for-tab', callback: () => void) => void); - once: (( - eventName: 'page-title-updated', - callback: (event: Event, title: string, explicitSet: boolean) => void, - ) => void) & - ((eventName: 'close', callback: (event: Event) => void) => void) & - ((eventName: 'closed', callback: () => void) => void) & - ((eventName: 'session-end', callback: () => void) => void) & - ((eventName: 'unresponsive', callback: () => void) => void) & - ((eventName: 'responsive', callback: () => void) => void) & - ((eventName: 'blur', callback: () => void) => void) & - ((eventName: 'focus', callback: () => void) => void) & - ((eventName: 'show', callback: () => void) => void) & - ((eventName: 'hide', callback: () => void) => void) & - ((eventName: 'ready-to-show', callback: () => void) => void) & - ((eventName: 'maximize', callback: () => void) => void) & - ((eventName: 'unmaximize', callback: () => void) => void) & - ((eventName: 'minimize', callback: () => void) => void) & - ((eventName: 'restore', callback: () => void) => void) & - (( - eventName: 'will-resize', - callback: (event: Event, newBounds: Rectangle) => void, - ) => void) & - ((eventName: 'resize', callback: () => void) => void) & - (( - eventName: 'will-move', - callback: (event: Event, newBounds: Rectangle) => void, - ) => void) & - ((eventName: 'move', callback: () => void) => void) & - ((eventName: 'moved', callback: () => void) => void) & - ((eventName: 'enter-full-screen', callback: () => void) => void) & - ((eventName: 'leave-full-screen', callback: () => void) => void) & - ((eventName: 'enter-html-full-screen', callback: () => void) => void) & - ((eventName: 'leave-html-full-screen', callback: () => void) => void) & - (( - eventName: 'always-on-top-changed', - callback: (event: Event, isAlwaysOnTop: boolean) => void, - ) => void) & - (( - eventName: 'app-command', - callback: (event: Event, command: string) => void, - ) => void) & - ((eventName: 'scroll-touch-begin', callback: () => void) => void) & - ((eventName: 'scroll-touch-end', callback: () => void) => void) & - ((eventName: 'scroll-touch-edge', callback: () => void) => void) & - (( - eventName: 'swipe', - callback: (event: Event, direction: string) => void, - ) => void) & - ((eventName: 'sheet-begin', callback: () => void) => void) & - ((eventName: 'sheet-end', callback: () => void) => void) & - ((eventName: 'new-window-for-tab', callback: () => void) => void); - } - declare class BrowserWindowProxy { - blur: () => void; - close: () => void; - eval: (code: string) => void; - focus: () => void; - print: () => void; - postMessage: (message: string, targetOrigin: string) => void; - closed: boolean; - } - declare class ClientRequest { - constructor(options: Object | string): ClientRequest; - setHeader: (name: string, value: {}) => void; - getHeader: ( - name: string, - ) => { - name: string, - }; - removeHeader: (name: string) => void; - write: ( - chunk: string | Buffer, - encoding?: ?string, - callback?: ?Function, - ) => void; - end: (( - chunk?: ?string | Buffer, - encoding?: ?string, - callback?: ?Function, - ) => void) & - (((encoding?: ?string, callback?: ?Function) => void) & - ((callback?: ?Function) => void)); - abort: () => void; - followRedirect: () => void; - getUploadProgress: () => { - active: boolean, - started: boolean, - current: number, - total: number, - }; - chunkedEncoding: boolean; - on: (( - eventName: 'response', - callback: (response: IncomingMessage) => void, - ) => void) & - (( - eventName: 'login', - callback: ( - authInfo: { - isProxy: boolean, - scheme: string, - host: string, - port: number, - realm: string, - }, - callback: Function, - ) => void, - ) => void) & - ((eventName: 'finish', callback: () => void) => void) & - ((eventName: 'abort', callback: () => void) => void) & - ((eventName: 'error', callback: (error: Error) => void) => void) & - ((eventName: 'close', callback: () => void) => void) & - (( - eventName: 'redirect', - callback: ( - statusCode: number, - method: string, - redirectUrl: string, - responseHeaders: {}, - ) => void, - ) => void); - once: (( - eventName: 'response', - callback: (response: IncomingMessage) => void, - ) => void) & - (( - eventName: 'login', - callback: ( - authInfo: { - isProxy: boolean, - scheme: string, - host: string, - port: number, - realm: string, - }, - callback: Function, - ) => void, - ) => void) & - ((eventName: 'finish', callback: () => void) => void) & - ((eventName: 'abort', callback: () => void) => void) & - ((eventName: 'error', callback: (error: Error) => void) => void) & - ((eventName: 'close', callback: () => void) => void) & - (( - eventName: 'redirect', - callback: ( - statusCode: number, - method: string, - redirectUrl: string, - responseHeaders: {}, - ) => void, - ) => void); - } - declare class Cookies { - get: (filter: { - url?: ?string, - name?: ?string, - domain?: ?string, - path?: ?string, - secure?: ?boolean, - session?: ?boolean, - }) => Promise; - get: ( - filter: { - url?: ?string, - name?: ?string, - domain?: ?string, - path?: ?string, - secure?: ?boolean, - session?: ?boolean, - }, - callback: Function, - ) => void; - set: (details: { - url: string, - name?: ?string, - value?: ?string, - domain?: ?string, - path?: ?string, - secure?: ?boolean, - httpOnly?: ?boolean, - expirationDate?: ?number, - }) => Promise; - set: ( - details: { - url: string, - name?: ?string, - value?: ?string, - domain?: ?string, - path?: ?string, - secure?: ?boolean, - httpOnly?: ?boolean, - expirationDate?: ?number, - }, - callback: Function, - ) => void; - remove: (url: string, name: string) => Promise; - remove: (url: string, name: string, callback: Function) => void; - flushStore: () => Promise; - flushStore: (callback: Function) => void; - on: ( - eventName: 'changed', - callback: ( - event: Event, - cookie: Cookie, - cause: - | 'explicit' - | 'overwrite' - | 'expired' - | 'evicted' - | 'expired-overwrite', - removed: boolean, - ) => void, - ) => void; - once: ( - eventName: 'changed', - callback: ( - event: Event, - cookie: Cookie, - cause: - | 'explicit' - | 'overwrite' - | 'expired' - | 'evicted' - | 'expired-overwrite', - removed: boolean, - ) => void, - ) => void; - } - declare class Debugger { - attach: (protocolVersion?: ?string) => void; - isAttached: () => boolean; - detach: () => void; - sendCommand: ( - method: string, - commandParams?: ?{}, - callback?: ?Function, - ) => void; - sendCommand: (method: string, commandParams?: ?{}) => Promise; - on: (( - eventName: 'detach', - callback: (event: Event, reason: string) => void, - ) => void) & - (( - eventName: 'message', - callback: (event: Event, method: string, params: {}) => void, - ) => void); - once: (( - eventName: 'detach', - callback: (event: Event, reason: string) => void, - ) => void) & - (( - eventName: 'message', - callback: (event: Event, method: string, params: {}) => void, - ) => void); - } - declare class DownloadItem { - setSavePath: (path: string) => void; - getSavePath: () => string; - setSaveDialogOptions: (options: SaveDialogOptions) => void; - getSaveDialogOptions: () => SaveDialogOptions; - pause: () => void; - isPaused: () => boolean; - resume: () => void; - canResume: () => boolean; - cancel: () => void; - getURL: () => string; - getMimeType: () => string; - hasUserGesture: () => boolean; - getFilename: () => string; - getTotalBytes: () => number; - getReceivedBytes: () => number; - getContentDisposition: () => string; - getState: () => 'progressing' | 'completed' | 'cancelled' | 'interrupted'; - getURLChain: () => Array; - getLastModifiedTime: () => string; - getETag: () => string; - getStartTime: () => number; - on: (( - eventName: 'updated', - callback: (event: Event, state: 'progressing' | 'interrupted') => void, - ) => void) & - (( - eventName: 'done', - callback: ( - event: Event, - state: 'completed' | 'cancelled' | 'interrupted', - ) => void, - ) => void); - once: (( - eventName: 'updated', - callback: (event: Event, state: 'progressing' | 'interrupted') => void, - ) => void) & - (( - eventName: 'done', - callback: ( - event: Event, - state: 'completed' | 'cancelled' | 'interrupted', - ) => void, - ) => void); - } - declare class IncomingMessage { - statusCode: number; - statusMessage: string; - headers: {}; - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - on: ((eventName: 'data', callback: (chunk: Buffer) => void) => void) & - ((eventName: 'end', callback: () => void) => void) & - ((eventName: 'aborted', callback: () => void) => void) & - ((eventName: 'error', callback: () => void) => void); - once: ((eventName: 'data', callback: (chunk: Buffer) => void) => void) & - ((eventName: 'end', callback: () => void) => void) & - ((eventName: 'aborted', callback: () => void) => void) & - ((eventName: 'error', callback: () => void) => void); - } - declare class Menu { - constructor(): Menu; - static setApplicationMenu: (menu: Menu | null) => void; - static getApplicationMenu: () => Menu | null; - static sendActionToFirstResponder: (action: string) => void; - static buildFromTemplate: ( - template: Array | Array, - ) => Menu; - popup: ( - options?: ?{ - window?: ?BrowserWindow, - x?: ?number, - y?: ?number, - positioningItem?: ?number, - callback?: ?Function, - }, - ) => void; - closePopup: (browserWindow?: ?BrowserWindow) => void; - append: (menuItem: MenuItem) => void; - getMenuItemById: (id: string) => MenuItem; - insert: (pos: number, menuItem: MenuItem) => void; - items: Array; - on: (( - eventName: 'menu-will-show', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'menu-will-close', - callback: (event: Event) => void, - ) => void); - once: (( - eventName: 'menu-will-show', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'menu-will-close', - callback: (event: Event) => void, - ) => void); - } - declare class MenuItem { - constructor(options: { - click?: ?Function, - role?: - | ?'undo' - | 'redo' - | 'cut' - | 'copy' - | 'paste' - | 'pasteandmatchstyle' - | 'delete' - | 'selectall' - | 'reload' - | 'forcereload' - | 'toggledevtools' - | 'resetzoom' - | 'zoomin' - | 'zoomout' - | 'togglefullscreen' - | 'window' - | 'minimize' - | 'close' - | 'help' - | 'about' - | 'services' - | 'hide' - | 'hideothers' - | 'unhide' - | 'quit' - | 'startspeaking' - | 'stopspeaking' - | 'close' - | 'minimize' - | 'zoom' - | 'front', - type?: ?'normal' | 'separator' | 'submenu' | 'checkbox' | 'radio', - label?: ?string, - sublabel?: ?string, - accelerator?: ?Accelerator, - icon?: ?NativeImage | string, - enabled?: ?boolean, - visible?: ?boolean, - checked?: ?boolean, - registerAccelerator?: ?boolean, - submenu?: ?Array | Menu, - id?: ?string, - before?: ?Array, - after?: ?Array, - beforeGroupContaining?: ?Array, - afterGroupContaining?: ?Array, - }): MenuItem; - enabled: boolean; - visible: boolean; - checked: boolean; - label: string; - click: Function; - } - declare class NativeImage { - toPNG: ( - options?: ?{ - scaleFactor?: ?number, - }, - ) => Buffer; - toJPEG: (quality: number) => Buffer; - toBitmap: ( - options?: ?{ - scaleFactor?: ?number, - }, - ) => Buffer; - toDataURL: ( - options?: ?{ - scaleFactor?: ?number, - }, - ) => string; - getBitmap: ( - options?: ?{ - scaleFactor?: ?number, - }, - ) => Buffer; - getNativeHandle: () => Buffer; - isEmpty: () => boolean; - getSize: () => Size; - setTemplateImage: (option: boolean) => void; - isTemplateImage: () => boolean; - crop: (rect: Rectangle) => NativeImage; - resize: (options: { - width?: ?number, - height?: ?number, - quality?: ?string, - }) => NativeImage; - getAspectRatio: () => number; - addRepresentation: (options: { - scaleFactor: number, - width?: ?number, - height?: ?number, - buffer?: ?Buffer, - dataURL?: ?string, - }) => void; - } - declare class Notification { - constructor(options: { - title: string, - subtitle?: ?string, - body: string, - silent?: ?boolean, - icon?: ?string | NativeImage, - hasReply?: ?boolean, - replyPlaceholder?: ?string, - sound?: ?string, - actions?: ?Array, - closeButtonText?: ?string, - }): Notification; - static isSupported: () => boolean; - show: () => void; - close: () => void; - on: ((eventName: 'show', callback: (event: Event) => void) => void) & - ((eventName: 'click', callback: (event: Event) => void) => void) & - ((eventName: 'close', callback: (event: Event) => void) => void) & - (( - eventName: 'reply', - callback: (event: Event, reply: string) => void, - ) => void) & - (( - eventName: 'action', - callback: (event: Event, index: number) => void, - ) => void); - once: ((eventName: 'show', callback: (event: Event) => void) => void) & - ((eventName: 'click', callback: (event: Event) => void) => void) & - ((eventName: 'close', callback: (event: Event) => void) => void) & - (( - eventName: 'reply', - callback: (event: Event, reply: string) => void, - ) => void) & - (( - eventName: 'action', - callback: (event: Event, index: number) => void, - ) => void); - } - declare class Session { - getCacheSize: (callback: Function) => void; - clearCache: (callback: Function) => void; - clearStorageData: (( - options?: ?{ - origin?: ?string, - storages?: ?Array, - quotas?: ?Array, - }, - callback?: ?Function, - ) => void) & - ((callback?: ?Function) => void); - flushStorageData: () => void; - setProxy: ( - config: { - pacScript: string, - proxyRules: string, - proxyBypassRules: string, - }, - callback: Function, - ) => void; - resolveProxy: (url: URL, callback: Function) => void; - setDownloadPath: (path: string) => void; - enableNetworkEmulation: (options: { - offline?: ?boolean, - latency?: ?number, - downloadThroughput?: ?number, - uploadThroughput?: ?number, - }) => void; - disableNetworkEmulation: () => void; - setCertificateVerifyProc: (proc: Function) => void; - setPermissionRequestHandler: (handler: Function | null) => void; - setPermissionCheckHandler: (handler: Function | null) => void; - clearHostResolverCache: (callback?: ?Function) => void; - allowNTLMCredentialsForDomains: (domains: string) => void; - setUserAgent: (userAgent: string, acceptLanguages?: ?string) => void; - getUserAgent: () => string; - getBlobData: (identifier: string, callback: Function) => void; - createInterruptedDownload: (options: { - path: string, - urlChain: Array, - mimeType?: ?string, - offset: number, - length: number, - lastModified: string, - eTag: string, - startTime?: ?number, - }) => void; - clearAuthCache: ( - options: RemovePassword | RemoveClientCertificate, - callback?: ?Function, - ) => void; - setPreloads: (preloads: Array) => void; - getPreloads: () => Array; - cookies: Cookies; - webRequest: WebRequest; - protocol: Protocol; - netLog: NetLog; - on: ( - eventName: 'will-download', - callback: ( - event: Event, - item: DownloadItem, - webContents: WebContents, - ) => void, - ) => void; - once: ( - eventName: 'will-download', - callback: ( - event: Event, - item: DownloadItem, - webContents: WebContents, - ) => void, - ) => void; - } - declare class TouchBar { - constructor(options: { - items: Array< - | TouchBarButton - | TouchBarColorPicker - | TouchBarGroup - | TouchBarLabel - | TouchBarPopover - | TouchBarScrubber - | TouchBarSegmentedControl - | TouchBarSlider - | TouchBarSpacer, - >, - escapeItem?: - | ?TouchBarButton - | TouchBarColorPicker - | TouchBarGroup - | TouchBarLabel - | TouchBarPopover - | TouchBarScrubber - | TouchBarSegmentedControl - | TouchBarSlider - | TouchBarSpacer - | null, - }): TouchBar; - static TouchBarButton: Class; - static TouchBarColorPicker: Class; - static TouchBarGroup: Class; - static TouchBarLabel: Class; - static TouchBarPopover: Class; - static TouchBarScrubber: Class; - static TouchBarSegmentedControl: Class; - static TouchBarSlider: Class; - static TouchBarSpacer: Class; - escapeItem: TouchBarItem; - } - declare class Tray { - constructor(image: NativeImage | string): Tray; - destroy: () => void; - setImage: (image: NativeImage | string) => void; - setPressedImage: (image: NativeImage | string) => void; - setToolTip: (toolTip: string) => void; - setTitle: (title: string) => void; - setHighlightMode: (mode: 'selection' | 'always' | 'never') => void; - setIgnoreDoubleClickEvents: (ignore: boolean) => void; - getIgnoreDoubleClickEvents: () => boolean; - displayBalloon: (options: { - icon?: ?NativeImage | string, - title: string, - content: string, - }) => void; - popUpContextMenu: ((menu?: ?Menu, position?: ?Point) => void) & - ((position?: ?Point) => void); - setContextMenu: (menu: Menu | null) => void; - getBounds: () => Rectangle; - isDestroyed: () => boolean; - on: (( - eventName: 'click', - callback: (event: Event, bounds: Rectangle, position: Point) => void, - ) => void) & - (( - eventName: 'right-click', - callback: (event: Event, bounds: Rectangle) => void, - ) => void) & - (( - eventName: 'double-click', - callback: (event: Event, bounds: Rectangle) => void, - ) => void) & - ((eventName: 'balloon-show', callback: () => void) => void) & - ((eventName: 'balloon-click', callback: () => void) => void) & - ((eventName: 'balloon-closed', callback: () => void) => void) & - ((eventName: 'drop', callback: () => void) => void) & - (( - eventName: 'drop-files', - callback: (event: Event, files: Array) => void, - ) => void) & - (( - eventName: 'drop-text', - callback: (event: Event, text: string) => void, - ) => void) & - ((eventName: 'drag-enter', callback: () => void) => void) & - ((eventName: 'drag-leave', callback: () => void) => void) & - ((eventName: 'drag-end', callback: () => void) => void) & - (( - eventName: 'mouse-enter', - callback: (event: Event, position: Point) => void, - ) => void) & - (( - eventName: 'mouse-leave', - callback: (event: Event, position: Point) => void, - ) => void) & - (( - eventName: 'mouse-move', - callback: (event: Event, position: Point) => void, - ) => void); - once: (( - eventName: 'click', - callback: (event: Event, bounds: Rectangle, position: Point) => void, - ) => void) & - (( - eventName: 'right-click', - callback: (event: Event, bounds: Rectangle) => void, - ) => void) & - (( - eventName: 'double-click', - callback: (event: Event, bounds: Rectangle) => void, - ) => void) & - ((eventName: 'balloon-show', callback: () => void) => void) & - ((eventName: 'balloon-click', callback: () => void) => void) & - ((eventName: 'balloon-closed', callback: () => void) => void) & - ((eventName: 'drop', callback: () => void) => void) & - (( - eventName: 'drop-files', - callback: (event: Event, files: Array) => void, - ) => void) & - (( - eventName: 'drop-text', - callback: (event: Event, text: string) => void, - ) => void) & - ((eventName: 'drag-enter', callback: () => void) => void) & - ((eventName: 'drag-leave', callback: () => void) => void) & - ((eventName: 'drag-end', callback: () => void) => void) & - (( - eventName: 'mouse-enter', - callback: (event: Event, position: Point) => void, - ) => void) & - (( - eventName: 'mouse-leave', - callback: (event: Event, position: Point) => void, - ) => void) & - (( - eventName: 'mouse-move', - callback: (event: Event, position: Point) => void, - ) => void); - } - declare class WebContents { - loadURL: ( - url: string, - options?: ?{ - httpReferrer?: ?string | Referrer, - userAgent?: ?string, - extraHeaders?: ?string, - postData?: - | ?Array - | Array - | Array, - baseURLForDataURL?: ?string, - }, - ) => Promise; - loadFile: ( - filePath: string, - options?: ?{ - query?: ?{}, - search?: ?string, - hash?: ?string, - }, - ) => Promise; - downloadURL: (url: string) => void; - getURL: () => string; - getTitle: () => string; - isDestroyed: () => boolean; - focus: () => void; - isFocused: () => boolean; - isLoading: () => boolean; - isLoadingMainFrame: () => boolean; - isWaitingForResponse: () => boolean; - stop: () => void; - reload: () => void; - reloadIgnoringCache: () => void; - canGoBack: () => boolean; - canGoForward: () => boolean; - canGoToOffset: (offset: number) => boolean; - clearHistory: () => void; - goBack: () => void; - goForward: () => void; - goToIndex: (index: number) => void; - goToOffset: (offset: number) => void; - isCrashed: () => boolean; - setUserAgent: (userAgent: string) => void; - getUserAgent: () => string; - insertCSS: (css: string) => void; - executeJavaScript: ( - code: string, - userGesture?: ?boolean, - callback?: ?Function, - ) => Promise; - setIgnoreMenuShortcuts: (ignore: boolean) => void; - setAudioMuted: (muted: boolean) => void; - isAudioMuted: () => boolean; - isCurrentlyAudible: () => boolean; - setZoomFactor: (factor: number) => void; - getZoomFactor: () => number; - setZoomLevel: (level: number) => void; - getZoomLevel: () => number; - setVisualZoomLevelLimits: ( - minimumLevel: number, - maximumLevel: number, - ) => void; - setLayoutZoomLevelLimits: ( - minimumLevel: number, - maximumLevel: number, - ) => void; - undo: () => void; - redo: () => void; - cut: () => void; - copy: () => void; - copyImageAt: (x: number, y: number) => void; - paste: () => void; - pasteAndMatchStyle: () => void; - delete: () => void; - selectAll: () => void; - unselect: () => void; - replace: (text: string) => void; - replaceMisspelling: (text: string) => void; - insertText: (text: string) => void; - findInPage: ( - text: string, - options?: ?{ - forward?: ?boolean, - findNext?: ?boolean, - matchCase?: ?boolean, - wordStart?: ?boolean, - medialCapitalAsWordStart?: ?boolean, - }, - ) => number; - stopFindInPage: ( - action: 'clearSelection' | 'keepSelection' | 'activateSelection', - ) => void; - capturePage: ((rect?: ?Rectangle, callback: Function) => void) & - ((callback: Function) => void); - capturePage: (rect?: ?Rectangle) => void; - hasServiceWorker: (callback: Function) => void; - unregisterServiceWorker: (callback: Function) => void; - getPrinters: () => Array; - print: (( - options?: ?{ - silent?: ?boolean, - printBackground?: ?boolean, - deviceName?: ?string, - }, - callback?: ?Function, - ) => void) & - ((callback?: ?Function) => void); - printToPDF: ( - options: { - marginsType?: ?number, - pageSize?: ?string | Size, - printBackground?: ?boolean, - printSelectionOnly?: ?boolean, - landscape?: ?boolean, - }, - callback: Function, - ) => void; - addWorkSpace: (path: string) => void; - removeWorkSpace: (path: string) => void; - setDevToolsWebContents: (devToolsWebContents: WebContents) => void; - openDevTools: ( - options?: ?{ - mode: 'right' | 'bottom' | 'undocked' | 'detach', - activate?: ?boolean, - }, - ) => void; - closeDevTools: () => void; - isDevToolsOpened: () => boolean; - isDevToolsFocused: () => boolean; - toggleDevTools: () => void; - inspectElement: (x: number, y: number) => void; - inspectServiceWorker: () => void; - send: (channel: string, ...args: Array) => void; - sendToFrame: ( - frameId: number, - channel: string, - ...args: Array - ) => void; - enableDeviceEmulation: (parameters: { - screenPosition: 'desktop' | 'mobile', - screenSize: Size, - viewPosition: Point, - deviceScaleFactor: number, - viewSize: Size, - scale: number, - }) => void; - disableDeviceEmulation: () => void; - sendInputEvent: (event: { - type: - | 'mouseDown' - | 'mouseUp' - | 'mouseEnter' - | 'mouseLeave' - | 'contextMenu' - | 'mouseWheel' - | 'mouseMove' - | 'keyDown' - | 'keyUp' - | 'char', - modifiers: Array, - }) => void; - beginFrameSubscription: (( - onlyDirty?: ?boolean, - callback: Function, - ) => void) & - ((callback: Function) => void); - endFrameSubscription: () => void; - startDrag: (item: { - file: string, - icon: NativeImage, - }) => void; - savePage: ( - fullPath: string, - saveType: 'HTMLOnly' | 'HTMLComplete' | 'MHTML', - callback: Function, - ) => boolean; - showDefinitionForSelection: () => void; - isOffscreen: () => boolean; - startPainting: () => void; - stopPainting: () => void; - isPainting: () => boolean; - setFrameRate: (fps: number) => void; - getFrameRate: () => number; - invalidate: () => void; - getWebRTCIPHandlingPolicy: () => string; - setWebRTCIPHandlingPolicy: ( - policy: - | 'default' - | 'default_public_interface_only' - | 'default_public_and_private_interfaces' - | 'disable_non_proxied_udp', - ) => void; - getOSProcessId: () => number; - getProcessId: () => number; - takeHeapSnapshot: (filePath: string) => Promise; - setBackgroundThrottling: (allowed: boolean) => void; - getType: () => - | 'backgroundPage' - | 'window' - | 'browserView' - | 'remote' - | 'webview' - | 'offscreen'; - id: number; - session: Session; - hostWebContents: WebContents; - devToolsWebContents: WebContents; - debugger: Debugger; - on: ((eventName: 'did-finish-load', callback: () => void) => void) & - (( - eventName: 'did-fail-load', - callback: ( - event: Event, - errorCode: number, - errorDescription: string, - validatedURL: string, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'did-frame-finish-load', - callback: ( - event: Event, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - ((eventName: 'did-start-loading', callback: () => void) => void) & - ((eventName: 'did-stop-loading', callback: () => void) => void) & - ((eventName: 'dom-ready', callback: (event: Event) => void) => void) & - (( - eventName: 'page-title-updated', - callback: (event: Event, title: string, explicitSet: boolean) => void, - ) => void) & - (( - eventName: 'page-favicon-updated', - callback: (event: Event, favicons: Array) => void, - ) => void) & - (( - eventName: 'new-window', - callback: ( - event: Event, - url: string, - frameName: string, - disposition: - | 'default' - | 'foreground-tab' - | 'background-tab' - | 'new-window' - | 'save-to-disk' - | 'other', - options: {}, - additionalFeatures: Array, - referrer: Referrer, - ) => void, - ) => void) & - (( - eventName: 'will-navigate', - callback: (event: Event, url: string) => void, - ) => void) & - (( - eventName: 'did-start-navigation', - callback: ( - event: Event, - url: string, - isInPlace: boolean, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'will-redirect', - callback: ( - event: Event, - url: string, - isInPlace: boolean, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'did-redirect-navigation', - callback: ( - event: Event, - url: string, - isInPlace: boolean, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'did-navigate', - callback: ( - event: Event, - url: string, - httpResponseCode: number, - httpStatusText: string, - ) => void, - ) => void) & - (( - eventName: 'did-frame-navigate', - callback: ( - event: Event, - url: string, - httpResponseCode: number, - httpStatusText: string, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'did-navigate-in-page', - callback: ( - event: Event, - url: string, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'will-prevent-unload', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'crashed', - callback: (event: Event, killed: boolean) => void, - ) => void) & - ((eventName: 'unresponsive', callback: () => void) => void) & - ((eventName: 'responsive', callback: () => void) => void) & - (( - eventName: 'plugin-crashed', - callback: (event: Event, name: string, version: string) => void, - ) => void) & - ((eventName: 'destroyed', callback: () => void) => void) & - (( - eventName: 'before-input-event', - callback: ( - event: Event, - input: { - type: string, - key: string, - code: string, - isAutoRepeat: boolean, - shift: boolean, - control: boolean, - alt: boolean, - meta: boolean, - }, - ) => void, - ) => void) & - ((eventName: 'devtools-opened', callback: () => void) => void) & - ((eventName: 'devtools-closed', callback: () => void) => void) & - ((eventName: 'devtools-focused', callback: () => void) => void) & - (( - eventName: 'certificate-error', - callback: ( - event: Event, - url: string, - error: string, - certificate: Certificate, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'select-client-certificate', - callback: ( - event: Event, - url: URL, - certificateList: Array, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'login', - callback: ( - event: Event, - request: { - method: string, - url: URL, - referrer: URL, - }, - authInfo: { - isProxy: boolean, - scheme: string, - host: string, - port: number, - realm: string, - }, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'found-in-page', - callback: ( - event: Event, - result: { - requestId: number, - activeMatchOrdinal: number, - matches: number, - selectionArea: {}, - finalUpdate: boolean, - }, - ) => void, - ) => void) & - ((eventName: 'media-started-playing', callback: () => void) => void) & - ((eventName: 'media-paused', callback: () => void) => void) & - (( - eventName: 'did-change-theme-color', - callback: (event: Event, color: string | null) => void, - ) => void) & - (( - eventName: 'update-target-url', - callback: (event: Event, url: string) => void, - ) => void) & - (( - eventName: 'cursor-changed', - callback: ( - event: Event, - type: string, - image?: ?NativeImage, - scale?: ?number, - size?: ?Size, - hotspot?: ?Point, - ) => void, - ) => void) & - (( - eventName: 'context-menu', - callback: ( - event: Event, - params: { - x: number, - y: number, - linkURL: string, - linkText: string, - pageURL: string, - frameURL: string, - srcURL: string, - mediaType: - | 'none' - | 'image' - | 'audio' - | 'video' - | 'canvas' - | 'file' - | 'plugin', - hasImageContents: boolean, - isEditable: boolean, - selectionText: string, - titleText: string, - misspelledWord: string, - frameCharset: string, - inputFieldType: string, - menuSourceType: - | 'none' - | 'mouse' - | 'keyboard' - | 'touch' - | 'touchMenu', - mediaFlags: { - inError: boolean, - isPaused: boolean, - isMuted: boolean, - hasAudio: boolean, - isLooping: boolean, - isControlsVisible: boolean, - canToggleControls: boolean, - canRotate: boolean, - }, - editFlags: { - canUndo: boolean, - canRedo: boolean, - canCut: boolean, - canCopy: boolean, - canPaste: boolean, - canDelete: boolean, - canSelectAll: boolean, - }, - }, - ) => void, - ) => void) & - (( - eventName: 'select-bluetooth-device', - callback: ( - event: Event, - devices: Array, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'paint', - callback: ( - event: Event, - dirtyRect: Rectangle, - image: NativeImage, - ) => void, - ) => void) & - ((eventName: 'devtools-reload-page', callback: () => void) => void) & - (( - eventName: 'will-attach-webview', - callback: (event: Event, webPreferences: {}, params: {}) => void, - ) => void) & - (( - eventName: 'did-attach-webview', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'console-message', - callback: ( - event: Event, - level: number, - message: string, - line: number, - sourceId: string, - ) => void, - ) => void) & - (( - eventName: 'preload-error', - callback: (event: Event, preloadPath: string, error: Error) => void, - ) => void) & - (( - eventName: 'ipc-message', - callback: (event: Event, channel: string, ...args: Array) => void, - ) => void) & - (( - eventName: 'ipc-message-sync', - callback: (event: Event, channel: string, ...args: Array) => void, - ) => void) & - (( - eventName: 'desktop-capturer-get-sources', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'remote-require', - callback: (event: Event, moduleName: string) => void, - ) => void) & - (( - eventName: 'remote-get-global', - callback: (event: Event, globalName: string) => void, - ) => void) & - (( - eventName: 'remote-get-builtin', - callback: (event: Event, moduleName: string) => void, - ) => void) & - (( - eventName: 'remote-get-current-window', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'remote-get-current-web-contents', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'remote-get-guest-web-contents', - callback: (event: Event, guestWebContents: WebContents) => void, - ) => void); - once: ((eventName: 'did-finish-load', callback: () => void) => void) & - (( - eventName: 'did-fail-load', - callback: ( - event: Event, - errorCode: number, - errorDescription: string, - validatedURL: string, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'did-frame-finish-load', - callback: ( - event: Event, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - ((eventName: 'did-start-loading', callback: () => void) => void) & - ((eventName: 'did-stop-loading', callback: () => void) => void) & - ((eventName: 'dom-ready', callback: (event: Event) => void) => void) & - (( - eventName: 'page-title-updated', - callback: (event: Event, title: string, explicitSet: boolean) => void, - ) => void) & - (( - eventName: 'page-favicon-updated', - callback: (event: Event, favicons: Array) => void, - ) => void) & - (( - eventName: 'new-window', - callback: ( - event: Event, - url: string, - frameName: string, - disposition: - | 'default' - | 'foreground-tab' - | 'background-tab' - | 'new-window' - | 'save-to-disk' - | 'other', - options: {}, - additionalFeatures: Array, - referrer: Referrer, - ) => void, - ) => void) & - (( - eventName: 'will-navigate', - callback: (event: Event, url: string) => void, - ) => void) & - (( - eventName: 'did-start-navigation', - callback: ( - event: Event, - url: string, - isInPlace: boolean, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'will-redirect', - callback: ( - event: Event, - url: string, - isInPlace: boolean, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'did-redirect-navigation', - callback: ( - event: Event, - url: string, - isInPlace: boolean, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'did-navigate', - callback: ( - event: Event, - url: string, - httpResponseCode: number, - httpStatusText: string, - ) => void, - ) => void) & - (( - eventName: 'did-frame-navigate', - callback: ( - event: Event, - url: string, - httpResponseCode: number, - httpStatusText: string, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'did-navigate-in-page', - callback: ( - event: Event, - url: string, - isMainFrame: boolean, - frameProcessId: number, - frameRoutingId: number, - ) => void, - ) => void) & - (( - eventName: 'will-prevent-unload', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'crashed', - callback: (event: Event, killed: boolean) => void, - ) => void) & - ((eventName: 'unresponsive', callback: () => void) => void) & - ((eventName: 'responsive', callback: () => void) => void) & - (( - eventName: 'plugin-crashed', - callback: (event: Event, name: string, version: string) => void, - ) => void) & - ((eventName: 'destroyed', callback: () => void) => void) & - (( - eventName: 'before-input-event', - callback: ( - event: Event, - input: { - type: string, - key: string, - code: string, - isAutoRepeat: boolean, - shift: boolean, - control: boolean, - alt: boolean, - meta: boolean, - }, - ) => void, - ) => void) & - ((eventName: 'devtools-opened', callback: () => void) => void) & - ((eventName: 'devtools-closed', callback: () => void) => void) & - ((eventName: 'devtools-focused', callback: () => void) => void) & - (( - eventName: 'certificate-error', - callback: ( - event: Event, - url: string, - error: string, - certificate: Certificate, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'select-client-certificate', - callback: ( - event: Event, - url: URL, - certificateList: Array, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'login', - callback: ( - event: Event, - request: { - method: string, - url: URL, - referrer: URL, - }, - authInfo: { - isProxy: boolean, - scheme: string, - host: string, - port: number, - realm: string, - }, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'found-in-page', - callback: ( - event: Event, - result: { - requestId: number, - activeMatchOrdinal: number, - matches: number, - selectionArea: {}, - finalUpdate: boolean, - }, - ) => void, - ) => void) & - ((eventName: 'media-started-playing', callback: () => void) => void) & - ((eventName: 'media-paused', callback: () => void) => void) & - (( - eventName: 'did-change-theme-color', - callback: (event: Event, color: string | null) => void, - ) => void) & - (( - eventName: 'update-target-url', - callback: (event: Event, url: string) => void, - ) => void) & - (( - eventName: 'cursor-changed', - callback: ( - event: Event, - type: string, - image?: ?NativeImage, - scale?: ?number, - size?: ?Size, - hotspot?: ?Point, - ) => void, - ) => void) & - (( - eventName: 'context-menu', - callback: ( - event: Event, - params: { - x: number, - y: number, - linkURL: string, - linkText: string, - pageURL: string, - frameURL: string, - srcURL: string, - mediaType: - | 'none' - | 'image' - | 'audio' - | 'video' - | 'canvas' - | 'file' - | 'plugin', - hasImageContents: boolean, - isEditable: boolean, - selectionText: string, - titleText: string, - misspelledWord: string, - frameCharset: string, - inputFieldType: string, - menuSourceType: - | 'none' - | 'mouse' - | 'keyboard' - | 'touch' - | 'touchMenu', - mediaFlags: { - inError: boolean, - isPaused: boolean, - isMuted: boolean, - hasAudio: boolean, - isLooping: boolean, - isControlsVisible: boolean, - canToggleControls: boolean, - canRotate: boolean, - }, - editFlags: { - canUndo: boolean, - canRedo: boolean, - canCut: boolean, - canCopy: boolean, - canPaste: boolean, - canDelete: boolean, - canSelectAll: boolean, - }, - }, - ) => void, - ) => void) & - (( - eventName: 'select-bluetooth-device', - callback: ( - event: Event, - devices: Array, - callback: Function, - ) => void, - ) => void) & - (( - eventName: 'paint', - callback: ( - event: Event, - dirtyRect: Rectangle, - image: NativeImage, - ) => void, - ) => void) & - ((eventName: 'devtools-reload-page', callback: () => void) => void) & - (( - eventName: 'will-attach-webview', - callback: (event: Event, webPreferences: {}, params: {}) => void, - ) => void) & - (( - eventName: 'did-attach-webview', - callback: (event: Event, webContents: WebContents) => void, - ) => void) & - (( - eventName: 'console-message', - callback: ( - event: Event, - level: number, - message: string, - line: number, - sourceId: string, - ) => void, - ) => void) & - (( - eventName: 'preload-error', - callback: (event: Event, preloadPath: string, error: Error) => void, - ) => void) & - (( - eventName: 'ipc-message', - callback: (event: Event, channel: string, ...args: Array) => void, - ) => void) & - (( - eventName: 'ipc-message-sync', - callback: (event: Event, channel: string, ...args: Array) => void, - ) => void) & - (( - eventName: 'desktop-capturer-get-sources', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'remote-require', - callback: (event: Event, moduleName: string) => void, - ) => void) & - (( - eventName: 'remote-get-global', - callback: (event: Event, globalName: string) => void, - ) => void) & - (( - eventName: 'remote-get-builtin', - callback: (event: Event, moduleName: string) => void, - ) => void) & - (( - eventName: 'remote-get-current-window', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'remote-get-current-web-contents', - callback: (event: Event) => void, - ) => void) & - (( - eventName: 'remote-get-guest-web-contents', - callback: (event: Event, guestWebContents: WebContents) => void, - ) => void); - } - declare class WebRequest { - onBeforeRequest: (( - filter?: ?{ - urls: Array, - }, - listener: Function | null, - ) => void) & - ((listener: Function | null) => void); - onBeforeSendHeaders: (( - filter?: ?{ - urls: Array, - }, - listener: Function | null, - ) => void) & - ((listener: Function | null) => void); - onSendHeaders: (( - filter?: ?{ - urls: Array, - }, - listener: Function | null, - ) => void) & - ((listener: Function | null) => void); - onHeadersReceived: (( - filter?: ?{ - urls: Array, - }, - listener: Function | null, - ) => void) & - ((listener: Function | null) => void); - onResponseStarted: (( - filter?: ?{ - urls: Array, - }, - listener: Function | null, - ) => void) & - ((listener: Function | null) => void); - onBeforeRedirect: (( - filter?: ?{ - urls: Array, - }, - listener: Function | null, - ) => void) & - ((listener: Function | null) => void); - onCompleted: (( - filter?: ?{ - urls: Array, - }, - listener: Function | null, - ) => void) & - ((listener: Function | null) => void); - onErrorOccurred: (( - filter?: ?{ - urls: Array, - }, - listener: Function | null, - ) => void) & - ((listener: Function | null) => void); - } - declare class TouchBarButton { - constructor(options: { - label?: ?string, - backgroundColor?: ?string, - icon?: ?NativeImage, - iconPosition?: ?'left' | 'right' | 'overlay', - click?: ?Function, - }): TouchBarButton; - label: string; - backgroundColor: string; - icon: NativeImage; - } - declare class TouchBarColorPicker { - constructor(options: { - availableColors?: ?Array, - selectedColor?: ?string, - change?: ?Function, - }): TouchBarColorPicker; - availableColors: Array; - selectedColor: string; - } - declare class TouchBarGroup { - constructor(options: { - items: TouchBar, - }): TouchBarGroup; - } - declare class TouchBarLabel { - constructor(options: { - label?: ?string, - textColor?: ?string, - }): TouchBarLabel; - label: string; - textColor: string; - } - declare class TouchBarPopover { - constructor(options: { - label?: ?string, - icon?: ?NativeImage, - items?: ?TouchBar, - showCloseButton?: ?boolean, - }): TouchBarPopover; - label: string; - icon: NativeImage; - } - declare class TouchBarScrubber { - constructor(options: { - items: Array, - select: Function, - highlight: Function, - selectedStyle: string, - overlayStyle: string, - showArrowButtons: boolean, - mode: string, - continuous: boolean, - }): TouchBarScrubber; - items: Array; - selectedStyle: string; - overlayStyle: string; - showArrowButtons: boolean; - mode: string; - continuous: boolean; - } - declare class TouchBarSegmentedControl { - constructor(options: { - segmentStyle?: - | ?'automatic' - | 'rounded' - | 'textured-rounded' - | 'round-rect' - | 'textured-square' - | 'capsule' - | 'small-square' - | 'separated', - mode?: ?'single' | 'multiple' | 'buttons', - segments: Array, - selectedIndex?: ?number, - change: Function, - }): TouchBarSegmentedControl; - segmentStyle: string; - segments: Array; - selectedIndex: number; - } - declare class TouchBarSlider { - constructor(options: { - label?: ?string, - value?: ?number, - minValue?: ?number, - maxValue?: ?number, - change?: ?Function, - }): TouchBarSlider; - label: string; - value: number; - minValue: number; - maxValue: number; - } - declare class TouchBarSpacer { - constructor(options: { - size?: ?'small' | 'large' | 'flexible', - }): TouchBarSpacer; - } - - declare type URL = any; - declare type Accelerator = any; - declare type WebFrame = any; - declare type ReadableStream = any; - declare type SaveDialogOptions = any; - declare type Protocol = any; - declare type NetLog = any; - declare type TouchBarItem = any; -} diff --git a/desktop/flow-typed/npm/electron-v8.0.1.js b/desktop/flow-typed/npm/electron-v8.0.1.js deleted file mode 100644 index 19310d9f8..000000000 --- a/desktop/flow-typed/npm/electron-v8.0.1.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Copyright 2018-present Facebook. - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * @format - * @flow - * - */ - -declare module 'electron' { - declare module.exports: any; -} diff --git a/desktop/flow-typed/npm/google-palette_vx.x.x.js b/desktop/flow-typed/npm/google-palette_vx.x.x.js deleted file mode 100644 index e997e8ed8..000000000 --- a/desktop/flow-typed/npm/google-palette_vx.x.x.js +++ /dev/null @@ -1,18 +0,0 @@ -// flow-typed signature: 6187fdc45c9567c2e88b8d4399bc1300 -// flow-typed version: <>/google-palette_vlatest/flow_v0.69.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'google-palette' - * - * 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 'google-palette' { - declare module.exports: any; -} diff --git a/desktop/flow-typed/npm/graphql_vx.x.x.js b/desktop/flow-typed/npm/graphql_vx.x.x.js deleted file mode 100644 index 3326b36cd..000000000 --- a/desktop/flow-typed/npm/graphql_vx.x.x.js +++ /dev/null @@ -1,633 +0,0 @@ -// flow-typed signature: 78a3b0630930ae254dcef08544af115d -// flow-typed version: <>/graphql_v^0.11.7/flow_v0.59.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'graphql' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'graphql' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'graphql/error/formatError' { - declare module.exports: any; -} - -declare module 'graphql/error/GraphQLError' { - declare module.exports: any; -} - -declare module 'graphql/error/index' { - declare module.exports: any; -} - -declare module 'graphql/error/locatedError' { - declare module.exports: any; -} - -declare module 'graphql/error/syntaxError' { - declare module.exports: any; -} - -declare module 'graphql/execution/execute' { - declare module.exports: any; -} - -declare module 'graphql/execution/index' { - declare module.exports: any; -} - -declare module 'graphql/execution/values' { - declare module.exports: any; -} - -declare module 'graphql/graphql' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/dedent' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/find' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/invariant' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/isInvalid' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/isNullish' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/keyMap' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/keyValMap' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/ObjMap' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/quotedOrList' { - declare module.exports: any; -} - -declare module 'graphql/jsutils/suggestionList' { - declare module.exports: any; -} - -declare module 'graphql/language/ast' { - declare module.exports: any; -} - -declare module 'graphql/language/index' { - declare module.exports: any; -} - -declare module 'graphql/language/kinds' { - declare module.exports: any; -} - -declare module 'graphql/language/lexer' { - declare module.exports: any; -} - -declare module 'graphql/language/location' { - declare module.exports: any; -} - -declare module 'graphql/language/parser' { - declare module.exports: any; -} - -declare module 'graphql/language/printer' { - declare module.exports: any; -} - -declare module 'graphql/language/source' { - declare module.exports: any; -} - -declare module 'graphql/language/visitor' { - declare module.exports: any; -} - -declare module 'graphql/subscription/asyncIteratorReject' { - declare module.exports: any; -} - -declare module 'graphql/subscription/index' { - declare module.exports: any; -} - -declare module 'graphql/subscription/mapAsyncIterator' { - declare module.exports: any; -} - -declare module 'graphql/subscription/subscribe' { - declare module.exports: any; -} - -declare module 'graphql/type/definition' { - declare module.exports: any; -} - -declare module 'graphql/type/directives' { - declare module.exports: any; -} - -declare module 'graphql/type/index' { - declare module.exports: any; -} - -declare module 'graphql/type/introspection' { - declare module.exports: any; -} - -declare module 'graphql/type/scalars' { - declare module.exports: any; -} - -declare module 'graphql/type/schema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/assertValidName' { - declare module.exports: any; -} - -declare module 'graphql/utilities/astFromValue' { - declare module.exports: any; -} - -declare module 'graphql/utilities/buildASTSchema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/buildClientSchema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/concatAST' { - declare module.exports: any; -} - -declare module 'graphql/utilities/extendSchema' { - declare module.exports: any; -} - -declare module 'graphql/utilities/findBreakingChanges' { - declare module.exports: any; -} - -declare module 'graphql/utilities/findDeprecatedUsages' { - declare module.exports: any; -} - -declare module 'graphql/utilities/getOperationAST' { - declare module.exports: any; -} - -declare module 'graphql/utilities/index' { - declare module.exports: any; -} - -declare module 'graphql/utilities/introspectionQuery' { - declare module.exports: any; -} - -declare module 'graphql/utilities/isValidJSValue' { - declare module.exports: any; -} - -declare module 'graphql/utilities/isValidLiteralValue' { - declare module.exports: any; -} - -declare module 'graphql/utilities/schemaPrinter' { - declare module.exports: any; -} - -declare module 'graphql/utilities/separateOperations' { - declare module.exports: any; -} - -declare module 'graphql/utilities/typeComparators' { - declare module.exports: any; -} - -declare module 'graphql/utilities/typeFromAST' { - declare module.exports: any; -} - -declare module 'graphql/utilities/TypeInfo' { - declare module.exports: any; -} - -declare module 'graphql/utilities/valueFromAST' { - declare module.exports: any; -} - -declare module 'graphql/validation/index' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/ArgumentsOfCorrectType' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/DefaultValuesOfCorrectType' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/FieldsOnCorrectType' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/FragmentsOnCompositeTypes' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/KnownArgumentNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/KnownDirectives' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/KnownFragmentNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/KnownTypeNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/LoneAnonymousOperation' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/NoFragmentCycles' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/NoUndefinedVariables' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/NoUnusedFragments' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/NoUnusedVariables' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/OverlappingFieldsCanBeMerged' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/PossibleFragmentSpreads' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/ProvidedNonNullArguments' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/ScalarLeafs' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/SingleFieldSubscriptions' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueArgumentNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueDirectivesPerLocation' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueFragmentNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueInputFieldNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueOperationNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/UniqueVariableNames' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/VariablesAreInputTypes' { - declare module.exports: any; -} - -declare module 'graphql/validation/rules/VariablesInAllowedPosition' { - declare module.exports: any; -} - -declare module 'graphql/validation/specifiedRules' { - declare module.exports: any; -} - -declare module 'graphql/validation/validate' { - declare module.exports: any; -} - -// Filename aliases -declare module 'graphql/error/formatError.js' { - declare module.exports: $Exports<'graphql/error/formatError'>; -} -declare module 'graphql/error/GraphQLError.js' { - declare module.exports: $Exports<'graphql/error/GraphQLError'>; -} -declare module 'graphql/error/index.js' { - declare module.exports: $Exports<'graphql/error/index'>; -} -declare module 'graphql/error/locatedError.js' { - declare module.exports: $Exports<'graphql/error/locatedError'>; -} -declare module 'graphql/error/syntaxError.js' { - declare module.exports: $Exports<'graphql/error/syntaxError'>; -} -declare module 'graphql/execution/execute.js' { - declare module.exports: $Exports<'graphql/execution/execute'>; -} -declare module 'graphql/execution/index.js' { - declare module.exports: $Exports<'graphql/execution/index'>; -} -declare module 'graphql/execution/values.js' { - declare module.exports: $Exports<'graphql/execution/values'>; -} -declare module 'graphql/graphql.js' { - declare module.exports: $Exports<'graphql/graphql'>; -} -declare module 'graphql/index' { - declare module.exports: $Exports<'graphql'>; -} -declare module 'graphql/index.js' { - declare module.exports: $Exports<'graphql'>; -} -declare module 'graphql/jsutils/dedent.js' { - declare module.exports: $Exports<'graphql/jsutils/dedent'>; -} -declare module 'graphql/jsutils/find.js' { - declare module.exports: $Exports<'graphql/jsutils/find'>; -} -declare module 'graphql/jsutils/invariant.js' { - declare module.exports: $Exports<'graphql/jsutils/invariant'>; -} -declare module 'graphql/jsutils/isInvalid.js' { - declare module.exports: $Exports<'graphql/jsutils/isInvalid'>; -} -declare module 'graphql/jsutils/isNullish.js' { - declare module.exports: $Exports<'graphql/jsutils/isNullish'>; -} -declare module 'graphql/jsutils/keyMap.js' { - declare module.exports: $Exports<'graphql/jsutils/keyMap'>; -} -declare module 'graphql/jsutils/keyValMap.js' { - declare module.exports: $Exports<'graphql/jsutils/keyValMap'>; -} -declare module 'graphql/jsutils/ObjMap.js' { - declare module.exports: $Exports<'graphql/jsutils/ObjMap'>; -} -declare module 'graphql/jsutils/quotedOrList.js' { - declare module.exports: $Exports<'graphql/jsutils/quotedOrList'>; -} -declare module 'graphql/jsutils/suggestionList.js' { - declare module.exports: $Exports<'graphql/jsutils/suggestionList'>; -} -declare module 'graphql/language/ast.js' { - declare module.exports: $Exports<'graphql/language/ast'>; -} -declare module 'graphql/language/index.js' { - declare module.exports: $Exports<'graphql/language/index'>; -} -declare module 'graphql/language/kinds.js' { - declare module.exports: $Exports<'graphql/language/kinds'>; -} -declare module 'graphql/language/lexer.js' { - declare module.exports: $Exports<'graphql/language/lexer'>; -} -declare module 'graphql/language/location.js' { - declare module.exports: $Exports<'graphql/language/location'>; -} -declare module 'graphql/language/parser.js' { - declare module.exports: $Exports<'graphql/language/parser'>; -} -declare module 'graphql/language/printer.js' { - declare module.exports: $Exports<'graphql/language/printer'>; -} -declare module 'graphql/language/source.js' { - declare module.exports: $Exports<'graphql/language/source'>; -} -declare module 'graphql/language/visitor.js' { - declare module.exports: $Exports<'graphql/language/visitor'>; -} -declare module 'graphql/subscription/asyncIteratorReject.js' { - declare module.exports: $Exports<'graphql/subscription/asyncIteratorReject'>; -} -declare module 'graphql/subscription/index.js' { - declare module.exports: $Exports<'graphql/subscription/index'>; -} -declare module 'graphql/subscription/mapAsyncIterator.js' { - declare module.exports: $Exports<'graphql/subscription/mapAsyncIterator'>; -} -declare module 'graphql/subscription/subscribe.js' { - declare module.exports: $Exports<'graphql/subscription/subscribe'>; -} -declare module 'graphql/type/definition.js' { - declare module.exports: $Exports<'graphql/type/definition'>; -} -declare module 'graphql/type/directives.js' { - declare module.exports: $Exports<'graphql/type/directives'>; -} -declare module 'graphql/type/index.js' { - declare module.exports: $Exports<'graphql/type/index'>; -} -declare module 'graphql/type/introspection.js' { - declare module.exports: $Exports<'graphql/type/introspection'>; -} -declare module 'graphql/type/scalars.js' { - declare module.exports: $Exports<'graphql/type/scalars'>; -} -declare module 'graphql/type/schema.js' { - declare module.exports: $Exports<'graphql/type/schema'>; -} -declare module 'graphql/utilities/assertValidName.js' { - declare module.exports: $Exports<'graphql/utilities/assertValidName'>; -} -declare module 'graphql/utilities/astFromValue.js' { - declare module.exports: $Exports<'graphql/utilities/astFromValue'>; -} -declare module 'graphql/utilities/buildASTSchema.js' { - declare module.exports: $Exports<'graphql/utilities/buildASTSchema'>; -} -declare module 'graphql/utilities/buildClientSchema.js' { - declare module.exports: $Exports<'graphql/utilities/buildClientSchema'>; -} -declare module 'graphql/utilities/concatAST.js' { - declare module.exports: $Exports<'graphql/utilities/concatAST'>; -} -declare module 'graphql/utilities/extendSchema.js' { - declare module.exports: $Exports<'graphql/utilities/extendSchema'>; -} -declare module 'graphql/utilities/findBreakingChanges.js' { - declare module.exports: $Exports<'graphql/utilities/findBreakingChanges'>; -} -declare module 'graphql/utilities/findDeprecatedUsages.js' { - declare module.exports: $Exports<'graphql/utilities/findDeprecatedUsages'>; -} -declare module 'graphql/utilities/getOperationAST.js' { - declare module.exports: $Exports<'graphql/utilities/getOperationAST'>; -} -declare module 'graphql/utilities/index.js' { - declare module.exports: $Exports<'graphql/utilities/index'>; -} -declare module 'graphql/utilities/introspectionQuery.js' { - declare module.exports: $Exports<'graphql/utilities/introspectionQuery'>; -} -declare module 'graphql/utilities/isValidJSValue.js' { - declare module.exports: $Exports<'graphql/utilities/isValidJSValue'>; -} -declare module 'graphql/utilities/isValidLiteralValue.js' { - declare module.exports: $Exports<'graphql/utilities/isValidLiteralValue'>; -} -declare module 'graphql/utilities/schemaPrinter.js' { - declare module.exports: $Exports<'graphql/utilities/schemaPrinter'>; -} -declare module 'graphql/utilities/separateOperations.js' { - declare module.exports: $Exports<'graphql/utilities/separateOperations'>; -} -declare module 'graphql/utilities/typeComparators.js' { - declare module.exports: $Exports<'graphql/utilities/typeComparators'>; -} -declare module 'graphql/utilities/typeFromAST.js' { - declare module.exports: $Exports<'graphql/utilities/typeFromAST'>; -} -declare module 'graphql/utilities/TypeInfo.js' { - declare module.exports: $Exports<'graphql/utilities/TypeInfo'>; -} -declare module 'graphql/utilities/valueFromAST.js' { - declare module.exports: $Exports<'graphql/utilities/valueFromAST'>; -} -declare module 'graphql/validation/index.js' { - declare module.exports: $Exports<'graphql/validation/index'>; -} -declare module 'graphql/validation/rules/ArgumentsOfCorrectType.js' { - declare module.exports: $Exports<'graphql/validation/rules/ArgumentsOfCorrectType'>; -} -declare module 'graphql/validation/rules/DefaultValuesOfCorrectType.js' { - declare module.exports: $Exports<'graphql/validation/rules/DefaultValuesOfCorrectType'>; -} -declare module 'graphql/validation/rules/FieldsOnCorrectType.js' { - declare module.exports: $Exports<'graphql/validation/rules/FieldsOnCorrectType'>; -} -declare module 'graphql/validation/rules/FragmentsOnCompositeTypes.js' { - declare module.exports: $Exports<'graphql/validation/rules/FragmentsOnCompositeTypes'>; -} -declare module 'graphql/validation/rules/KnownArgumentNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/KnownArgumentNames'>; -} -declare module 'graphql/validation/rules/KnownDirectives.js' { - declare module.exports: $Exports<'graphql/validation/rules/KnownDirectives'>; -} -declare module 'graphql/validation/rules/KnownFragmentNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/KnownFragmentNames'>; -} -declare module 'graphql/validation/rules/KnownTypeNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/KnownTypeNames'>; -} -declare module 'graphql/validation/rules/LoneAnonymousOperation.js' { - declare module.exports: $Exports<'graphql/validation/rules/LoneAnonymousOperation'>; -} -declare module 'graphql/validation/rules/NoFragmentCycles.js' { - declare module.exports: $Exports<'graphql/validation/rules/NoFragmentCycles'>; -} -declare module 'graphql/validation/rules/NoUndefinedVariables.js' { - declare module.exports: $Exports<'graphql/validation/rules/NoUndefinedVariables'>; -} -declare module 'graphql/validation/rules/NoUnusedFragments.js' { - declare module.exports: $Exports<'graphql/validation/rules/NoUnusedFragments'>; -} -declare module 'graphql/validation/rules/NoUnusedVariables.js' { - declare module.exports: $Exports<'graphql/validation/rules/NoUnusedVariables'>; -} -declare module 'graphql/validation/rules/OverlappingFieldsCanBeMerged.js' { - declare module.exports: $Exports<'graphql/validation/rules/OverlappingFieldsCanBeMerged'>; -} -declare module 'graphql/validation/rules/PossibleFragmentSpreads.js' { - declare module.exports: $Exports<'graphql/validation/rules/PossibleFragmentSpreads'>; -} -declare module 'graphql/validation/rules/ProvidedNonNullArguments.js' { - declare module.exports: $Exports<'graphql/validation/rules/ProvidedNonNullArguments'>; -} -declare module 'graphql/validation/rules/ScalarLeafs.js' { - declare module.exports: $Exports<'graphql/validation/rules/ScalarLeafs'>; -} -declare module 'graphql/validation/rules/SingleFieldSubscriptions.js' { - declare module.exports: $Exports<'graphql/validation/rules/SingleFieldSubscriptions'>; -} -declare module 'graphql/validation/rules/UniqueArgumentNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/UniqueArgumentNames'>; -} -declare module 'graphql/validation/rules/UniqueDirectivesPerLocation.js' { - declare module.exports: $Exports<'graphql/validation/rules/UniqueDirectivesPerLocation'>; -} -declare module 'graphql/validation/rules/UniqueFragmentNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/UniqueFragmentNames'>; -} -declare module 'graphql/validation/rules/UniqueInputFieldNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/UniqueInputFieldNames'>; -} -declare module 'graphql/validation/rules/UniqueOperationNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/UniqueOperationNames'>; -} -declare module 'graphql/validation/rules/UniqueVariableNames.js' { - declare module.exports: $Exports<'graphql/validation/rules/UniqueVariableNames'>; -} -declare module 'graphql/validation/rules/VariablesAreInputTypes.js' { - declare module.exports: $Exports<'graphql/validation/rules/VariablesAreInputTypes'>; -} -declare module 'graphql/validation/rules/VariablesInAllowedPosition.js' { - declare module.exports: $Exports<'graphql/validation/rules/VariablesInAllowedPosition'>; -} -declare module 'graphql/validation/specifiedRules.js' { - declare module.exports: $Exports<'graphql/validation/specifiedRules'>; -} -declare module 'graphql/validation/validate.js' { - declare module.exports: $Exports<'graphql/validation/validate'>; -} diff --git a/desktop/flow-typed/npm/immutable_v4.x.x.js b/desktop/flow-typed/npm/immutable_v4.x.x.js deleted file mode 100644 index b7d1b0ee6..000000000 --- a/desktop/flow-typed/npm/immutable_v4.x.x.js +++ /dev/null @@ -1,1248 +0,0 @@ -/** - * This file provides type definitions for use with the Flow type checker. - * - * An important caveat when using these definitions is that the types for - * `Collection.Keyed`, `Collection.Indexed`, `Seq.Keyed`, and so on are stubs. - * When referring to those types, you can get the proper definitions by - * importing the types `KeyedCollection`, `IndexedCollection`, `KeyedSeq`, etc. - * For example, - * - * import { Seq } from 'immutable' - * import type { IndexedCollection, IndexedSeq } from 'immutable' - * - * const someSeq: IndexedSeq = Seq.Indexed.of(1, 2, 3) - * - * function takesASeq>(iter: TS): TS { - * return iter.butLast() - * } - * - * takesASeq(someSeq) - * - * @flow - */ - -// Helper type that represents plain objects allowed as arguments to -// some constructors and functions. -type PlainObjInput = {+[key: K]: V, __proto__: null}; - -declare module 'immutable' { - /** - * This file provides type definitions for use with the Flow type checker. - * - * An important caveat when using these definitions is that the types for - * `Collection.Keyed`, `Collection.Indexed`, `Seq.Keyed`, and so on are stubs. - * When referring to those types, you can get the proper definitions by - * importing the types `KeyedCollection`, `IndexedCollection`, `KeyedSeq`, etc. - * For example, - * - * import { Seq } from 'immutable' - * import type { IndexedCollection, IndexedSeq } from 'immutable' - * - * const someSeq: IndexedSeq = Seq.Indexed.of(1, 2, 3) - * - * function takesASeq>(iter: TS): TS { - * return iter.butLast() - * } - * - * takesASeq(someSeq) - * - * @flow - */ - - declare class _Collection /*implements ValueObject*/ { - equals(other: mixed): boolean; - hashCode(): number; - get(key: K, ..._: []): V | void; - get(key: K, notSetValue: NSV): V | NSV; - has(key: K): boolean; - includes(value: V): boolean; - contains(value: V): boolean; - first(): V | void; - last(): V | void; - - getIn(searchKeyPath: Iterable, notSetValue?: mixed): any; - hasIn(searchKeyPath: Iterable): boolean; - - update(updater: (value: this) => U): U; - - toJS(): Array | { [key: string]: mixed }; - toJSON(): Array | { [key: string]: V }; - toArray(): Array; - toObject(): { [key: string]: V }; - toMap(): Map; - toOrderedMap(): OrderedMap; - toSet(): Set; - toOrderedSet(): OrderedSet; - toList(): List; - toStack(): Stack; - toSeq(): Seq; - toKeyedSeq(): KeyedSeq; - toIndexedSeq(): IndexedSeq; - toSetSeq(): SetSeq; - - keys(): Iterator; - values(): Iterator; - entries(): Iterator<[K, V]>; - - keySeq(): IndexedSeq; - valueSeq(): IndexedSeq; - entrySeq(): IndexedSeq<[K, V]>; - - reverse(): this; - sort(comparator?: (valueA: V, valueB: V) => number): this; - - sortBy( - comparatorValueMapper: (value: V, key: K, iter: this) => C, - comparator?: (valueA: C, valueB: C) => number - ): this; - - groupBy( - grouper: (value: V, key: K, iter: this) => G, - context?: mixed - ): KeyedSeq; - - forEach( - sideEffect: (value: V, key: K, iter: this) => any, - context?: mixed - ): number; - - slice(begin?: number, end?: number): this; - rest(): this; - butLast(): this; - skip(amount: number): this; - skipLast(amount: number): this; - skipWhile(predicate: (value: V, key: K, iter: this) => mixed, context?: mixed): this; - skipUntil(predicate: (value: V, key: K, iter: this) => mixed, context?: mixed): this; - take(amount: number): this; - takeLast(amount: number): this; - takeWhile(predicate: (value: V, key: K, iter: this) => mixed, context?: mixed): this; - takeUntil(predicate: (value: V, key: K, iter: this) => mixed, context?: mixed): this; - - filter( - predicate: (value: V, key: K, iter: this) => mixed, - context?: mixed - ): this; - - filterNot( - predicate: (value: V, key: K, iter: this) => mixed, - context?: mixed - ): this; - - reduce( - reducer: (reduction: R, value: V, key: K, iter: this) => R, - initialReduction: R, - context?: mixed, - ): R; - reduce( - reducer: (reduction: V | R, value: V, key: K, iter: this) => R - ): R; - - reduceRight( - reducer: (reduction: R, value: V, key: K, iter: this) => R, - initialReduction: R, - context?: mixed, - ): R; - reduceRight( - reducer: (reduction: V | R, value: V, key: K, iter: this) => R - ): R; - - every(predicate: (value: V, key: K, iter: this) => mixed, context?: mixed): boolean; - some(predicate: (value: V, key: K, iter: this) => mixed, context?: mixed): boolean; - join(separator?: string): string; - isEmpty(): boolean; - count(predicate?: (value: V, key: K, iter: this) => mixed, context?: mixed): number; - countBy(grouper: (value: V, key: K, iter: this) => G, context?: mixed): Map; - - find( - predicate: (value: V, key: K, iter: this) => mixed, - context?: mixed, - notSetValue?: NSV - ): V | NSV; - findLast( - predicate: (value: V, key: K, iter: this) => mixed, - context?: mixed, - notSetValue?: NSV - ): V | NSV; - - findEntry(predicate: (value: V, key: K, iter: this) => mixed): [K, V] | void; - findLastEntry(predicate: (value: V, key: K, iter: this) => mixed): [K, V] | void; - - findKey(predicate: (value: V, key: K, iter: this) => mixed, context?: mixed): K | void; - findLastKey(predicate: (value: V, key: K, iter: this) => mixed, context?: mixed): K | void; - - keyOf(searchValue: V): K | void; - lastKeyOf(searchValue: V): K | void; - - max(comparator?: (valueA: V, valueB: V) => number): V; - maxBy( - comparatorValueMapper: (value: V, key: K, iter: this) => C, - comparator?: (valueA: C, valueB: C) => number - ): V; - min(comparator?: (valueA: V, valueB: V) => number): V; - minBy( - comparatorValueMapper: (value: V, key: K, iter: this) => C, - comparator?: (valueA: C, valueB: C) => number - ): V; - - isSubset(iter: Iterable): boolean; - isSuperset(iter: Iterable): boolean; - } - - declare function isImmutable(maybeImmutable: mixed): boolean %checks(maybeImmutable instanceof Collection); - declare function isCollection(maybeCollection: mixed): boolean %checks(maybeCollection instanceof Collection); - declare function isKeyed(maybeKeyed: mixed): boolean %checks(maybeKeyed instanceof KeyedCollection); - declare function isIndexed(maybeIndexed: mixed): boolean %checks(maybeIndexed instanceof IndexedCollection); - declare function isAssociative(maybeAssociative: mixed): boolean %checks( - maybeAssociative instanceof KeyedCollection || - maybeAssociative instanceof IndexedCollection - ); - declare function isOrdered(maybeOrdered: mixed): boolean %checks( - maybeOrdered instanceof IndexedCollection || - maybeOrdered instanceof OrderedMap || - maybeOrdered instanceof OrderedSet - ); - declare function isValueObject(maybeValue: mixed): boolean; - - declare interface ValueObject { - equals(other: mixed): boolean; - hashCode(): number; - } - - declare class Collection extends _Collection { - static Keyed: typeof KeyedCollection; - static Indexed: typeof IndexedCollection; - static Set: typeof SetCollection; - - static isCollection: typeof isCollection; - static isKeyed: typeof isKeyed; - static isIndexed: typeof isIndexed; - static isAssociative: typeof isAssociative; - static isOrdered: typeof isOrdered; - } - - declare class KeyedCollection extends Collection { - static (iter?: Iterable<[K, V]>): KeyedCollection; - static (obj?: { [key: K]: V }): KeyedCollection; - - toJS(): { [key: string]: mixed }; - toJSON(): { [key: string]: V }; - @@iterator(): Iterator<[K, V]>; - toSeq(): KeyedSeq; - flip(): KeyedCollection; - - concat(...iters: Array>): KeyedCollection; - concat(...iters: Array<{[key: string]: C}>): KeyedCollection; - - map( - mapper: (value: V, key: K, iter: this) => M, - context?: mixed - ): KeyedCollection; - - mapKeys( - mapper: (key: K, value: V, iter: this) => M, - context?: mixed - ): KeyedCollection; - - mapEntries( - mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], - context?: mixed - ): KeyedCollection; - - flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: mixed - ): KeyedCollection; - - flatten(depth?: number): KeyedCollection; - flatten(shallow?: boolean): KeyedCollection; - } - - // Collection.Keyed = KeyedCollection - - declare class IndexedCollection<+T> extends Collection { - static (iter?: Iterable): IndexedCollection; - - toJS(): Array; - toJSON(): Array; - @@iterator(): Iterator; - toSeq(): IndexedSeq; - fromEntrySeq(): KeyedSeq; - interpose(separator: T): this; - interleave(...collections: Iterable[]): this; - splice( - index: number, - removeNum: number, - ...values: T[] - ): this; - - zip( - a: Iterable, - ..._: [] - ): IndexedCollection<[T, A]>; - zip( - a: Iterable, - b: Iterable, - ..._: [] - ): IndexedCollection<[T, A, B]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): IndexedCollection<[T, A, B, C]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): IndexedCollection<[T, A, B, C, D]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): IndexedCollection<[T, A, B, C, D, E]>; - - zipWith( - zipper: (value: T, a: A) => R, - a: Iterable, - ..._: [] - ): IndexedCollection; - zipWith( - zipper: (value: T, a: A, b: B) => R, - a: Iterable, - b: Iterable, - ..._: [] - ): IndexedCollection; - zipWith( - zipper: (value: T, a: A, b: B, c: C) => R, - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): IndexedCollection; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): IndexedCollection; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D, e: E) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): IndexedCollection; - - indexOf(searchValue: T): number; - lastIndexOf(searchValue: T): number; - findIndex( - predicate: (value: T, index: number, iter: this) => mixed, - context?: mixed - ): number; - findLastIndex( - predicate: (value: T, index: number, iter: this) => mixed, - context?: mixed - ): number; - - concat(...iters: Array | C>): IndexedCollection; - - map( - mapper: (value: T, index: number, iter: this) => M, - context?: mixed - ): IndexedCollection; - - flatMap( - mapper: (value: T, index: number, iter: this) => Iterable, - context?: mixed - ): IndexedCollection; - - flatten(depth?: number): IndexedCollection; - flatten(shallow?: boolean): IndexedCollection; - } - - declare class SetCollection<+T> extends Collection { - static (iter?: Iterable): SetCollection; - - toJS(): Array; - toJSON(): Array; - @@iterator(): Iterator; - toSeq(): SetSeq; - - concat(...iters: Array | C>): SetCollection; - - // `map` and `flatMap` cannot be defined further up the hiearchy, because the - // implementation for `KeyedCollection` allows the value type to change without - // constraining the key type. That does not work for `SetCollection` - the value - // and key types *must* match. - map( - mapper: (value: T, value: T, iter: this) => M, - context?: mixed - ): SetCollection; - - flatMap( - mapper: (value: T, value: T, iter: this) => Iterable, - context?: mixed - ): SetCollection; - - flatten(depth?: number): SetCollection; - flatten(shallow?: boolean): SetCollection; - } - - declare function isSeq(maybeSeq: mixed): boolean %checks(maybeSeq instanceof Seq); - declare class Seq extends _Collection { - static Keyed: typeof KeyedSeq; - static Indexed: typeof IndexedSeq; - static Set: typeof SetSeq; - - static (iter: KeyedSeq): KeyedSeq; - static (iter: SetSeq): SetSeq; - static (iter?: Iterable): IndexedSeq; - static (iter: { [key: K]: V }): KeyedSeq; - - static of(...values: T[]): IndexedSeq; - - static isSeq: typeof isSeq; - - size: number | void; - cacheResult(): this; - toSeq(): this; - } - - declare class KeyedSeq extends Seq mixins KeyedCollection { - static (iter?: Iterable<[K, V]>): KeyedSeq; - static (iter?: { [key: K]: V }): KeyedSeq; - - // Override specialized return types - flip(): KeyedSeq; - - concat(...iters: Array>): KeyedSeq; - concat(...iters: Array<{[key: string]: C}>): KeyedSeq; - - map( - mapper: (value: V, key: K, iter: this) => M, - context?: mixed - ): KeyedSeq; - - mapKeys( - mapper: (key: K, value: V, iter: this) => M, - context?: mixed - ): KeyedSeq; - - mapEntries( - mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], - context?: mixed - ): KeyedSeq; - - flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: mixed - ): KeyedSeq; - - flatten(depth?: number): KeyedSeq; - flatten(shallow?: boolean): KeyedSeq; - } - - declare class IndexedSeq<+T> extends Seq mixins IndexedCollection { - static (iter?: Iterable): IndexedSeq; - - static of(...values: T[]): IndexedSeq; - - // Override specialized return types - - concat(...iters: Array | C>): IndexedSeq; - - map( - mapper: (value: T, index: number, iter: this) => M, - context?: mixed - ): IndexedSeq; - - flatMap( - mapper: (value: T, index: number, iter: this) => Iterable, - context?: mixed - ): IndexedSeq; - - flatten(depth?: number): IndexedSeq; - flatten(shallow?: boolean): IndexedSeq; - - zip( - a: Iterable, - ..._: [] - ): IndexedSeq<[T, A]>; - zip( - a: Iterable, - b: Iterable, - ..._: [] - ): IndexedSeq<[T, A, B]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): IndexedSeq<[T, A, B, C]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): IndexedSeq<[T, A, B, C, D]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): IndexedSeq<[T, A, B, C, D, E]>; - - zipWith( - zipper: (value: T, a: A) => R, - a: Iterable, - ..._: [] - ): IndexedSeq; - zipWith( - zipper: (value: T, a: A, b: B) => R, - a: Iterable, - b: Iterable, - ..._: [] - ): IndexedSeq; - zipWith( - zipper: (value: T, a: A, b: B, c: C) => R, - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): IndexedSeq; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): IndexedSeq; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D, e: E) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): IndexedSeq; - } - - declare class SetSeq<+T> extends Seq mixins SetCollection { - static (iter?: Iterable): IndexedSeq; - - static of(...values: T[]): IndexedSeq; - - // Override specialized return types - - concat(...iters: Array | C>): SetSeq; - - map( - mapper: (value: T, value: T, iter: this) => M, - context?: mixed - ): SetSeq; - - flatMap( - mapper: (value: T, value: T, iter: this) => Iterable, - context?: mixed - ): SetSeq; - - flatten(depth?: number): SetSeq; - flatten(shallow?: boolean): SetSeq; - } - - declare function isList(maybeList: mixed): boolean %checks(maybeList instanceof List); - declare class List<+T> extends IndexedCollection { - static (collection?: Iterable): List; - - static of(...values: T[]): List; - - static isList: typeof isList; - - size: number; - - set(index: number, value: U): List; - delete(index: number): this; - remove(index: number): this; - insert(index: number, value: U): List; - clear(): this; - push(...values: U[]): List; - pop(): this; - unshift(...values: U[]): List; - shift(): this; - - update(updater: (value: this) => U): U; - update(index: number, updater: (value: T) => U): List; - update(index: number, notSetValue: U, updater: (value: T) => U): List; - - merge(...collections: Iterable[]): List; - - mergeWith( - merger: (oldVal: T, newVal: U, key: number) => V, - ...collections: Iterable[] - ): List; - - mergeDeep(...collections: Iterable[]): List; - - mergeDeepWith( - merger: (oldVal: T, newVal: U, key: number) => V, - ...collections: Iterable[] - ): List; - - setSize(size: number): this; - setIn(keyPath: Iterable, value: mixed): this; - deleteIn(keyPath: Iterable, value: mixed): this; - removeIn(keyPath: Iterable, value: mixed): this; - - updateIn( - keyPath: Iterable, - notSetValue: mixed, - updater: (value: any) => mixed - ): this; - updateIn( - keyPath: Iterable, - updater: (value: any) => mixed - ): this; - - mergeIn(keyPath: Iterable, ...collections: Iterable[]): this; - mergeDeepIn(keyPath: Iterable, ...collections: Iterable[]): this; - - withMutations(mutator: (mutable: this) => mixed): this; - asMutable(): this; - asImmutable(): this; - - // Override specialized return types - - concat(...iters: Array | C>): List; - - map( - mapper: (value: T, index: number, iter: this) => M, - context?: mixed - ): List; - - flatMap( - mapper: (value: T, index: number, iter: this) => Iterable, - context?: mixed - ): List; - - flatten(depth?: number): List; - flatten(shallow?: boolean): List; - - zip( - a: Iterable, - ..._: [] - ): List<[T, A]>; - zip( - a: Iterable, - b: Iterable, - ..._: [] - ): List<[T, A, B]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): List<[T, A, B, C]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): List<[T, A, B, C, D]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): List<[T, A, B, C, D, E]>; - - zipWith( - zipper: (value: T, a: A) => R, - a: Iterable, - ..._: [] - ): List; - zipWith( - zipper: (value: T, a: A, b: B) => R, - a: Iterable, - b: Iterable, - ..._: [] - ): List; - zipWith( - zipper: (value: T, a: A, b: B, c: C) => R, - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): List; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): List; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D, e: E) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): List; - } - - declare function isMap(maybeMap: mixed): boolean %checks(maybeMap instanceof Map); - declare class Map extends KeyedCollection { - static (obj?: {[key: K]: V}): Map; - static (collection: Iterable<[K, V]>): Map; - - static isMap: typeof isMap; - - size: number; - - set(key: K_, value: V_): Map; - delete(key: K): this; - remove(key: K): this; - clear(): this; - - deleteAll(keys: Iterable): Map; - removeAll(keys: Iterable): Map; - - update(updater: (value: this) => U): U; - update(key: K, updater: (value: V) => V_): Map; - update(key: K, notSetValue: V_, updater: (value: V) => V_): Map; - - merge( - ...collections: (Iterable<[K_, V_]> | { [key: K_]: V_ })[] - ): Map; - - mergeWith( - merger: (oldVal: V, newVal: W, key: K) => X, - ...collections: (Iterable<[K_, W]> | { [key: K_]: W })[] - ): Map; - - mergeDeep( - ...collections: (Iterable<[K_, V_]> | { [key: K_]: V_ })[] - ): Map; - - mergeDeepWith( - merger: (oldVal: V, newVal: W, key: K) => X, - ...collections: (Iterable<[K_, W]> | { [key: K_]: W })[] - ): Map; - - setIn(keyPath: Iterable, value: mixed): this; - deleteIn(keyPath: Iterable, value: mixed): this; - removeIn(keyPath: Iterable, value: mixed): this; - - updateIn( - keyPath: Iterable, - notSetValue: mixed, - updater: (value: any) => mixed - ): this; - updateIn( - keyPath: Iterable, - updater: (value: any) => mixed - ): this; - - mergeIn( - keyPath: Iterable, - ...collections: (Iterable | { [key: string]: mixed })[] - ): this; - mergeDeepIn( - keyPath: Iterable, - ...collections: (Iterable | { [key: string]: mixed })[] - ): this; - - withMutations(mutator: (mutable: this) => mixed): this; - asMutable(): this; - asImmutable(): this; - - // Override specialized return types - - flip(): Map; - - concat(...iters: Array>): Map; - concat(...iters: Array<{[key: string]: C}>): Map; - - map( - mapper: (value: V, key: K, iter: this) => M, - context?: mixed - ): Map; - - mapKeys( - mapper: (key: K, value: V, iter: this) => M, - context?: mixed - ): Map; - - mapEntries( - mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], - context?: mixed - ): Map; - - flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: mixed - ): Map; - - flatten(depth?: number): Map; - flatten(shallow?: boolean): Map; - } - - declare function isOrderedMap(maybeOrderedMap: mixed): boolean %checks(maybeOrderedMap instanceof OrderedMap); - declare class OrderedMap extends Map { - static (obj?: {[key: K]: V}): OrderedMap; - static (collection: Iterable<[K, V]>): OrderedMap; - - static isOrderedMap: typeof isOrderedMap; - - size: number; - - set(key: K_, value: V_): OrderedMap; - delete(key: K): this; - remove(key: K): this; - clear(): this; - - update(updater: (value: this) => U): U; - update(key: K, updater: (value: V) => V_): OrderedMap; - update(key: K, notSetValue: V_, updater: (value: V) => V_): OrderedMap; - - merge( - ...collections: (Iterable<[K_, V_]> | { [key: K_]: V_ })[] - ): OrderedMap; - - mergeWith( - merger: (oldVal: V, newVal: W, key: K) => X, - ...collections: (Iterable<[K_, W]> | { [key: K_]: W })[] - ): OrderedMap; - - mergeDeep( - ...collections: (Iterable<[K_, V_]> | { [key: K_]: V_ })[] - ): OrderedMap; - - mergeDeepWith( - merger: (oldVal: V, newVal: W, key: K) => X, - ...collections: (Iterable<[K_, W]> | { [key: K_]: W })[] - ): OrderedMap; - - setIn(keyPath: Iterable, value: mixed): this; - deleteIn(keyPath: Iterable, value: mixed): this; - removeIn(keyPath: Iterable, value: mixed): this; - - updateIn( - keyPath: Iterable, - notSetValue: mixed, - updater: (value: any) => mixed - ): this; - updateIn( - keyPath: Iterable, - updater: (value: any) => mixed - ): this; - - mergeIn( - keyPath: Iterable, - ...collections: (Iterable | { [key: string]: mixed })[] - ): this; - mergeDeepIn( - keyPath: Iterable, - ...collections: (Iterable | { [key: string]: mixed })[] - ): this; - - withMutations(mutator: (mutable: this) => mixed): this; - asMutable(): this; - asImmutable(): this; - - // Override specialized return types - - flip(): OrderedMap; - - concat(...iters: Array>): OrderedMap; - concat(...iters: Array<{[key: string]: C}>): OrderedMap; - - map( - mapper: (value: V, key: K, iter: this) => M, - context?: mixed - ): OrderedMap; - - mapKeys( - mapper: (key: K, value: V, iter: this) => M, - context?: mixed - ): OrderedMap; - - mapEntries( - mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], - context?: mixed - ): OrderedMap; - - flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: mixed - ): OrderedMap; - - flatten(depth?: number): OrderedMap; - flatten(shallow?: boolean): OrderedMap; - } - - declare function isSet(maybeSet: mixed): boolean %checks(maybeSet instanceof Set); - declare class Set<+T> extends SetCollection { - static (collection?: Iterable): Set; - - static of(...values: T[]): Set; - static fromKeys(iter: Iterable<[T, mixed]>): Set; - static fromKeys(object: { [key: K]: V }): Set; - - static intersect(sets: Iterable>): Set; - static union(sets: Iterable>): Set; - - static isSet: typeof isSet; - - size: number; - - add(value: U): Set; - delete(value: T): this; - remove(value: T): this; - clear(): this; - union(...collections: Iterable[]): Set; - merge(...collections: Iterable[]): Set; - intersect(...collections: Iterable[]): Set; - subtract(...collections: Iterable[]): this; - - withMutations(mutator: (mutable: this) => mixed): this; - asMutable(): this; - asImmutable(): this; - - // Override specialized return types - - concat(...iters: Array | C>): Set; - - map( - mapper: (value: T, value: T, iter: this) => M, - context?: mixed - ): Set; - - flatMap( - mapper: (value: T, value: T, iter: this) => Iterable, - context?: mixed - ): Set; - - flatten(depth?: number): Set; - flatten(shallow?: boolean): Set; - } - - // Overrides except for `isOrderedSet` are for specialized return types - declare function isOrderedSet(maybeOrderedSet: mixed): boolean %checks(maybeOrderedSet instanceof OrderedSet); - declare class OrderedSet<+T> extends Set { - static (collection: Iterable): OrderedSet; - static (_: void): OrderedSet; - - static of(...values: T[]): OrderedSet; - static fromKeys(iter: Iterable<[T, mixed]>): OrderedSet; - static fromKeys(object: { [key: K]: V }): OrderedSet; - - static isOrderedSet: typeof isOrderedSet; - - size: number; - - add(value: U): OrderedSet; - union(...collections: Iterable[]): OrderedSet; - merge(...collections: Iterable[]): OrderedSet; - intersect(...collections: Iterable[]): OrderedSet; - - concat(...iters: Array | C>): OrderedSet; - - map( - mapper: (value: T, value: T, iter: this) => M, - context?: mixed - ): OrderedSet; - - flatMap( - mapper: (value: T, value: T, iter: this) => Iterable, - context?: mixed - ): OrderedSet; - - flatten(depth?: number): OrderedSet; - flatten(shallow?: boolean): OrderedSet; - - zip( - a: Iterable, - ..._: [] - ): OrderedSet<[T, A]>; - zip( - a: Iterable, - b: Iterable, - ..._: [] - ): OrderedSet<[T, A, B]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): OrderedSet<[T, A, B, C]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): OrderedSet<[T, A, B, C, D]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): OrderedSet<[T, A, B, C, D, E]>; - - zipWith( - zipper: (value: T, a: A) => R, - a: Iterable, - ..._: [] - ): OrderedSet; - zipWith( - zipper: (value: T, a: A, b: B) => R, - a: Iterable, - b: Iterable, - ..._: [] - ): OrderedSet; - zipWith( - zipper: (value: T, a: A, b: B, c: C) => R, - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): OrderedSet; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): OrderedSet; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D, e: E) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): OrderedSet; - } - - declare function isStack(maybeStack: mixed): boolean %checks(maybeStack instanceof Stack); - declare class Stack<+T> extends IndexedCollection { - static (collection?: Iterable): Stack; - - static isStack(maybeStack: mixed): boolean; - static of(...values: T[]): Stack; - - static isStack: typeof isStack; - - size: number; - - peek(): T; - clear(): this; - unshift(...values: U[]): Stack; - unshiftAll(iter: Iterable): Stack; - shift(): this; - push(...values: U[]): Stack; - pushAll(iter: Iterable): Stack; - pop(): this; - - withMutations(mutator: (mutable: this) => mixed): this; - asMutable(): this; - asImmutable(): this; - - // Override specialized return types - - concat(...iters: Array | C>): Stack; - - map( - mapper: (value: T, index: number, iter: this) => M, - context?: mixed - ): Stack; - - flatMap( - mapper: (value: T, index: number, iter: this) => Iterable, - context?: mixed - ): Stack; - - flatten(depth?: number): Stack; - flatten(shallow?: boolean): Stack; - - zip( - a: Iterable, - ..._: [] - ): Stack<[T, A]>; - zip( - a: Iterable, - b: Iterable, - ..._: [] - ): Stack<[T, A, B]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): Stack<[T, A, B, C]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): Stack<[T, A, B, C, D]>; - zip( - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): Stack<[T, A, B, C, D, E]>; - - zipWith( - zipper: (value: T, a: A) => R, - a: Iterable, - ..._: [] - ): Stack; - zipWith( - zipper: (value: T, a: A, b: B) => R, - a: Iterable, - b: Iterable, - ..._: [] - ): Stack; - zipWith( - zipper: (value: T, a: A, b: B, c: C) => R, - a: Iterable, - b: Iterable, - c: Iterable, - ..._: [] - ): Stack; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - ..._: [] - ): Stack; - zipWith( - zipper: (value: T, a: A, b: B, c: C, d: D, e: E) => R, - a: Iterable, - b: Iterable, - c: Iterable, - d: Iterable, - e: Iterable, - ..._: [] - ): Stack; - } - - declare function Range(start?: number, end?: number, step?: number): IndexedSeq; - declare function Repeat(value: T, times?: number): IndexedSeq; - - declare function isRecord(maybeRecord: any): boolean %checks(maybeRecord instanceof RecordClass); - declare class Record { - static (spec: Values, name?: string): Class>; - constructor(spec: Values, name?: string): Class>; - - static isRecord: typeof isRecord; - - static getDescriptiveName(record: RecordClass<*>): string; - } - - declare class RecordClass { - static (values?: $Shape | Iterable<[string, any]>): RecordClass & T; - constructor(values?: $Shape | Iterable<[string, any]>): RecordClass & T; - - size: number; - - has(key: string): boolean; - get>(key: K): /*T[K]*/any; - - equals(other: any): boolean; - hashCode(): number; - - set>(key: K, value: /*T[K]*/any): this; - update>(key: K, updater: (value: /*T[K]*/any) => /*T[K]*/any): this; - merge(...collections: Array<$Shape | Iterable<[string, any]>>): this; - mergeDeep(...collections: Array<$Shape | Iterable<[string, any]>>): this; - - mergeWith( - merger: (oldVal: any, newVal: any, key: $Keys) => any, - ...collections: Array<$Shape | Iterable<[string, any]>> - ): this; - mergeDeepWith( - merger: (oldVal: any, newVal: any, key: any) => any, - ...collections: Array<$Shape | Iterable<[string, any]>> - ): this; - - delete>(key: K): this; - remove>(key: K): this; - clear(): this; - - setIn(keyPath: Iterable, value: any): this; - updateIn(keyPath: Iterable, updater: (value: any) => any): this; - mergeIn(keyPath: Iterable, ...collections: Array): this; - mergeDeepIn(keyPath: Iterable, ...collections: Array): this; - deleteIn(keyPath: Iterable): this; - removeIn(keyPath: Iterable): this; - - toSeq(): KeyedSeq<$Keys, any>; - - toJS(): { [key: $Keys]: mixed }; - toJSON(): T; - toObject(): T; - - withMutations(mutator: (mutable: this) => mixed): this; - asMutable(): this; - asImmutable(): this; - - @@iterator(): Iterator<[$Keys, any]>; - } - - declare function fromJS( - jsValue: mixed, - reviver?: ( - key: string | number, - sequence: KeyedCollection | IndexedCollection, - path?: Array - ) => mixed - ): mixed; - - declare function is(first: mixed, second: mixed): boolean; - declare function hash(value: mixed): number; - - declare function merge( - collection: C, - ...collections: Array | PlainObjInput> - ): C; - declare function mergeDeep( - collection: C, - ...collections: Array | PlainObjInput> - ): C; - declare function mergeDeepWith( - merger: (oldVal: any, newVal: any, key: any) => mixed, - collection: C, - ...collections: Array | PlainObjInput> - ): C; -} \ No newline at end of file diff --git a/desktop/flow-typed/npm/jest_v24.x.x.js b/desktop/flow-typed/npm/jest_v24.x.x.js deleted file mode 100644 index 114cda49a..000000000 --- a/desktop/flow-typed/npm/jest_v24.x.x.js +++ /dev/null @@ -1,1185 +0,0 @@ -type JestMockFn, TReturn> = { - (...args: TArguments): TReturn, - /** - * An object for introspecting mock calls - */ - mock: { - /** - * An array that represents all calls that have been made into this mock - * function. Each call is represented by an array of arguments that were - * passed during the call. - */ - calls: Array, - /** - * An array that contains all the object instances that have been - * instantiated from this mock function. - */ - instances: Array, - /** - * An array that contains all the object results that have been - * returned by this mock function call - */ - results: Array<{ isThrow: boolean, value: TReturn }>, - }, - /** - * Resets all information stored in the mockFn.mock.calls and - * mockFn.mock.instances arrays. Often this is useful when you want to clean - * up a mock's usage data between two assertions. - */ - mockClear(): void, - /** - * Resets all information stored in the mock. This is useful when you want to - * completely restore a mock back to its initial state. - */ - mockReset(): void, - /** - * Removes the mock and restores the initial implementation. This is useful - * when you want to mock functions in certain test cases and restore the - * original implementation in others. Beware that mockFn.mockRestore only - * works when mock was created with jest.spyOn. Thus you have to take care of - * restoration yourself when manually assigning jest.fn(). - */ - mockRestore(): void, - /** - * Accepts a function that should be used as the implementation of the mock. - * The mock itself will still record all calls that go into and instances - * that come from itself -- the only difference is that the implementation - * will also be executed when the mock is called. - */ - mockImplementation( - fn: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Accepts a function that will be used as an implementation of the mock for - * one call to the mocked function. Can be chained so that multiple function - * calls produce different results. - */ - mockImplementationOnce( - fn: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Accepts a string to use in test result output in place of "jest.fn()" to - * indicate which mock function is being referenced. - */ - mockName(name: string): JestMockFn, - /** - * Just a simple sugar function for returning `this` - */ - mockReturnThis(): void, - /** - * Accepts a value that will be returned whenever the mock function is called. - */ - mockReturnValue(value: TReturn): JestMockFn, - /** - * Sugar for only returning a value once inside your mock - */ - mockReturnValueOnce(value: TReturn): JestMockFn, - /** - * Sugar for jest.fn().mockImplementation(() => Promise.resolve(value)) - */ - mockResolvedValue(value: TReturn): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementationOnce(() => Promise.resolve(value)) - */ - mockResolvedValueOnce( - value: TReturn - ): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementation(() => Promise.reject(value)) - */ - mockRejectedValue(value: TReturn): JestMockFn>, - /** - * Sugar for jest.fn().mockImplementationOnce(() => Promise.reject(value)) - */ - mockRejectedValueOnce(value: TReturn): JestMockFn>, -}; - -type JestAsymmetricEqualityType = { - /** - * A custom Jasmine equality tester - */ - asymmetricMatch(value: mixed): boolean, -}; - -type JestCallsType = { - allArgs(): mixed, - all(): mixed, - any(): boolean, - count(): number, - first(): mixed, - mostRecent(): mixed, - reset(): void, -}; - -type JestClockType = { - install(): void, - mockDate(date: Date): void, - tick(milliseconds?: number): void, - uninstall(): void, -}; - -type JestMatcherResult = { - message?: string | (() => string), - pass: boolean, -}; - -type JestMatcher = ( - received: any, - ...actual: Array -) => JestMatcherResult | Promise; - -type JestPromiseType = { - /** - * Use rejects to unwrap the reason of a rejected promise so any other - * matcher can be chained. If the promise is fulfilled the assertion fails. - */ - rejects: JestExpectType, - /** - * Use resolves to unwrap the value of a fulfilled promise so any other - * matcher can be chained. If the promise is rejected the assertion fails. - */ - resolves: JestExpectType, -}; - -/** - * Jest allows functions and classes to be used as test names in test() and - * describe() - */ -type JestTestName = string | Function; - -/** - * Plugin: jest-styled-components - */ - -type JestStyledComponentsMatcherValue = - | string - | JestAsymmetricEqualityType - | RegExp - | typeof undefined; - -type JestStyledComponentsMatcherOptions = { - media?: string, - modifier?: string, - supports?: string, -}; - -type JestStyledComponentsMatchersType = { - toHaveStyleRule( - property: string, - value: JestStyledComponentsMatcherValue, - options?: JestStyledComponentsMatcherOptions - ): void, -}; - -/** - * Plugin: jest-enzyme - */ -type EnzymeMatchersType = { - // 5.x - toBeEmpty(): void, - toBePresent(): void, - // 6.x - toBeChecked(): void, - toBeDisabled(): void, - toBeEmptyRender(): void, - toContainMatchingElement(selector: string): void, - toContainMatchingElements(n: number, selector: string): void, - toContainExactlyOneMatchingElement(selector: string): void, - toContainReact(element: React$Element): void, - toExist(): void, - toHaveClassName(className: string): void, - toHaveHTML(html: string): void, - toHaveProp: ((propKey: string, propValue?: any) => void) & - ((props: {}) => void), - toHaveRef(refName: string): void, - toHaveState: ((stateKey: string, stateValue?: any) => void) & - ((state: {}) => void), - toHaveStyle: ((styleKey: string, styleValue?: any) => void) & - ((style: {}) => void), - toHaveTagName(tagName: string): void, - toHaveText(text: string): void, - toHaveValue(value: any): void, - toIncludeText(text: string): void, - toMatchElement( - element: React$Element, - options?: {| ignoreProps?: boolean, verbose?: boolean |} - ): void, - toMatchSelector(selector: string): void, - // 7.x - toHaveDisplayName(name: string): void, -}; - -// DOM testing library extensions https://github.com/kentcdodds/dom-testing-library#custom-jest-matchers -type DomTestingLibraryType = { - toBeDisabled(): void, - toBeEnabled(): void, - toBeEmpty(): void, - toBeInTheDocument(): void, - toBeVisible(): void, - toContainElement(element: HTMLElement | null): void, - toContainHTML(htmlText: string): void, - toHaveAttribute(name: string, expectedValue?: string): void, - toHaveClass(...classNames: string[]): void, - toHaveFocus(): void, - toHaveFormValues(expectedValues: { [name: string]: any }): void, - toHaveStyle(css: string): void, - toHaveTextContent( - content: string | RegExp, - options?: { normalizeWhitespace: boolean } - ): void, - toBeInTheDOM(): void, -}; - -// Jest JQuery Matchers: https://github.com/unindented/custom-jquery-matchers -type JestJQueryMatchersType = { - toExist(): void, - toHaveLength(len: number): void, - toHaveId(id: string): void, - toHaveClass(className: string): void, - toHaveTag(tag: string): void, - toHaveAttr(key: string, val?: any): void, - toHaveProp(key: string, val?: any): void, - toHaveText(text: string | RegExp): void, - toHaveData(key: string, val?: any): void, - toHaveValue(val: any): void, - toHaveCss(css: { [key: string]: any }): void, - toBeChecked(): void, - toBeDisabled(): void, - toBeEmpty(): void, - toBeHidden(): void, - toBeSelected(): void, - toBeVisible(): void, - toBeFocused(): void, - toBeInDom(): void, - toBeMatchedBy(sel: string): void, - toHaveDescendant(sel: string): void, - toHaveDescendantWithText(sel: string, text: string | RegExp): void, -}; - -// Jest Extended Matchers: https://github.com/jest-community/jest-extended -type JestExtendedMatchersType = { - /** - * Note: Currently unimplemented - * Passing assertion - * - * @param {String} message - */ - // pass(message: string): void; - - /** - * Note: Currently unimplemented - * Failing assertion - * - * @param {String} message - */ - // fail(message: string): void; - - /** - * Use .toBeEmpty when checking if a String '', Array [] or Object {} is empty. - */ - toBeEmpty(): void, - - /** - * Use .toBeOneOf when checking if a value is a member of a given Array. - * @param {Array.<*>} members - */ - toBeOneOf(members: any[]): void, - - /** - * Use `.toBeNil` when checking a value is `null` or `undefined`. - */ - toBeNil(): void, - - /** - * Use `.toSatisfy` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean`. - * @param {Function} predicate - */ - toSatisfy(predicate: (n: any) => boolean): void, - - /** - * Use `.toBeArray` when checking if a value is an `Array`. - */ - toBeArray(): void, - - /** - * Use `.toBeArrayOfSize` when checking if a value is an `Array` of size x. - * @param {Number} x - */ - toBeArrayOfSize(x: number): void, - - /** - * Use `.toIncludeAllMembers` when checking if an `Array` contains all of the same members of a given set. - * @param {Array.<*>} members - */ - toIncludeAllMembers(members: any[]): void, - - /** - * Use `.toIncludeAnyMembers` when checking if an `Array` contains any of the members of a given set. - * @param {Array.<*>} members - */ - toIncludeAnyMembers(members: any[]): void, - - /** - * Use `.toSatisfyAll` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean` for all values in an array. - * @param {Function} predicate - */ - toSatisfyAll(predicate: (n: any) => boolean): void, - - /** - * Use `.toBeBoolean` when checking if a value is a `Boolean`. - */ - toBeBoolean(): void, - - /** - * Use `.toBeTrue` when checking a value is equal (===) to `true`. - */ - toBeTrue(): void, - - /** - * Use `.toBeFalse` when checking a value is equal (===) to `false`. - */ - toBeFalse(): void, - - /** - * Use .toBeDate when checking if a value is a Date. - */ - toBeDate(): void, - - /** - * Use `.toBeFunction` when checking if a value is a `Function`. - */ - toBeFunction(): void, - - /** - * Use `.toHaveBeenCalledBefore` when checking if a `Mock` was called before another `Mock`. - * - * Note: Required Jest version >22 - * Note: Your mock functions will have to be asynchronous to cause the timestamps inside of Jest to occur in a differentJS event loop, otherwise the mock timestamps will all be the same - * - * @param {Mock} mock - */ - toHaveBeenCalledBefore(mock: JestMockFn): void, - - /** - * Use `.toBeNumber` when checking if a value is a `Number`. - */ - toBeNumber(): void, - - /** - * Use `.toBeNaN` when checking a value is `NaN`. - */ - toBeNaN(): void, - - /** - * Use `.toBeFinite` when checking if a value is a `Number`, not `NaN` or `Infinity`. - */ - toBeFinite(): void, - - /** - * Use `.toBePositive` when checking if a value is a positive `Number`. - */ - toBePositive(): void, - - /** - * Use `.toBeNegative` when checking if a value is a negative `Number`. - */ - toBeNegative(): void, - - /** - * Use `.toBeEven` when checking if a value is an even `Number`. - */ - toBeEven(): void, - - /** - * Use `.toBeOdd` when checking if a value is an odd `Number`. - */ - toBeOdd(): void, - - /** - * Use `.toBeWithin` when checking if a number is in between the given bounds of: start (inclusive) and end (exclusive). - * - * @param {Number} start - * @param {Number} end - */ - toBeWithin(start: number, end: number): void, - - /** - * Use `.toBeObject` when checking if a value is an `Object`. - */ - toBeObject(): void, - - /** - * Use `.toContainKey` when checking if an object contains the provided key. - * - * @param {String} key - */ - toContainKey(key: string): void, - - /** - * Use `.toContainKeys` when checking if an object has all of the provided keys. - * - * @param {Array.} keys - */ - toContainKeys(keys: string[]): void, - - /** - * Use `.toContainAllKeys` when checking if an object only contains all of the provided keys. - * - * @param {Array.} keys - */ - toContainAllKeys(keys: string[]): void, - - /** - * Use `.toContainAnyKeys` when checking if an object contains at least one of the provided keys. - * - * @param {Array.} keys - */ - toContainAnyKeys(keys: string[]): void, - - /** - * Use `.toContainValue` when checking if an object contains the provided value. - * - * @param {*} value - */ - toContainValue(value: any): void, - - /** - * Use `.toContainValues` when checking if an object contains all of the provided values. - * - * @param {Array.<*>} values - */ - toContainValues(values: any[]): void, - - /** - * Use `.toContainAllValues` when checking if an object only contains all of the provided values. - * - * @param {Array.<*>} values - */ - toContainAllValues(values: any[]): void, - - /** - * Use `.toContainAnyValues` when checking if an object contains at least one of the provided values. - * - * @param {Array.<*>} values - */ - toContainAnyValues(values: any[]): void, - - /** - * Use `.toContainEntry` when checking if an object contains the provided entry. - * - * @param {Array.} entry - */ - toContainEntry(entry: [string, string]): void, - - /** - * Use `.toContainEntries` when checking if an object contains all of the provided entries. - * - * @param {Array.>} entries - */ - toContainEntries(entries: [string, string][]): void, - - /** - * Use `.toContainAllEntries` when checking if an object only contains all of the provided entries. - * - * @param {Array.>} entries - */ - toContainAllEntries(entries: [string, string][]): void, - - /** - * Use `.toContainAnyEntries` when checking if an object contains at least one of the provided entries. - * - * @param {Array.>} entries - */ - toContainAnyEntries(entries: [string, string][]): void, - - /** - * Use `.toBeExtensible` when checking if an object is extensible. - */ - toBeExtensible(): void, - - /** - * Use `.toBeFrozen` when checking if an object is frozen. - */ - toBeFrozen(): void, - - /** - * Use `.toBeSealed` when checking if an object is sealed. - */ - toBeSealed(): void, - - /** - * Use `.toBeString` when checking if a value is a `String`. - */ - toBeString(): void, - - /** - * Use `.toEqualCaseInsensitive` when checking if a string is equal (===) to another ignoring the casing of both strings. - * - * @param {String} string - */ - toEqualCaseInsensitive(string: string): void, - - /** - * Use `.toStartWith` when checking if a `String` starts with a given `String` prefix. - * - * @param {String} prefix - */ - toStartWith(prefix: string): void, - - /** - * Use `.toEndWith` when checking if a `String` ends with a given `String` suffix. - * - * @param {String} suffix - */ - toEndWith(suffix: string): void, - - /** - * Use `.toInclude` when checking if a `String` includes the given `String` substring. - * - * @param {String} substring - */ - toInclude(substring: string): void, - - /** - * Use `.toIncludeRepeated` when checking if a `String` includes the given `String` substring the correct number of times. - * - * @param {String} substring - * @param {Number} times - */ - toIncludeRepeated(substring: string, times: number): void, - - /** - * Use `.toIncludeMultiple` when checking if a `String` includes all of the given substrings. - * - * @param {Array.} substring - */ - toIncludeMultiple(substring: string[]): void, -}; - -interface JestExpectType { - not: JestExpectType & - EnzymeMatchersType & - DomTestingLibraryType & - JestJQueryMatchersType & - JestStyledComponentsMatchersType & - JestExtendedMatchersType; - /** - * If you have a mock function, you can use .lastCalledWith to test what - * arguments it was last called with. - */ - lastCalledWith(...args: Array): void; - /** - * toBe just checks that a value is what you expect. It uses === to check - * strict equality. - */ - toBe(value: any): void; - /** - * Use .toBeCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toBeCalledWith(...args: Array): void; - /** - * Using exact equality with floating point numbers is a bad idea. Rounding - * means that intuitive things fail. - */ - toBeCloseTo(num: number, delta: any): void; - /** - * Use .toBeDefined to check that a variable is not undefined. - */ - toBeDefined(): void; - /** - * Use .toBeFalsy when you don't care what a value is, you just want to - * ensure a value is false in a boolean context. - */ - toBeFalsy(): void; - /** - * To compare floating point numbers, you can use toBeGreaterThan. - */ - toBeGreaterThan(number: number): void; - /** - * To compare floating point numbers, you can use toBeGreaterThanOrEqual. - */ - toBeGreaterThanOrEqual(number: number): void; - /** - * To compare floating point numbers, you can use toBeLessThan. - */ - toBeLessThan(number: number): void; - /** - * To compare floating point numbers, you can use toBeLessThanOrEqual. - */ - toBeLessThanOrEqual(number: number): void; - /** - * Use .toBeInstanceOf(Class) to check that an object is an instance of a - * class. - */ - toBeInstanceOf(cls: Class<*>): void; - /** - * .toBeNull() is the same as .toBe(null) but the error messages are a bit - * nicer. - */ - toBeNull(): void; - /** - * Use .toBeTruthy when you don't care what a value is, you just want to - * ensure a value is true in a boolean context. - */ - toBeTruthy(): void; - /** - * Use .toBeUndefined to check that a variable is undefined. - */ - toBeUndefined(): void; - /** - * Use .toContain when you want to check that an item is in a list. For - * testing the items in the list, this uses ===, a strict equality check. - */ - toContain(item: any): void; - /** - * Use .toContainEqual when you want to check that an item is in a list. For - * testing the items in the list, this matcher recursively checks the - * equality of all fields, rather than checking for object identity. - */ - toContainEqual(item: any): void; - /** - * Use .toEqual when you want to check that two objects have the same value. - * This matcher recursively checks the equality of all fields, rather than - * checking for object identity. - */ - toEqual(value: any): void; - /** - * Use .toHaveBeenCalled to ensure that a mock function got called. - */ - toHaveBeenCalled(): void; - toBeCalled(): void; - /** - * Use .toHaveBeenCalledTimes to ensure that a mock function got called exact - * number of times. - */ - toHaveBeenCalledTimes(number: number): void; - toBeCalledTimes(number: number): void; - /** - * - */ - toHaveBeenNthCalledWith(nthCall: number, ...args: Array): void; - nthCalledWith(nthCall: number, ...args: Array): void; - /** - * - */ - toHaveReturned(): void; - toReturn(): void; - /** - * - */ - toHaveReturnedTimes(number: number): void; - toReturnTimes(number: number): void; - /** - * - */ - toHaveReturnedWith(value: any): void; - toReturnWith(value: any): void; - /** - * - */ - toHaveLastReturnedWith(value: any): void; - lastReturnedWith(value: any): void; - /** - * - */ - toHaveNthReturnedWith(nthCall: number, value: any): void; - nthReturnedWith(nthCall: number, value: any): void; - /** - * Use .toHaveBeenCalledWith to ensure that a mock function was called with - * specific arguments. - */ - toHaveBeenCalledWith(...args: Array): void; - toBeCalledWith(...args: Array): void; - /** - * Use .toHaveBeenLastCalledWith to ensure that a mock function was last called - * with specific arguments. - */ - toHaveBeenLastCalledWith(...args: Array): void; - lastCalledWith(...args: Array): void; - /** - * Check that an object has a .length property and it is set to a certain - * numeric value. - */ - toHaveLength(number: number): void; - /** - * - */ - toHaveProperty(propPath: string, value?: any): void; - /** - * Use .toMatch to check that a string matches a regular expression or string. - */ - toMatch(regexpOrString: RegExp | string): void; - /** - * Use .toMatchObject to check that a javascript object matches a subset of the properties of an object. - */ - toMatchObject(object: Object | Array): void; - /** - * Use .toStrictEqual to check that a javascript object matches a subset of the properties of an object. - */ - toStrictEqual(value: any): void; - /** - * This ensures that an Object matches the most recent snapshot. - */ - toMatchSnapshot(propertyMatchers?: any, name?: string): void; - /** - * This ensures that an Object matches the most recent snapshot. - */ - toMatchSnapshot(name: string): void; - - toMatchInlineSnapshot(snapshot?: string): void; - toMatchInlineSnapshot(propertyMatchers?: any, snapshot?: string): void; - /** - * Use .toThrow to test that a function throws when it is called. - * If you want to test that a specific error gets thrown, you can provide an - * argument to toThrow. The argument can be a string for the error message, - * a class for the error, or a regex that should match the error. - * - * Alias: .toThrowError - */ - toThrow(message?: string | Error | Class | RegExp): void; - toThrowError(message?: string | Error | Class | RegExp): void; - /** - * Use .toThrowErrorMatchingSnapshot to test that a function throws a error - * matching the most recent snapshot when it is called. - */ - toThrowErrorMatchingSnapshot(): void; - toThrowErrorMatchingInlineSnapshot(snapshot?: string): void; -} - -type JestObjectType = { - /** - * Disables automatic mocking in the module loader. - * - * After this method is called, all `require()`s will return the real - * versions of each module (rather than a mocked version). - */ - disableAutomock(): JestObjectType, - /** - * An un-hoisted version of disableAutomock - */ - autoMockOff(): JestObjectType, - /** - * Enables automatic mocking in the module loader. - */ - enableAutomock(): JestObjectType, - /** - * An un-hoisted version of enableAutomock - */ - autoMockOn(): JestObjectType, - /** - * Clears the mock.calls and mock.instances properties of all mocks. - * Equivalent to calling .mockClear() on every mocked function. - */ - clearAllMocks(): JestObjectType, - /** - * Resets the state of all mocks. Equivalent to calling .mockReset() on every - * mocked function. - */ - resetAllMocks(): JestObjectType, - /** - * Restores all mocks back to their original value. - */ - restoreAllMocks(): JestObjectType, - /** - * Removes any pending timers from the timer system. - */ - clearAllTimers(): void, - /** - * Returns the number of fake timers still left to run. - */ - getTimerCount(): number, - /** - * The same as `mock` but not moved to the top of the expectation by - * babel-jest. - */ - doMock(moduleName: string, moduleFactory?: any): JestObjectType, - /** - * The same as `unmock` but not moved to the top of the expectation by - * babel-jest. - */ - dontMock(moduleName: string): JestObjectType, - /** - * Returns a new, unused mock function. Optionally takes a mock - * implementation. - */ - fn, TReturn>( - implementation?: (...args: TArguments) => TReturn - ): JestMockFn, - /** - * Determines if the given function is a mocked function. - */ - isMockFunction(fn: Function): boolean, - /** - * Given the name of a module, use the automatic mocking system to generate a - * mocked version of the module for you. - */ - genMockFromModule(moduleName: string): any, - /** - * Mocks a module with an auto-mocked version when it is being required. - * - * The second argument can be used to specify an explicit module factory that - * is being run instead of using Jest's automocking feature. - * - * The third argument can be used to create virtual mocks -- mocks of modules - * that don't exist anywhere in the system. - */ - mock( - moduleName: string, - moduleFactory?: any, - options?: Object - ): JestObjectType, - /** - * Returns the actual module instead of a mock, bypassing all checks on - * whether the module should receive a mock implementation or not. - */ - requireActual(moduleName: string): any, - /** - * Returns a mock module instead of the actual module, bypassing all checks - * on whether the module should be required normally or not. - */ - requireMock(moduleName: string): any, - /** - * Resets the module registry - the cache of all required modules. This is - * useful to isolate modules where local state might conflict between tests. - */ - resetModules(): JestObjectType, - - /** - * Creates a sandbox registry for the modules that are loaded inside the - * callback function. This is useful to isolate specific modules for every - * test so that local module state doesn't conflict between tests. - */ - isolateModules(fn: () => void): JestObjectType, - - /** - * Exhausts the micro-task queue (usually interfaced in node via - * process.nextTick). - */ - runAllTicks(): void, - /** - * Exhausts the macro-task queue (i.e., all tasks queued by setTimeout(), - * setInterval(), and setImmediate()). - */ - runAllTimers(): void, - /** - * Exhausts all tasks queued by setImmediate(). - */ - runAllImmediates(): void, - /** - * Executes only the macro task queue (i.e. all tasks queued by setTimeout() - * or setInterval() and setImmediate()). - */ - advanceTimersByTime(msToRun: number): void, - /** - * Executes only the macro task queue (i.e. all tasks queued by setTimeout() - * or setInterval() and setImmediate()). - * - * Renamed to `advanceTimersByTime`. - */ - runTimersToTime(msToRun: number): void, - /** - * Executes only the macro-tasks that are currently pending (i.e., only the - * tasks that have been queued by setTimeout() or setInterval() up to this - * point) - */ - runOnlyPendingTimers(): void, - /** - * Explicitly supplies the mock object that the module system should return - * for the specified module. Note: It is recommended to use jest.mock() - * instead. - */ - setMock(moduleName: string, moduleExports: any): JestObjectType, - /** - * Indicates that the module system should never return a mocked version of - * the specified module from require() (e.g. that it should always return the - * real module). - */ - unmock(moduleName: string): JestObjectType, - /** - * Instructs Jest to use fake versions of the standard timer functions - * (setTimeout, setInterval, clearTimeout, clearInterval, nextTick, - * setImmediate and clearImmediate). - */ - useFakeTimers(): JestObjectType, - /** - * Instructs Jest to use the real versions of the standard timer functions. - */ - useRealTimers(): JestObjectType, - /** - * Creates a mock function similar to jest.fn but also tracks calls to - * object[methodName]. - */ - spyOn( - object: Object, - methodName: string, - accessType?: 'get' | 'set' - ): JestMockFn, - /** - * Set the default timeout interval for tests and before/after hooks in milliseconds. - * Note: The default timeout interval is 5 seconds if this method is not called. - */ - setTimeout(timeout: number): JestObjectType, -}; - -type JestSpyType = { - calls: JestCallsType, -}; - -/** Runs this function after every test inside this context */ -declare function afterEach( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function before every test inside this context */ -declare function beforeEach( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function after all tests have finished inside this context */ -declare function afterAll( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** Runs this function before any tests have started inside this context */ -declare function beforeAll( - fn: (done: () => void) => ?Promise, - timeout?: number -): void; - -/** A context for grouping tests together */ -declare var describe: { - /** - * Creates a block that groups together several related tests in one "test suite" - */ - (name: JestTestName, fn: () => void): void, - - /** - * Only run this describe block - */ - only(name: JestTestName, fn: () => void): void, - - /** - * Skip running this describe block - */ - skip(name: JestTestName, fn: () => void): void, - - /** - * each runs this test against array of argument arrays per each run - * - * @param {table} table of Test - */ - each( - ...table: Array | mixed> | [Array, string] - ): ( - name: JestTestName, - fn?: (...args: Array) => ?Promise, - timeout?: number - ) => void, -}; - -/** An individual test unit */ -declare var it: { - /** - * An individual test unit - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - ( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void, - - /** - * Only run this test - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - only( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): { - each( - ...table: Array | mixed> | [Array, string] - ): ( - name: JestTestName, - fn?: (...args: Array) => ?Promise, - timeout?: number - ) => void, - }, - - /** - * Skip running this test - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - skip( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void, - - /** - * Highlight planned tests in the summary output - * - * @param {String} Name of Test to do - */ - todo(name: string): void, - - /** - * Run the test concurrently - * - * @param {JestTestName} Name of Test - * @param {Function} Test - * @param {number} Timeout for the test, in milliseconds. - */ - concurrent( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): void, - - /** - * each runs this test against array of argument arrays per each run - * - * @param {table} table of Test - */ - each( - ...table: Array | mixed> | [Array, string] - ): ( - name: JestTestName, - fn?: (...args: Array) => ?Promise, - timeout?: number - ) => void, -}; - -declare function fit( - name: JestTestName, - fn: (done: () => void) => ?Promise, - timeout?: number -): void; -/** An individual test unit */ -declare var test: typeof it; -/** A disabled group of tests */ -declare var xdescribe: typeof describe; -/** A focused group of tests */ -declare var fdescribe: typeof describe; -/** A disabled individual test */ -declare var xit: typeof it; -/** A disabled individual test */ -declare var xtest: typeof it; - -type JestPrettyFormatColors = { - comment: { close: string, open: string }, - content: { close: string, open: string }, - prop: { close: string, open: string }, - tag: { close: string, open: string }, - value: { close: string, open: string }, -}; - -type JestPrettyFormatIndent = string => string; -type JestPrettyFormatRefs = Array; -type JestPrettyFormatPrint = any => string; -type JestPrettyFormatStringOrNull = string | null; - -type JestPrettyFormatOptions = {| - callToJSON: boolean, - edgeSpacing: string, - escapeRegex: boolean, - highlight: boolean, - indent: number, - maxDepth: number, - min: boolean, - plugins: JestPrettyFormatPlugins, - printFunctionName: boolean, - spacing: string, - theme: {| - comment: string, - content: string, - prop: string, - tag: string, - value: string, - |}, -|}; - -type JestPrettyFormatPlugin = { - print: ( - val: any, - serialize: JestPrettyFormatPrint, - indent: JestPrettyFormatIndent, - opts: JestPrettyFormatOptions, - colors: JestPrettyFormatColors - ) => string, - test: any => boolean, -}; - -type JestPrettyFormatPlugins = Array; - -/** The expect function is used every time you want to test a value */ -declare var expect: { - /** The object that you want to make assertions against */ - ( - value: any - ): JestExpectType & - JestPromiseType & - EnzymeMatchersType & - DomTestingLibraryType & - JestJQueryMatchersType & - JestStyledComponentsMatchersType & - JestExtendedMatchersType, - - /** Add additional Jasmine matchers to Jest's roster */ - extend(matchers: { [name: string]: JestMatcher }): void, - /** Add a module that formats application-specific data structures. */ - addSnapshotSerializer(pluginModule: JestPrettyFormatPlugin): void, - assertions(expectedAssertions: number): void, - hasAssertions(): void, - any(value: mixed): JestAsymmetricEqualityType, - anything(): any, - arrayContaining(value: Array): Array, - objectContaining(value: Object): Object, - /** Matches any received string that contains the exact expected string. */ - stringContaining(value: string): string, - stringMatching(value: string | RegExp): string, - not: { - arrayContaining: (value: $ReadOnlyArray) => Array, - objectContaining: (value: {}) => Object, - stringContaining: (value: string) => string, - stringMatching: (value: string | RegExp) => string, - }, -}; - -// TODO handle return type -// http://jasmine.github.io/2.4/introduction.html#section-Spies -declare function spyOn(value: mixed, method: string): Object; - -/** Holds all functions related to manipulating test runner */ -declare var jest: JestObjectType; - -/** - * The global Jasmine object, this is generally not exposed as the public API, - * using features inside here could break in later versions of Jest. - */ -declare var jasmine: { - DEFAULT_TIMEOUT_INTERVAL: number, - any(value: mixed): JestAsymmetricEqualityType, - anything(): any, - arrayContaining(value: Array): Array, - clock(): JestClockType, - createSpy(name: string): JestSpyType, - createSpyObj( - baseName: string, - methodNames: Array - ): { [methodName: string]: JestSpyType }, - objectContaining(value: Object): Object, - stringMatching(value: string): string, -}; - diff --git a/desktop/flow-typed/npm/lodash.debounce_vx.x.x.js b/desktop/flow-typed/npm/lodash.debounce_vx.x.x.js deleted file mode 100644 index 688e28bd6..000000000 --- a/desktop/flow-typed/npm/lodash.debounce_vx.x.x.js +++ /dev/null @@ -1,33 +0,0 @@ -// flow-typed signature: 95241cb8305cb4cbda994a489dff963f -// flow-typed version: <>/lodash.debounce_v4.0.8/flow_v0.76.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'lodash.debounce' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'lodash.debounce' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ - - -// Filename aliases -declare module 'lodash.debounce/index' { - declare module.exports: $Exports<'lodash.debounce'>; -} -declare module 'lodash.debounce/index.js' { - declare module.exports: $Exports<'lodash.debounce'>; -} diff --git a/desktop/flow-typed/npm/lodash.memoize_vx.x.x.js b/desktop/flow-typed/npm/lodash.memoize_vx.x.x.js deleted file mode 100644 index bc48e001c..000000000 --- a/desktop/flow-typed/npm/lodash.memoize_vx.x.x.js +++ /dev/null @@ -1,19 +0,0 @@ -// flow-typed signature: 0eceddcdb50aa9bf578c375a12ef9aad -// flow-typed version: <>/lodash.memoize_v4.1.2/flow_v0.91.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'lodash.memoize' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'lodash.memoize' { - declare function memoize(fn: T, resolver?: Function): T; - declare export default typeof memoize; -} diff --git a/desktop/flow-typed/npm/lodash_v4.x.x.js b/desktop/flow-typed/npm/lodash_v4.x.x.js deleted file mode 100644 index 9a019c870..000000000 --- a/desktop/flow-typed/npm/lodash_v4.x.x.js +++ /dev/null @@ -1,6083 +0,0 @@ -declare module "lodash" { - declare type __CurriedFunction1 = (...r: [AA]) => R; - declare type CurriedFunction1 = __CurriedFunction1; - - declare type __CurriedFunction2 = (( - ...r: [AA] - ) => CurriedFunction1) & - ((...r: [AA, BB]) => R); - declare type CurriedFunction2 = __CurriedFunction2; - - declare type __CurriedFunction3 = (( - ...r: [AA] - ) => CurriedFunction2) & - ((...r: [AA, BB]) => CurriedFunction1) & - ((...r: [AA, BB, CC]) => R); - declare type CurriedFunction3 = __CurriedFunction3< - A, - B, - C, - R, - *, - *, - * - >; - - declare type __CurriedFunction4< - A, - B, - C, - D, - R, - AA: A, - BB: B, - CC: C, - DD: D - > = ((...r: [AA]) => CurriedFunction3) & - ((...r: [AA, BB]) => CurriedFunction2) & - ((...r: [AA, BB, CC]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD]) => R); - declare type CurriedFunction4 = __CurriedFunction4< - A, - B, - C, - D, - R, - *, - *, - *, - * - >; - - declare type __CurriedFunction5< - A, - B, - C, - D, - E, - R, - AA: A, - BB: B, - CC: C, - DD: D, - EE: E - > = ((...r: [AA]) => CurriedFunction4) & - ((...r: [AA, BB]) => CurriedFunction3) & - ((...r: [AA, BB, CC]) => CurriedFunction2) & - ((...r: [AA, BB, CC, DD]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD, EE]) => R); - declare type CurriedFunction5 = __CurriedFunction5< - A, - B, - C, - D, - E, - R, - *, - *, - *, - *, - * - >; - - declare type __CurriedFunction6< - A, - B, - C, - D, - E, - F, - R, - AA: A, - BB: B, - CC: C, - DD: D, - EE: E, - FF: F - > = ((...r: [AA]) => CurriedFunction5) & - ((...r: [AA, BB]) => CurriedFunction4) & - ((...r: [AA, BB, CC]) => CurriedFunction3) & - ((...r: [AA, BB, CC, DD]) => CurriedFunction2) & - ((...r: [AA, BB, CC, DD, EE]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD, EE, FF]) => R); - declare type CurriedFunction6 = __CurriedFunction6< - A, - B, - C, - D, - E, - F, - R, - *, - *, - *, - *, - *, - * - >; - - declare type Curry = (((...r: [A]) => R) => CurriedFunction1) & - (((...r: [A, B]) => R) => CurriedFunction2) & - (((...r: [A, B, C]) => R) => CurriedFunction3) & - (( - (...r: [A, B, C, D]) => R - ) => CurriedFunction4) & - (( - (...r: [A, B, C, D, E]) => R - ) => CurriedFunction5) & - (( - (...r: [A, B, C, D, E, F]) => R - ) => CurriedFunction6); - - declare type UnaryFn = (a: A) => R; - - declare type TemplateSettings = { - escape?: RegExp, - evaluate?: RegExp, - imports?: Object, - interpolate?: RegExp, - variable?: string - }; - - declare type TruncateOptions = { - length?: number, - omission?: string, - separator?: RegExp | string - }; - - declare type DebounceOptions = { - leading?: boolean, - maxWait?: number, - trailing?: boolean - }; - - declare type ThrottleOptions = { - leading?: boolean, - trailing?: boolean - }; - - declare type NestedArray = Array>; - - declare type matchesIterateeShorthand = Object; - declare type matchesPropertyIterateeShorthand = [string, any]; - declare type propertyIterateeShorthand = string; - - declare type OPredicate = - | ((value: A, key: string, object: O) => any) - | matchesIterateeShorthand - | matchesPropertyIterateeShorthand - | propertyIterateeShorthand; - - declare type OIterateeWithResult = - | Object - | string - | ((value: V, key: string, object: O) => R); - declare type OIteratee = OIterateeWithResult; - declare type OFlatMapIteratee = OIterateeWithResult>; - - declare type Predicate = - | ((value: T, index: number, array: Array) => any) - | matchesIterateeShorthand - | matchesPropertyIterateeShorthand - | propertyIterateeShorthand; - - declare type _ValueOnlyIteratee = (value: T) => mixed; - declare type ValueOnlyIteratee = _ValueOnlyIteratee | string; - declare type _Iteratee = ( - item: T, - index: number, - array: ?Array - ) => mixed; - declare type Iteratee = _Iteratee | Object | string; - declare type FlatMapIteratee = - | ((item: T, index: number, array: ?$ReadOnlyArray) => Array) - | Object - | string; - declare type Comparator = (item: T, item2: T) => boolean; - - declare type MapIterator = - | ((item: T, index: number, array: Array) => U) - | propertyIterateeShorthand; - - declare type ReadOnlyMapIterator = - | ((item: T, index: number, array: $ReadOnlyArray) => U) - | propertyIterateeShorthand; - - declare type OMapIterator = - | ((item: T, key: string, object: O) => U) - | propertyIterateeShorthand; - - declare class Lodash { - // Array - chunk(array?: ?Array, size?: ?number): Array>; - compact(array?: ?Array): Array; - concat( - base?: ?$ReadOnlyArray, - ...elements: Array - ): Array; - difference( - array?: ?$ReadOnlyArray, - ...values: Array> - ): Array; - differenceBy( - array?: ?$ReadOnlyArray, - values?: ?$ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): T[]; - differenceWith( - array?: ?$ReadOnlyArray, - values?: ?$ReadOnlyArray, - comparator?: ?Comparator - ): T[]; - drop(array?: ?Array, n?: ?number): Array; - dropRight(array?: ?Array, n?: ?number): Array; - dropRightWhile(array?: ?Array, predicate?: ?Predicate): Array; - dropWhile(array?: ?Array, predicate?: ?Predicate): Array; - fill( - array?: ?Array, - value?: ?U, - start?: ?number, - end?: ?number - ): Array; - findIndex( - array: $ReadOnlyArray, - predicate?: ?Predicate, - fromIndex?: ?number - ): number; - findIndex( - array: void | null, - predicate?: ?Predicate, - fromIndex?: ?number - ): -1; - findLastIndex( - array: $ReadOnlyArray, - predicate?: ?Predicate, - fromIndex?: ?number - ): number; - findLastIndex( - array: void | null, - predicate?: ?Predicate, - fromIndex?: ?number - ): -1; - // alias of _.head - first(array: ?$ReadOnlyArray): T; - flatten(array?: ?Array | X>): Array; - flattenDeep(array?: ?(any[])): Array; - flattenDepth(array?: ?(any[]), depth?: ?number): any[]; - fromPairs(pairs?: ?Array<[A, B]>): { [key: A]: B }; - head(array: ?$ReadOnlyArray): T; - indexOf(array: Array, value: T, fromIndex?: number): number; - indexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; - initial(array: ?Array): Array; - intersection(...arrays?: Array<$ReadOnlyArray>): Array; - //Workaround until (...parameter: T, parameter2: U) works - intersectionBy( - a1?: ?$ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): Array; - intersectionBy( - a1?: ?$ReadOnlyArray, - a2?: ?$ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): Array; - intersectionBy( - a1?: ?$ReadOnlyArray, - a2?: ?$ReadOnlyArray, - a3?: ?$ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): Array; - intersectionBy( - a1?: ?$ReadOnlyArray, - a2?: ?$ReadOnlyArray, - a3?: ?$ReadOnlyArray, - a4?: ?$ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): Array; - //Workaround until (...parameter: T, parameter2: U) works - intersectionWith( - a1?: ?$ReadOnlyArray, - comparator?: ?Comparator - ): Array; - intersectionWith( - a1?: ?$ReadOnlyArray, - a2?: ?$ReadOnlyArray, - comparator?: ?Comparator - ): Array; - intersectionWith( - a1?: ?$ReadOnlyArray, - a2?: ?$ReadOnlyArray, - a3?: ?$ReadOnlyArray, - comparator?: ?Comparator - ): Array; - intersectionWith( - a1?: ?$ReadOnlyArray, - a2?: ?$ReadOnlyArray, - a3?: ?$ReadOnlyArray, - a4?: ?$ReadOnlyArray, - comparator?: ?Comparator - ): Array; - join(array: Array, separator?: ?string): string; - join(array: void | null, separator?: ?string): ""; - last(array: ?$ReadOnlyArray): T; - lastIndexOf(array: Array, value?: ?T, fromIndex?: ?number): number; - lastIndexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; - nth(array: T[], n?: ?number): T; - nth(array: void | null, n?: ?number): void; - pull(array: Array, ...values?: Array): Array; - pull(array: T, ...values?: Array): T; - pullAll(array: Array, values?: ?Array): Array; - pullAll(array: T, values?: ?Array): T; - pullAllBy( - array: Array, - values?: ?Array, - iteratee?: ?ValueOnlyIteratee - ): Array; - pullAllBy( - array: T, - values?: ?Array, - iteratee?: ?ValueOnlyIteratee - ): T; - pullAllWith(array: T[], values?: ?(T[]), comparator?: ?Function): T[]; - pullAllWith( - array: T, - values?: ?Array, - comparator?: ?Function - ): T; - pullAt(array?: ?Array, ...indexed?: Array): Array; - pullAt(array?: ?Array, indexed?: ?Array): Array; - remove(array?: ?Array, predicate?: ?Predicate): Array; - reverse(array: Array): Array; - reverse(array: T): T; - slice( - array?: ?$ReadOnlyArray, - start?: ?number, - end?: ?number - ): Array; - sortedIndex(array: Array, value: T): number; - sortedIndex(array: void | null, value: ?T): 0; - sortedIndexBy( - array: Array, - value?: ?T, - iteratee?: ?ValueOnlyIteratee - ): number; - sortedIndexBy( - array: void | null, - value?: ?T, - iteratee?: ?ValueOnlyIteratee - ): 0; - sortedIndexOf(array: Array, value: T): number; - sortedIndexOf(array: void | null, value?: ?T): -1; - sortedLastIndex(array: Array, value: T): number; - sortedLastIndex(array: void | null, value?: ?T): 0; - sortedLastIndexBy( - array: Array, - value: T, - iteratee?: ValueOnlyIteratee - ): number; - sortedLastIndexBy( - array: void | null, - value?: ?T, - iteratee?: ?ValueOnlyIteratee - ): 0; - sortedLastIndexOf(array: Array, value: T): number; - sortedLastIndexOf(array: void | null, value?: ?T): -1; - sortedUniq(array?: ?Array): Array; - sortedUniqBy( - array?: ?Array, - iteratee?: ?ValueOnlyIteratee - ): Array; - tail(array?: ?Array): Array; - take(array?: ?Array, n?: ?number): Array; - takeRight(array?: ?Array, n?: ?number): Array; - takeRightWhile(array?: ?Array, predicate?: ?Predicate): Array; - takeWhile(array?: ?Array, predicate?: ?Predicate): Array; - union(...arrays?: Array<$ReadOnlyArray>): Array; - //Workaround until (...parameter: T, parameter2: U) works - unionBy( - a1?: ?$ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): Array; - unionBy( - a1?: ?$ReadOnlyArray, - a2: $ReadOnlyArray, - iteratee?: ValueOnlyIteratee - ): Array; - unionBy( - a1: $ReadOnlyArray, - a2: $ReadOnlyArray, - a3: $ReadOnlyArray, - iteratee?: ValueOnlyIteratee - ): Array; - unionBy( - a1: $ReadOnlyArray, - a2: $ReadOnlyArray, - a3: $ReadOnlyArray, - a4: $ReadOnlyArray, - iteratee?: ValueOnlyIteratee - ): Array; - //Workaround until (...parameter: T, parameter2: U) works - unionWith(a1?: ?Array, comparator?: ?Comparator): Array; - unionWith( - a1: $ReadOnlyArray, - a2: $ReadOnlyArray, - comparator?: Comparator - ): Array; - unionWith( - a1: $ReadOnlyArray, - a2: $ReadOnlyArray, - a3: $ReadOnlyArray, - comparator?: Comparator - ): Array; - unionWith( - a1: $ReadOnlyArray, - a2: $ReadOnlyArray, - a3: $ReadOnlyArray, - a4: $ReadOnlyArray, - comparator?: Comparator - ): Array; - uniq(array?: ?Array): Array; - uniqBy(array?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; - uniqWith(array?: ?Array, comparator?: ?Comparator): Array; - unzip(array?: ?Array): Array; - unzipWith(array: ?Array, iteratee?: ?Iteratee): Array; - without(array?: ?$ReadOnlyArray, ...values?: Array): Array; - xor(...array: Array>): Array; - //Workaround until (...parameter: T, parameter2: U) works - xorBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; - xorBy( - a1: Array, - a2: Array, - iteratee?: ValueOnlyIteratee - ): Array; - xorBy( - a1: Array, - a2: Array, - a3: Array, - iteratee?: ValueOnlyIteratee - ): Array; - xorBy( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - iteratee?: ValueOnlyIteratee - ): Array; - //Workaround until (...parameter: T, parameter2: U) works - xorWith(a1?: ?Array, comparator?: ?Comparator): Array; - xorWith( - a1: Array, - a2: Array, - comparator?: Comparator - ): Array; - xorWith( - a1: Array, - a2: Array, - a3: Array, - comparator?: Comparator - ): Array; - xorWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - comparator?: Comparator - ): Array; - zip(a1?: ?(A[]), a2?: ?(B[])): Array<[A, B]>; - zip(a1: A[], a2: B[], a3: C[]): Array<[A, B, C]>; - zip(a1: A[], a2: B[], a3: C[], a4: D[]): Array<[A, B, C, D]>; - zip( - a1: A[], - a2: B[], - a3: C[], - a4: D[], - a5: E[] - ): Array<[A, B, C, D, E]>; - - zipObject(props: Array, values?: ?Array): { [key: K]: V }; - zipObject(props: void | null, values?: ?Array): {}; - zipObjectDeep(props: any[], values?: ?any): Object; - zipObjectDeep(props: void | null, values?: ?any): {}; - - zipWith(a1?: ?Array): Array<[A]>; - zipWith(a1: Array, iteratee: (A) => T): Array; - - zipWith(a1: Array, a2: Array): Array<[A, B]>; - zipWith( - a1: Array, - a2: Array, - iteratee: (A, B) => T - ): Array; - - zipWith( - a1: Array, - a2: Array, - a3: Array - ): Array<[A, B, C]>; - zipWith( - a1: Array, - a2: Array, - a3: Array, - iteratee: (A, B, C) => T - ): Array; - - zipWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array - ): Array<[A, B, C, D]>; - zipWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - iteratee: (A, B, C, D) => T - ): Array; - - // Collection - countBy(array: Array, iteratee?: ?ValueOnlyIteratee): Object; - countBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; - countBy(object: T, iteratee?: ?ValueOnlyIteratee): Object; - // alias of _.forEach - each(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; - each(array: T, iteratee?: ?Iteratee): T; - each(object: T, iteratee?: ?OIteratee): T; - // alias of _.forEachRight - eachRight(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; - eachRight(array: T, iteratee?: ?Iteratee): T; - eachRight(object: T, iteratee?: OIteratee): T; - every(array?: ?$ReadOnlyArray, iteratee?: ?Iteratee): boolean; - every(object: T, iteratee?: OIteratee): boolean; - filter(array?: ?$ReadOnlyArray, predicate?: ?Predicate): Array; - filter( - object: T, - predicate?: OPredicate - ): Array; - find( - array: $ReadOnlyArray, - predicate?: ?Predicate, - fromIndex?: ?number - ): T | void; - find( - array: void | null, - predicate?: ?Predicate, - fromIndex?: ?number - ): void; - find( - object: T, - predicate?: OPredicate, - fromIndex?: number - ): V; - findLast( - array: ?$ReadOnlyArray, - predicate?: ?Predicate, - fromIndex?: ?number - ): T | void; - findLast( - object: T, - predicate?: ?OPredicate - ): V; - flatMap( - array?: ?$ReadOnlyArray, - iteratee?: ?FlatMapIteratee - ): Array; - flatMap( - object: T, - iteratee?: OFlatMapIteratee - ): Array; - flatMapDeep( - array?: ?$ReadOnlyArray, - iteratee?: ?FlatMapIteratee - ): Array; - flatMapDeep( - object: T, - iteratee?: ?OFlatMapIteratee - ): Array; - flatMapDepth( - array?: ?Array, - iteratee?: ?FlatMapIteratee, - depth?: ?number - ): Array; - flatMapDepth( - object: T, - iteratee?: OFlatMapIteratee, - depth?: number - ): Array; - forEach(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; - forEach(array: T, iteratee?: ?Iteratee): T; - forEach(object: T, iteratee?: ?OIteratee): T; - forEachRight( - array: $ReadOnlyArray, - iteratee?: ?Iteratee - ): Array; - forEachRight(array: T, iteratee?: ?Iteratee): T; - forEachRight(object: T, iteratee?: ?OIteratee): T; - groupBy( - array: $ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): { [key: V]: Array }; - groupBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; - groupBy( - object: T, - iteratee?: ValueOnlyIteratee - ): { [key: V]: Array }; - includes( - array: $ReadOnlyArray, - value: T, - fromIndex?: ?number - ): boolean; - includes(array: void | null, value?: ?T, fromIndex?: ?number): false; - includes(object: T, value: any, fromIndex?: number): boolean; - includes(str: string, value: string, fromIndex?: number): boolean; - invokeMap( - array?: ?$ReadOnlyArray, - path?: ?((value: T) => Array | string) | Array | string, - ...args?: Array - ): Array; - invokeMap( - object: T, - path: ((value: any) => Array | string) | Array | string, - ...args?: Array - ): Array; - keyBy( - array: $ReadOnlyArray, - iteratee?: ?ValueOnlyIteratee - ): { [key: V]: T }; - keyBy(array: void | null, iteratee?: ?ValueOnlyIteratee<*>): {}; - keyBy( - object: T, - iteratee?: ?ValueOnlyIteratee - ): { [key: V]: A }; - map(array?: ?Array, iteratee?: ?MapIterator): Array; - map( - array: ?$ReadOnlyArray, - iteratee?: ReadOnlyMapIterator - ): Array; - map( - object: ?T, - iteratee?: OMapIterator - ): Array; - map( - str: ?string, - iteratee?: (char: string, index: number, str: string) => any - ): string; - orderBy( - array: $ReadOnlyArray, - iteratees?: ?$ReadOnlyArray> | ?string, - orders?: ?$ReadOnlyArray<"asc" | "desc"> | ?string - ): Array; - orderBy( - array: null | void, - iteratees?: ?$ReadOnlyArray> | ?string, - orders?: ?$ReadOnlyArray<"asc" | "desc"> | ?string - ): Array; - orderBy( - object: T, - iteratees?: $ReadOnlyArray> | string, - orders?: $ReadOnlyArray<"asc" | "desc"> | string - ): Array; - partition( - array?: ?Array, - predicate?: ?Predicate - ): [Array, Array]; - partition( - object: T, - predicate?: OPredicate - ): [Array, Array]; - reduce( - array: $ReadOnlyArray, - iteratee?: ( - accumulator: U, - value: T, - index: number, - array: ?Array - ) => U, - accumulator?: U - ): U; - reduce( - array: void | null, - iteratee?: ?( - accumulator: U, - value: T, - index: number, - array: ?Array - ) => U, - accumulator?: ?U - ): void | null; - reduce( - object: T, - iteratee?: (accumulator: U, value: any, key: string, object: T) => U, - accumulator?: U - ): U; - reduceRight( - array: void | null, - iteratee?: ?( - accumulator: U, - value: T, - index: number, - array: ?Array - ) => U, - accumulator?: ?U - ): void | null; - reduceRight( - array: $ReadOnlyArray, - iteratee?: ?( - accumulator: U, - value: T, - index: number, - array: ?Array - ) => U, - accumulator?: ?U - ): U; - reduceRight( - object: T, - iteratee?: ?(accumulator: U, value: any, key: string, object: T) => U, - accumulator?: ?U - ): U; - reject(array: ?$ReadOnlyArray, predicate?: Predicate): Array; - reject( - object?: ?T, - predicate?: ?OPredicate - ): Array; - sample(array: ?Array): T; - sample(object: T): V; - sampleSize(array?: ?Array, n?: ?number): Array; - sampleSize(object: T, n?: number): Array; - shuffle(array: ?Array): Array; - shuffle(object: T): Array; - size(collection: $ReadOnlyArray | Object | string): number; - some(array: ?$ReadOnlyArray, predicate?: Predicate): boolean; - some(array: void | null, predicate?: ?Predicate): false; - some( - object?: ?T, - predicate?: OPredicate - ): boolean; - sortBy( - array: ?$ReadOnlyArray, - ...iteratees?: $ReadOnlyArray> - ): Array; - sortBy( - array: ?$ReadOnlyArray, - iteratees?: $ReadOnlyArray> - ): Array; - sortBy( - object: T, - ...iteratees?: Array> - ): Array; - sortBy( - object: T, - iteratees?: $ReadOnlyArray> - ): Array; - - // Date - now(): number; - - // Function - after(n: number, fn: Function): Function; - ary(func: Function, n?: number): Function; - before(n: number, fn: Function): Function; - bind(func: Function, thisArg: any, ...partials: Array): Function; - bindKey(obj?: ?Object, key?: ?string, ...partials?: Array): Function; - curry: Curry; - curry(func: Function, arity?: number): Function; - curryRight(func: Function, arity?: number): Function; - debounce(func: F, wait?: number, options?: DebounceOptions): F; - defer(func: Function, ...args?: Array): TimeoutID; - delay(func: Function, wait: number, ...args?: Array): TimeoutID; - flip(func: Function): Function; - memoize(func: F, resolver?: Function): F; - negate(predicate: Function): Function; - once(func: Function): Function; - overArgs(func?: ?Function, ...transforms?: Array): Function; - overArgs(func?: ?Function, transforms?: ?Array): Function; - partial(func: Function, ...partials: any[]): Function; - partialRight(func: Function, ...partials: Array): Function; - partialRight(func: Function, partials: Array): Function; - rearg(func: Function, ...indexes: Array): Function; - rearg(func: Function, indexes: Array): Function; - rest(func: Function, start?: number): Function; - spread(func: Function): Function; - throttle( - func: Function, - wait?: number, - options?: ThrottleOptions - ): Function; - unary(func: Function): Function; - wrap(value?: any, wrapper?: ?Function): Function; - - // Lang - castArray(value: *): any[]; - clone(value: T): T; - cloneDeep(value: T): T; - cloneDeepWith( - value: T, - customizer?: ?(value: T, key: number | string, object: T, stack: any) => U - ): U; - cloneWith( - value: T, - customizer?: ?(value: T, key: number | string, object: T, stack: any) => U - ): U; - conformsTo( - source: T, - predicates: T & { [key: string]: (x: any) => boolean } - ): boolean; - eq(value: any, other: any): boolean; - gt(value: any, other: any): boolean; - gte(value: any, other: any): boolean; - isArguments(value: void | null): false; - isArguments(value: any): boolean; - isArray(value: Array): true; - isArray(value: any): false; - isArrayBuffer(value: ArrayBuffer): true; - isArrayBuffer(value: any): false; - isArrayLike(value: Array | string | { length: number }): true; - isArrayLike(value: any): false; - isArrayLikeObject(value: { length: number } | Array): true; - isArrayLikeObject(value: any): false; - isBoolean(value: boolean): true; - isBoolean(value: any): false; - isBuffer(value: void | null): false; - isBuffer(value: any): boolean; - isDate(value: Date): true; - isDate(value: any): false; - isElement(value: Element): true; - isElement(value: any): false; - isEmpty(value: void | null | "" | {} | [] | number | boolean): true; - isEmpty(value: any): boolean; - isEqual(value: any, other: any): boolean; - isEqualWith( - value?: ?T, - other?: ?U, - customizer?: ?( - objValue: any, - otherValue: any, - key: number | string, - object: T, - other: U, - stack: any - ) => boolean | void - ): boolean; - isError(value: Error): true; - isError(value: any): false; - isFinite(value: number): boolean; - isFinite(value: any): false; - isFunction(value: Function): true; - isFunction(value: any): false; - isInteger(value: number): boolean; - isInteger(value: any): false; - isLength(value: void | null): false; - isLength(value: any): boolean; - isMap(value: Map): true; - isMap(value: any): false; - isMatch(object?: ?Object, source?: ?Object): boolean; - isMatchWith( - object?: ?T, - source?: ?U, - customizer?: ?( - objValue: any, - srcValue: any, - key: number | string, - object: T, - source: U - ) => boolean | void - ): boolean; - isNaN(value: number): boolean; - isNaN(value: any): false; - isNative(value: number | string | void | null | Object): false; - isNative(value: any): boolean; - isNil(value: void | null): true; - isNil(value: any): false; - isNull(value: null): true; - isNull(value: any): false; - isNumber(value: number): true; - isNumber(value: any): false; - isObject(value: Object): true; - isObject(value: any): false; - isObjectLike(value: void | null): false; - isObjectLike(value: any): boolean; - isPlainObject(value: Object): true; - isPlainObject(value: any): false; - isRegExp(value: RegExp): true; - isRegExp(value: any): false; - isSafeInteger(value: number): boolean; - isSafeInteger(value: any): false; - isSet(value: Set): true; - isSet(value: any): false; - isString(value: string): true; - isString(value: any): false; - isSymbol(value: Symbol): true; - isSymbol(value: any): false; - isTypedArray(value: $TypedArray): true; - isTypedArray(value: any): false; - isUndefined(value: void): true; - isUndefined(value: any): false; - isWeakMap(value: WeakMap): true; - isWeakMap(value: any): false; - isWeakSet(value: WeakSet): true; - isWeakSet(value: any): false; - lt(value: any, other: any): boolean; - lte(value: any, other: any): boolean; - toArray(value: any): Array; - toFinite(value: void | null): 0; - toFinite(value: any): number; - toInteger(value: void | null): 0; - toInteger(value: any): number; - toLength(value: void | null): 0; - toLength(value: any): number; - toNumber(value: void | null): 0; - toNumber(value: any): number; - toPlainObject(value: any): Object; - toSafeInteger(value: void | null): 0; - toSafeInteger(value: any): number; - toString(value: void | null): ""; - toString(value: any): string; - - // Math - add(augend: number, addend: number): number; - ceil(number: number, precision?: number): number; - divide(dividend: number, divisor: number): number; - floor(number: number, precision?: number): number; - max(array: ?Array): T; - maxBy(array: ?$ReadOnlyArray, iteratee?: Iteratee): T; - mean(array: Array<*>): number; - meanBy(array: Array, iteratee?: Iteratee): number; - min(array: ?Array): T; - minBy(array: ?$ReadOnlyArray, iteratee?: Iteratee): T; - multiply(multiplier: number, multiplicand: number): number; - round(number: number, precision?: number): number; - subtract(minuend: number, subtrahend: number): number; - sum(array: Array<*>): number; - sumBy(array: Array, iteratee?: Iteratee): number; - - // number - clamp(number?: number, lower?: ?number, upper?: ?number): number; - clamp(number: ?number, lower?: ?number, upper?: ?number): 0; - inRange(number: number, start?: number, end: number): boolean; - random(lower?: number, upper?: number, floating?: boolean): number; - - // Object - assign(object?: ?Object, ...sources?: Array): Object; - assignIn(): {}; - assignIn(a: A, b: B): A & B; - assignIn(a: A, b: B, c: C): A & B & C; - assignIn(a: A, b: B, c: C, d: D): A & B & C & D; - assignIn(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E; - assignInWith(): {}; - assignInWith( - object: T, - s1: A, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): Object; - assignInWith( - object: T, - s1: A, - s2: B, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): Object; - assignInWith( - object: T, - s1: A, - s2: B, - s3: C, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C - ) => any | void - ): Object; - assignInWith( - object: T, - s1: A, - s2: B, - s3: C, - s4: D, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C | D - ) => any | void - ): Object; - assignWith(): {}; - assignWith( - object: T, - s1: A, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): Object; - assignWith( - object: T, - s1: A, - s2: B, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): Object; - assignWith( - object: T, - s1: A, - s2: B, - s3: C, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C - ) => any | void - ): Object; - assignWith( - object: T, - s1: A, - s2: B, - s3: C, - s4: D, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C | D - ) => any | void - ): Object; - at(object?: ?Object, ...paths: Array): Array; - at(object?: ?Object, paths: Array): Array; - create(prototype: T, properties: Object): T; - create(prototype: any, properties: void | null): {}; - defaults(object?: ?Object, ...sources?: Array): Object; - defaultsDeep(object?: ?Object, ...sources?: Array): Object; - // alias for _.toPairs - entries(object?: ?Object): Array<[string, any]>; - // alias for _.toPairsIn - entriesIn(object?: ?Object): Array<[string, any]>; - // alias for _.assignIn - extend(a?: ?A, b?: ?B): A & B; - extend(a: A, b: B, c: C): A & B & C; - extend(a: A, b: B, c: C, d: D): A & B & C & D; - extend(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E; - // alias for _.assignInWith - extendWith( - object?: ?T, - s1?: ?A, - customizer?: ?( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): Object; - extendWith( - object: T, - s1: A, - s2: B, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): Object; - extendWith( - object: T, - s1: A, - s2: B, - s3: C, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C - ) => any | void - ): Object; - extendWith( - object: T, - s1: A, - s2: B, - s3: C, - s4: D, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C | D - ) => any | void - ): Object; - findKey( - object: T, - predicate?: ?OPredicate - ): string | void; - findKey( - object: void | null, - predicate?: ?OPredicate - ): void; - findLastKey( - object: T, - predicate?: ?OPredicate - ): string | void; - findLastKey( - object: void | null, - predicate?: ?OPredicate - ): void; - forIn(object: Object, iteratee?: ?OIteratee<*>): Object; - forIn(object: void | null, iteratee?: ?OIteratee<*>): null; - forInRight(object: Object, iteratee?: ?OIteratee<*>): Object; - forInRight(object: void | null, iteratee?: ?OIteratee<*>): null; - forOwn(object: Object, iteratee?: ?OIteratee<*>): Object; - forOwn(object: void | null, iteratee?: ?OIteratee<*>): null; - forOwnRight(object: Object, iteratee?: ?OIteratee<*>): Object; - forOwnRight(object: void | null, iteratee?: ?OIteratee<*>): null; - functions(object?: ?Object): Array; - functionsIn(object?: ?Object): Array; - get( - object?: ?Object | ?$ReadOnlyArray | void | null, - path?: ?$ReadOnlyArray | string | number, - defaultValue?: any - ): any; - has(object: Object, path: Array | string): boolean; - has(object: Object, path: void | null): false; - has(object: void | null, path?: ?Array | ?string): false; - hasIn(object: Object, path: Array | string): boolean; - hasIn(object: Object, path: void | null): false; - hasIn(object: void | null, path?: ?Array | ?string): false; - invert(object: Object, multiVal?: ?boolean): Object; - invert(object: void | null, multiVal?: ?boolean): {}; - invertBy(object: Object, iteratee?: ?Function): Object; - invertBy(object: void | null, iteratee?: ?Function): {}; - invoke( - object?: ?Object, - path?: ?Array | string, - ...args?: Array - ): any; - keys(object?: ?{ [key: K]: any }): Array; - keys(object?: ?Object): Array; - keysIn(object?: ?Object): Array; - mapKeys(object: Object, iteratee?: ?OIteratee<*>): Object; - mapKeys(object: void | null, iteratee?: ?OIteratee<*>): {}; - mapValues(object: Object, iteratee?: ?OIteratee<*>): Object; - mapValues(object: void | null, iteratee?: ?OIteratee<*>): {}; - merge(object?: ?Object, ...sources?: Array): Object; - mergeWith(): {}; - mergeWith( - object: T, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): Object; - mergeWith( - object: T, - s1: A, - s2: B, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): Object; - mergeWith( - object: T, - s1: A, - s2: B, - s3: C, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C - ) => any | void - ): Object; - mergeWith( - object: T, - s1: A, - s2: B, - s3: C, - s4: D, - customizer?: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B | C | D - ) => any | void - ): Object; - omit(object?: ?Object, ...props: Array): Object; - omit(object?: ?Object, props: Array): Object; - omitBy( - object: T, - predicate?: ?OPredicate - ): Object; - omitBy(object: void | null, predicate?: ?OPredicate): {}; - pick(object?: ?Object, ...props: Array): Object; - pick(object?: ?Object, props: Array): Object; - pickBy( - object: T, - predicate?: ?OPredicate - ): Object; - pickBy(object: void | null, predicate?: ?OPredicate): {}; - result( - object?: ?Object, - path?: ?Array | string, - defaultValue?: any - ): any; - set(object: Object, path?: ?Array | string, value: any): Object; - set( - object: T, - path?: ?Array | string, - value?: ?any - ): T; - setWith( - object: T, - path?: ?Array | string, - value: any, - customizer?: (nsValue: any, key: string, nsObject: T) => any - ): Object; - setWith( - object: T, - path?: ?Array | string, - value?: ?any, - customizer?: ?(nsValue: any, key: string, nsObject: T) => any - ): T; - toPairs(object?: ?Object | Array<*>): Array<[string, any]>; - toPairsIn(object?: ?Object): Array<[string, any]>; - transform( - collection: Object | $ReadOnlyArray, - iteratee?: ?OIteratee<*>, - accumulator?: any - ): any; - transform( - collection: void | null, - iteratee?: ?OIteratee<*>, - accumulator?: ?any - ): {}; - unset(object: Object, path?: ?Array | ?string): boolean; - unset(object: void | null, path?: ?Array | ?string): true; - update(object: Object, path: string[] | string, updater: Function): Object; - update( - object: T, - path?: ?(string[]) | ?string, - updater?: ?Function - ): T; - updateWith( - object: Object, - path?: ?(string[]) | ?string, - updater?: ?Function, - customizer?: ?Function - ): Object; - updateWith( - object: T, - path?: ?(string[]) | ?string, - updater?: ?Function, - customizer?: ?Function - ): T; - values(object?: ?Object): Array; - valuesIn(object?: ?Object): Array; - - // Seq - // harder to read, but this is _() - (value: any): any; - chain(value: T): any; - tap(value: T, interceptor: (value: T) => any): T; - thru(value: T1, interceptor: (value: T1) => T2): T2; - // TODO: _.prototype.* - - // String - camelCase(string: string): string; - camelCase(string: void | null): ""; - capitalize(string: string): string; - capitalize(string: void | null): ""; - deburr(string: string): string; - deburr(string: void | null): ""; - endsWith(string: string, target?: string, position?: ?number): boolean; - endsWith(string: void | null, target?: ?string, position?: ?number): false; - escape(string: string): string; - escape(string: void | null): ""; - escapeRegExp(string: string): string; - escapeRegExp(string: void | null): ""; - kebabCase(string: string): string; - kebabCase(string: void | null): ""; - lowerCase(string: string): string; - lowerCase(string: void | null): ""; - lowerFirst(string: string): string; - lowerFirst(string: void | null): ""; - pad(string?: ?string, length?: ?number, chars?: ?string): string; - padEnd(string?: ?string, length?: ?number, chars?: ?string): string; - padStart(string?: ?string, length?: ?number, chars?: ?string): string; - parseInt(string: string, radix?: ?number): number; - repeat(string: string, n?: ?number): string; - repeat(string: void | null, n?: ?number): ""; - replace( - string: string, - pattern: RegExp | string, - replacement: ((string: string) => string) | string - ): string; - replace( - string: void | null, - pattern?: ?RegExp | ?string, - replacement: ?((string: string) => string) | ?string - ): ""; - snakeCase(string: string): string; - snakeCase(string: void | null): ""; - split( - string?: ?string, - separator?: ?RegExp | ?string, - limit?: ?number - ): Array; - startCase(string: string): string; - startCase(string: void | null): ""; - startsWith(string: string, target?: string, position?: number): boolean; - startsWith( - string: void | null, - target?: ?string, - position?: ?number - ): false; - template(string?: ?string, options?: ?TemplateSettings): Function; - toLower(string: string): string; - toLower(string: void | null): ""; - toUpper(string: string): string; - toUpper(string: void | null): ""; - trim(string: string, chars?: string): string; - trim(string: void | null, chars?: ?string): ""; - trimEnd(string: string, chars?: ?string): string; - trimEnd(string: void | null, chars?: ?string): ""; - trimStart(string: string, chars?: ?string): string; - trimStart(string: void | null, chars?: ?string): ""; - truncate(string: string, options?: TruncateOptions): string; - truncate(string: void | null, options?: ?TruncateOptions): ""; - unescape(string: string): string; - unescape(string: void | null): ""; - upperCase(string: string): string; - upperCase(string: void | null): ""; - upperFirst(string: string): string; - upperFirst(string: void | null): ""; - words(string?: ?string, pattern?: ?RegExp | ?string): Array; - - // Util - attempt(func: Function, ...args: Array): any; - bindAll(object: Object, methodNames?: ?Array): Object; - bindAll(object: T, methodNames?: ?Array): T; - bindAll(object: Object, ...methodNames: Array): Object; - cond(pairs?: ?NestedArray): Function; - conforms(source?: ?Object): Function; - constant(value: T): () => T; - defaultTo( - value: T1, - defaultValue: T2 - ): T1; - // NaN is a number instead of its own type, otherwise it would behave like null/void - defaultTo(value: T1, defaultValue: T2): T1 | T2; - defaultTo(value: T1, defaultValue: T2): T2; - flow: $ComposeReverse & ((funcs: Array) => Function); - flowRight: $Compose & ((funcs: Array) => Function); - identity(value: T): T; - iteratee(func?: any): Function; - matches(source?: ?Object): Function; - matchesProperty(path?: ?Array | string, srcValue: any): Function; - method(path?: ?Array | string, ...args?: Array): Function; - methodOf(object?: ?Object, ...args?: Array): Function; - mixin( - object?: T, - source: Object, - options?: { chain: boolean } - ): T; - noConflict(): Lodash; - noop(...args: Array): void; - nthArg(n?: ?number): Function; - over(...iteratees: Array): Function; - over(iteratees: Array): Function; - overEvery(...predicates: Array): Function; - overEvery(predicates: Array): Function; - overSome(...predicates: Array): Function; - overSome(predicates: Array): Function; - property(path?: ?Array | string): Function; - propertyOf(object?: ?Object): Function; - range(start: number, end: number, step?: number): Array; - range(end: number, step?: number): Array; - rangeRight(start?: ?number, end?: ?number, step?: ?number): Array; - rangeRight(end?: ?number, step?: ?number): Array; - runInContext(context?: ?Object): Function; - - stubArray(): Array<*>; - stubFalse(): false; - stubObject(): {}; - stubString(): ""; - stubTrue(): true; - times(n?: ?number, ...rest?: Array): Array; - times(n: number, iteratee: (i: number) => T): Array; - toPath(value: any): Array; - uniqueId(prefix?: ?string): string; - - // Properties - VERSION: string; - templateSettings: TemplateSettings; - } - - declare module.exports: Lodash; -} - -declare module "lodash/fp" { - declare type __CurriedFunction1 = (...r: [AA]) => R; - declare type CurriedFunction1 = __CurriedFunction1; - - declare type __CurriedFunction2 = (( - ...r: [AA] - ) => CurriedFunction1) & - ((...r: [AA, BB]) => R); - declare type CurriedFunction2 = __CurriedFunction2; - - declare type __CurriedFunction3 = (( - ...r: [AA] - ) => CurriedFunction2) & - ((...r: [AA, BB]) => CurriedFunction1) & - ((...r: [AA, BB, CC]) => R); - declare type CurriedFunction3 = __CurriedFunction3< - A, - B, - C, - R, - *, - *, - * - >; - - declare type __CurriedFunction4< - A, - B, - C, - D, - R, - AA: A, - BB: B, - CC: C, - DD: D - > = ((...r: [AA]) => CurriedFunction3) & - ((...r: [AA, BB]) => CurriedFunction2) & - ((...r: [AA, BB, CC]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD]) => R); - declare type CurriedFunction4 = __CurriedFunction4< - A, - B, - C, - D, - R, - *, - *, - *, - * - >; - - declare type __CurriedFunction5< - A, - B, - C, - D, - E, - R, - AA: A, - BB: B, - CC: C, - DD: D, - EE: E - > = ((...r: [AA]) => CurriedFunction4) & - ((...r: [AA, BB]) => CurriedFunction3) & - ((...r: [AA, BB, CC]) => CurriedFunction2) & - ((...r: [AA, BB, CC, DD]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD, EE]) => R); - declare type CurriedFunction5 = __CurriedFunction5< - A, - B, - C, - D, - E, - R, - *, - *, - *, - *, - * - >; - - declare type __CurriedFunction6< - A, - B, - C, - D, - E, - F, - R, - AA: A, - BB: B, - CC: C, - DD: D, - EE: E, - FF: F - > = ((...r: [AA]) => CurriedFunction5) & - ((...r: [AA, BB]) => CurriedFunction4) & - ((...r: [AA, BB, CC]) => CurriedFunction3) & - ((...r: [AA, BB, CC, DD]) => CurriedFunction2) & - ((...r: [AA, BB, CC, DD, EE]) => CurriedFunction1) & - ((...r: [AA, BB, CC, DD, EE, FF]) => R); - declare type CurriedFunction6 = __CurriedFunction6< - A, - B, - C, - D, - E, - F, - R, - *, - *, - *, - *, - *, - * - >; - - declare type Curry = (((...r: [A]) => R) => CurriedFunction1) & - (((...r: [A, B]) => R) => CurriedFunction2) & - (((...r: [A, B, C]) => R) => CurriedFunction3) & - (( - (...r: [A, B, C, D]) => R - ) => CurriedFunction4) & - (( - (...r: [A, B, C, D, E]) => R - ) => CurriedFunction5) & - (( - (...r: [A, B, C, D, E, F]) => R - ) => CurriedFunction6); - - declare type UnaryFn = (a: A) => R; - - declare type TemplateSettings = { - escape?: RegExp, - evaluate?: RegExp, - imports?: Object, - interpolate?: RegExp, - variable?: string - }; - - declare type TruncateOptions = { - length?: number, - omission?: string, - separator?: RegExp | string - }; - - declare type DebounceOptions = { - leading?: boolean, - maxWait?: number, - trailing?: boolean - }; - - declare type ThrottleOptions = { - leading?: boolean, - trailing?: boolean - }; - - declare type NestedArray = Array>; - - declare type matchesIterateeShorthand = Object; - declare type matchesPropertyIterateeShorthand = [string, any]; - declare type propertyIterateeShorthand = string; - - declare type OPredicate = - | ((value: A) => any) - | matchesIterateeShorthand - | matchesPropertyIterateeShorthand - | propertyIterateeShorthand; - - declare type OIterateeWithResult = Object | string | ((value: V) => R); - declare type OIteratee = OIterateeWithResult; - declare type OFlatMapIteratee = OIterateeWithResult>; - - declare type Predicate = - | ((value: T) => any) - | matchesIterateeShorthand - | matchesPropertyIterateeShorthand - | propertyIterateeShorthand; - - declare type _ValueOnlyIteratee = (value: T) => mixed; - declare type ValueOnlyIteratee = _ValueOnlyIteratee | string; - declare type _Iteratee = (item: T) => mixed; - declare type Iteratee = _Iteratee | Object | string; - declare type FlatMapIteratee = - | ((item: T) => Array) - | Object - | string; - declare type Comparator = (item: T, item2: T) => boolean; - - declare type MapIterator = ((item: T) => U) | propertyIterateeShorthand; - - declare type OMapIterator = - | ((item: T) => U) - | propertyIterateeShorthand; - - declare class Lodash { - // Array - chunk(size: number): (array: Array) => Array>; - chunk(size: number, array: Array): Array>; - compact(array?: ?$ReadOnlyArray): Array; - concat | T, B: Array | U>( - base: A - ): (elements: B) => Array; - concat | T, B: Array | U>( - base: A, - elements: B - ): Array; - difference(values: $ReadOnlyArray): (array: $ReadOnlyArray) => T[]; - difference(values: $ReadOnlyArray, array: $ReadOnlyArray): T[]; - differenceBy( - iteratee: ValueOnlyIteratee - ): ((values: $ReadOnlyArray) => (array: $ReadOnlyArray) => T[]) & - ((values: $ReadOnlyArray, array: $ReadOnlyArray) => T[]); - differenceBy( - iteratee: ValueOnlyIteratee, - values: $ReadOnlyArray - ): (array: $ReadOnlyArray) => T[]; - differenceBy( - iteratee: ValueOnlyIteratee, - values: $ReadOnlyArray, - array: $ReadOnlyArray - ): T[]; - differenceWith( - comparator: Comparator - ): ((first: $ReadOnly) => (second: $ReadOnly) => T[]) & - ((first: $ReadOnly, second: $ReadOnly) => T[]); - differenceWith( - comparator: Comparator, - first: $ReadOnly - ): (second: $ReadOnly) => T[]; - differenceWith( - comparator: Comparator, - first: $ReadOnly, - second: $ReadOnly - ): T[]; - drop(n: number): (array: Array) => Array; - drop(n: number, array: Array): Array; - dropLast(n: number): (array: Array) => Array; - dropLast(n: number, array: Array): Array; - dropRight(n: number): (array: Array) => Array; - dropRight(n: number, array: Array): Array; - dropRightWhile(predicate: Predicate): (array: Array) => Array; - dropRightWhile(predicate: Predicate, array: Array): Array; - dropWhile(predicate: Predicate): (array: Array) => Array; - dropWhile(predicate: Predicate, array: Array): Array; - dropLastWhile(predicate: Predicate): (array: Array) => Array; - dropLastWhile(predicate: Predicate, array: Array): Array; - fill( - start: number - ): (( - end: number - ) => ((value: U) => (array: Array) => Array) & - ((value: U, array: Array) => Array)) & - ((end: number, value: U) => (array: Array) => Array) & - ((end: number, value: U, array: Array) => Array); - fill( - start: number, - end: number - ): ((value: U) => (array: Array) => Array) & - ((value: U, array: Array) => Array); - fill( - start: number, - end: number, - value: U - ): (array: Array) => Array; - fill( - start: number, - end: number, - value: U, - array: Array - ): Array; - findIndex(predicate: Predicate): (array: $ReadOnlyArray) => number; - findIndex(predicate: Predicate, array: $ReadOnlyArray): number; - findIndexFrom( - predicate: Predicate - ): ((fromIndex: number) => (array: $ReadOnlyArray) => number) & - ((fromIndex: number, array: $ReadOnlyArray) => number); - findIndexFrom( - predicate: Predicate, - fromIndex: number - ): (array: $ReadOnlyArray) => number; - findIndexFrom( - predicate: Predicate, - fromIndex: number, - array: $ReadOnlyArray - ): number; - findLastIndex( - predicate: Predicate - ): (array: $ReadOnlyArray) => number; - findLastIndex(predicate: Predicate, array: $ReadOnlyArray): number; - findLastIndexFrom( - predicate: Predicate - ): ((fromIndex: number) => (array: $ReadOnlyArray) => number) & - ((fromIndex: number, array: $ReadOnlyArray) => number); - findLastIndexFrom( - predicate: Predicate, - fromIndex: number - ): (array: $ReadOnlyArray) => number; - findLastIndexFrom( - predicate: Predicate, - fromIndex: number, - array: $ReadOnlyArray - ): number; - // alias of _.head - first(array: $ReadOnlyArray): T; - flatten(array: Array | X>): Array; - unnest(array: Array | X>): Array; - flattenDeep(array: any[]): Array; - flattenDepth(depth: number): (array: any[]) => any[]; - flattenDepth(depth: number, array: any[]): any[]; - fromPairs(pairs: Array<[A, B]>): { [key: A]: B }; - head(array: $ReadOnlyArray): T; - indexOf(value: T): (array: Array) => number; - indexOf(value: T, array: Array): number; - indexOfFrom( - value: T - ): ((fromIndex: number) => (array: Array) => number) & - ((fromIndex: number, array: Array) => number); - indexOfFrom(value: T, fromIndex: number): (array: Array) => number; - indexOfFrom(value: T, fromIndex: number, array: Array): number; - initial(array: Array): Array; - init(array: Array): Array; - intersection(a1: Array): (a2: Array) => Array; - intersection(a1: Array, a2: Array): Array; - intersectionBy( - iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - intersectionBy( - iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; - intersectionBy( - iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array - ): Array; - intersectionWith( - comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - intersectionWith( - comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - intersectionWith( - comparator: Comparator, - a1: Array, - a2: Array - ): Array; - join(separator: string): (array: Array) => string; - join(separator: string, array: Array): string; - last(array: Array): T; - lastIndexOf(value: T): (array: Array) => number; - lastIndexOf(value: T, array: Array): number; - lastIndexOfFrom( - value: T - ): ((fromIndex: number) => (array: Array) => number) & - ((fromIndex: number, array: Array) => number); - lastIndexOfFrom( - value: T, - fromIndex: number - ): (array: Array) => number; - lastIndexOfFrom(value: T, fromIndex: number, array: Array): number; - nth(n: number): (array: T[]) => T; - nth(n: number, array: T[]): T; - pull(value: T): (array: Array) => Array; - pull(value: T, array: Array): Array; - pullAll(values: Array): (array: Array) => Array; - pullAll(values: Array, array: Array): Array; - pullAllBy( - iteratee: ValueOnlyIteratee - ): ((values: Array) => (array: Array) => Array) & - ((values: Array, array: Array) => Array); - pullAllBy( - iteratee: ValueOnlyIteratee, - values: Array - ): (array: Array) => Array; - pullAllBy( - iteratee: ValueOnlyIteratee, - values: Array, - array: Array - ): Array; - pullAllWith( - comparator: Function - ): ((values: T[]) => (array: T[]) => T[]) & - ((values: T[], array: T[]) => T[]); - pullAllWith(comparator: Function, values: T[]): (array: T[]) => T[]; - pullAllWith(comparator: Function, values: T[], array: T[]): T[]; - pullAt(indexed: Array): (array: Array) => Array; - pullAt(indexed: Array, array: Array): Array; - remove(predicate: Predicate): (array: Array) => Array; - remove(predicate: Predicate, array: Array): Array; - reverse(array: Array): Array; - slice( - start: number - ): ((end: number) => (array: Array) => Array) & - ((end: number, array: Array) => Array); - slice(start: number, end: number): (array: Array) => Array; - slice(start: number, end: number, array: Array): Array; - sortedIndex(value: T): (array: Array) => number; - sortedIndex(value: T, array: Array): number; - sortedIndexBy( - iteratee: ValueOnlyIteratee - ): ((value: T) => (array: Array) => number) & - ((value: T, array: Array) => number); - sortedIndexBy( - iteratee: ValueOnlyIteratee, - value: T - ): (array: Array) => number; - sortedIndexBy( - iteratee: ValueOnlyIteratee, - value: T, - array: Array - ): number; - sortedIndexOf(value: T): (array: Array) => number; - sortedIndexOf(value: T, array: Array): number; - sortedLastIndex(value: T): (array: Array) => number; - sortedLastIndex(value: T, array: Array): number; - sortedLastIndexBy( - iteratee: ValueOnlyIteratee - ): ((value: T) => (array: Array) => number) & - ((value: T, array: Array) => number); - sortedLastIndexBy( - iteratee: ValueOnlyIteratee, - value: T - ): (array: Array) => number; - sortedLastIndexBy( - iteratee: ValueOnlyIteratee, - value: T, - array: Array - ): number; - sortedLastIndexOf(value: T): (array: Array) => number; - sortedLastIndexOf(value: T, array: Array): number; - sortedUniq(array: Array): Array; - sortedUniqBy(iteratee: ValueOnlyIteratee, array: Array): Array; - tail(array: Array): Array; - take(n: number): (array: Array) => Array; - take(n: number, array: Array): Array; - takeRight(n: number): (array: Array) => Array; - takeRight(n: number, array: Array): Array; - takeLast(n: number): (array: Array) => Array; - takeLast(n: number, array: Array): Array; - takeRightWhile(predicate: Predicate): (array: Array) => Array; - takeRightWhile(predicate: Predicate, array: Array): Array; - takeLastWhile(predicate: Predicate): (array: Array) => Array; - takeLastWhile(predicate: Predicate, array: Array): Array; - takeWhile(predicate: Predicate): (array: Array) => Array; - takeWhile(predicate: Predicate, array: Array): Array; - union(a1: Array): (a2: Array) => Array; - union(a1: Array, a2: Array): Array; - unionBy( - iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - unionBy( - iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; - unionBy( - iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array - ): Array; - unionWith( - comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - unionWith( - comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - unionWith( - comparator: Comparator, - a1: Array, - a2: Array - ): Array; - uniq(array: Array): Array; - uniqBy(iteratee: ValueOnlyIteratee): (array: Array) => Array; - uniqBy(iteratee: ValueOnlyIteratee, array: Array): Array; - uniqWith(comparator: Comparator): (array: Array) => Array; - uniqWith(comparator: Comparator, array: Array): Array; - unzip(array: Array): Array; - unzipWith(iteratee: Iteratee): (array: Array) => Array; - unzipWith(iteratee: Iteratee, array: Array): Array; - without(values: Array): (array: Array) => Array; - without(values: Array, array: Array): Array; - xor(a1: Array): (a2: Array) => Array; - xor(a1: Array, a2: Array): Array; - symmetricDifference(a1: Array): (a2: Array) => Array; - symmetricDifference(a1: Array, a2: Array): Array; - xorBy( - iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - xorBy( - iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; - xorBy( - iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array - ): Array; - symmetricDifferenceBy( - iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - symmetricDifferenceBy( - iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; - symmetricDifferenceBy( - iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array - ): Array; - xorWith( - comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - xorWith( - comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - xorWith(comparator: Comparator, a1: Array, a2: Array): Array; - symmetricDifferenceWith( - comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); - symmetricDifferenceWith( - comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - symmetricDifferenceWith( - comparator: Comparator, - a1: Array, - a2: Array - ): Array; - zip(a1: A[]): (a2: B[]) => Array<[A, B]>; - zip(a1: A[], a2: B[]): Array<[A, B]>; - zipAll(arrays: Array>): Array; - zipObject(props?: Array): (values?: Array) => { [key: K]: V }; - zipObject(props?: Array, values?: Array): { [key: K]: V }; - zipObj(props: Array): (values: Array) => Object; - zipObj(props: Array, values: Array): Object; - zipObjectDeep(props: any[]): (values: any) => Object; - zipObjectDeep(props: any[], values: any): Object; - zipWith( - iteratee: Iteratee - ): ((a1: NestedArray) => (a2: NestedArray) => Array) & - ((a1: NestedArray, a2: NestedArray) => Array); - zipWith( - iteratee: Iteratee, - a1: NestedArray - ): (a2: NestedArray) => Array; - zipWith( - iteratee: Iteratee, - a1: NestedArray, - a2: NestedArray - ): Array; - // Collection - countBy( - iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [string]: number }; - countBy( - iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } - ): { [string]: number }; - // alias of _.forEach - each( - iteratee: Iteratee | OIteratee - ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; - each( - iteratee: Iteratee | OIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): Array; - // alias of _.forEachRight - eachRight( - iteratee: Iteratee | OIteratee - ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; - eachRight( - iteratee: Iteratee | OIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): Array; - every( - iteratee: Iteratee | OIteratee - ): (collection: $ReadOnlyArray | { [id: any]: T }) => boolean; - every( - iteratee: Iteratee | OIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): boolean; - all( - iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => boolean; - all( - iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } - ): boolean; - filter( - predicate: Predicate | OPredicate - ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; - filter( - predicate: Predicate | OPredicate, - collection: $ReadOnlyArray | { [id: any]: T } - ): Array; - find( - predicate: Predicate | OPredicate - ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; - find( - predicate: Predicate | OPredicate, - collection: $ReadOnlyArray | { [id: any]: T } - ): T | void; - findFrom( - predicate: Predicate | OPredicate - ): (( - fromIndex: number - ) => (collection: $ReadOnlyArray | { [id: any]: T }) => T | void) & - (( - fromIndex: number, - collection: $ReadOnlyArray | { [id: any]: T } - ) => T | void); - findFrom( - predicate: Predicate | OPredicate, - fromIndex: number - ): (collection: Array | { [id: any]: T }) => T | void; - findFrom( - predicate: Predicate | OPredicate, - fromIndex: number, - collection: $ReadOnlyArray | { [id: any]: T } - ): T | void; - findLast( - predicate: Predicate | OPredicate - ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; - findLast( - predicate: Predicate | OPredicate, - collection: $ReadOnlyArray | { [id: any]: T } - ): T | void; - findLastFrom( - predicate: Predicate | OPredicate - ): (( - fromIndex: number - ) => (collection: $ReadOnlyArray | { [id: any]: T }) => T | void) & - (( - fromIndex: number, - collection: $ReadOnlyArray | { [id: any]: T } - ) => T | void); - findLastFrom( - predicate: Predicate | OPredicate, - fromIndex: number - ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; - findLastFrom( - predicate: Predicate | OPredicate, - fromIndex: number, - collection: $ReadOnlyArray | { [id: any]: T } - ): T | void; - flatMap( - iteratee: FlatMapIteratee | OFlatMapIteratee - ): (collection: Array | { [id: any]: T }) => Array; - flatMap( - iteratee: FlatMapIteratee | OFlatMapIteratee, - collection: Array | { [id: any]: T } - ): Array; - flatMapDeep( - iteratee: FlatMapIteratee | OFlatMapIteratee - ): (collection: Array | { [id: any]: T }) => Array; - flatMapDeep( - iteratee: FlatMapIteratee | OFlatMapIteratee, - collection: Array | { [id: any]: T } - ): Array; - flatMapDepth( - iteratee: FlatMapIteratee | OFlatMapIteratee - ): (( - depth: number - ) => (collection: Array | { [id: any]: T }) => Array) & - ((depth: number, collection: Array | { [id: any]: T }) => Array); - flatMapDepth( - iteratee: FlatMapIteratee | OFlatMapIteratee, - depth: number - ): (collection: Array | { [id: any]: T }) => Array; - flatMapDepth( - iteratee: FlatMapIteratee | OFlatMapIteratee, - depth: number, - collection: Array | { [id: any]: T } - ): Array; - forEach( - iteratee: Iteratee | OIteratee - ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; - forEach( - iteratee: Iteratee | OIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): Array; - forEachRight( - iteratee: Iteratee | OIteratee - ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; - forEachRight( - iteratee: Iteratee | OIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): Array; - groupBy( - iteratee: ValueOnlyIteratee - ): ( - collection: $ReadOnlyArray | { [id: any]: T } - ) => { [key: V]: Array }; - groupBy( - iteratee: ValueOnlyIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): { [key: V]: Array }; - includes(value: T): (collection: Array | { [id: any]: T }) => boolean; - includes(value: T, collection: Array | { [id: any]: T }): boolean; - includes(value: string): (str: string) => boolean; - includes(value: string, str: string): boolean; - contains(value: string): (str: string) => boolean; - contains(value: string, str: string): boolean; - contains(value: T): (collection: Array | { [id: any]: T }) => boolean; - contains(value: T, collection: Array | { [id: any]: T }): boolean; - includesFrom( - value: string - ): ((fromIndex: number) => (str: string) => boolean) & - ((fromIndex: number, str: string) => boolean); - includesFrom(value: string, fromIndex: number): (str: string) => boolean; - includesFrom(value: string, fromIndex: number, str: string): boolean; - includesFrom( - value: T - ): ((fromIndex: number) => (collection: Array) => boolean) & - ((fromIndex: number, collection: Array) => boolean); - includesFrom( - value: T, - fromIndex: number - ): (collection: Array) => boolean; - includesFrom(value: T, fromIndex: number, collection: Array): boolean; - invokeMap( - path: ((value: T) => Array | string) | Array | string - ): (collection: Array | { [id: any]: T }) => Array; - invokeMap( - path: ((value: T) => Array | string) | Array | string, - collection: Array | { [id: any]: T } - ): Array; - invokeArgsMap( - path: ((value: T) => Array | string) | Array | string - ): (( - collection: Array | { [id: any]: T } - ) => (args: Array) => Array) & - (( - collection: Array | { [id: any]: T }, - args: Array - ) => Array); - invokeArgsMap( - path: ((value: T) => Array | string) | Array | string, - collection: Array | { [id: any]: T } - ): (args: Array) => Array; - invokeArgsMap( - path: ((value: T) => Array | string) | Array | string, - collection: Array | { [id: any]: T }, - args: Array - ): Array; - keyBy( - iteratee: ValueOnlyIteratee - ): (collection: $ReadOnlyArray | { [id: any]: T }) => { [key: V]: T }; - keyBy( - iteratee: ValueOnlyIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): { [key: V]: T }; - indexBy( - iteratee: ValueOnlyIteratee - ): (collection: $ReadOnlyArray | { [id: any]: T }) => { [key: V]: T }; - indexBy( - iteratee: ValueOnlyIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): { [key: V]: T }; - map( - iteratee: MapIterator | OMapIterator - ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; - map( - iteratee: MapIterator | OMapIterator, - collection: $ReadOnlyArray | { [id: any]: T } - ): Array; - map(iteratee: (char: string) => any): (str: string) => string; - map(iteratee: (char: string) => any, str: string): string; - pluck( - iteratee: MapIterator | OMapIterator - ): (collection: Array | { [id: any]: T }) => Array; - pluck( - iteratee: MapIterator | OMapIterator, - collection: Array | { [id: any]: T } - ): Array; - pluck(iteratee: (char: string) => any): (str: string) => string; - pluck(iteratee: (char: string) => any, str: string): string; - orderBy( - iteratees: $ReadOnlyArray | OIteratee<*>> | string - ): (( - orders: $ReadOnlyArray<"asc" | "desc"> | string - ) => (collection: $ReadOnlyArray | { [id: any]: T }) => Array) & - (( - orders: $ReadOnlyArray<"asc" | "desc"> | string, - collection: $ReadOnlyArray | { [id: any]: T } - ) => Array); - orderBy( - iteratees: $ReadOnlyArray | OIteratee<*>> | string, - orders: $ReadOnlyArray<"asc" | "desc"> | string - ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; - orderBy( - iteratees: $ReadOnlyArray | OIteratee<*>> | string, - orders: $ReadOnlyArray<"asc" | "desc"> | string, - collection: $ReadOnlyArray | { [id: any]: T } - ): Array; - partition( - predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => [Array, Array]; - partition( - predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } - ): [Array, Array]; - reduce( - iteratee: (accumulator: U, value: T) => U - ): ((accumulator: U) => (collection: Array | { [id: any]: T }) => U) & - ((accumulator: U, collection: Array | { [id: any]: T }) => U); - reduce( - iteratee: (accumulator: U, value: T) => U, - accumulator: U - ): (collection: Array | { [id: any]: T }) => U; - reduce( - iteratee: (accumulator: U, value: T) => U, - accumulator: U, - collection: Array | { [id: any]: T } - ): U; - reduceRight( - iteratee: (value: T, accumulator: U) => U - ): ((accumulator: U) => (collection: Array | { [id: any]: T }) => U) & - ((accumulator: U, collection: Array | { [id: any]: T }) => U); - reduceRight( - iteratee: (value: T, accumulator: U) => U, - accumulator: U - ): (collection: Array | { [id: any]: T }) => U; - reduceRight( - iteratee: (value: T, accumulator: U) => U, - accumulator: U, - collection: Array | { [id: any]: T } - ): U; - reject( - predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => Array; - reject( - predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } - ): Array; - sample(collection: Array | { [id: any]: T }): T; - sampleSize( - n: number - ): (collection: Array | { [id: any]: T }) => Array; - sampleSize(n: number, collection: Array | { [id: any]: T }): Array; - shuffle(collection: Array | { [id: any]: T }): Array; - size(collection: $ReadOnlyArray | Object | string): number; - some( - predicate: Predicate | OPredicate - ): (collection: $ReadOnlyArray | { [id: any]: T }) => boolean; - some( - predicate: Predicate | OPredicate, - collection: $ReadOnlyArray | { [id: any]: T } - ): boolean; - any( - predicate: Predicate | OPredicate - ): (collection: $ReadOnlyArray | { [id: any]: T }) => boolean; - any( - predicate: Predicate | OPredicate, - collection: $ReadOnlyArray | { [id: any]: T } - ): boolean; - sortBy( - iteratees: - | $ReadOnlyArray | OIteratee> - | Iteratee - | OIteratee - ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; - sortBy( - iteratees: - | $ReadOnlyArray | OIteratee> - | Iteratee - | OIteratee, - collection: $ReadOnlyArray | { [id: any]: T } - ): Array; - - // Date - now(): number; - - // Function - after(fn: Function): (n: number) => Function; - after(fn: Function, n: number): Function; - ary(func: Function): Function; - nAry(n: number): (func: Function) => Function; - nAry(n: number, func: Function): Function; - before(fn: Function): (n: number) => Function; - before(fn: Function, n: number): Function; - bind(func: Function): (thisArg: any) => Function; - bind(func: Function, thisArg: any): Function; - bindKey(obj: Object): (key: string) => Function; - bindKey(obj: Object, key: string): Function; - curry: Curry; - curryN(arity: number): (func: Function) => Function; - curryN(arity: number, func: Function): Function; - curryRight(func: Function): Function; - curryRightN(arity: number): (func: Function) => Function; - curryRightN(arity: number, func: Function): Function; - debounce(wait: number): (func: F) => F; - debounce(wait: number, func: F): F; - defer(func: Function): TimeoutID; - delay(wait: number): (func: Function) => TimeoutID; - delay(wait: number, func: Function): TimeoutID; - flip(func: Function): Function; - memoize(func: F): F; - negate(predicate: Function): Function; - complement(predicate: Function): Function; - once(func: Function): Function; - overArgs(func: Function): (transforms: Array) => Function; - overArgs(func: Function, transforms: Array): Function; - useWith(func: Function): (transforms: Array) => Function; - useWith(func: Function, transforms: Array): Function; - partial(func: Function): (partials: any[]) => Function; - partial(func: Function, partials: any[]): Function; - partialRight(func: Function): (partials: Array) => Function; - partialRight(func: Function, partials: Array): Function; - rearg(indexes: Array): (func: Function) => Function; - rearg(indexes: Array, func: Function): Function; - rest(func: Function): Function; - unapply(func: Function): Function; - restFrom(start: number): (func: Function) => Function; - restFrom(start: number, func: Function): Function; - spread(func: Function): Function; - apply(func: Function): Function; - spreadFrom(start: number): (func: Function) => Function; - spreadFrom(start: number, func: Function): Function; - throttle(wait: number): (func: Function) => Function; - throttle(wait: number, func: Function): Function; - unary(func: Function): Function; - wrap(wrapper: Function): (value: any) => Function; - wrap(wrapper: Function, value: any): Function; - - // Lang - castArray(value: *): any[]; - clone(value: T): T; - cloneDeep(value: T): T; - cloneDeepWith( - customizer: (value: T, key: number | string, object: T, stack: any) => U - ): (value: T) => U; - cloneDeepWith( - customizer: (value: T, key: number | string, object: T, stack: any) => U, - value: T - ): U; - cloneWith( - customizer: (value: T, key: number | string, object: T, stack: any) => U - ): (value: T) => U; - cloneWith( - customizer: (value: T, key: number | string, object: T, stack: any) => U, - value: T - ): U; - conformsTo( - predicates: T & { [key: string]: (x: any) => boolean } - ): (source: T) => boolean; - conformsTo( - predicates: T & { [key: string]: (x: any) => boolean }, - source: T - ): boolean; - where( - predicates: T & { [key: string]: (x: any) => boolean } - ): (source: T) => boolean; - where( - predicates: T & { [key: string]: (x: any) => boolean }, - source: T - ): boolean; - conforms( - predicates: T & { [key: string]: (x: any) => boolean } - ): (source: T) => boolean; - conforms( - predicates: T & { [key: string]: (x: any) => boolean }, - source: T - ): boolean; - eq(value: any): (other: any) => boolean; - eq(value: any, other: any): boolean; - identical(value: any): (other: any) => boolean; - identical(value: any, other: any): boolean; - gt(value: any): (other: any) => boolean; - gt(value: any, other: any): boolean; - gte(value: any): (other: any) => boolean; - gte(value: any, other: any): boolean; - isArguments(value: any): boolean; - isArray(value: any): boolean; - isArrayBuffer(value: any): boolean; - isArrayLike(value: any): boolean; - isArrayLikeObject(value: any): boolean; - isBoolean(value: any): boolean; - isBuffer(value: any): boolean; - isDate(value: any): boolean; - isElement(value: any): boolean; - isEmpty(value: any): boolean; - isEqual(value: any): (other: any) => boolean; - isEqual(value: any, other: any): boolean; - equals(value: any): (other: any) => boolean; - equals(value: any, other: any): boolean; - isEqualWith( - customizer: ( - objValue: any, - otherValue: any, - key: number | string, - object: T, - other: U, - stack: any - ) => boolean | void - ): ((value: T) => (other: U) => boolean) & - ((value: T, other: U) => boolean); - isEqualWith( - customizer: ( - objValue: any, - otherValue: any, - key: number | string, - object: T, - other: U, - stack: any - ) => boolean | void, - value: T - ): (other: U) => boolean; - isEqualWith( - customizer: ( - objValue: any, - otherValue: any, - key: number | string, - object: T, - other: U, - stack: any - ) => boolean | void, - value: T, - other: U - ): boolean; - isError(value: any): boolean; - isFinite(value: any): boolean; - isFunction(value: Function): true; - isFunction(value: number | string | void | null | Object): false; - isInteger(value: any): boolean; - isLength(value: any): boolean; - isMap(value: any): boolean; - isMatch(source: Object): (object: Object) => boolean; - isMatch(source: Object, object: Object): boolean; - whereEq(source: Object): (object: Object) => boolean; - whereEq(source: Object, object: Object): boolean; - isMatchWith( - customizer: ( - objValue: any, - srcValue: any, - key: number | string, - object: T, - source: U - ) => boolean | void - ): ((source: U) => (object: T) => boolean) & - ((source: U, object: T) => boolean); - isMatchWith( - customizer: ( - objValue: any, - srcValue: any, - key: number | string, - object: T, - source: U - ) => boolean | void, - source: U - ): (object: T) => boolean; - isMatchWith( - customizer: ( - objValue: any, - srcValue: any, - key: number | string, - object: T, - source: U - ) => boolean | void, - source: U, - object: T - ): boolean; - isNaN(value: any): boolean; - isNative(value: any): boolean; - isNil(value: any): boolean; - isNull(value: any): boolean; - isNumber(value: any): boolean; - isObject(value: any): boolean; - isObjectLike(value: any): boolean; - isPlainObject(value: any): boolean; - isRegExp(value: any): boolean; - isSafeInteger(value: any): boolean; - isSet(value: any): boolean; - isString(value: string): true; - isString(value: any): false; - isSymbol(value: any): boolean; - isTypedArray(value: any): boolean; - isUndefined(value: any): boolean; - isWeakMap(value: any): boolean; - isWeakSet(value: any): boolean; - lt(value: any): (other: any) => boolean; - lt(value: any, other: any): boolean; - lte(value: any): (other: any) => boolean; - lte(value: any, other: any): boolean; - toArray(value: any): Array; - toFinite(value: any): number; - toInteger(value: any): number; - toLength(value: any): number; - toNumber(value: any): number; - toPlainObject(value: any): Object; - toSafeInteger(value: any): number; - toString(value: any): string; - - // Math - add(augend: number): (addend: number) => number; - add(augend: number, addend: number): number; - ceil(number: number): number; - divide(dividend: number): (divisor: number) => number; - divide(dividend: number, divisor: number): number; - floor(number: number): number; - max(array: Array): T; - maxBy(iteratee: Iteratee): (array: Array) => T; - maxBy(iteratee: Iteratee, array: Array): T; - mean(array: Array<*>): number; - meanBy(iteratee: Iteratee): (array: Array) => number; - meanBy(iteratee: Iteratee, array: Array): number; - min(array: Array): T; - minBy(iteratee: Iteratee): (array: Array) => T; - minBy(iteratee: Iteratee, array: Array): T; - multiply(multiplier: number): (multiplicand: number) => number; - multiply(multiplier: number, multiplicand: number): number; - round(number: number): number; - subtract(minuend: number): (subtrahend: number) => number; - subtract(minuend: number, subtrahend: number): number; - sum(array: Array<*>): number; - sumBy(iteratee: Iteratee): (array: Array) => number; - sumBy(iteratee: Iteratee, array: Array): number; - - // number - clamp( - lower: number - ): ((upper: number) => (number: number) => number) & - ((upper: number, number: number) => number); - clamp(lower: number, upper: number): (number: number) => number; - clamp(lower: number, upper: number, number: number): number; - inRange( - start: number - ): ((end: number) => (number: number) => boolean) & - ((end: number, number: number) => boolean); - inRange(start: number, end: number): (number: number) => boolean; - inRange(start: number, end: number, number: number): boolean; - random(lower: number): (upper: number) => number; - random(lower: number, upper: number): number; - - // Object - assign(object: Object): (source: Object) => Object; - assign(object: Object, source: Object): Object; - assignAll(objects: Array): Object; - assignInAll(objects: Array): Object; - extendAll(objects: Array): Object; - assignIn(a: A): (b: B) => A & B; - assignIn(a: A, b: B): A & B; - assignInWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); - assignInWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T - ): (s1: A) => Object; - assignInWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T, - s1: A - ): Object; - assignWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); - assignWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T - ): (s1: A) => Object; - assignWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T, - s1: A - ): Object; - assignInAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void - ): (objects: Array) => Object; - assignInAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void, - objects: Array - ): Object; - extendAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void - ): (objects: Array) => Object; - extendAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void, - objects: Array - ): Object; - assignAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void - ): (objects: Array) => Object; - assignAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void, - objects: Array - ): Object; - at(paths: Array): (object: Object) => Array; - at(paths: Array, object: Object): Array; - props(paths: Array): (object: Object) => Array; - props(paths: Array, object: Object): Array; - paths(paths: Array): (object: Object) => Array; - paths(paths: Array, object: Object): Array; - create(prototype: T): T; - defaults(source: Object): (object: Object) => Object; - defaults(source: Object, object: Object): Object; - defaultsAll(objects: Array): Object; - defaultsDeep(source: Object): (object: Object) => Object; - defaultsDeep(source: Object, object: Object): Object; - defaultsDeepAll(objects: Array): Object; - // alias for _.toPairs - entries(object: Object): Array<[string, any]>; - // alias for _.toPairsIn - entriesIn(object: Object): Array<[string, any]>; - // alias for _.assignIn - extend(a: A): (b: B) => A & B; - extend(a: A, b: B): A & B; - // alias for _.assignInWith - extendWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void - ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); - extendWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T - ): (s1: A) => Object; - extendWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A - ) => any | void, - object: T, - s1: A - ): Object; - findKey( - predicate: OPredicate - ): (object: T) => string | void; - findKey( - predicate: OPredicate, - object: T - ): string | void; - findLastKey( - predicate: OPredicate - ): (object: T) => string | void; - findLastKey( - predicate: OPredicate, - object: T - ): string | void; - forIn(iteratee: OIteratee<*>): (object: Object) => Object; - forIn(iteratee: OIteratee<*>, object: Object): Object; - forInRight(iteratee: OIteratee<*>): (object: Object) => Object; - forInRight(iteratee: OIteratee<*>, object: Object): Object; - forOwn(iteratee: OIteratee<*>): (object: Object) => Object; - forOwn(iteratee: OIteratee<*>, object: Object): Object; - forOwnRight(iteratee: OIteratee<*>): (object: Object) => Object; - forOwnRight(iteratee: OIteratee<*>, object: Object): Object; - functions(object: Object): Array; - functionsIn(object: Object): Array; - get( - path: $ReadOnlyArray | string | number - ): (object: Object | $ReadOnlyArray | void | null) => any; - get( - path: $ReadOnlyArray | string | number, - object: Object | $ReadOnlyArray | void | null - ): any; - prop(path: Array | string): (object: Object | Array) => any; - prop(path: Array | string, object: Object | Array): any; - path(path: Array | string): (object: Object | Array) => any; - path(path: Array | string, object: Object | Array): any; - getOr( - defaultValue: any - ): (( - path: Array | string - ) => (object: Object | Array) => any) & - (( - path: Array | string, - object: Object | $ReadOnlyArray | void | null - ) => any); - getOr( - defaultValue: any, - path: Array | string - ): (object: Object | $ReadOnlyArray | void | null) => any; - getOr( - defaultValue: any, - path: Array | string, - object: Object | $ReadOnlyArray | void | null - ): any; - propOr( - defaultValue: any - ): (( - path: Array | string - ) => (object: Object | Array) => any) & - ((path: Array | string, object: Object | Array) => any); - propOr( - defaultValue: any, - path: Array | string - ): (object: Object | Array) => any; - propOr( - defaultValue: any, - path: Array | string, - object: Object | Array - ): any; - pathOr( - defaultValue: any - ): (( - path: Array | string - ) => (object: Object | Array) => any) & - ((path: Array | string, object: Object | Array) => any); - pathOr( - defaultValue: any, - path: Array | string - ): (object: Object | Array) => any; - pathOr( - defaultValue: any, - path: Array | string, - object: Object | Array - ): any; - has(path: Array | string): (object: Object) => boolean; - has(path: Array | string, object: Object): boolean; - hasIn(path: Array | string): (object: Object) => boolean; - hasIn(path: Array | string, object: Object): boolean; - invert(object: Object): Object; - invertObj(object: Object): Object; - invertBy(iteratee: Function): (object: Object) => Object; - invertBy(iteratee: Function, object: Object): Object; - invoke(path: Array | string): (object: Object) => any; - invoke(path: Array | string, object: Object): any; - invokeArgs( - path: Array | string - ): ((object: Object) => (args: Array) => any) & - ((object: Object, args: Array) => any); - invokeArgs( - path: Array | string, - object: Object - ): (args: Array) => any; - invokeArgs( - path: Array | string, - object: Object, - args: Array - ): any; - keys(object: { [key: K]: any }): Array; - keys(object: Object): Array; - keysIn(object: Object): Array; - mapKeys(iteratee: OIteratee<*>): (object: Object) => Object; - mapKeys(iteratee: OIteratee<*>, object: Object): Object; - mapValues(iteratee: OIteratee<*>): (object: Object) => Object; - mapValues(iteratee: OIteratee<*>, object: Object): Object; - merge(object: Object): (source: Object) => Object; - merge(object: Object, source: Object): Object; - mergeAll(objects: Array): Object; - mergeWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void - ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); - mergeWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void, - object: T - ): (s1: A) => Object; - mergeWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: T, - source: A | B - ) => any | void, - object: T, - s1: A - ): Object; - mergeAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void - ): (objects: Array) => Object; - mergeAllWith( - customizer: ( - objValue: any, - srcValue: any, - key: string, - object: Object, - source: Object - ) => any | void, - objects: Array - ): Object; - omit(props: Array): (object: Object) => Object; - omit(props: Array, object: Object): Object; - omitAll(props: Array): (object: Object) => Object; - omitAll(props: Array, object: Object): Object; - omitBy( - predicate: OPredicate - ): (object: T) => Object; - omitBy(predicate: OPredicate, object: T): Object; - pick(props: Array): (object: Object) => Object; - pick(props: Array, object: Object): Object; - pickAll(props: Array): (object: Object) => Object; - pickAll(props: Array, object: Object): Object; - pickBy( - predicate: OPredicate - ): (object: T) => Object; - pickBy(predicate: OPredicate, object: T): Object; - result(path: Array | string): (object: Object) => any; - result(path: Array | string, object: Object): any; - set( - path: Array | string - ): ((value: any) => (object: Object) => Object) & - ((value: any, object: Object) => Object); - set(path: Array | string, value: any): (object: Object) => Object; - set(path: Array | string, value: any, object: Object): Object; - assoc( - path: Array | string - ): ((value: any) => (object: Object) => Object) & - ((value: any, object: Object) => Object); - assoc(path: Array | string, value: any): (object: Object) => Object; - assoc(path: Array | string, value: any, object: Object): Object; - assocPath( - path: Array | string - ): ((value: any) => (object: Object) => Object) & - ((value: any, object: Object) => Object); - assocPath( - path: Array | string, - value: any - ): (object: Object) => Object; - assocPath(path: Array | string, value: any, object: Object): Object; - setWith( - customizer: (nsValue: any, key: string, nsObject: T) => any - ): (( - path: Array | string - ) => ((value: any) => (object: T) => Object) & - ((value: any, object: T) => Object)) & - ((path: Array | string, value: any) => (object: T) => Object) & - ((path: Array | string, value: any, object: T) => Object); - setWith( - customizer: (nsValue: any, key: string, nsObject: T) => any, - path: Array | string - ): ((value: any) => (object: T) => Object) & - ((value: any, object: T) => Object); - setWith( - customizer: (nsValue: any, key: string, nsObject: T) => any, - path: Array | string, - value: any - ): (object: T) => Object; - setWith( - customizer: (nsValue: any, key: string, nsObject: T) => any, - path: Array | string, - value: any, - object: T - ): Object; - toPairs(object: Object | Array<*>): Array<[string, any]>; - toPairsIn(object: Object): Array<[string, any]>; - transform( - iteratee: OIteratee<*> - ): (( - accumulator: any - ) => (collection: Object | $ReadOnlyArray) => any) & - ((accumulator: any, collection: Object | $ReadOnlyArray) => any); - transform( - iteratee: OIteratee<*>, - accumulator: any - ): (collection: Object | $ReadOnlyArray) => any; - transform( - iteratee: OIteratee<*>, - accumulator: any, - collection: Object | $ReadOnlyArray - ): any; - unset(path: Array | string): (object: Object) => Object; - unset(path: Array | string, object: Object): Object; - dissoc(path: Array | string): (object: Object) => Object; - dissoc(path: Array | string, object: Object): Object; - dissocPath(path: Array | string): (object: Object) => Object; - dissocPath(path: Array | string, object: Object): Object; - update( - path: string[] | string - ): ((updater: Function) => (object: Object) => Object) & - ((updater: Function, object: Object) => Object); - update( - path: string[] | string, - updater: Function - ): (object: Object) => Object; - update(path: string[] | string, updater: Function, object: Object): Object; - updateWith( - customizer: Function - ): (( - path: string[] | string - ) => ((updater: Function) => (object: Object) => Object) & - ((updater: Function, object: Object) => Object)) & - (( - path: string[] | string, - updater: Function - ) => (object: Object) => Object) & - ((path: string[] | string, updater: Function, object: Object) => Object); - updateWith( - customizer: Function, - path: string[] | string - ): ((updater: Function) => (object: Object) => Object) & - ((updater: Function, object: Object) => Object); - updateWith( - customizer: Function, - path: string[] | string, - updater: Function - ): (object: Object) => Object; - updateWith( - customizer: Function, - path: string[] | string, - updater: Function, - object: Object - ): Object; - values(object: Object): Array; - valuesIn(object: Object): Array; - - tap(interceptor: (value: T) => any): (value: T) => T; - tap(interceptor: (value: T) => any, value: T): T; - thru(interceptor: (value: T1) => T2): (value: T1) => T2; - thru(interceptor: (value: T1) => T2, value: T1): T2; - - // String - camelCase(string: string): string; - capitalize(string: string): string; - deburr(string: string): string; - endsWith(target: string): (string: string) => boolean; - endsWith(target: string, string: string): boolean; - escape(string: string): string; - escapeRegExp(string: string): string; - kebabCase(string: string): string; - lowerCase(string: string): string; - lowerFirst(string: string): string; - pad(length: number): (string: string) => string; - pad(length: number, string: string): string; - padChars( - chars: string - ): ((length: number) => (string: string) => string) & - ((length: number, string: string) => string); - padChars(chars: string, length: number): (string: string) => string; - padChars(chars: string, length: number, string: string): string; - padEnd(length: number): (string: string) => string; - padEnd(length: number, string: string): string; - padCharsEnd( - chars: string - ): ((length: number) => (string: string) => string) & - ((length: number, string: string) => string); - padCharsEnd(chars: string, length: number): (string: string) => string; - padCharsEnd(chars: string, length: number, string: string): string; - padStart(length: number): (string: string) => string; - padStart(length: number, string: string): string; - padCharsStart( - chars: string - ): ((length: number) => (string: string) => string) & - ((length: number, string: string) => string); - padCharsStart(chars: string, length: number): (string: string) => string; - padCharsStart(chars: string, length: number, string: string): string; - parseInt(radix: number): (string: string) => number; - parseInt(radix: number, string: string): number; - repeat(n: number): (string: string) => string; - repeat(n: number, string: string): string; - replace( - pattern: RegExp | string - ): (( - replacement: ((string: string) => string) | string - ) => (string: string) => string) & - (( - replacement: ((string: string) => string) | string, - string: string - ) => string); - replace( - pattern: RegExp | string, - replacement: ((string: string) => string) | string - ): (string: string) => string; - replace( - pattern: RegExp | string, - replacement: ((string: string) => string) | string, - string: string - ): string; - snakeCase(string: string): string; - split(separator: RegExp | string): (string: string) => Array; - split(separator: RegExp | string, string: string): Array; - startCase(string: string): string; - startsWith(target: string): (string: string) => boolean; - startsWith(target: string, string: string): boolean; - template(string: string): Function; - toLower(string: string): string; - toUpper(string: string): string; - trim(string: string): string; - trimChars(chars: string): (string: string) => string; - trimChars(chars: string, string: string): string; - trimEnd(string: string): string; - trimCharsEnd(chars: string): (string: string) => string; - trimCharsEnd(chars: string, string: string): string; - trimStart(string: string): string; - trimCharsStart(chars: string): (string: string) => string; - trimCharsStart(chars: string, string: string): string; - truncate(options: TruncateOptions): (string: string) => string; - truncate(options: TruncateOptions, string: string): string; - unescape(string: string): string; - upperCase(string: string): string; - upperFirst(string: string): string; - words(string: string): Array; - - // Util - attempt(func: Function): any; - bindAll(methodNames: Array): (object: Object) => Object; - bindAll(methodNames: Array, object: Object): Object; - cond(pairs: NestedArray): Function; - constant(value: T): () => T; - always(value: T): () => T; - defaultTo( - defaultValue: T2 - ): (value: T1) => T1; - defaultTo( - defaultValue: T2, - value: T1 - ): T1; - // NaN is a number instead of its own type, otherwise it would behave like null/void - defaultTo(defaultValue: T2): (value: T1) => T1 | T2; - defaultTo(defaultValue: T2, value: T1): T1 | T2; - defaultTo(defaultValue: T2): (value: T1) => T2; - defaultTo(defaultValue: T2, value: T1): T2; - flow: $ComposeReverse & ((funcs: Array) => Function); - pipe: $ComposeReverse & ((funcs: Array) => Function); - flowRight: $Compose & ((funcs: Array) => Function); - compose: $Compose & ((funcs: Array) => Function); - compose(funcs: Array): Function; - identity(value: T): T; - iteratee(func: any): Function; - matches(source: Object): (object: Object) => boolean; - matches(source: Object, object: Object): boolean; - matchesProperty(path: Array | string): (srcValue: any) => Function; - matchesProperty(path: Array | string, srcValue: any): Function; - propEq(path: Array | string): (srcValue: any) => Function; - propEq(path: Array | string, srcValue: any): Function; - pathEq(path: Array | string): (srcValue: any) => Function; - pathEq(path: Array | string, srcValue: any): Function; - method(path: Array | string): Function; - methodOf(object: Object): Function; - mixin( - object: T - ): ((source: Object) => (options: { chain: boolean }) => T) & - ((source: Object, options: { chain: boolean }) => T); - mixin( - object: T, - source: Object - ): (options: { chain: boolean }) => T; - mixin( - object: T, - source: Object, - options: { chain: boolean } - ): T; - noConflict(): Lodash; - noop(...args: Array): void; - nthArg(n: number): Function; - over(iteratees: Array): Function; - juxt(iteratees: Array): Function; - overEvery(predicates: Array): Function; - allPass(predicates: Array): Function; - overSome(predicates: Array): Function; - anyPass(predicates: Array): Function; - property( - path: Array | string - ): (object: Object | Array) => any; - property(path: Array | string, object: Object | Array): any; - propertyOf(object: Object): (path: Array | string) => Function; - propertyOf(object: Object, path: Array | string): Function; - range(start: number): (end: number) => Array; - range(start: number, end: number): Array; - rangeStep( - step: number - ): ((start: number) => (end: number) => Array) & - ((start: number, end: number) => Array); - rangeStep(step: number, start: number): (end: number) => Array; - rangeStep(step: number, start: number, end: number): Array; - rangeRight(start: number): (end: number) => Array; - rangeRight(start: number, end: number): Array; - rangeStepRight( - step: number - ): ((start: number) => (end: number) => Array) & - ((start: number, end: number) => Array); - rangeStepRight(step: number, start: number): (end: number) => Array; - rangeStepRight(step: number, start: number, end: number): Array; - runInContext(context: Object): Function; - - stubArray(): Array<*>; - stubFalse(): false; - F(): false; - stubObject(): {}; - stubString(): ""; - stubTrue(): true; - T(): true; - times(iteratee: (i: number) => T): (n: number) => Array; - times(iteratee: (i: number) => T, n: number): Array; - toPath(value: any): Array; - uniqueId(prefix: string): string; - - __: any; - placeholder: any; - - convert(options: { - cap?: boolean, - curry?: boolean, - fixed?: boolean, - immutable?: boolean, - rearg?: boolean - }): void; - - // Properties - VERSION: string; - templateSettings: TemplateSettings; - } - - declare module.exports: Lodash; -} - -declare module "lodash/chunk" { - declare module.exports: $PropertyType<$Exports<"lodash">, "chunk">; -} - -declare module "lodash/compact" { - declare module.exports: $PropertyType<$Exports<"lodash">, "compact">; -} - -declare module "lodash/concat" { - declare module.exports: $PropertyType<$Exports<"lodash">, "concat">; -} - -declare module "lodash/difference" { - declare module.exports: $PropertyType<$Exports<"lodash">, "difference">; -} - -declare module "lodash/differenceBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "differenceBy">; -} - -declare module "lodash/differenceWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "differenceWith">; -} - -declare module "lodash/drop" { - declare module.exports: $PropertyType<$Exports<"lodash">, "drop">; -} - -declare module "lodash/dropRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "dropRight">; -} - -declare module "lodash/dropRightWhile" { - declare module.exports: $PropertyType<$Exports<"lodash">, "dropRightWhile">; -} - -declare module "lodash/dropWhile" { - declare module.exports: $PropertyType<$Exports<"lodash">, "dropWhile">; -} - -declare module "lodash/fill" { - declare module.exports: $PropertyType<$Exports<"lodash">, "fill">; -} - -declare module "lodash/findIndex" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findIndex">; -} - -declare module "lodash/findLastIndex" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findLastIndex">; -} - -declare module "lodash/first" { - declare module.exports: $PropertyType<$Exports<"lodash">, "first">; -} - -declare module "lodash/flatten" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flatten">; -} - -declare module "lodash/flattenDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flattenDeep">; -} - -declare module "lodash/flattenDepth" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flattenDepth">; -} - -declare module "lodash/fromPairs" { - declare module.exports: $PropertyType<$Exports<"lodash">, "fromPairs">; -} - -declare module "lodash/head" { - declare module.exports: $PropertyType<$Exports<"lodash">, "head">; -} - -declare module "lodash/indexOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "indexOf">; -} - -declare module "lodash/initial" { - declare module.exports: $PropertyType<$Exports<"lodash">, "initial">; -} - -declare module "lodash/intersection" { - declare module.exports: $PropertyType<$Exports<"lodash">, "intersection">; -} - -declare module "lodash/intersectionBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "intersectionBy">; -} - -declare module "lodash/intersectionWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "intersectionWith">; -} - -declare module "lodash/join" { - declare module.exports: $PropertyType<$Exports<"lodash">, "join">; -} - -declare module "lodash/last" { - declare module.exports: $PropertyType<$Exports<"lodash">, "last">; -} - -declare module "lodash/lastIndexOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lastIndexOf">; -} - -declare module "lodash/nth" { - declare module.exports: $PropertyType<$Exports<"lodash">, "nth">; -} - -declare module "lodash/pull" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pull">; -} - -declare module "lodash/pullAll" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pullAll">; -} - -declare module "lodash/pullAllBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pullAllBy">; -} - -declare module "lodash/pullAllWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pullAllWith">; -} - -declare module "lodash/pullAt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pullAt">; -} - -declare module "lodash/remove" { - declare module.exports: $PropertyType<$Exports<"lodash">, "remove">; -} - -declare module "lodash/reverse" { - declare module.exports: $PropertyType<$Exports<"lodash">, "reverse">; -} - -declare module "lodash/slice" { - declare module.exports: $PropertyType<$Exports<"lodash">, "slice">; -} - -declare module "lodash/sortedIndex" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedIndex">; -} - -declare module "lodash/sortedIndexBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedIndexBy">; -} - -declare module "lodash/sortedIndexOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedIndexOf">; -} - -declare module "lodash/sortedLastIndex" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedLastIndex">; -} - -declare module "lodash/sortedLastIndexBy" { - declare module.exports: $PropertyType< - $Exports<"lodash">, - "sortedLastIndexBy" - >; -} - -declare module "lodash/sortedLastIndexOf" { - declare module.exports: $PropertyType< - $Exports<"lodash">, - "sortedLastIndexOf" - >; -} - -declare module "lodash/sortedUniq" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedUniq">; -} - -declare module "lodash/sortedUniqBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortedUniqBy">; -} - -declare module "lodash/tail" { - declare module.exports: $PropertyType<$Exports<"lodash">, "tail">; -} - -declare module "lodash/take" { - declare module.exports: $PropertyType<$Exports<"lodash">, "take">; -} - -declare module "lodash/takeRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "takeRight">; -} - -declare module "lodash/takeRightWhile" { - declare module.exports: $PropertyType<$Exports<"lodash">, "takeRightWhile">; -} - -declare module "lodash/takeWhile" { - declare module.exports: $PropertyType<$Exports<"lodash">, "takeWhile">; -} - -declare module "lodash/union" { - declare module.exports: $PropertyType<$Exports<"lodash">, "union">; -} - -declare module "lodash/unionBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unionBy">; -} - -declare module "lodash/unionWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unionWith">; -} - -declare module "lodash/uniq" { - declare module.exports: $PropertyType<$Exports<"lodash">, "uniq">; -} - -declare module "lodash/uniqBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "uniqBy">; -} - -declare module "lodash/uniqWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "uniqWith">; -} - -declare module "lodash/unzip" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unzip">; -} - -declare module "lodash/unzipWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unzipWith">; -} - -declare module "lodash/without" { - declare module.exports: $PropertyType<$Exports<"lodash">, "without">; -} - -declare module "lodash/xor" { - declare module.exports: $PropertyType<$Exports<"lodash">, "xor">; -} - -declare module "lodash/xorBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "xorBy">; -} - -declare module "lodash/xorWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "xorWith">; -} - -declare module "lodash/zip" { - declare module.exports: $PropertyType<$Exports<"lodash">, "zip">; -} - -declare module "lodash/zipObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "zipObject">; -} - -declare module "lodash/zipObjectDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "zipObjectDeep">; -} - -declare module "lodash/zipWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "zipWith">; -} - -declare module "lodash/countBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "countBy">; -} - -declare module "lodash/each" { - declare module.exports: $PropertyType<$Exports<"lodash">, "each">; -} - -declare module "lodash/eachRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "eachRight">; -} - -declare module "lodash/every" { - declare module.exports: $PropertyType<$Exports<"lodash">, "every">; -} - -declare module "lodash/filter" { - declare module.exports: $PropertyType<$Exports<"lodash">, "filter">; -} - -declare module "lodash/find" { - declare module.exports: $PropertyType<$Exports<"lodash">, "find">; -} - -declare module "lodash/findLast" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findLast">; -} - -declare module "lodash/flatMap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flatMap">; -} - -declare module "lodash/flatMapDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flatMapDeep">; -} - -declare module "lodash/flatMapDepth" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flatMapDepth">; -} - -declare module "lodash/forEach" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forEach">; -} - -declare module "lodash/forEachRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forEachRight">; -} - -declare module "lodash/groupBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "groupBy">; -} - -declare module "lodash/includes" { - declare module.exports: $PropertyType<$Exports<"lodash">, "includes">; -} - -declare module "lodash/invokeMap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "invokeMap">; -} - -declare module "lodash/keyBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "keyBy">; -} - -declare module "lodash/map" { - declare module.exports: $PropertyType<$Exports<"lodash">, "map">; -} - -declare module "lodash/orderBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "orderBy">; -} - -declare module "lodash/partition" { - declare module.exports: $PropertyType<$Exports<"lodash">, "partition">; -} - -declare module "lodash/reduce" { - declare module.exports: $PropertyType<$Exports<"lodash">, "reduce">; -} - -declare module "lodash/reduceRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "reduceRight">; -} - -declare module "lodash/reject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "reject">; -} - -declare module "lodash/sample" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sample">; -} - -declare module "lodash/sampleSize" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sampleSize">; -} - -declare module "lodash/shuffle" { - declare module.exports: $PropertyType<$Exports<"lodash">, "shuffle">; -} - -declare module "lodash/size" { - declare module.exports: $PropertyType<$Exports<"lodash">, "size">; -} - -declare module "lodash/some" { - declare module.exports: $PropertyType<$Exports<"lodash">, "some">; -} - -declare module "lodash/sortBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sortBy">; -} - -declare module "lodash/now" { - declare module.exports: $PropertyType<$Exports<"lodash">, "now">; -} - -declare module "lodash/after" { - declare module.exports: $PropertyType<$Exports<"lodash">, "after">; -} - -declare module "lodash/ary" { - declare module.exports: $PropertyType<$Exports<"lodash">, "ary">; -} - -declare module "lodash/before" { - declare module.exports: $PropertyType<$Exports<"lodash">, "before">; -} - -declare module "lodash/bind" { - declare module.exports: $PropertyType<$Exports<"lodash">, "bind">; -} - -declare module "lodash/bindKey" { - declare module.exports: $PropertyType<$Exports<"lodash">, "bindKey">; -} - -declare module "lodash/curry" { - declare module.exports: $PropertyType<$Exports<"lodash">, "curry">; -} - -declare module "lodash/curryRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "curryRight">; -} - -declare module "lodash/debounce" { - declare module.exports: $PropertyType<$Exports<"lodash">, "debounce">; -} - -declare module "lodash/defer" { - declare module.exports: $PropertyType<$Exports<"lodash">, "defer">; -} - -declare module "lodash/delay" { - declare module.exports: $PropertyType<$Exports<"lodash">, "delay">; -} - -declare module "lodash/flip" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flip">; -} - -declare module "lodash/memoize" { - declare module.exports: $PropertyType<$Exports<"lodash">, "memoize">; -} - -declare module "lodash/negate" { - declare module.exports: $PropertyType<$Exports<"lodash">, "negate">; -} - -declare module "lodash/once" { - declare module.exports: $PropertyType<$Exports<"lodash">, "once">; -} - -declare module "lodash/overArgs" { - declare module.exports: $PropertyType<$Exports<"lodash">, "overArgs">; -} - -declare module "lodash/partial" { - declare module.exports: $PropertyType<$Exports<"lodash">, "partial">; -} - -declare module "lodash/partialRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "partialRight">; -} - -declare module "lodash/rearg" { - declare module.exports: $PropertyType<$Exports<"lodash">, "rearg">; -} - -declare module "lodash/rest" { - declare module.exports: $PropertyType<$Exports<"lodash">, "rest">; -} - -declare module "lodash/spread" { - declare module.exports: $PropertyType<$Exports<"lodash">, "spread">; -} - -declare module "lodash/throttle" { - declare module.exports: $PropertyType<$Exports<"lodash">, "throttle">; -} - -declare module "lodash/unary" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unary">; -} - -declare module "lodash/wrap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "wrap">; -} - -declare module "lodash/castArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "castArray">; -} - -declare module "lodash/clone" { - declare module.exports: $PropertyType<$Exports<"lodash">, "clone">; -} - -declare module "lodash/cloneDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "cloneDeep">; -} - -declare module "lodash/cloneDeepWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "cloneDeepWith">; -} - -declare module "lodash/cloneWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "cloneWith">; -} - -declare module "lodash/conformsTo" { - declare module.exports: $PropertyType<$Exports<"lodash">, "conformsTo">; -} - -declare module "lodash/eq" { - declare module.exports: $PropertyType<$Exports<"lodash">, "eq">; -} - -declare module "lodash/gt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "gt">; -} - -declare module "lodash/gte" { - declare module.exports: $PropertyType<$Exports<"lodash">, "gte">; -} - -declare module "lodash/isArguments" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isArguments">; -} - -declare module "lodash/isArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isArray">; -} - -declare module "lodash/isArrayBuffer" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isArrayBuffer">; -} - -declare module "lodash/isArrayLike" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isArrayLike">; -} - -declare module "lodash/isArrayLikeObject" { - declare module.exports: $PropertyType< - $Exports<"lodash">, - "isArrayLikeObject" - >; -} - -declare module "lodash/isBoolean" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isBoolean">; -} - -declare module "lodash/isBuffer" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isBuffer">; -} - -declare module "lodash/isDate" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isDate">; -} - -declare module "lodash/isElement" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isElement">; -} - -declare module "lodash/isEmpty" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isEmpty">; -} - -declare module "lodash/isEqual" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isEqual">; -} - -declare module "lodash/isEqualWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isEqualWith">; -} - -declare module "lodash/isError" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isError">; -} - -declare module "lodash/isFinite" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isFinite">; -} - -declare module "lodash/isFunction" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isFunction">; -} - -declare module "lodash/isInteger" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isInteger">; -} - -declare module "lodash/isLength" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isLength">; -} - -declare module "lodash/isMap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isMap">; -} - -declare module "lodash/isMatch" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isMatch">; -} - -declare module "lodash/isMatchWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isMatchWith">; -} - -declare module "lodash/isNaN" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNaN">; -} - -declare module "lodash/isNative" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNative">; -} - -declare module "lodash/isNil" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNil">; -} - -declare module "lodash/isNull" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNull">; -} - -declare module "lodash/isNumber" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isNumber">; -} - -declare module "lodash/isObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isObject">; -} - -declare module "lodash/isObjectLike" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isObjectLike">; -} - -declare module "lodash/isPlainObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isPlainObject">; -} - -declare module "lodash/isRegExp" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isRegExp">; -} - -declare module "lodash/isSafeInteger" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isSafeInteger">; -} - -declare module "lodash/isSet" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isSet">; -} - -declare module "lodash/isString" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isString">; -} - -declare module "lodash/isSymbol" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isSymbol">; -} - -declare module "lodash/isTypedArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isTypedArray">; -} - -declare module "lodash/isUndefined" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isUndefined">; -} - -declare module "lodash/isWeakMap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isWeakMap">; -} - -declare module "lodash/isWeakSet" { - declare module.exports: $PropertyType<$Exports<"lodash">, "isWeakSet">; -} - -declare module "lodash/lt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lt">; -} - -declare module "lodash/lte" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lte">; -} - -declare module "lodash/toArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toArray">; -} - -declare module "lodash/toFinite" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toFinite">; -} - -declare module "lodash/toInteger" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toInteger">; -} - -declare module "lodash/toLength" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toLength">; -} - -declare module "lodash/toNumber" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toNumber">; -} - -declare module "lodash/toPlainObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toPlainObject">; -} - -declare module "lodash/toSafeInteger" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toSafeInteger">; -} - -declare module "lodash/toString" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toString">; -} - -declare module "lodash/add" { - declare module.exports: $PropertyType<$Exports<"lodash">, "add">; -} - -declare module "lodash/ceil" { - declare module.exports: $PropertyType<$Exports<"lodash">, "ceil">; -} - -declare module "lodash/divide" { - declare module.exports: $PropertyType<$Exports<"lodash">, "divide">; -} - -declare module "lodash/floor" { - declare module.exports: $PropertyType<$Exports<"lodash">, "floor">; -} - -declare module "lodash/max" { - declare module.exports: $PropertyType<$Exports<"lodash">, "max">; -} - -declare module "lodash/maxBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "maxBy">; -} - -declare module "lodash/mean" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mean">; -} - -declare module "lodash/meanBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "meanBy">; -} - -declare module "lodash/min" { - declare module.exports: $PropertyType<$Exports<"lodash">, "min">; -} - -declare module "lodash/minBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "minBy">; -} - -declare module "lodash/multiply" { - declare module.exports: $PropertyType<$Exports<"lodash">, "multiply">; -} - -declare module "lodash/round" { - declare module.exports: $PropertyType<$Exports<"lodash">, "round">; -} - -declare module "lodash/subtract" { - declare module.exports: $PropertyType<$Exports<"lodash">, "subtract">; -} - -declare module "lodash/sum" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sum">; -} - -declare module "lodash/sumBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "sumBy">; -} - -declare module "lodash/clamp" { - declare module.exports: $PropertyType<$Exports<"lodash">, "clamp">; -} - -declare module "lodash/inRange" { - declare module.exports: $PropertyType<$Exports<"lodash">, "inRange">; -} - -declare module "lodash/random" { - declare module.exports: $PropertyType<$Exports<"lodash">, "random">; -} - -declare module "lodash/assign" { - declare module.exports: $PropertyType<$Exports<"lodash">, "assign">; -} - -declare module "lodash/assignIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "assignIn">; -} - -declare module "lodash/assignInWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "assignInWith">; -} - -declare module "lodash/assignWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "assignWith">; -} - -declare module "lodash/at" { - declare module.exports: $PropertyType<$Exports<"lodash">, "at">; -} - -declare module "lodash/create" { - declare module.exports: $PropertyType<$Exports<"lodash">, "create">; -} - -declare module "lodash/defaults" { - declare module.exports: $PropertyType<$Exports<"lodash">, "defaults">; -} - -declare module "lodash/defaultsDeep" { - declare module.exports: $PropertyType<$Exports<"lodash">, "defaultsDeep">; -} - -declare module "lodash/entries" { - declare module.exports: $PropertyType<$Exports<"lodash">, "entries">; -} - -declare module "lodash/entriesIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "entriesIn">; -} - -declare module "lodash/extend" { - declare module.exports: $PropertyType<$Exports<"lodash">, "extend">; -} - -declare module "lodash/extendWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "extendWith">; -} - -declare module "lodash/findKey" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findKey">; -} - -declare module "lodash/findLastKey" { - declare module.exports: $PropertyType<$Exports<"lodash">, "findLastKey">; -} - -declare module "lodash/forIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forIn">; -} - -declare module "lodash/forInRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forInRight">; -} - -declare module "lodash/forOwn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forOwn">; -} - -declare module "lodash/forOwnRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "forOwnRight">; -} - -declare module "lodash/functions" { - declare module.exports: $PropertyType<$Exports<"lodash">, "functions">; -} - -declare module "lodash/functionsIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "functionsIn">; -} - -declare module "lodash/get" { - declare module.exports: $PropertyType<$Exports<"lodash">, "get">; -} - -declare module "lodash/has" { - declare module.exports: $PropertyType<$Exports<"lodash">, "has">; -} - -declare module "lodash/hasIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "hasIn">; -} - -declare module "lodash/invert" { - declare module.exports: $PropertyType<$Exports<"lodash">, "invert">; -} - -declare module "lodash/invertBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "invertBy">; -} - -declare module "lodash/invoke" { - declare module.exports: $PropertyType<$Exports<"lodash">, "invoke">; -} - -declare module "lodash/keys" { - declare module.exports: $PropertyType<$Exports<"lodash">, "keys">; -} - -declare module "lodash/keysIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "keysIn">; -} - -declare module "lodash/mapKeys" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mapKeys">; -} - -declare module "lodash/mapValues" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mapValues">; -} - -declare module "lodash/merge" { - declare module.exports: $PropertyType<$Exports<"lodash">, "merge">; -} - -declare module "lodash/mergeWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mergeWith">; -} - -declare module "lodash/omit" { - declare module.exports: $PropertyType<$Exports<"lodash">, "omit">; -} - -declare module "lodash/omitBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "omitBy">; -} - -declare module "lodash/pick" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pick">; -} - -declare module "lodash/pickBy" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pickBy">; -} - -declare module "lodash/result" { - declare module.exports: $PropertyType<$Exports<"lodash">, "result">; -} - -declare module "lodash/set" { - declare module.exports: $PropertyType<$Exports<"lodash">, "set">; -} - -declare module "lodash/setWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "setWith">; -} - -declare module "lodash/toPairs" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toPairs">; -} - -declare module "lodash/toPairsIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toPairsIn">; -} - -declare module "lodash/transform" { - declare module.exports: $PropertyType<$Exports<"lodash">, "transform">; -} - -declare module "lodash/unset" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unset">; -} - -declare module "lodash/update" { - declare module.exports: $PropertyType<$Exports<"lodash">, "update">; -} - -declare module "lodash/updateWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "updateWith">; -} - -declare module "lodash/values" { - declare module.exports: $PropertyType<$Exports<"lodash">, "values">; -} - -declare module "lodash/valuesIn" { - declare module.exports: $PropertyType<$Exports<"lodash">, "valuesIn">; -} - -declare module "lodash/chain" { - declare module.exports: $PropertyType<$Exports<"lodash">, "chain">; -} - -declare module "lodash/tap" { - declare module.exports: $PropertyType<$Exports<"lodash">, "tap">; -} - -declare module "lodash/thru" { - declare module.exports: $PropertyType<$Exports<"lodash">, "thru">; -} - -declare module "lodash/camelCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "camelCase">; -} - -declare module "lodash/capitalize" { - declare module.exports: $PropertyType<$Exports<"lodash">, "capitalize">; -} - -declare module "lodash/deburr" { - declare module.exports: $PropertyType<$Exports<"lodash">, "deburr">; -} - -declare module "lodash/endsWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "endsWith">; -} - -declare module "lodash/escape" { - declare module.exports: $PropertyType<$Exports<"lodash">, "escape">; -} - -declare module "lodash/escapeRegExp" { - declare module.exports: $PropertyType<$Exports<"lodash">, "escapeRegExp">; -} - -declare module "lodash/kebabCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "kebabCase">; -} - -declare module "lodash/lowerCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lowerCase">; -} - -declare module "lodash/lowerFirst" { - declare module.exports: $PropertyType<$Exports<"lodash">, "lowerFirst">; -} - -declare module "lodash/pad" { - declare module.exports: $PropertyType<$Exports<"lodash">, "pad">; -} - -declare module "lodash/padEnd" { - declare module.exports: $PropertyType<$Exports<"lodash">, "padEnd">; -} - -declare module "lodash/padStart" { - declare module.exports: $PropertyType<$Exports<"lodash">, "padStart">; -} - -declare module "lodash/parseInt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "parseInt">; -} - -declare module "lodash/repeat" { - declare module.exports: $PropertyType<$Exports<"lodash">, "repeat">; -} - -declare module "lodash/replace" { - declare module.exports: $PropertyType<$Exports<"lodash">, "replace">; -} - -declare module "lodash/snakeCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "snakeCase">; -} - -declare module "lodash/split" { - declare module.exports: $PropertyType<$Exports<"lodash">, "split">; -} - -declare module "lodash/startCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "startCase">; -} - -declare module "lodash/startsWith" { - declare module.exports: $PropertyType<$Exports<"lodash">, "startsWith">; -} - -declare module "lodash/template" { - declare module.exports: $PropertyType<$Exports<"lodash">, "template">; -} - -declare module "lodash/toLower" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toLower">; -} - -declare module "lodash/toUpper" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toUpper">; -} - -declare module "lodash/trim" { - declare module.exports: $PropertyType<$Exports<"lodash">, "trim">; -} - -declare module "lodash/trimEnd" { - declare module.exports: $PropertyType<$Exports<"lodash">, "trimEnd">; -} - -declare module "lodash/trimStart" { - declare module.exports: $PropertyType<$Exports<"lodash">, "trimStart">; -} - -declare module "lodash/truncate" { - declare module.exports: $PropertyType<$Exports<"lodash">, "truncate">; -} - -declare module "lodash/unescape" { - declare module.exports: $PropertyType<$Exports<"lodash">, "unescape">; -} - -declare module "lodash/upperCase" { - declare module.exports: $PropertyType<$Exports<"lodash">, "upperCase">; -} - -declare module "lodash/upperFirst" { - declare module.exports: $PropertyType<$Exports<"lodash">, "upperFirst">; -} - -declare module "lodash/words" { - declare module.exports: $PropertyType<$Exports<"lodash">, "words">; -} - -declare module "lodash/attempt" { - declare module.exports: $PropertyType<$Exports<"lodash">, "attempt">; -} - -declare module "lodash/bindAll" { - declare module.exports: $PropertyType<$Exports<"lodash">, "bindAll">; -} - -declare module "lodash/cond" { - declare module.exports: $PropertyType<$Exports<"lodash">, "cond">; -} - -declare module "lodash/conforms" { - declare module.exports: $PropertyType<$Exports<"lodash">, "conforms">; -} - -declare module "lodash/constant" { - declare module.exports: $PropertyType<$Exports<"lodash">, "constant">; -} - -declare module "lodash/defaultTo" { - declare module.exports: $PropertyType<$Exports<"lodash">, "defaultTo">; -} - -declare module "lodash/flow" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flow">; -} - -declare module "lodash/flowRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "flowRight">; -} - -declare module "lodash/identity" { - declare module.exports: $PropertyType<$Exports<"lodash">, "identity">; -} - -declare module "lodash/iteratee" { - declare module.exports: $PropertyType<$Exports<"lodash">, "iteratee">; -} - -declare module "lodash/matches" { - declare module.exports: $PropertyType<$Exports<"lodash">, "matches">; -} - -declare module "lodash/matchesProperty" { - declare module.exports: $PropertyType<$Exports<"lodash">, "matchesProperty">; -} - -declare module "lodash/method" { - declare module.exports: $PropertyType<$Exports<"lodash">, "method">; -} - -declare module "lodash/methodOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "methodOf">; -} - -declare module "lodash/mixin" { - declare module.exports: $PropertyType<$Exports<"lodash">, "mixin">; -} - -declare module "lodash/noConflict" { - declare module.exports: $PropertyType<$Exports<"lodash">, "noConflict">; -} - -declare module "lodash/noop" { - declare module.exports: $PropertyType<$Exports<"lodash">, "noop">; -} - -declare module "lodash/nthArg" { - declare module.exports: $PropertyType<$Exports<"lodash">, "nthArg">; -} - -declare module "lodash/over" { - declare module.exports: $PropertyType<$Exports<"lodash">, "over">; -} - -declare module "lodash/overEvery" { - declare module.exports: $PropertyType<$Exports<"lodash">, "overEvery">; -} - -declare module "lodash/overSome" { - declare module.exports: $PropertyType<$Exports<"lodash">, "overSome">; -} - -declare module "lodash/property" { - declare module.exports: $PropertyType<$Exports<"lodash">, "property">; -} - -declare module "lodash/propertyOf" { - declare module.exports: $PropertyType<$Exports<"lodash">, "propertyOf">; -} - -declare module "lodash/range" { - declare module.exports: $PropertyType<$Exports<"lodash">, "range">; -} - -declare module "lodash/rangeRight" { - declare module.exports: $PropertyType<$Exports<"lodash">, "rangeRight">; -} - -declare module "lodash/runInContext" { - declare module.exports: $PropertyType<$Exports<"lodash">, "runInContext">; -} - -declare module "lodash/stubArray" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubArray">; -} - -declare module "lodash/stubFalse" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubFalse">; -} - -declare module "lodash/stubObject" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubObject">; -} - -declare module "lodash/stubString" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubString">; -} - -declare module "lodash/stubTrue" { - declare module.exports: $PropertyType<$Exports<"lodash">, "stubTrue">; -} - -declare module "lodash/times" { - declare module.exports: $PropertyType<$Exports<"lodash">, "times">; -} - -declare module "lodash/toPath" { - declare module.exports: $PropertyType<$Exports<"lodash">, "toPath">; -} - -declare module "lodash/uniqueId" { - declare module.exports: $PropertyType<$Exports<"lodash">, "uniqueId">; -} - -declare module "lodash/fp/chunk" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "chunk">; -} - -declare module "lodash/fp/compact" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "compact">; -} - -declare module "lodash/fp/concat" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "concat">; -} - -declare module "lodash/fp/difference" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "difference">; -} - -declare module "lodash/fp/differenceBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "differenceBy">; -} - -declare module "lodash/fp/differenceWith" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "differenceWith" - >; -} - -declare module "lodash/fp/drop" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "drop">; -} - -declare module "lodash/fp/dropLast" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropLast">; -} - -declare module "lodash/fp/dropRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropRight">; -} - -declare module "lodash/fp/dropRightWhile" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "dropRightWhile" - >; -} - -declare module "lodash/fp/dropWhile" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropWhile">; -} - -declare module "lodash/fp/dropLastWhile" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropLastWhile">; -} - -declare module "lodash/fp/fill" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "fill">; -} - -declare module "lodash/fp/findIndex" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findIndex">; -} - -declare module "lodash/fp/findIndexFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findIndexFrom">; -} - -declare module "lodash/fp/findLastIndex" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLastIndex">; -} - -declare module "lodash/fp/findLastIndexFrom" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "findLastIndexFrom" - >; -} - -declare module "lodash/fp/first" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "first">; -} - -declare module "lodash/fp/flatten" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flatten">; -} - -declare module "lodash/fp/unnest" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unnest">; -} - -declare module "lodash/fp/flattenDeep" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flattenDeep">; -} - -declare module "lodash/fp/flattenDepth" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flattenDepth">; -} - -declare module "lodash/fp/fromPairs" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "fromPairs">; -} - -declare module "lodash/fp/head" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "head">; -} - -declare module "lodash/fp/indexOf" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "indexOf">; -} - -declare module "lodash/fp/indexOfFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "indexOfFrom">; -} - -declare module "lodash/fp/initial" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "initial">; -} - -declare module "lodash/fp/init" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "init">; -} - -declare module "lodash/fp/intersection" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "intersection">; -} - -declare module "lodash/fp/intersectionBy" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "intersectionBy" - >; -} - -declare module "lodash/fp/intersectionWith" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "intersectionWith" - >; -} - -declare module "lodash/fp/join" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "join">; -} - -declare module "lodash/fp/last" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "last">; -} - -declare module "lodash/fp/lastIndexOf" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lastIndexOf">; -} - -declare module "lodash/fp/lastIndexOfFrom" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "lastIndexOfFrom" - >; -} - -declare module "lodash/fp/nth" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "nth">; -} - -declare module "lodash/fp/pull" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pull">; -} - -declare module "lodash/fp/pullAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pullAll">; -} - -declare module "lodash/fp/pullAllBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pullAllBy">; -} - -declare module "lodash/fp/pullAllWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pullAllWith">; -} - -declare module "lodash/fp/pullAt" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pullAt">; -} - -declare module "lodash/fp/remove" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "remove">; -} - -declare module "lodash/fp/reverse" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "reverse">; -} - -declare module "lodash/fp/slice" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "slice">; -} - -declare module "lodash/fp/sortedIndex" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedIndex">; -} - -declare module "lodash/fp/sortedIndexBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedIndexBy">; -} - -declare module "lodash/fp/sortedIndexOf" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedIndexOf">; -} - -declare module "lodash/fp/sortedLastIndex" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "sortedLastIndex" - >; -} - -declare module "lodash/fp/sortedLastIndexBy" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "sortedLastIndexBy" - >; -} - -declare module "lodash/fp/sortedLastIndexOf" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "sortedLastIndexOf" - >; -} - -declare module "lodash/fp/sortedUniq" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedUniq">; -} - -declare module "lodash/fp/sortedUniqBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedUniqBy">; -} - -declare module "lodash/fp/tail" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "tail">; -} - -declare module "lodash/fp/take" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "take">; -} - -declare module "lodash/fp/takeRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeRight">; -} - -declare module "lodash/fp/takeLast" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeLast">; -} - -declare module "lodash/fp/takeRightWhile" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "takeRightWhile" - >; -} - -declare module "lodash/fp/takeLastWhile" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeLastWhile">; -} - -declare module "lodash/fp/takeWhile" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeWhile">; -} - -declare module "lodash/fp/union" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "union">; -} - -declare module "lodash/fp/unionBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unionBy">; -} - -declare module "lodash/fp/unionWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unionWith">; -} - -declare module "lodash/fp/uniq" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "uniq">; -} - -declare module "lodash/fp/uniqBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "uniqBy">; -} - -declare module "lodash/fp/uniqWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "uniqWith">; -} - -declare module "lodash/fp/unzip" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unzip">; -} - -declare module "lodash/fp/unzipWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unzipWith">; -} - -declare module "lodash/fp/without" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "without">; -} - -declare module "lodash/fp/xor" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "xor">; -} - -declare module "lodash/fp/symmetricDifference" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "symmetricDifference" - >; -} - -declare module "lodash/fp/xorBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "xorBy">; -} - -declare module "lodash/fp/symmetricDifferenceBy" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "symmetricDifferenceBy" - >; -} - -declare module "lodash/fp/xorWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "xorWith">; -} - -declare module "lodash/fp/symmetricDifferenceWith" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "symmetricDifferenceWith" - >; -} - -declare module "lodash/fp/zip" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zip">; -} - -declare module "lodash/fp/zipAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipAll">; -} - -declare module "lodash/fp/zipObject" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipObject">; -} - -declare module "lodash/fp/zipObj" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipObj">; -} - -declare module "lodash/fp/zipObjectDeep" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipObjectDeep">; -} - -declare module "lodash/fp/zipWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipWith">; -} - -declare module "lodash/fp/countBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "countBy">; -} - -declare module "lodash/fp/each" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "each">; -} - -declare module "lodash/fp/eachRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "eachRight">; -} - -declare module "lodash/fp/every" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "every">; -} - -declare module "lodash/fp/all" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "all">; -} - -declare module "lodash/fp/filter" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "filter">; -} - -declare module "lodash/fp/find" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "find">; -} - -declare module "lodash/fp/findFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findFrom">; -} - -declare module "lodash/fp/findLast" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLast">; -} - -declare module "lodash/fp/findLastFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLastFrom">; -} - -declare module "lodash/fp/flatMap" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flatMap">; -} - -declare module "lodash/fp/flatMapDeep" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flatMapDeep">; -} - -declare module "lodash/fp/flatMapDepth" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flatMapDepth">; -} - -declare module "lodash/fp/forEach" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forEach">; -} - -declare module "lodash/fp/forEachRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forEachRight">; -} - -declare module "lodash/fp/groupBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "groupBy">; -} - -declare module "lodash/fp/includes" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "includes">; -} - -declare module "lodash/fp/contains" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "contains">; -} - -declare module "lodash/fp/includesFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "includesFrom">; -} - -declare module "lodash/fp/invokeMap" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invokeMap">; -} - -declare module "lodash/fp/invokeArgsMap" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invokeArgsMap">; -} - -declare module "lodash/fp/keyBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "keyBy">; -} - -declare module "lodash/fp/indexBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "indexBy">; -} - -declare module "lodash/fp/map" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "map">; -} - -declare module "lodash/fp/pluck" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pluck">; -} - -declare module "lodash/fp/orderBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "orderBy">; -} - -declare module "lodash/fp/partition" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "partition">; -} - -declare module "lodash/fp/reduce" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "reduce">; -} - -declare module "lodash/fp/reduceRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "reduceRight">; -} - -declare module "lodash/fp/reject" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "reject">; -} - -declare module "lodash/fp/sample" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sample">; -} - -declare module "lodash/fp/sampleSize" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sampleSize">; -} - -declare module "lodash/fp/shuffle" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "shuffle">; -} - -declare module "lodash/fp/size" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "size">; -} - -declare module "lodash/fp/some" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "some">; -} - -declare module "lodash/fp/any" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "any">; -} - -declare module "lodash/fp/sortBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortBy">; -} - -declare module "lodash/fp/now" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "now">; -} - -declare module "lodash/fp/after" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "after">; -} - -declare module "lodash/fp/ary" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "ary">; -} - -declare module "lodash/fp/nAry" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "nAry">; -} - -declare module "lodash/fp/before" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "before">; -} - -declare module "lodash/fp/bind" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "bind">; -} - -declare module "lodash/fp/bindKey" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "bindKey">; -} - -declare module "lodash/fp/curry" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "curry">; -} - -declare module "lodash/fp/curryN" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "curryN">; -} - -declare module "lodash/fp/curryRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "curryRight">; -} - -declare module "lodash/fp/curryRightN" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "curryRightN">; -} - -declare module "lodash/fp/debounce" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "debounce">; -} - -declare module "lodash/fp/defer" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defer">; -} - -declare module "lodash/fp/delay" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "delay">; -} - -declare module "lodash/fp/flip" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flip">; -} - -declare module "lodash/fp/memoize" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "memoize">; -} - -declare module "lodash/fp/negate" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "negate">; -} - -declare module "lodash/fp/complement" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "complement">; -} - -declare module "lodash/fp/once" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "once">; -} - -declare module "lodash/fp/overArgs" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "overArgs">; -} - -declare module "lodash/fp/useWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "useWith">; -} - -declare module "lodash/fp/partial" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "partial">; -} - -declare module "lodash/fp/partialRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "partialRight">; -} - -declare module "lodash/fp/rearg" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rearg">; -} - -declare module "lodash/fp/rest" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rest">; -} - -declare module "lodash/fp/unapply" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unapply">; -} - -declare module "lodash/fp/restFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "restFrom">; -} - -declare module "lodash/fp/spread" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "spread">; -} - -declare module "lodash/fp/apply" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "apply">; -} - -declare module "lodash/fp/spreadFrom" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "spreadFrom">; -} - -declare module "lodash/fp/throttle" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "throttle">; -} - -declare module "lodash/fp/unary" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unary">; -} - -declare module "lodash/fp/wrap" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "wrap">; -} - -declare module "lodash/fp/castArray" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "castArray">; -} - -declare module "lodash/fp/clone" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "clone">; -} - -declare module "lodash/fp/cloneDeep" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "cloneDeep">; -} - -declare module "lodash/fp/cloneDeepWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "cloneDeepWith">; -} - -declare module "lodash/fp/cloneWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "cloneWith">; -} - -declare module "lodash/fp/conformsTo" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "conformsTo">; -} - -declare module "lodash/fp/where" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "where">; -} - -declare module "lodash/fp/conforms" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "conforms">; -} - -declare module "lodash/fp/eq" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "eq">; -} - -declare module "lodash/fp/identical" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "identical">; -} - -declare module "lodash/fp/gt" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "gt">; -} - -declare module "lodash/fp/gte" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "gte">; -} - -declare module "lodash/fp/isArguments" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArguments">; -} - -declare module "lodash/fp/isArray" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArray">; -} - -declare module "lodash/fp/isArrayBuffer" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArrayBuffer">; -} - -declare module "lodash/fp/isArrayLike" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArrayLike">; -} - -declare module "lodash/fp/isArrayLikeObject" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "isArrayLikeObject" - >; -} - -declare module "lodash/fp/isBoolean" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isBoolean">; -} - -declare module "lodash/fp/isBuffer" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isBuffer">; -} - -declare module "lodash/fp/isDate" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isDate">; -} - -declare module "lodash/fp/isElement" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isElement">; -} - -declare module "lodash/fp/isEmpty" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isEmpty">; -} - -declare module "lodash/fp/isEqual" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isEqual">; -} - -declare module "lodash/fp/equals" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "equals">; -} - -declare module "lodash/fp/isEqualWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isEqualWith">; -} - -declare module "lodash/fp/isError" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isError">; -} - -declare module "lodash/fp/isFinite" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isFinite">; -} - -declare module "lodash/fp/isFunction" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isFunction">; -} - -declare module "lodash/fp/isInteger" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isInteger">; -} - -declare module "lodash/fp/isLength" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isLength">; -} - -declare module "lodash/fp/isMap" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isMap">; -} - -declare module "lodash/fp/isMatch" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isMatch">; -} - -declare module "lodash/fp/whereEq" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "whereEq">; -} - -declare module "lodash/fp/isMatchWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isMatchWith">; -} - -declare module "lodash/fp/isNaN" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNaN">; -} - -declare module "lodash/fp/isNative" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNative">; -} - -declare module "lodash/fp/isNil" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNil">; -} - -declare module "lodash/fp/isNull" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNull">; -} - -declare module "lodash/fp/isNumber" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNumber">; -} - -declare module "lodash/fp/isObject" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isObject">; -} - -declare module "lodash/fp/isObjectLike" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isObjectLike">; -} - -declare module "lodash/fp/isPlainObject" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isPlainObject">; -} - -declare module "lodash/fp/isRegExp" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isRegExp">; -} - -declare module "lodash/fp/isSafeInteger" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isSafeInteger">; -} - -declare module "lodash/fp/isSet" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isSet">; -} - -declare module "lodash/fp/isString" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isString">; -} - -declare module "lodash/fp/isSymbol" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isSymbol">; -} - -declare module "lodash/fp/isTypedArray" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isTypedArray">; -} - -declare module "lodash/fp/isUndefined" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isUndefined">; -} - -declare module "lodash/fp/isWeakMap" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isWeakMap">; -} - -declare module "lodash/fp/isWeakSet" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isWeakSet">; -} - -declare module "lodash/fp/lt" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lt">; -} - -declare module "lodash/fp/lte" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lte">; -} - -declare module "lodash/fp/toArray" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toArray">; -} - -declare module "lodash/fp/toFinite" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toFinite">; -} - -declare module "lodash/fp/toInteger" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toInteger">; -} - -declare module "lodash/fp/toLength" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toLength">; -} - -declare module "lodash/fp/toNumber" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toNumber">; -} - -declare module "lodash/fp/toPlainObject" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toPlainObject">; -} - -declare module "lodash/fp/toSafeInteger" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toSafeInteger">; -} - -declare module "lodash/fp/toString" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toString">; -} - -declare module "lodash/fp/add" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "add">; -} - -declare module "lodash/fp/ceil" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "ceil">; -} - -declare module "lodash/fp/divide" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "divide">; -} - -declare module "lodash/fp/floor" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "floor">; -} - -declare module "lodash/fp/max" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "max">; -} - -declare module "lodash/fp/maxBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "maxBy">; -} - -declare module "lodash/fp/mean" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mean">; -} - -declare module "lodash/fp/meanBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "meanBy">; -} - -declare module "lodash/fp/min" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "min">; -} - -declare module "lodash/fp/minBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "minBy">; -} - -declare module "lodash/fp/multiply" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "multiply">; -} - -declare module "lodash/fp/round" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "round">; -} - -declare module "lodash/fp/subtract" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "subtract">; -} - -declare module "lodash/fp/sum" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sum">; -} - -declare module "lodash/fp/sumBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sumBy">; -} - -declare module "lodash/fp/clamp" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "clamp">; -} - -declare module "lodash/fp/inRange" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "inRange">; -} - -declare module "lodash/fp/random" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "random">; -} - -declare module "lodash/fp/assign" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assign">; -} - -declare module "lodash/fp/assignAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignAll">; -} - -declare module "lodash/fp/assignInAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignInAll">; -} - -declare module "lodash/fp/extendAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "extendAll">; -} - -declare module "lodash/fp/assignIn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignIn">; -} - -declare module "lodash/fp/assignInWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignInWith">; -} - -declare module "lodash/fp/assignWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignWith">; -} - -declare module "lodash/fp/assignInAllWith" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "assignInAllWith" - >; -} - -declare module "lodash/fp/extendAllWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "extendAllWith">; -} - -declare module "lodash/fp/assignAllWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignAllWith">; -} - -declare module "lodash/fp/at" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "at">; -} - -declare module "lodash/fp/props" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "props">; -} - -declare module "lodash/fp/paths" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "paths">; -} - -declare module "lodash/fp/create" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "create">; -} - -declare module "lodash/fp/defaults" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaults">; -} - -declare module "lodash/fp/defaultsAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaultsAll">; -} - -declare module "lodash/fp/defaultsDeep" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaultsDeep">; -} - -declare module "lodash/fp/defaultsDeepAll" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "defaultsDeepAll" - >; -} - -declare module "lodash/fp/entries" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "entries">; -} - -declare module "lodash/fp/entriesIn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "entriesIn">; -} - -declare module "lodash/fp/extend" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "extend">; -} - -declare module "lodash/fp/extendWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "extendWith">; -} - -declare module "lodash/fp/findKey" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findKey">; -} - -declare module "lodash/fp/findLastKey" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLastKey">; -} - -declare module "lodash/fp/forIn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forIn">; -} - -declare module "lodash/fp/forInRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forInRight">; -} - -declare module "lodash/fp/forOwn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forOwn">; -} - -declare module "lodash/fp/forOwnRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forOwnRight">; -} - -declare module "lodash/fp/functions" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "functions">; -} - -declare module "lodash/fp/functionsIn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "functionsIn">; -} - -declare module "lodash/fp/get" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "get">; -} - -declare module "lodash/fp/prop" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "prop">; -} - -declare module "lodash/fp/path" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "path">; -} - -declare module "lodash/fp/getOr" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "getOr">; -} - -declare module "lodash/fp/propOr" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "propOr">; -} - -declare module "lodash/fp/pathOr" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pathOr">; -} - -declare module "lodash/fp/has" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "has">; -} - -declare module "lodash/fp/hasIn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "hasIn">; -} - -declare module "lodash/fp/invert" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invert">; -} - -declare module "lodash/fp/invertObj" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invertObj">; -} - -declare module "lodash/fp/invertBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invertBy">; -} - -declare module "lodash/fp/invoke" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invoke">; -} - -declare module "lodash/fp/invokeArgs" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invokeArgs">; -} - -declare module "lodash/fp/keys" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "keys">; -} - -declare module "lodash/fp/keysIn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "keysIn">; -} - -declare module "lodash/fp/mapKeys" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mapKeys">; -} - -declare module "lodash/fp/mapValues" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mapValues">; -} - -declare module "lodash/fp/merge" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "merge">; -} - -declare module "lodash/fp/mergeAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mergeAll">; -} - -declare module "lodash/fp/mergeWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mergeWith">; -} - -declare module "lodash/fp/mergeAllWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mergeAllWith">; -} - -declare module "lodash/fp/omit" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "omit">; -} - -declare module "lodash/fp/omitAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "omitAll">; -} - -declare module "lodash/fp/omitBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "omitBy">; -} - -declare module "lodash/fp/pick" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pick">; -} - -declare module "lodash/fp/pickAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pickAll">; -} - -declare module "lodash/fp/pickBy" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pickBy">; -} - -declare module "lodash/fp/result" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "result">; -} - -declare module "lodash/fp/set" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "set">; -} - -declare module "lodash/fp/assoc" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assoc">; -} - -declare module "lodash/fp/assocPath" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assocPath">; -} - -declare module "lodash/fp/setWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "setWith">; -} - -declare module "lodash/fp/toPairs" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toPairs">; -} - -declare module "lodash/fp/toPairsIn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toPairsIn">; -} - -declare module "lodash/fp/transform" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "transform">; -} - -declare module "lodash/fp/unset" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unset">; -} - -declare module "lodash/fp/dissoc" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dissoc">; -} - -declare module "lodash/fp/dissocPath" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dissocPath">; -} - -declare module "lodash/fp/update" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "update">; -} - -declare module "lodash/fp/updateWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "updateWith">; -} - -declare module "lodash/fp/values" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "values">; -} - -declare module "lodash/fp/valuesIn" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "valuesIn">; -} - -declare module "lodash/fp/tap" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "tap">; -} - -declare module "lodash/fp/thru" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "thru">; -} - -declare module "lodash/fp/camelCase" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "camelCase">; -} - -declare module "lodash/fp/capitalize" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "capitalize">; -} - -declare module "lodash/fp/deburr" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "deburr">; -} - -declare module "lodash/fp/endsWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "endsWith">; -} - -declare module "lodash/fp/escape" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "escape">; -} - -declare module "lodash/fp/escapeRegExp" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "escapeRegExp">; -} - -declare module "lodash/fp/kebabCase" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "kebabCase">; -} - -declare module "lodash/fp/lowerCase" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lowerCase">; -} - -declare module "lodash/fp/lowerFirst" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lowerFirst">; -} - -declare module "lodash/fp/pad" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pad">; -} - -declare module "lodash/fp/padChars" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padChars">; -} - -declare module "lodash/fp/padEnd" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padEnd">; -} - -declare module "lodash/fp/padCharsEnd" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padCharsEnd">; -} - -declare module "lodash/fp/padStart" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padStart">; -} - -declare module "lodash/fp/padCharsStart" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padCharsStart">; -} - -declare module "lodash/fp/parseInt" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "parseInt">; -} - -declare module "lodash/fp/repeat" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "repeat">; -} - -declare module "lodash/fp/replace" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "replace">; -} - -declare module "lodash/fp/snakeCase" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "snakeCase">; -} - -declare module "lodash/fp/split" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "split">; -} - -declare module "lodash/fp/startCase" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "startCase">; -} - -declare module "lodash/fp/startsWith" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "startsWith">; -} - -declare module "lodash/fp/template" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "template">; -} - -declare module "lodash/fp/toLower" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toLower">; -} - -declare module "lodash/fp/toUpper" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toUpper">; -} - -declare module "lodash/fp/trim" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trim">; -} - -declare module "lodash/fp/trimChars" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimChars">; -} - -declare module "lodash/fp/trimEnd" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimEnd">; -} - -declare module "lodash/fp/trimCharsEnd" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimCharsEnd">; -} - -declare module "lodash/fp/trimStart" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimStart">; -} - -declare module "lodash/fp/trimCharsStart" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "trimCharsStart" - >; -} - -declare module "lodash/fp/truncate" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "truncate">; -} - -declare module "lodash/fp/unescape" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unescape">; -} - -declare module "lodash/fp/upperCase" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "upperCase">; -} - -declare module "lodash/fp/upperFirst" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "upperFirst">; -} - -declare module "lodash/fp/words" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "words">; -} - -declare module "lodash/fp/attempt" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "attempt">; -} - -declare module "lodash/fp/bindAll" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "bindAll">; -} - -declare module "lodash/fp/cond" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "cond">; -} - -declare module "lodash/fp/constant" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "constant">; -} - -declare module "lodash/fp/always" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "always">; -} - -declare module "lodash/fp/defaultTo" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaultTo">; -} - -declare module "lodash/fp/flow" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flow">; -} - -declare module "lodash/fp/pipe" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pipe">; -} - -declare module "lodash/fp/flowRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flowRight">; -} - -declare module "lodash/fp/compose" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "compose">; -} - -declare module "lodash/fp/identity" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "identity">; -} - -declare module "lodash/fp/iteratee" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "iteratee">; -} - -declare module "lodash/fp/matches" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "matches">; -} - -declare module "lodash/fp/matchesProperty" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "matchesProperty" - >; -} - -declare module "lodash/fp/propEq" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "propEq">; -} - -declare module "lodash/fp/pathEq" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pathEq">; -} - -declare module "lodash/fp/method" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "method">; -} - -declare module "lodash/fp/methodOf" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "methodOf">; -} - -declare module "lodash/fp/mixin" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mixin">; -} - -declare module "lodash/fp/noConflict" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "noConflict">; -} - -declare module "lodash/fp/noop" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "noop">; -} - -declare module "lodash/fp/nthArg" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "nthArg">; -} - -declare module "lodash/fp/over" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "over">; -} - -declare module "lodash/fp/juxt" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "juxt">; -} - -declare module "lodash/fp/overEvery" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "overEvery">; -} - -declare module "lodash/fp/allPass" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "allPass">; -} - -declare module "lodash/fp/overSome" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "overSome">; -} - -declare module "lodash/fp/anyPass" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "anyPass">; -} - -declare module "lodash/fp/property" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "property">; -} - -declare module "lodash/fp/propertyOf" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "propertyOf">; -} - -declare module "lodash/fp/range" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "range">; -} - -declare module "lodash/fp/rangeStep" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rangeStep">; -} - -declare module "lodash/fp/rangeRight" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rangeRight">; -} - -declare module "lodash/fp/rangeStepRight" { - declare module.exports: $PropertyType< - $Exports<"lodash/fp">, - "rangeStepRight" - >; -} - -declare module "lodash/fp/runInContext" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "runInContext">; -} - -declare module "lodash/fp/stubArray" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubArray">; -} - -declare module "lodash/fp/stubFalse" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubFalse">; -} - -declare module "lodash/fp/F" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "F">; -} - -declare module "lodash/fp/stubObject" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubObject">; -} - -declare module "lodash/fp/stubString" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubString">; -} - -declare module "lodash/fp/stubTrue" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubTrue">; -} - -declare module "lodash/fp/T" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "T">; -} - -declare module "lodash/fp/times" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "times">; -} - -declare module "lodash/fp/toPath" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toPath">; -} - -declare module "lodash/fp/uniqueId" { - declare module.exports: $PropertyType<$Exports<"lodash/fp">, "uniqueId">; -} diff --git a/desktop/flow-typed/npm/needle_vx.x.x.js b/desktop/flow-typed/npm/needle_vx.x.x.js deleted file mode 100644 index b96790bd1..000000000 --- a/desktop/flow-typed/npm/needle_vx.x.x.js +++ /dev/null @@ -1,291 +0,0 @@ -// flow-typed signature: 290caff3b97efa4471b18ff001038a13 -// flow-typed version: <>/needle_v2.2.1/flow_v0.69.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'needle' - * - * 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 'needle' { - 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 'needle/examples/deflated-stream' { - declare module.exports: any; -} - -declare module 'needle/examples/digest-auth' { - declare module.exports: any; -} - -declare module 'needle/examples/download-to-file' { - declare module.exports: any; -} - -declare module 'needle/examples/multipart-stream' { - declare module.exports: any; -} - -declare module 'needle/examples/parsed-stream' { - declare module.exports: any; -} - -declare module 'needle/examples/parsed-stream2' { - declare module.exports: any; -} - -declare module 'needle/examples/stream-events' { - declare module.exports: any; -} - -declare module 'needle/examples/stream-to-file' { - declare module.exports: any; -} - -declare module 'needle/examples/upload-image' { - declare module.exports: any; -} - -declare module 'needle/lib/auth' { - declare module.exports: any; -} - -declare module 'needle/lib/cookies' { - declare module.exports: any; -} - -declare module 'needle/lib/decoder' { - declare module.exports: any; -} - -declare module 'needle/lib/multipart' { - declare module.exports: any; -} - -declare module 'needle/lib/needle' { - declare module.exports: any; -} - -declare module 'needle/lib/parsers' { - declare module.exports: any; -} - -declare module 'needle/lib/querystring' { - declare module.exports: any; -} - -declare module 'needle/test/basic_auth_spec' { - declare module.exports: any; -} - -declare module 'needle/test/compression_spec' { - declare module.exports: any; -} - -declare module 'needle/test/cookies_spec' { - declare module.exports: any; -} - -declare module 'needle/test/decoder_spec' { - declare module.exports: any; -} - -declare module 'needle/test/errors_spec' { - declare module.exports: any; -} - -declare module 'needle/test/headers_spec' { - declare module.exports: any; -} - -declare module 'needle/test/helpers' { - declare module.exports: any; -} - -declare module 'needle/test/long_string_spec' { - declare module.exports: any; -} - -declare module 'needle/test/output_spec' { - declare module.exports: any; -} - -declare module 'needle/test/parsing_spec' { - declare module.exports: any; -} - -declare module 'needle/test/post_data_spec' { - declare module.exports: any; -} - -declare module 'needle/test/proxy_spec' { - declare module.exports: any; -} - -declare module 'needle/test/querystring_spec' { - declare module.exports: any; -} - -declare module 'needle/test/redirect_spec' { - declare module.exports: any; -} - -declare module 'needle/test/redirect_with_timeout' { - declare module.exports: any; -} - -declare module 'needle/test/request_stream_spec' { - declare module.exports: any; -} - -declare module 'needle/test/response_stream_spec' { - declare module.exports: any; -} - -declare module 'needle/test/socket_pool_spec' { - declare module.exports: any; -} - -declare module 'needle/test/url_spec' { - declare module.exports: any; -} - -declare module 'needle/test/utils/formidable' { - declare module.exports: any; -} - -declare module 'needle/test/utils/proxy' { - declare module.exports: any; -} - -declare module 'needle/test/utils/test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'needle/examples/deflated-stream.js' { - declare module.exports: $Exports<'needle/examples/deflated-stream'>; -} -declare module 'needle/examples/digest-auth.js' { - declare module.exports: $Exports<'needle/examples/digest-auth'>; -} -declare module 'needle/examples/download-to-file.js' { - declare module.exports: $Exports<'needle/examples/download-to-file'>; -} -declare module 'needle/examples/multipart-stream.js' { - declare module.exports: $Exports<'needle/examples/multipart-stream'>; -} -declare module 'needle/examples/parsed-stream.js' { - declare module.exports: $Exports<'needle/examples/parsed-stream'>; -} -declare module 'needle/examples/parsed-stream2.js' { - declare module.exports: $Exports<'needle/examples/parsed-stream2'>; -} -declare module 'needle/examples/stream-events.js' { - declare module.exports: $Exports<'needle/examples/stream-events'>; -} -declare module 'needle/examples/stream-to-file.js' { - declare module.exports: $Exports<'needle/examples/stream-to-file'>; -} -declare module 'needle/examples/upload-image.js' { - declare module.exports: $Exports<'needle/examples/upload-image'>; -} -declare module 'needle/lib/auth.js' { - declare module.exports: $Exports<'needle/lib/auth'>; -} -declare module 'needle/lib/cookies.js' { - declare module.exports: $Exports<'needle/lib/cookies'>; -} -declare module 'needle/lib/decoder.js' { - declare module.exports: $Exports<'needle/lib/decoder'>; -} -declare module 'needle/lib/multipart.js' { - declare module.exports: $Exports<'needle/lib/multipart'>; -} -declare module 'needle/lib/needle.js' { - declare module.exports: $Exports<'needle/lib/needle'>; -} -declare module 'needle/lib/parsers.js' { - declare module.exports: $Exports<'needle/lib/parsers'>; -} -declare module 'needle/lib/querystring.js' { - declare module.exports: $Exports<'needle/lib/querystring'>; -} -declare module 'needle/test/basic_auth_spec.js' { - declare module.exports: $Exports<'needle/test/basic_auth_spec'>; -} -declare module 'needle/test/compression_spec.js' { - declare module.exports: $Exports<'needle/test/compression_spec'>; -} -declare module 'needle/test/cookies_spec.js' { - declare module.exports: $Exports<'needle/test/cookies_spec'>; -} -declare module 'needle/test/decoder_spec.js' { - declare module.exports: $Exports<'needle/test/decoder_spec'>; -} -declare module 'needle/test/errors_spec.js' { - declare module.exports: $Exports<'needle/test/errors_spec'>; -} -declare module 'needle/test/headers_spec.js' { - declare module.exports: $Exports<'needle/test/headers_spec'>; -} -declare module 'needle/test/helpers.js' { - declare module.exports: $Exports<'needle/test/helpers'>; -} -declare module 'needle/test/long_string_spec.js' { - declare module.exports: $Exports<'needle/test/long_string_spec'>; -} -declare module 'needle/test/output_spec.js' { - declare module.exports: $Exports<'needle/test/output_spec'>; -} -declare module 'needle/test/parsing_spec.js' { - declare module.exports: $Exports<'needle/test/parsing_spec'>; -} -declare module 'needle/test/post_data_spec.js' { - declare module.exports: $Exports<'needle/test/post_data_spec'>; -} -declare module 'needle/test/proxy_spec.js' { - declare module.exports: $Exports<'needle/test/proxy_spec'>; -} -declare module 'needle/test/querystring_spec.js' { - declare module.exports: $Exports<'needle/test/querystring_spec'>; -} -declare module 'needle/test/redirect_spec.js' { - declare module.exports: $Exports<'needle/test/redirect_spec'>; -} -declare module 'needle/test/redirect_with_timeout.js' { - declare module.exports: $Exports<'needle/test/redirect_with_timeout'>; -} -declare module 'needle/test/request_stream_spec.js' { - declare module.exports: $Exports<'needle/test/request_stream_spec'>; -} -declare module 'needle/test/response_stream_spec.js' { - declare module.exports: $Exports<'needle/test/response_stream_spec'>; -} -declare module 'needle/test/socket_pool_spec.js' { - declare module.exports: $Exports<'needle/test/socket_pool_spec'>; -} -declare module 'needle/test/url_spec.js' { - declare module.exports: $Exports<'needle/test/url_spec'>; -} -declare module 'needle/test/utils/formidable.js' { - declare module.exports: $Exports<'needle/test/utils/formidable'>; -} -declare module 'needle/test/utils/proxy.js' { - declare module.exports: $Exports<'needle/test/utils/proxy'>; -} -declare module 'needle/test/utils/test.js' { - declare module.exports: $Exports<'needle/test/utils/test'>; -} diff --git a/desktop/flow-typed/npm/react-chartjs-2_vx.x.x.js b/desktop/flow-typed/npm/react-chartjs-2_vx.x.x.js deleted file mode 100644 index 4355b4633..000000000 --- a/desktop/flow-typed/npm/react-chartjs-2_vx.x.x.js +++ /dev/null @@ -1,18 +0,0 @@ -// flow-typed signature: 033193531f49f251b11350a57a58eb12 -// flow-typed version: <>/react-chartjs-2_vlatest/flow_v0.69.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-chartjs-2' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-chartjs-2' { - declare module.exports: any; -} diff --git a/desktop/flow-typed/npm/react-d3-tree_vx.x.x.js b/desktop/flow-typed/npm/react-d3-tree_vx.x.x.js deleted file mode 100644 index e491d8ad2..000000000 --- a/desktop/flow-typed/npm/react-d3-tree_vx.x.x.js +++ /dev/null @@ -1,179 +0,0 @@ -// flow-typed signature: 32f203474854b8a1d378914b9461a972 -// flow-typed version: <>/react-d3-tree_v1.12.0/flow_v0.86.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-d3-tree' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-d3-tree' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-d3-tree/jest/mocks/cssModule' { - declare module.exports: any; -} - -declare module 'react-d3-tree/jest/mocks/image' { - declare module.exports: any; -} - -declare module 'react-d3-tree/jest/polyfills/raf' { - declare module.exports: any; -} - -declare module 'react-d3-tree/jest/setup' { - declare module.exports: any; -} - -declare module 'react-d3-tree/lib/react-d3-tree.min' { - declare module.exports: any; -} - -declare module 'react-d3-tree/scripts/generateMarkdown' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/index' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Link/index' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Link/tests/index.test' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Node/ForeignObjectElement' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Node/index' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Node/SvgTextElement' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Node/tests/ForeignObjectElement.test' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Node/tests/index.test' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Node/tests/SvgTextElement.test' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Tree/index' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Tree/NodeWrapper' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Tree/tests/index.test' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Tree/tests/mockData' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/Tree/tests/NodeWrapper.test' { - declare module.exports: any; -} - -declare module 'react-d3-tree/src/util/index' { - declare module.exports: any; -} - -declare module 'react-d3-tree/webpack.config' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-d3-tree/jest/mocks/cssModule.js' { - declare module.exports: $Exports<'react-d3-tree/jest/mocks/cssModule'>; -} -declare module 'react-d3-tree/jest/mocks/image.js' { - declare module.exports: $Exports<'react-d3-tree/jest/mocks/image'>; -} -declare module 'react-d3-tree/jest/polyfills/raf.js' { - declare module.exports: $Exports<'react-d3-tree/jest/polyfills/raf'>; -} -declare module 'react-d3-tree/jest/setup.js' { - declare module.exports: $Exports<'react-d3-tree/jest/setup'>; -} -declare module 'react-d3-tree/lib/react-d3-tree.min.js' { - declare module.exports: $Exports<'react-d3-tree/lib/react-d3-tree.min'>; -} -declare module 'react-d3-tree/scripts/generateMarkdown.js' { - declare module.exports: $Exports<'react-d3-tree/scripts/generateMarkdown'>; -} -declare module 'react-d3-tree/src/index.js' { - declare module.exports: $Exports<'react-d3-tree/src/index'>; -} -declare module 'react-d3-tree/src/Link/index.js' { - declare module.exports: $Exports<'react-d3-tree/src/Link/index'>; -} -declare module 'react-d3-tree/src/Link/tests/index.test.js' { - declare module.exports: $Exports<'react-d3-tree/src/Link/tests/index.test'>; -} -declare module 'react-d3-tree/src/Node/ForeignObjectElement.js' { - declare module.exports: $Exports<'react-d3-tree/src/Node/ForeignObjectElement'>; -} -declare module 'react-d3-tree/src/Node/index.js' { - declare module.exports: $Exports<'react-d3-tree/src/Node/index'>; -} -declare module 'react-d3-tree/src/Node/SvgTextElement.js' { - declare module.exports: $Exports<'react-d3-tree/src/Node/SvgTextElement'>; -} -declare module 'react-d3-tree/src/Node/tests/ForeignObjectElement.test.js' { - declare module.exports: $Exports<'react-d3-tree/src/Node/tests/ForeignObjectElement.test'>; -} -declare module 'react-d3-tree/src/Node/tests/index.test.js' { - declare module.exports: $Exports<'react-d3-tree/src/Node/tests/index.test'>; -} -declare module 'react-d3-tree/src/Node/tests/SvgTextElement.test.js' { - declare module.exports: $Exports<'react-d3-tree/src/Node/tests/SvgTextElement.test'>; -} -declare module 'react-d3-tree/src/Tree/index.js' { - declare module.exports: $Exports<'react-d3-tree/src/Tree/index'>; -} -declare module 'react-d3-tree/src/Tree/NodeWrapper.js' { - declare module.exports: $Exports<'react-d3-tree/src/Tree/NodeWrapper'>; -} -declare module 'react-d3-tree/src/Tree/tests/index.test.js' { - declare module.exports: $Exports<'react-d3-tree/src/Tree/tests/index.test'>; -} -declare module 'react-d3-tree/src/Tree/tests/mockData.js' { - declare module.exports: $Exports<'react-d3-tree/src/Tree/tests/mockData'>; -} -declare module 'react-d3-tree/src/Tree/tests/NodeWrapper.test.js' { - declare module.exports: $Exports<'react-d3-tree/src/Tree/tests/NodeWrapper.test'>; -} -declare module 'react-d3-tree/src/util/index.js' { - declare module.exports: $Exports<'react-d3-tree/src/util/index'>; -} -declare module 'react-d3-tree/webpack.config.js' { - declare module.exports: $Exports<'react-d3-tree/webpack.config'>; -} diff --git a/desktop/flow-typed/npm/react-stepper-horizontal_vx.x.x.js b/desktop/flow-typed/npm/react-stepper-horizontal_vx.x.x.js deleted file mode 100644 index 163f71a56..000000000 --- a/desktop/flow-typed/npm/react-stepper-horizontal_vx.x.x.js +++ /dev/null @@ -1,49 +0,0 @@ -// flow-typed signature: f8556e312538a69cb4b93dca5618b82a -// flow-typed version: <>/react-stepper-horizontal_v1.0.11/flow_v0.102.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-stepper-horizontal' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-stepper-horizontal' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-stepper-horizontal/lib' { - declare module.exports: any; -} - -declare module 'react-stepper-horizontal/lib/Step' { - declare module.exports: any; -} - -declare module 'react-stepper-horizontal/lib/Stepper' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-stepper-horizontal/lib/index' { - declare module.exports: $Exports<'react-stepper-horizontal/lib'>; -} -declare module 'react-stepper-horizontal/lib/index.js' { - declare module.exports: $Exports<'react-stepper-horizontal/lib'>; -} -declare module 'react-stepper-horizontal/lib/Step.js' { - declare module.exports: $Exports<'react-stepper-horizontal/lib/Step'>; -} -declare module 'react-stepper-horizontal/lib/Stepper.js' { - declare module.exports: $Exports<'react-stepper-horizontal/lib/Stepper'>; -} diff --git a/desktop/flow-typed/npm/react-virtualized_vx.x.x.js b/desktop/flow-typed/npm/react-virtualized_vx.x.x.js deleted file mode 100644 index e26d1aa95..000000000 --- a/desktop/flow-typed/npm/react-virtualized_vx.x.x.js +++ /dev/null @@ -1,1376 +0,0 @@ -// flow-typed signature: 7ad3746a26284155ba00efee65b4be9b -// flow-typed version: <>/react-virtualized_v^9.13.0/flow_v0.59.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-virtualized' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'react-virtualized' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'react-virtualized/dist/commonjs/ArrowKeyStepper/ArrowKeyStepper.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ArrowKeyStepper/ArrowKeyStepper' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ArrowKeyStepper/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ArrowKeyStepper/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/AutoSizer/AutoSizer.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/AutoSizer/AutoSizer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/AutoSizer/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/AutoSizer/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurer.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurerCache.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurerCache' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/CellMeasurer/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/Collection.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/Collection' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/CollectionView' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/Section.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/Section' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/SectionManager.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/SectionManager' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/TestData' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/utils/calculateSizeAndPositionData.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Collection/utils/calculateSizeAndPositionData' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ColumnSizer/ColumnSizer.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ColumnSizer/ColumnSizer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ColumnSizer/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/accessibilityOverscanIndicesGetter.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/accessibilityOverscanIndicesGetter' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/defaultCellRangeRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/defaultOverscanIndicesGetter.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/defaultOverscanIndicesGetter' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/Grid.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/Grid' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/utils/CellSizeAndPositionManager.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/utils/CellSizeAndPositionManager' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/utils/ScalingCellSizeAndPositionManager.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/utils/ScalingCellSizeAndPositionManager' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/utils/updateScrollIndexHelper.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Grid/utils/updateScrollIndexHelper' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/InfiniteLoader/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/InfiniteLoader/InfiniteLoader.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/InfiniteLoader/InfiniteLoader' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/jest-setup' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/List/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/List/List.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/List/List' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/List/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Masonry/createCellPositioner' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Masonry/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Masonry/Masonry.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Masonry/Masonry' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Masonry/PositionCache' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/MultiGrid/CellMeasurerCacheDecorator' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/MultiGrid/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/MultiGrid/MultiGrid.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/MultiGrid/MultiGrid' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ScrollSync/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ScrollSync/ScrollSync.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/ScrollSync/ScrollSync' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/Column.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/Column' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/defaultCellDataGetter' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/defaultCellRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/defaultHeaderRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/defaultHeaderRowRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/defaultRowRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/SortDirection' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/SortIndicator' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/Table.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/Table' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/Table/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/TestUtils' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/utils/animationFrame' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/utils/createCallbackMemoizer.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/utils/createCallbackMemoizer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/utils/getUpdatedOffsetForIndex.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/utils/getUpdatedOffsetForIndex' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/utils/initCellMetadata' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/utils/requestAnimationTimeout' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/utils/TestHelper' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/vendor/binarySearchBounds' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/vendor/detectElementResize' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/vendor/intervalTree' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/WindowScroller/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/WindowScroller/utils/dimensions' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/WindowScroller/utils/onScroll' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/WindowScroller/WindowScroller.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/commonjs/WindowScroller/WindowScroller' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ArrowKeyStepper/ArrowKeyStepper.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ArrowKeyStepper/ArrowKeyStepper' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ArrowKeyStepper/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ArrowKeyStepper/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/AutoSizer/AutoSizer.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/AutoSizer/AutoSizer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/AutoSizer/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/AutoSizer/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/CellMeasurer/CellMeasurer.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/CellMeasurer/CellMeasurer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/CellMeasurer/CellMeasurerCache.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/CellMeasurer/CellMeasurerCache' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/CellMeasurer/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/Collection.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/Collection' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/CollectionView' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/Section.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/Section' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/SectionManager.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/SectionManager' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/TestData' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/utils/calculateSizeAndPositionData.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Collection/utils/calculateSizeAndPositionData' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ColumnSizer/ColumnSizer.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ColumnSizer/ColumnSizer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ColumnSizer/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/accessibilityOverscanIndicesGetter.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/accessibilityOverscanIndicesGetter' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/defaultCellRangeRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/defaultOverscanIndicesGetter.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/defaultOverscanIndicesGetter' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/Grid.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/Grid' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/utils/CellSizeAndPositionManager.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/utils/CellSizeAndPositionManager' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/utils/ScalingCellSizeAndPositionManager.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/utils/ScalingCellSizeAndPositionManager' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/utils/updateScrollIndexHelper.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Grid/utils/updateScrollIndexHelper' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/InfiniteLoader/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/InfiniteLoader/InfiniteLoader.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/InfiniteLoader/InfiniteLoader' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/jest-setup' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/List/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/List/List.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/List/List' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/List/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Masonry/createCellPositioner' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Masonry/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Masonry/Masonry.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Masonry/Masonry' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Masonry/PositionCache' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/MultiGrid/CellMeasurerCacheDecorator' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/MultiGrid/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/MultiGrid/MultiGrid.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/MultiGrid/MultiGrid' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ScrollSync/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ScrollSync/ScrollSync.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/ScrollSync/ScrollSync' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/Column.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/Column' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/defaultCellDataGetter' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/defaultCellRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/defaultHeaderRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/defaultHeaderRowRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/defaultRowRenderer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/SortDirection' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/SortIndicator' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/Table.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/Table' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/Table/types' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/TestUtils' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/utils/animationFrame' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/utils/createCallbackMemoizer.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/utils/createCallbackMemoizer' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/utils/getUpdatedOffsetForIndex.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/utils/getUpdatedOffsetForIndex' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/utils/initCellMetadata' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/utils/requestAnimationTimeout' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/utils/TestHelper' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/vendor/binarySearchBounds' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/vendor/detectElementResize' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/vendor/intervalTree' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/WindowScroller/index' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/WindowScroller/utils/dimensions' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/WindowScroller/utils/onScroll' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/WindowScroller/WindowScroller.jest' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/es/WindowScroller/WindowScroller' { - declare module.exports: any; -} - -declare module 'react-virtualized/dist/umd/react-virtualized' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-virtualized/dist/commonjs/ArrowKeyStepper/ArrowKeyStepper.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ArrowKeyStepper/ArrowKeyStepper.jest'>; -} -declare module 'react-virtualized/dist/commonjs/ArrowKeyStepper/ArrowKeyStepper.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ArrowKeyStepper/ArrowKeyStepper'>; -} -declare module 'react-virtualized/dist/commonjs/ArrowKeyStepper/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ArrowKeyStepper/index'>; -} -declare module 'react-virtualized/dist/commonjs/ArrowKeyStepper/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ArrowKeyStepper/types'>; -} -declare module 'react-virtualized/dist/commonjs/AutoSizer/AutoSizer.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/AutoSizer/AutoSizer.jest'>; -} -declare module 'react-virtualized/dist/commonjs/AutoSizer/AutoSizer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/AutoSizer/AutoSizer'>; -} -declare module 'react-virtualized/dist/commonjs/AutoSizer/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/AutoSizer/index'>; -} -declare module 'react-virtualized/dist/commonjs/AutoSizer/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/AutoSizer/types'>; -} -declare module 'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurer.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurer.jest'>; -} -declare module 'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurer'>; -} -declare module 'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurerCache.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurerCache.jest'>; -} -declare module 'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurerCache.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/CellMeasurer/CellMeasurerCache'>; -} -declare module 'react-virtualized/dist/commonjs/CellMeasurer/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/CellMeasurer/index'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/Collection.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/Collection.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/Collection.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/Collection'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/CollectionView.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/CollectionView'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/index'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/Section.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/Section.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/Section.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/Section'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/SectionManager.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/SectionManager.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/SectionManager.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/SectionManager'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/TestData.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/TestData'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/types'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/utils/calculateSizeAndPositionData.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/utils/calculateSizeAndPositionData.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Collection/utils/calculateSizeAndPositionData.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Collection/utils/calculateSizeAndPositionData'>; -} -declare module 'react-virtualized/dist/commonjs/ColumnSizer/ColumnSizer.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ColumnSizer/ColumnSizer.jest'>; -} -declare module 'react-virtualized/dist/commonjs/ColumnSizer/ColumnSizer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ColumnSizer/ColumnSizer'>; -} -declare module 'react-virtualized/dist/commonjs/ColumnSizer/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ColumnSizer/index'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/accessibilityOverscanIndicesGetter.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/accessibilityOverscanIndicesGetter.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/accessibilityOverscanIndicesGetter.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/accessibilityOverscanIndicesGetter'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/defaultCellRangeRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/defaultCellRangeRenderer'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/defaultOverscanIndicesGetter.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/defaultOverscanIndicesGetter.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/defaultOverscanIndicesGetter.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/defaultOverscanIndicesGetter'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/Grid.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/Grid.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/Grid.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/Grid'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/index'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/types'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/utils/CellSizeAndPositionManager.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/utils/CellSizeAndPositionManager.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/utils/CellSizeAndPositionManager.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/utils/CellSizeAndPositionManager'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/utils/ScalingCellSizeAndPositionManager.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/utils/ScalingCellSizeAndPositionManager.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/utils/ScalingCellSizeAndPositionManager.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/utils/ScalingCellSizeAndPositionManager'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/utils/updateScrollIndexHelper.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/utils/updateScrollIndexHelper.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Grid/utils/updateScrollIndexHelper.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Grid/utils/updateScrollIndexHelper'>; -} -declare module 'react-virtualized/dist/commonjs/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/index'>; -} -declare module 'react-virtualized/dist/commonjs/InfiniteLoader/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/InfiniteLoader/index'>; -} -declare module 'react-virtualized/dist/commonjs/InfiniteLoader/InfiniteLoader.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/InfiniteLoader/InfiniteLoader.jest'>; -} -declare module 'react-virtualized/dist/commonjs/InfiniteLoader/InfiniteLoader.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/InfiniteLoader/InfiniteLoader'>; -} -declare module 'react-virtualized/dist/commonjs/jest-setup.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/jest-setup'>; -} -declare module 'react-virtualized/dist/commonjs/List/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/List/index'>; -} -declare module 'react-virtualized/dist/commonjs/List/List.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/List/List.jest'>; -} -declare module 'react-virtualized/dist/commonjs/List/List.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/List/List'>; -} -declare module 'react-virtualized/dist/commonjs/List/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/List/types'>; -} -declare module 'react-virtualized/dist/commonjs/Masonry/createCellPositioner.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Masonry/createCellPositioner'>; -} -declare module 'react-virtualized/dist/commonjs/Masonry/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Masonry/index'>; -} -declare module 'react-virtualized/dist/commonjs/Masonry/Masonry.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Masonry/Masonry.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Masonry/Masonry.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Masonry/Masonry'>; -} -declare module 'react-virtualized/dist/commonjs/Masonry/PositionCache.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Masonry/PositionCache'>; -} -declare module 'react-virtualized/dist/commonjs/MultiGrid/CellMeasurerCacheDecorator.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/MultiGrid/CellMeasurerCacheDecorator'>; -} -declare module 'react-virtualized/dist/commonjs/MultiGrid/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/MultiGrid/index'>; -} -declare module 'react-virtualized/dist/commonjs/MultiGrid/MultiGrid.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/MultiGrid/MultiGrid.jest'>; -} -declare module 'react-virtualized/dist/commonjs/MultiGrid/MultiGrid.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/MultiGrid/MultiGrid'>; -} -declare module 'react-virtualized/dist/commonjs/ScrollSync/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ScrollSync/index'>; -} -declare module 'react-virtualized/dist/commonjs/ScrollSync/ScrollSync.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ScrollSync/ScrollSync.jest'>; -} -declare module 'react-virtualized/dist/commonjs/ScrollSync/ScrollSync.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/ScrollSync/ScrollSync'>; -} -declare module 'react-virtualized/dist/commonjs/Table/Column.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/Column.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Table/Column.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/Column'>; -} -declare module 'react-virtualized/dist/commonjs/Table/defaultCellDataGetter.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/defaultCellDataGetter'>; -} -declare module 'react-virtualized/dist/commonjs/Table/defaultCellRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/defaultCellRenderer'>; -} -declare module 'react-virtualized/dist/commonjs/Table/defaultHeaderRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/defaultHeaderRenderer'>; -} -declare module 'react-virtualized/dist/commonjs/Table/defaultHeaderRowRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/defaultHeaderRowRenderer'>; -} -declare module 'react-virtualized/dist/commonjs/Table/defaultRowRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/defaultRowRenderer'>; -} -declare module 'react-virtualized/dist/commonjs/Table/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/index'>; -} -declare module 'react-virtualized/dist/commonjs/Table/SortDirection.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/SortDirection'>; -} -declare module 'react-virtualized/dist/commonjs/Table/SortIndicator.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/SortIndicator'>; -} -declare module 'react-virtualized/dist/commonjs/Table/Table.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/Table.jest'>; -} -declare module 'react-virtualized/dist/commonjs/Table/Table.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/Table'>; -} -declare module 'react-virtualized/dist/commonjs/Table/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/Table/types'>; -} -declare module 'react-virtualized/dist/commonjs/TestUtils.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/TestUtils'>; -} -declare module 'react-virtualized/dist/commonjs/utils/animationFrame.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/utils/animationFrame'>; -} -declare module 'react-virtualized/dist/commonjs/utils/createCallbackMemoizer.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/utils/createCallbackMemoizer.jest'>; -} -declare module 'react-virtualized/dist/commonjs/utils/createCallbackMemoizer.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/utils/createCallbackMemoizer'>; -} -declare module 'react-virtualized/dist/commonjs/utils/getUpdatedOffsetForIndex.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/utils/getUpdatedOffsetForIndex.jest'>; -} -declare module 'react-virtualized/dist/commonjs/utils/getUpdatedOffsetForIndex.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/utils/getUpdatedOffsetForIndex'>; -} -declare module 'react-virtualized/dist/commonjs/utils/initCellMetadata.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/utils/initCellMetadata'>; -} -declare module 'react-virtualized/dist/commonjs/utils/requestAnimationTimeout.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/utils/requestAnimationTimeout'>; -} -declare module 'react-virtualized/dist/commonjs/utils/TestHelper.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/utils/TestHelper'>; -} -declare module 'react-virtualized/dist/commonjs/vendor/binarySearchBounds.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/vendor/binarySearchBounds'>; -} -declare module 'react-virtualized/dist/commonjs/vendor/detectElementResize.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/vendor/detectElementResize'>; -} -declare module 'react-virtualized/dist/commonjs/vendor/intervalTree.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/vendor/intervalTree'>; -} -declare module 'react-virtualized/dist/commonjs/WindowScroller/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/WindowScroller/index'>; -} -declare module 'react-virtualized/dist/commonjs/WindowScroller/utils/dimensions.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/WindowScroller/utils/dimensions'>; -} -declare module 'react-virtualized/dist/commonjs/WindowScroller/utils/onScroll.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/WindowScroller/utils/onScroll'>; -} -declare module 'react-virtualized/dist/commonjs/WindowScroller/WindowScroller.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/WindowScroller/WindowScroller.jest'>; -} -declare module 'react-virtualized/dist/commonjs/WindowScroller/WindowScroller.js' { - declare module.exports: $Exports<'react-virtualized/dist/commonjs/WindowScroller/WindowScroller'>; -} -declare module 'react-virtualized/dist/es/ArrowKeyStepper/ArrowKeyStepper.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ArrowKeyStepper/ArrowKeyStepper.jest'>; -} -declare module 'react-virtualized/dist/es/ArrowKeyStepper/ArrowKeyStepper.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ArrowKeyStepper/ArrowKeyStepper'>; -} -declare module 'react-virtualized/dist/es/ArrowKeyStepper/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ArrowKeyStepper/index'>; -} -declare module 'react-virtualized/dist/es/ArrowKeyStepper/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ArrowKeyStepper/types'>; -} -declare module 'react-virtualized/dist/es/AutoSizer/AutoSizer.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/AutoSizer/AutoSizer.jest'>; -} -declare module 'react-virtualized/dist/es/AutoSizer/AutoSizer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/AutoSizer/AutoSizer'>; -} -declare module 'react-virtualized/dist/es/AutoSizer/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/AutoSizer/index'>; -} -declare module 'react-virtualized/dist/es/AutoSizer/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/AutoSizer/types'>; -} -declare module 'react-virtualized/dist/es/CellMeasurer/CellMeasurer.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/CellMeasurer/CellMeasurer.jest'>; -} -declare module 'react-virtualized/dist/es/CellMeasurer/CellMeasurer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/CellMeasurer/CellMeasurer'>; -} -declare module 'react-virtualized/dist/es/CellMeasurer/CellMeasurerCache.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/CellMeasurer/CellMeasurerCache.jest'>; -} -declare module 'react-virtualized/dist/es/CellMeasurer/CellMeasurerCache.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/CellMeasurer/CellMeasurerCache'>; -} -declare module 'react-virtualized/dist/es/CellMeasurer/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/CellMeasurer/index'>; -} -declare module 'react-virtualized/dist/es/Collection/Collection.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/Collection.jest'>; -} -declare module 'react-virtualized/dist/es/Collection/Collection.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/Collection'>; -} -declare module 'react-virtualized/dist/es/Collection/CollectionView.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/CollectionView'>; -} -declare module 'react-virtualized/dist/es/Collection/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/index'>; -} -declare module 'react-virtualized/dist/es/Collection/Section.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/Section.jest'>; -} -declare module 'react-virtualized/dist/es/Collection/Section.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/Section'>; -} -declare module 'react-virtualized/dist/es/Collection/SectionManager.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/SectionManager.jest'>; -} -declare module 'react-virtualized/dist/es/Collection/SectionManager.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/SectionManager'>; -} -declare module 'react-virtualized/dist/es/Collection/TestData.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/TestData'>; -} -declare module 'react-virtualized/dist/es/Collection/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/types'>; -} -declare module 'react-virtualized/dist/es/Collection/utils/calculateSizeAndPositionData.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/utils/calculateSizeAndPositionData.jest'>; -} -declare module 'react-virtualized/dist/es/Collection/utils/calculateSizeAndPositionData.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Collection/utils/calculateSizeAndPositionData'>; -} -declare module 'react-virtualized/dist/es/ColumnSizer/ColumnSizer.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ColumnSizer/ColumnSizer.jest'>; -} -declare module 'react-virtualized/dist/es/ColumnSizer/ColumnSizer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ColumnSizer/ColumnSizer'>; -} -declare module 'react-virtualized/dist/es/ColumnSizer/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ColumnSizer/index'>; -} -declare module 'react-virtualized/dist/es/Grid/accessibilityOverscanIndicesGetter.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/accessibilityOverscanIndicesGetter.jest'>; -} -declare module 'react-virtualized/dist/es/Grid/accessibilityOverscanIndicesGetter.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/accessibilityOverscanIndicesGetter'>; -} -declare module 'react-virtualized/dist/es/Grid/defaultCellRangeRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/defaultCellRangeRenderer'>; -} -declare module 'react-virtualized/dist/es/Grid/defaultOverscanIndicesGetter.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/defaultOverscanIndicesGetter.jest'>; -} -declare module 'react-virtualized/dist/es/Grid/defaultOverscanIndicesGetter.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/defaultOverscanIndicesGetter'>; -} -declare module 'react-virtualized/dist/es/Grid/Grid.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/Grid.jest'>; -} -declare module 'react-virtualized/dist/es/Grid/Grid.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/Grid'>; -} -declare module 'react-virtualized/dist/es/Grid/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/index'>; -} -declare module 'react-virtualized/dist/es/Grid/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/types'>; -} -declare module 'react-virtualized/dist/es/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.jest'>; -} -declare module 'react-virtualized/dist/es/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset'>; -} -declare module 'react-virtualized/dist/es/Grid/utils/CellSizeAndPositionManager.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/utils/CellSizeAndPositionManager.jest'>; -} -declare module 'react-virtualized/dist/es/Grid/utils/CellSizeAndPositionManager.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/utils/CellSizeAndPositionManager'>; -} -declare module 'react-virtualized/dist/es/Grid/utils/ScalingCellSizeAndPositionManager.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/utils/ScalingCellSizeAndPositionManager.jest'>; -} -declare module 'react-virtualized/dist/es/Grid/utils/ScalingCellSizeAndPositionManager.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/utils/ScalingCellSizeAndPositionManager'>; -} -declare module 'react-virtualized/dist/es/Grid/utils/updateScrollIndexHelper.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/utils/updateScrollIndexHelper.jest'>; -} -declare module 'react-virtualized/dist/es/Grid/utils/updateScrollIndexHelper.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Grid/utils/updateScrollIndexHelper'>; -} -declare module 'react-virtualized/dist/es/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/index'>; -} -declare module 'react-virtualized/dist/es/InfiniteLoader/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/InfiniteLoader/index'>; -} -declare module 'react-virtualized/dist/es/InfiniteLoader/InfiniteLoader.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/InfiniteLoader/InfiniteLoader.jest'>; -} -declare module 'react-virtualized/dist/es/InfiniteLoader/InfiniteLoader.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/InfiniteLoader/InfiniteLoader'>; -} -declare module 'react-virtualized/dist/es/jest-setup.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/jest-setup'>; -} -declare module 'react-virtualized/dist/es/List/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/List/index'>; -} -declare module 'react-virtualized/dist/es/List/List.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/List/List.jest'>; -} -declare module 'react-virtualized/dist/es/List/List.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/List/List'>; -} -declare module 'react-virtualized/dist/es/List/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/List/types'>; -} -declare module 'react-virtualized/dist/es/Masonry/createCellPositioner.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Masonry/createCellPositioner'>; -} -declare module 'react-virtualized/dist/es/Masonry/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Masonry/index'>; -} -declare module 'react-virtualized/dist/es/Masonry/Masonry.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Masonry/Masonry.jest'>; -} -declare module 'react-virtualized/dist/es/Masonry/Masonry.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Masonry/Masonry'>; -} -declare module 'react-virtualized/dist/es/Masonry/PositionCache.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Masonry/PositionCache'>; -} -declare module 'react-virtualized/dist/es/MultiGrid/CellMeasurerCacheDecorator.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/MultiGrid/CellMeasurerCacheDecorator'>; -} -declare module 'react-virtualized/dist/es/MultiGrid/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/MultiGrid/index'>; -} -declare module 'react-virtualized/dist/es/MultiGrid/MultiGrid.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/MultiGrid/MultiGrid.jest'>; -} -declare module 'react-virtualized/dist/es/MultiGrid/MultiGrid.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/MultiGrid/MultiGrid'>; -} -declare module 'react-virtualized/dist/es/ScrollSync/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ScrollSync/index'>; -} -declare module 'react-virtualized/dist/es/ScrollSync/ScrollSync.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ScrollSync/ScrollSync.jest'>; -} -declare module 'react-virtualized/dist/es/ScrollSync/ScrollSync.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/ScrollSync/ScrollSync'>; -} -declare module 'react-virtualized/dist/es/Table/Column.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/Column.jest'>; -} -declare module 'react-virtualized/dist/es/Table/Column.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/Column'>; -} -declare module 'react-virtualized/dist/es/Table/defaultCellDataGetter.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/defaultCellDataGetter'>; -} -declare module 'react-virtualized/dist/es/Table/defaultCellRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/defaultCellRenderer'>; -} -declare module 'react-virtualized/dist/es/Table/defaultHeaderRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/defaultHeaderRenderer'>; -} -declare module 'react-virtualized/dist/es/Table/defaultHeaderRowRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/defaultHeaderRowRenderer'>; -} -declare module 'react-virtualized/dist/es/Table/defaultRowRenderer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/defaultRowRenderer'>; -} -declare module 'react-virtualized/dist/es/Table/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/index'>; -} -declare module 'react-virtualized/dist/es/Table/SortDirection.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/SortDirection'>; -} -declare module 'react-virtualized/dist/es/Table/SortIndicator.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/SortIndicator'>; -} -declare module 'react-virtualized/dist/es/Table/Table.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/Table.jest'>; -} -declare module 'react-virtualized/dist/es/Table/Table.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/Table'>; -} -declare module 'react-virtualized/dist/es/Table/types.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/Table/types'>; -} -declare module 'react-virtualized/dist/es/TestUtils.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/TestUtils'>; -} -declare module 'react-virtualized/dist/es/utils/animationFrame.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/utils/animationFrame'>; -} -declare module 'react-virtualized/dist/es/utils/createCallbackMemoizer.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/utils/createCallbackMemoizer.jest'>; -} -declare module 'react-virtualized/dist/es/utils/createCallbackMemoizer.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/utils/createCallbackMemoizer'>; -} -declare module 'react-virtualized/dist/es/utils/getUpdatedOffsetForIndex.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/utils/getUpdatedOffsetForIndex.jest'>; -} -declare module 'react-virtualized/dist/es/utils/getUpdatedOffsetForIndex.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/utils/getUpdatedOffsetForIndex'>; -} -declare module 'react-virtualized/dist/es/utils/initCellMetadata.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/utils/initCellMetadata'>; -} -declare module 'react-virtualized/dist/es/utils/requestAnimationTimeout.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/utils/requestAnimationTimeout'>; -} -declare module 'react-virtualized/dist/es/utils/TestHelper.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/utils/TestHelper'>; -} -declare module 'react-virtualized/dist/es/vendor/binarySearchBounds.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/vendor/binarySearchBounds'>; -} -declare module 'react-virtualized/dist/es/vendor/detectElementResize.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/vendor/detectElementResize'>; -} -declare module 'react-virtualized/dist/es/vendor/intervalTree.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/vendor/intervalTree'>; -} -declare module 'react-virtualized/dist/es/WindowScroller/index.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/WindowScroller/index'>; -} -declare module 'react-virtualized/dist/es/WindowScroller/utils/dimensions.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/WindowScroller/utils/dimensions'>; -} -declare module 'react-virtualized/dist/es/WindowScroller/utils/onScroll.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/WindowScroller/utils/onScroll'>; -} -declare module 'react-virtualized/dist/es/WindowScroller/WindowScroller.jest.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/WindowScroller/WindowScroller.jest'>; -} -declare module 'react-virtualized/dist/es/WindowScroller/WindowScroller.js' { - declare module.exports: $Exports<'react-virtualized/dist/es/WindowScroller/WindowScroller'>; -} -declare module 'react-virtualized/dist/umd/react-virtualized.js' { - declare module.exports: $Exports<'react-virtualized/dist/umd/react-virtualized'>; -} diff --git a/desktop/flow-typed/npm/redux-mock-store_vx.x.x.js b/desktop/flow-typed/npm/redux-mock-store_vx.x.x.js deleted file mode 100644 index 0a17a9d78..000000000 --- a/desktop/flow-typed/npm/redux-mock-store_vx.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: 0ce56690a743910f5934d0ffc0f26d61 -// flow-typed version: <>/redux-mock-store_v1.5.3/flow_v0.76.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'redux-mock-store' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'redux-mock-store' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'redux-mock-store/lib/index' { - declare module.exports: any; -} - -declare module 'redux-mock-store/test/index' { - declare module.exports: any; -} - -declare module 'redux-mock-store/test/mock/middleware' { - declare module.exports: any; -} - -// Filename aliases -declare module 'redux-mock-store/lib/index.js' { - declare module.exports: $Exports<'redux-mock-store/lib/index'>; -} -declare module 'redux-mock-store/test/index.js' { - declare module.exports: $Exports<'redux-mock-store/test/index'>; -} -declare module 'redux-mock-store/test/mock/middleware.js' { - declare module.exports: $Exports<'redux-mock-store/test/mock/middleware'>; -} diff --git a/desktop/flow-typed/npm/sql-formatter_vx.x.x.js b/desktop/flow-typed/npm/sql-formatter_vx.x.x.js deleted file mode 100644 index 2416aa353..000000000 --- a/desktop/flow-typed/npm/sql-formatter_vx.x.x.js +++ /dev/null @@ -1,193 +0,0 @@ -// flow-typed signature: 21bf70a7f73a77579f4cc048adda0919 -// flow-typed version: <>/sql-formatter_v2.3.3/flow_v0.102.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'sql-formatter' - * - * 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 'sql-formatter' { - 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 'sql-formatter/dist/sql-formatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/dist/sql-formatter.min' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/core/Formatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/core/Indentation' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/core/InlineBlock' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/core/Params' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/core/Tokenizer' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/core/tokenTypes' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/languages/Db2Formatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/languages/N1qlFormatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/languages/PlSqlFormatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/languages/StandardSqlFormatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/lib/sqlFormatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/core/Formatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/core/Indentation' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/core/InlineBlock' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/core/Params' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/core/Tokenizer' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/core/tokenTypes' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/languages/Db2Formatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/languages/N1qlFormatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/languages/PlSqlFormatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/languages/StandardSqlFormatter' { - declare module.exports: any; -} - -declare module 'sql-formatter/src/sqlFormatter' { - declare module.exports: any; -} - -// Filename aliases -declare module 'sql-formatter/dist/sql-formatter.js' { - declare module.exports: $Exports<'sql-formatter/dist/sql-formatter'>; -} -declare module 'sql-formatter/dist/sql-formatter.min.js' { - declare module.exports: $Exports<'sql-formatter/dist/sql-formatter.min'>; -} -declare module 'sql-formatter/lib/core/Formatter.js' { - declare module.exports: $Exports<'sql-formatter/lib/core/Formatter'>; -} -declare module 'sql-formatter/lib/core/Indentation.js' { - declare module.exports: $Exports<'sql-formatter/lib/core/Indentation'>; -} -declare module 'sql-formatter/lib/core/InlineBlock.js' { - declare module.exports: $Exports<'sql-formatter/lib/core/InlineBlock'>; -} -declare module 'sql-formatter/lib/core/Params.js' { - declare module.exports: $Exports<'sql-formatter/lib/core/Params'>; -} -declare module 'sql-formatter/lib/core/Tokenizer.js' { - declare module.exports: $Exports<'sql-formatter/lib/core/Tokenizer'>; -} -declare module 'sql-formatter/lib/core/tokenTypes.js' { - declare module.exports: $Exports<'sql-formatter/lib/core/tokenTypes'>; -} -declare module 'sql-formatter/lib/languages/Db2Formatter.js' { - declare module.exports: $Exports<'sql-formatter/lib/languages/Db2Formatter'>; -} -declare module 'sql-formatter/lib/languages/N1qlFormatter.js' { - declare module.exports: $Exports<'sql-formatter/lib/languages/N1qlFormatter'>; -} -declare module 'sql-formatter/lib/languages/PlSqlFormatter.js' { - declare module.exports: $Exports<'sql-formatter/lib/languages/PlSqlFormatter'>; -} -declare module 'sql-formatter/lib/languages/StandardSqlFormatter.js' { - declare module.exports: $Exports<'sql-formatter/lib/languages/StandardSqlFormatter'>; -} -declare module 'sql-formatter/lib/sqlFormatter.js' { - declare module.exports: $Exports<'sql-formatter/lib/sqlFormatter'>; -} -declare module 'sql-formatter/src/core/Formatter.js' { - declare module.exports: $Exports<'sql-formatter/src/core/Formatter'>; -} -declare module 'sql-formatter/src/core/Indentation.js' { - declare module.exports: $Exports<'sql-formatter/src/core/Indentation'>; -} -declare module 'sql-formatter/src/core/InlineBlock.js' { - declare module.exports: $Exports<'sql-formatter/src/core/InlineBlock'>; -} -declare module 'sql-formatter/src/core/Params.js' { - declare module.exports: $Exports<'sql-formatter/src/core/Params'>; -} -declare module 'sql-formatter/src/core/Tokenizer.js' { - declare module.exports: $Exports<'sql-formatter/src/core/Tokenizer'>; -} -declare module 'sql-formatter/src/core/tokenTypes.js' { - declare module.exports: $Exports<'sql-formatter/src/core/tokenTypes'>; -} -declare module 'sql-formatter/src/languages/Db2Formatter.js' { - declare module.exports: $Exports<'sql-formatter/src/languages/Db2Formatter'>; -} -declare module 'sql-formatter/src/languages/N1qlFormatter.js' { - declare module.exports: $Exports<'sql-formatter/src/languages/N1qlFormatter'>; -} -declare module 'sql-formatter/src/languages/PlSqlFormatter.js' { - declare module.exports: $Exports<'sql-formatter/src/languages/PlSqlFormatter'>; -} -declare module 'sql-formatter/src/languages/StandardSqlFormatter.js' { - declare module.exports: $Exports<'sql-formatter/src/languages/StandardSqlFormatter'>; -} -declare module 'sql-formatter/src/sqlFormatter.js' { - declare module.exports: $Exports<'sql-formatter/src/sqlFormatter'>; -} diff --git a/desktop/flow-typed/npm/unicode-substring.js b/desktop/flow-typed/npm/unicode-substring.js deleted file mode 100644 index a7abb5443..000000000 --- a/desktop/flow-typed/npm/unicode-substring.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - * @flow - */ - -declare module 'unicode-substring' { - declare export default function unicodeSubstring( - baseString: string, - start: number, - end: number, - ): string; -} diff --git a/desktop/flow-typed/react.js b/desktop/flow-typed/react.js deleted file mode 100644 index 9368a7cbe..000000000 --- a/desktop/flow-typed/react.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -declare var React: $Exports<'react'>; diff --git a/desktop/headless-tests/.babelrc b/desktop/headless-tests/.babelrc index 844b18fde..1320b9a32 100644 --- a/desktop/headless-tests/.babelrc +++ b/desktop/headless-tests/.babelrc @@ -1,3 +1,3 @@ { - "presets": ["@babel/preset-env", "@babel/preset-flow"] + "presets": ["@babel/preset-env"] } diff --git a/desktop/headless-tests/__tests__/headlessIntegrationTests.js b/desktop/headless-tests/__tests__/headlessIntegrationTests.js index 58cafbe46..55675df12 100644 --- a/desktop/headless-tests/__tests__/headlessIntegrationTests.js +++ b/desktop/headless-tests/__tests__/headlessIntegrationTests.js @@ -9,7 +9,6 @@ import {spawn} from 'child_process'; import memoize from 'lodash.memoize'; -// $FlowFixMe import stringify from 'canonical-json'; const TEST_TIMEOUT_MS = 30 * 1000; @@ -50,10 +49,7 @@ const basicArgs = [ params.insecurePort, ]; -const runHeadless = memoize((args: Array): Promise<{ - output: Object, - stderr: string, -}> => { +const runHeadless = memoize((args) => { return new Promise((resolve, reject) => { const stdoutChunks = []; const stderrChunks = []; @@ -88,7 +84,7 @@ const runHeadless = memoize((args: Array): Promise<{ }); }); -function getPluginState(app: string, plugin: string): Promise { +function getPluginState(app, plugin) { return runHeadless(basicArgs).then((result) => { const pluginStates = result.output.store.pluginStates; for (const pluginId of Object.keys(pluginStates)) { @@ -159,7 +155,7 @@ test( TEST_TIMEOUT_MS, ); -function stripUnstableLayoutAttributes(node: Object): Object { +function stripUnstableLayoutAttributes(node) { let newNode = node; for (const path of layoutPathsToExcludeFromSnapshots) { const parts = path.split('.'); @@ -168,7 +164,7 @@ function stripUnstableLayoutAttributes(node: Object): Object { return newNode; } -function stripNode(node: any, path: Array) { +function stripNode(node, path) { if (path.length === 0) { return 'PLACEHOLDER'; } diff --git a/desktop/headless-tests/package.json b/desktop/headless-tests/package.json index 910fb139f..fc7300894 100644 --- a/desktop/headless-tests/package.json +++ b/desktop/headless-tests/package.json @@ -19,7 +19,6 @@ "dependencies": { "@babel/core": "^7.11.1", "@babel/preset-env": "^7.11.0", - "@babel/preset-flow": "^7.10.4", "babel-jest": "^26.2.2", "canonical-json": "^0.0.4", "lodash.memoize": "^4.1.2" diff --git a/desktop/package.json b/desktop/package.json index 9359305d0..83413d7d4 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -180,8 +180,8 @@ "eslint-config-prettier": "^6.10.1", "eslint-import-resolver-typescript": "^2.3.0", "eslint-plugin-babel": "^5.3.1", - "eslint-plugin-flipper": "0.64.0", "eslint-plugin-flowtype": "^4.7.0", + "eslint-plugin-flipper": "0.64.0", "eslint-plugin-header": "^3.0.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-jsx-a11y": "^6.3.1", @@ -195,7 +195,6 @@ "flipper-babel-transformer": "0.64.0", "flipper-pkg-lib": "0.64.0", "flipper-plugin-lib": "0.64.0", - "flow-bin": "0.131.0", "fs-extra": "^9.0.0", "glob": "^7.1.2", "ignore": "^5.1.4", @@ -269,8 +268,7 @@ "lint:tsc": "tsc --noemit", "prelint:eslint": "yarn build:eslint", "lint:eslint": "eslint . --ext .js,.ts,.tsx", - "lint:flow": "flow check", - "lint": "yarn lint:eslint && yarn lint:flow && yarn lint:tsc", + "lint": "yarn lint:eslint && yarn lint:tsc", "bump-versions": "./ts-node scripts/bump-versions.ts", "publish-packages": "./ts-node scripts/publish-packages.ts", "everything": "yarn reset && yarn install && yarn lint && yarn test && yarn test-electron && yarn build --mac --mac-dmg --win --linux --linux-deb && yarn build-headless --mac --linux && yarn start" diff --git a/desktop/plugins/crash_reporter/__tests__/testCrashReporterPlugin.node.tsx b/desktop/plugins/crash_reporter/__tests__/testCrashReporterPlugin.node.tsx index 4112e47cb..1815572a3 100644 --- a/desktop/plugins/crash_reporter/__tests__/testCrashReporterPlugin.node.tsx +++ b/desktop/plugins/crash_reporter/__tests__/testCrashReporterPlugin.node.tsx @@ -255,7 +255,6 @@ test('test getNewPersistedStateFromCrashLog for non-empty defaultPersistedState null, ); expect(newPersistedState).toBeDefined(); - // $FlowFixMe: Checked if perisistedState is defined or not const {crashes} = newPersistedState as PersistedState; expect(crashes).toBeDefined(); expect(crashes.length).toEqual(2); @@ -284,7 +283,6 @@ test('test getNewPersistedStateFromCrashLog for non-empty defaultPersistedState null, ); expect(newPersistedState).toBeDefined(); - // $FlowFixMe: Checked if perisistedState is defined or not const {crashes} = newPersistedState as PersistedState; expect(crashes).toBeDefined(); expect(crashes.length).toEqual(2); diff --git a/desktop/plugins/crash_reporter/index.tsx b/desktop/plugins/crash_reporter/index.tsx index 227f08418..273c051f0 100644 --- a/desktop/plugins/crash_reporter/index.tsx +++ b/desktop/plugins/crash_reporter/index.tsx @@ -5,7 +5,6 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow */ import { diff --git a/desktop/plugins/databases/index.tsx b/desktop/plugins/databases/index.tsx index b5640beba..9a39bb73b 100644 --- a/desktop/plugins/databases/index.tsx +++ b/desktop/plugins/databases/index.tsx @@ -397,10 +397,7 @@ export default class DatabasesPlugin extends FlipperPlugin< const databases = updates.sort((db1, db2) => db1.id - db2.id); const selectedDatabase = state.selectedDatabase || - (Object.values(databases)[0] - ? // $FlowFixMe - Object.values(databases)[0].id - : 0); + (Object.values(databases)[0] ? Object.values(databases)[0].id : 0); const selectedTable = state.selectedDatabaseTable && databases[selectedDatabase - 1].tables.includes( diff --git a/desktop/plugins/fresco/__tests__/index.node.tsx b/desktop/plugins/fresco/__tests__/index.node.tsx index 8832bd8c8..21be1c35c 100644 --- a/desktop/plugins/fresco/__tests__/index.node.tsx +++ b/desktop/plugins/fresco/__tests__/index.node.tsx @@ -85,7 +85,6 @@ test('the metric reducer for the input having regression', () => { }, ); expect(FrescoPlugin.metricsReducer).toBeDefined(); - //$FlowFixMe: Added a check if the metricsReducer exists in FrescoPlugin const metrics = FrescoPlugin.metricsReducer(persistedState); return expect(metrics).resolves.toMatchObject({ WASTED_BYTES: 37500, @@ -115,7 +114,6 @@ test('the metric reducer for the input having no regression', () => { ); const metricsReducer = FrescoPlugin.metricsReducer; expect(metricsReducer).toBeDefined(); - //$FlowFixMe: Added a check if the metricsReducer exists in FrescoPlugin const metrics = metricsReducer(persistedState); return expect(metrics).resolves.toMatchObject({ WASTED_BYTES: 0, @@ -125,7 +123,6 @@ test('the metric reducer for the input having no regression', () => { test('the metric reducer for the default persisted state', () => { const metricsReducer = FrescoPlugin.metricsReducer; expect(metricsReducer).toBeDefined(); - //$FlowFixMe: Added a check if the metricsReducer exists in FrescoPlugin const metrics = metricsReducer(FrescoPlugin.defaultPersistedState); return expect(metrics).resolves.toMatchObject({WASTED_BYTES: 0}); }); @@ -154,7 +151,6 @@ test('the metric reducer with the events data but with no imageData in imagesMap persistedState.imagesMap = {}; const metricsReducer = FrescoPlugin.metricsReducer; expect(metricsReducer).toBeDefined(); - //$FlowFixMe: Added a check if the metricsReducer exists in FrescoPlugin const metrics = metricsReducer(persistedState); return expect(metrics).resolves.toMatchObject({WASTED_BYTES: 0}); }); @@ -183,7 +179,6 @@ test('the metric reducer with the no viewPort data in events', () => { delete persistedState.events[0].viewport; const metricsReducer = FrescoPlugin.metricsReducer; expect(metricsReducer).toBeDefined(); - //$FlowFixMe: Added a check if the metricsReducer exists in FrescoPlugin const metrics = metricsReducer(persistedState); return expect(metrics).resolves.toMatchObject({WASTED_BYTES: 0}); }); @@ -252,7 +247,6 @@ test('the metric reducer with the multiple events', () => { }; const metricsReducer = FrescoPlugin.metricsReducer; expect(metricsReducer).toBeDefined(); - //$FlowFixMe: Added a check if the metricsReducer exists in FrescoPlugin const metrics = metricsReducer(persistedState); return expect(metrics).resolves.toMatchObject({WASTED_BYTES: 160000}); }); diff --git a/desktop/plugins/leak_canary/processLeakString.tsx b/desktop/plugins/leak_canary/processLeakString.tsx index 43f03d08b..afaa3b9c4 100644 --- a/desktop/plugins/leak_canary/processLeakString.tsx +++ b/desktop/plugins/leak_canary/processLeakString.tsx @@ -5,7 +5,6 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow */ import {Leak} from './index'; diff --git a/desktop/plugins/navigation/__tests__/testAutoCompleteSearch.node.tsx b/desktop/plugins/navigation/__tests__/testAutoCompleteSearch.node.tsx index 15a012daf..bfa0f1983 100644 --- a/desktop/plugins/navigation/__tests__/testAutoCompleteSearch.node.tsx +++ b/desktop/plugins/navigation/__tests__/testAutoCompleteSearch.node.tsx @@ -5,7 +5,6 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow strict-local */ import {filterMatchPatterns} from '../util/autoCompleteProvider'; diff --git a/desktop/plugins/navigation/__tests__/testURI.node.tsx b/desktop/plugins/navigation/__tests__/testURI.node.tsx index ec1fbc526..da3411252 100644 --- a/desktop/plugins/navigation/__tests__/testURI.node.tsx +++ b/desktop/plugins/navigation/__tests__/testURI.node.tsx @@ -5,7 +5,6 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow strict-local */ import { diff --git a/desktop/yarn.lock b/desktop/yarn.lock index fa036240c..74f96445d 100644 --- a/desktop/yarn.lock +++ b/desktop/yarn.lock @@ -1141,7 +1141,7 @@ core-js-compat "^3.6.2" semver "^5.5.0" -"@babel/preset-flow@^7.0.0", "@babel/preset-flow@^7.10.4": +"@babel/preset-flow@^7.0.0": version "7.12.1" resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.12.1.tgz#1a81d376c5a9549e75352a3888f8c273455ae940" integrity sha512-UAoyMdioAhM6H99qPoKvpHMzxmNVXno8GYU/7vZmGaHk6/KqfDYL1W0NxszVbJ2EP271b7e6Ox+Vk2A9QsB3Sw== @@ -6142,11 +6142,6 @@ flipper-client-sdk@^0.0.2: resolved "https://registry.yarnpkg.com/flipper-client-sdk/-/flipper-client-sdk-0.0.2.tgz#cb970908b9a948d1671d39e2ca050191753c99f7" integrity sha512-7l0yM9uaUEfi179iq9TEvZ2fzDF3t0EymTpxkP/scQWVSjw+bgHYv5G66EbBbqWdJhlTA7zWki5gTV+OylzghQ== -flow-bin@0.131.0: - version "0.131.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.131.0.tgz#d4228b6070afdf3b2a76acdee77a7f3f8e8f5133" - integrity sha512-fZmoIBcDrtLhy/NNMxwJysSYzMr1ksRcAOMi3AHSoYXfcuQqTvhGJx+wqjlIOqIwz8RRYm8J4V4JrSJbIKP+Xg== - flow-parser@0.*: version "0.110.0" resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.110.0.tgz#fa56d1fdc4bbeb488db8b9d0a685cb91939ab0ff" diff --git a/flipper-js-client-sdk/.eslintrc.js b/flipper-js-client-sdk/.eslintrc.js index 8d137c906..a4245b2a3 100644 --- a/flipper-js-client-sdk/.eslintrc.js +++ b/flipper-js-client-sdk/.eslintrc.js @@ -22,7 +22,7 @@ const prettierConfig = { trailingComma: 'all', bracketSpacing: false, jsxBracketSameLine: true, - parser: 'flow', + parser: '', }; module.exports = { @@ -59,7 +59,6 @@ module.exports = { // additional rules for this project 'header/header': [2, 'block', {pattern}], 'prettier/prettier': [2, prettierConfig], - 'flowtype/object-type-delimiter': [0], 'import/no-unresolved': [2, {commonjs: true, amd: true}], }, settings: {