diff --git a/.flowconfig b/.flowconfig index f3e412db..3c399b4c 100644 --- a/.flowconfig +++ b/.flowconfig @@ -35,7 +35,6 @@ module.file_ext=.json esproposal.decorators=ignore esproposal.class_static_fields=enable esproposal.class_instance_fields=enable -unsafe.enable_getters_and_setters=true suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe suppress_comment=\\(.\\|\n\\)*\\$FlowIssue diff --git a/app/components/Alert/Alert.js b/app/components/Alert/Alert.js index a2a64561..b99104e7 100644 --- a/app/components/Alert/Alert.js +++ b/app/components/Alert/Alert.js @@ -1,18 +1,17 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { observer } from 'mobx-react'; import Flex from 'shared/components/Flex'; import styled from 'styled-components'; import { color } from 'shared/styles/constants'; type Props = { - children: React.Element<*>, + children: React.Node, type?: 'info' | 'success' | 'warning' | 'danger' | 'offline', }; @observer -class Alert extends React.Component { - props: Props; +class Alert extends React.Component { defaultProps = { type: 'info', }; diff --git a/app/components/Auth.js b/app/components/Auth.js index 64070996..b3cd0029 100644 --- a/app/components/Auth.js +++ b/app/components/Auth.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Provider } from 'mobx-react'; import stores from 'stores'; import ApiKeysStore from 'stores/ApiKeysStore'; @@ -10,7 +10,7 @@ import IntegrationsStore from 'stores/IntegrationsStore'; import CacheStore from 'stores/CacheStore'; type Props = { - children?: React.Element, + children?: React.Node, }; let authenticatedStores; diff --git a/app/components/Avatar/Avatar.js b/app/components/Avatar/Avatar.js index 18baa139..a71e4bf3 100644 --- a/app/components/Avatar/Avatar.js +++ b/app/components/Avatar/Avatar.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { observable } from 'mobx'; import { observer } from 'mobx-react'; @@ -7,7 +7,7 @@ import { color } from 'shared/styles/constants'; import placeholder from './placeholder.png'; @observer -class Avatar extends Component { +class Avatar extends React.Component<*> { @observable error: boolean; handleError = () => { diff --git a/app/components/Button/Button.js b/app/components/Button/Button.js index 4a30c745..7ddaafd7 100644 --- a/app/components/Button/Button.js +++ b/app/components/Button/Button.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { color } from 'shared/styles/constants'; import { darken, lighten } from 'polished'; @@ -88,9 +88,9 @@ const Inner = styled.span` export type Props = { type?: string, value?: string, - icon?: React$Element, + icon?: React.Node, className?: string, - children?: React$Element, + children?: React.Node, }; export default function Button({ diff --git a/app/components/CenteredContent/CenteredContent.js b/app/components/CenteredContent/CenteredContent.js index 8e6ae3ae..2c5f9c45 100644 --- a/app/components/CenteredContent/CenteredContent.js +++ b/app/components/CenteredContent/CenteredContent.js @@ -1,10 +1,10 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import breakpoint from 'styled-components-breakpoint'; type Props = { - children?: React.Element, + children?: React.Node, }; const Container = styled.div` diff --git a/app/components/Collaborators/Collaborators.js b/app/components/Collaborators/Collaborators.js index 08da5008..463e08c1 100644 --- a/app/components/Collaborators/Collaborators.js +++ b/app/components/Collaborators/Collaborators.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import distanceInWordsToNow from 'date-fns/distance_in_words_to_now'; import styled from 'styled-components'; import Flex from 'shared/components/Flex'; diff --git a/app/components/ColorPicker/ColorPicker.js b/app/components/ColorPicker/ColorPicker.js index 33b4d5ea..eda7ed52 100644 --- a/app/components/ColorPicker/ColorPicker.js +++ b/app/components/ColorPicker/ColorPicker.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { observable, computed, action } from 'mobx'; import { observer } from 'mobx-react'; import styled from 'styled-components'; @@ -26,9 +26,7 @@ type Props = { }; @observer -class ColorPicker extends React.Component { - props: Props; - +class ColorPicker extends React.Component { @observable selectedColor: string = colors[0]; @observable customColorValue: string = ''; @observable customColorSelected: boolean; @@ -69,14 +67,14 @@ class ColorPicker extends React.Component { }; @action - focusOnCustomColor = (event: SyntheticEvent) => { + focusOnCustomColor = (event: SyntheticEvent<*>) => { this.selectedColor = ''; this.customColorSelected = true; this.fireCallback(); }; @action - setCustomColor = (event: SyntheticEvent) => { + setCustomColor = (event: SyntheticEvent<*>) => { let target = event.target; if (target instanceof HTMLInputElement) { const color = target.value; diff --git a/app/components/CopyToClipboard/CopyToClipboard.js b/app/components/CopyToClipboard/CopyToClipboard.js index 5b2cd6da..a1deca60 100644 --- a/app/components/CopyToClipboard/CopyToClipboard.js +++ b/app/components/CopyToClipboard/CopyToClipboard.js @@ -1,22 +1,20 @@ // @flow -import React, { PureComponent } from 'react'; +import * as React from 'react'; import copy from 'copy-to-clipboard'; type Props = { text: string, - children?: React.Element, + children?: React.Node, onClick?: () => void, onCopy: () => void, }; -class CopyToClipboard extends PureComponent { - props: Props; - - onClick = (ev: SyntheticEvent) => { +class CopyToClipboard extends React.PureComponent { + onClick = (ev: SyntheticEvent<*>) => { const { text, onCopy, children } = this.props; const elem = React.Children.only(children); copy(text, { - debug: __DEV__, + debug: !!__DEV__, }); if (onCopy) onCopy(); diff --git a/app/components/Divider/Divider.js b/app/components/Divider/Divider.js index 9d44caea..6b67bc89 100644 --- a/app/components/Divider/Divider.js +++ b/app/components/Divider/Divider.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import Flex from 'shared/components/Flex'; diff --git a/app/components/DocumentList/DocumentList.js b/app/components/DocumentList/DocumentList.js index 836c6dfe..97e53008 100644 --- a/app/components/DocumentList/DocumentList.js +++ b/app/components/DocumentList/DocumentList.js @@ -1,16 +1,16 @@ // @flow -import React from 'react'; +import * as React from 'react'; import Document from 'models/Document'; import DocumentPreview from 'components/DocumentPreview'; import ArrowKeyNavigation from 'boundless-arrow-key-navigation'; -class DocumentList extends React.Component { - props: { - documents: Document[], - showCollection?: boolean, - limit?: number, - }; +type Props = { + documents: Document[], + showCollection?: boolean, + limit?: number, +}; +class DocumentList extends React.Component { render() { const { limit, showCollection } = this.props; const documents = limit diff --git a/app/components/DocumentPreview/DocumentPreview.js b/app/components/DocumentPreview/DocumentPreview.js index a97d3ede..d6026c35 100644 --- a/app/components/DocumentPreview/DocumentPreview.js +++ b/app/components/DocumentPreview/DocumentPreview.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observer } from 'mobx-react'; import { Link } from 'react-router-dom'; import Document from 'models/Document'; @@ -89,16 +89,14 @@ const Actions = styled(Flex)` `; @observer -class DocumentPreview extends Component { - props: Props; - - star = (ev: SyntheticEvent) => { +class DocumentPreview extends React.Component { + star = (ev: SyntheticEvent<*>) => { ev.preventDefault(); ev.stopPropagation(); this.props.document.star(); }; - unstar = (ev: SyntheticEvent) => { + unstar = (ev: SyntheticEvent<*>) => { ev.preventDefault(); ev.stopPropagation(); this.props.document.unstar(); diff --git a/app/components/DocumentPreview/components/PublishingInfo.js b/app/components/DocumentPreview/components/PublishingInfo.js index ed7e42d5..d1814008 100644 --- a/app/components/DocumentPreview/components/PublishingInfo.js +++ b/app/components/DocumentPreview/components/PublishingInfo.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import distanceInWordsToNow from 'date-fns/distance_in_words_to_now'; import styled from 'styled-components'; import { color } from 'shared/styles/constants'; @@ -17,13 +17,13 @@ const Modified = styled.span` font-weight: ${props => (props.highlight ? '600' : '400')}; `; -class PublishingInfo extends Component { - props: { - collection?: Collection, - document: Document, - views?: number, - }; +type Props = { + collection?: Collection, + document: Document, + views?: number, +}; +class PublishingInfo extends React.Component { render() { const { collection, document } = this.props; const { diff --git a/app/components/DocumentViews/DocumentViews.js b/app/components/DocumentViews/DocumentViews.js index f98c054b..b2c4b274 100644 --- a/app/components/DocumentViews/DocumentViews.js +++ b/app/components/DocumentViews/DocumentViews.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable } from 'mobx'; import { observer } from 'mobx-react'; import Popover from 'components/Popover'; @@ -27,11 +27,10 @@ type Props = { }; @observer -class DocumentViews extends Component { +class DocumentViews extends React.Component { @observable opened: boolean = false; - anchor: HTMLElement; + anchor: ?HTMLElement; store: DocumentViewersStore; - props: Props; constructor(props: Props) { super(props); @@ -46,7 +45,7 @@ class DocumentViews extends Component { this.opened = false; }; - setRef = (ref: HTMLElement) => { + setRef = (ref: ?HTMLElement) => { this.anchor = ref; }; diff --git a/app/components/DocumentViews/components/DocumentViewers/DocumentViewers.js b/app/components/DocumentViews/components/DocumentViewers/DocumentViewers.js index 607817f1..c034f429 100644 --- a/app/components/DocumentViews/components/DocumentViewers/DocumentViewers.js +++ b/app/components/DocumentViews/components/DocumentViewers/DocumentViewers.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import Flex from 'shared/components/Flex'; import styled from 'styled-components'; import map from 'lodash/map'; @@ -26,9 +26,7 @@ const UserName = styled.span` padding-left: 8px; `; -class DocumentViewers extends Component { - props: Props; - +class DocumentViewers extends React.Component { componentDidMount() { this.props.onMount(); } diff --git a/app/components/DropToImport/DropToImport.js b/app/components/DropToImport/DropToImport.js index a72a4bac..77cb652d 100644 --- a/app/components/DropToImport/DropToImport.js +++ b/app/components/DropToImport/DropToImport.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable } from 'mobx'; import { observer, inject } from 'mobx-react'; import { injectGlobal } from 'styled-components'; @@ -12,7 +12,7 @@ import DocumentsStore from 'stores/DocumentsStore'; import LoadingIndicator from 'components/LoadingIndicator'; type Props = { - children?: React$Element, + children?: React.Node, collectionId: string, documentId?: string, activeClassName?: string, @@ -35,9 +35,8 @@ injectGlobal` `; @observer -class DropToImport extends Component { +class DropToImport extends React.Component { @observable isImporting: boolean = false; - props: Props; onDropAccepted = async (files = []) => { this.isImporting = true; diff --git a/app/components/DropdownMenu/DropdownMenu.js b/app/components/DropdownMenu/DropdownMenu.js index b4714564..75622990 100644 --- a/app/components/DropdownMenu/DropdownMenu.js +++ b/app/components/DropdownMenu/DropdownMenu.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import invariant from 'invariant'; import { observable } from 'mobx'; import { observer } from 'mobx-react'; @@ -10,22 +10,21 @@ import { color } from 'shared/styles/constants'; import { fadeAndScaleIn } from 'shared/styles/animations'; type Props = { - label: React.Element<*>, + label: React.Node, onOpen?: () => void, onClose?: () => void, - children?: React.Element<*>, + children?: React.Node, className?: string, style?: Object, }; @observer -class DropdownMenu extends Component { - props: Props; +class DropdownMenu extends React.Component { @observable top: number; @observable right: number; - handleOpen = (openPortal: SyntheticEvent => *) => { - return (ev: SyntheticMouseEvent) => { + handleOpen = (openPortal: (SyntheticEvent<*>) => *) => { + return (ev: SyntheticMouseEvent<*>) => { ev.preventDefault(); const currentTarget = ev.currentTarget; invariant(document.body, 'why you not here'); diff --git a/app/components/DropdownMenu/DropdownMenuItem.js b/app/components/DropdownMenu/DropdownMenuItem.js index ca48984b..a4ce35fe 100644 --- a/app/components/DropdownMenu/DropdownMenuItem.js +++ b/app/components/DropdownMenu/DropdownMenuItem.js @@ -1,11 +1,11 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { color } from 'shared/styles/constants'; type Props = { - onClick?: SyntheticEvent => void, - children?: React.Element, + onClick?: (SyntheticEvent<*>) => *, + children?: React.Node, }; const DropdownMenuItem = ({ onClick, children, ...rest }: Props) => { diff --git a/app/components/Empty/Empty.js b/app/components/Empty/Empty.js index 2f44b743..83c8d448 100644 --- a/app/components/Empty/Empty.js +++ b/app/components/Empty/Empty.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { color } from 'shared/styles/constants'; diff --git a/app/components/ErrorBoundary/ErrorBoundary.js b/app/components/ErrorBoundary/ErrorBoundary.js index 6da0c7b3..239aaf99 100644 --- a/app/components/ErrorBoundary/ErrorBoundary.js +++ b/app/components/ErrorBoundary/ErrorBoundary.js @@ -1,17 +1,16 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observer } from 'mobx-react'; import { observable } from 'mobx'; import CenteredContent from 'components/CenteredContent'; import PageTitle from 'components/PageTitle'; type Props = { - children?: ?React.Element, + children?: ?React.Node, }; @observer -class ErrorBoundary extends Component { - props: Props; +class ErrorBoundary extends React.Component { @observable error: boolean = false; componentDidCatch(error: Error, info: Object) { diff --git a/app/components/Highlight/Highlight.js b/app/components/Highlight/Highlight.js index 2acdbcf0..e6e8421a 100644 --- a/app/components/Highlight/Highlight.js +++ b/app/components/Highlight/Highlight.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import replace from 'string-replace-to-array'; import styled from 'styled-components'; import { color } from 'shared/styles/constants'; diff --git a/app/components/Input/Input.js b/app/components/Input/Input.js index 71608f1e..05e6cf8f 100644 --- a/app/components/Input/Input.js +++ b/app/components/Input/Input.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import Flex from 'shared/components/Flex'; import { size, color } from 'shared/styles/constants'; diff --git a/app/components/Labeled/Labeled.js b/app/components/Labeled/Labeled.js index 51999808..5fde0cba 100644 --- a/app/components/Labeled/Labeled.js +++ b/app/components/Labeled/Labeled.js @@ -1,13 +1,13 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { observer } from 'mobx-react'; import Flex from 'shared/components/Flex'; import styled from 'styled-components'; import { size } from 'shared/styles/constants'; type Props = { - label: React.Element<*> | string, - children: React.Element<*>, + label: React.Node | string, + children: React.Node, }; const Labeled = ({ label, children, ...props }: Props) => ( diff --git a/app/components/Layout/Layout.js b/app/components/Layout/Layout.js index 146e6f17..17e316ba 100644 --- a/app/components/Layout/Layout.js +++ b/app/components/Layout/Layout.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Switch, Route, withRouter } from 'react-router-dom'; import type { Location } from 'react-router-dom'; import { Helmet } from 'react-helmet'; @@ -27,17 +27,16 @@ type Props = { history: Object, location: Location, documents: DocumentsStore, - children?: ?React.Element, - actions?: ?React.Element, - title?: ?React.Element, + children?: ?React.Node, + actions?: ?React.Node, + title?: ?React.Node, auth: AuthStore, ui: UiStore, - notifications?: React.Element, + notifications?: React.Node, }; @observer -class Layout extends React.Component { - props: Props; +class Layout extends React.Component { scrollable: ?HTMLDivElement; @keydown(['/', 't']) diff --git a/app/components/LoadingIndicator/LoadingIndicator.js b/app/components/LoadingIndicator/LoadingIndicator.js index 07986bb2..c8d5d227 100644 --- a/app/components/LoadingIndicator/LoadingIndicator.js +++ b/app/components/LoadingIndicator/LoadingIndicator.js @@ -1,9 +1,9 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { inject, observer } from 'mobx-react'; @observer -class LoadingIndicator extends React.Component { +class LoadingIndicator extends React.Component<*> { componentDidMount() { this.props.ui.enableProgressBar(); } diff --git a/app/components/LoadingIndicator/LoadingIndicatorBar.js b/app/components/LoadingIndicator/LoadingIndicatorBar.js index b74bd4af..b6d42a34 100644 --- a/app/components/LoadingIndicator/LoadingIndicatorBar.js +++ b/app/components/LoadingIndicator/LoadingIndicatorBar.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled, { keyframes } from 'styled-components'; const LoadingIndicatorBar = () => { diff --git a/app/components/LoadingPlaceholder/ListPlaceholder.js b/app/components/LoadingPlaceholder/ListPlaceholder.js index 9dae07a5..017a1ce2 100644 --- a/app/components/LoadingPlaceholder/ListPlaceholder.js +++ b/app/components/LoadingPlaceholder/ListPlaceholder.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import _ from 'lodash'; import styled from 'styled-components'; import Mask from './components/Mask'; diff --git a/app/components/LoadingPlaceholder/LoadingPlaceholder.js b/app/components/LoadingPlaceholder/LoadingPlaceholder.js index fe8a5a03..9f27b12a 100644 --- a/app/components/LoadingPlaceholder/LoadingPlaceholder.js +++ b/app/components/LoadingPlaceholder/LoadingPlaceholder.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import Mask from './components/Mask'; import Fade from 'components/Fade'; import Flex from 'shared/components/Flex'; diff --git a/app/components/LoadingPlaceholder/components/Mask.js b/app/components/LoadingPlaceholder/components/Mask.js index 21da7371..3362e997 100644 --- a/app/components/LoadingPlaceholder/components/Mask.js +++ b/app/components/LoadingPlaceholder/components/Mask.js @@ -1,12 +1,12 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { pulsate } from 'shared/styles/animations'; import { color } from 'shared/styles/constants'; import { randomInteger } from 'shared/random'; import Flex from 'shared/components/Flex'; -class Mask extends Component { +class Mask extends React.Component<*> { width: number; shouldComponentUpdate() { diff --git a/app/components/Modal/Modal.js b/app/components/Modal/Modal.js index 5747e384..d19410b0 100644 --- a/app/components/Modal/Modal.js +++ b/app/components/Modal/Modal.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { observer } from 'mobx-react'; import styled, { injectGlobal } from 'styled-components'; import breakpoint from 'styled-components-breakpoint'; @@ -10,10 +10,10 @@ import { fadeAndScaleIn } from 'shared/styles/animations'; import Flex from 'shared/components/Flex'; type Props = { - children?: React$Element, + children?: React.Node, isOpen: boolean, title?: string, - onRequestClose: () => void, + onRequestClose: () => *, }; // eslint-disable-next-line diff --git a/app/components/Modals/Modals.js b/app/components/Modals/Modals.js index b08ebf25..81506c74 100644 --- a/app/components/Modals/Modals.js +++ b/app/components/Modals/Modals.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observer } from 'mobx-react'; import BaseModal from 'components/Modal'; import UiStore from 'stores/UiStore'; @@ -9,12 +9,11 @@ import CollectionDelete from 'scenes/CollectionDelete'; import DocumentDelete from 'scenes/DocumentDelete'; import KeyboardShortcuts from 'scenes/KeyboardShortcuts'; +type Props = { + ui: UiStore, +}; @observer -class Modals extends Component { - props: { - ui: UiStore, - }; - +class Modals extends React.Component { handleClose = () => { this.props.ui.clearActiveModal(); }; diff --git a/app/components/PageTitle/PageTitle.js b/app/components/PageTitle/PageTitle.js index b9d39e4d..56105504 100644 --- a/app/components/PageTitle/PageTitle.js +++ b/app/components/PageTitle/PageTitle.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Helmet } from 'react-helmet'; type Props = { diff --git a/app/components/Popover/Popover.js b/app/components/Popover/Popover.js index c3cdc999..641e19e8 100644 --- a/app/components/Popover/Popover.js +++ b/app/components/Popover/Popover.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import BoundlessPopover from 'boundless-popover'; import styled, { keyframes } from 'styled-components'; diff --git a/app/components/RouteSidebarHidden/RouteSidebarHidden.js b/app/components/RouteSidebarHidden/RouteSidebarHidden.js index c15cb6ad..7cf768e0 100644 --- a/app/components/RouteSidebarHidden/RouteSidebarHidden.js +++ b/app/components/RouteSidebarHidden/RouteSidebarHidden.js @@ -1,15 +1,15 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { inject } from 'mobx-react'; import { Route } from 'react-router-dom'; import UiStore from 'stores/UiStore'; -class RouteSidebarHidden extends Component { - props: { - ui: UiStore, - component: any, - }; +type Props = { + ui: UiStore, + component: *, +}; +class RouteSidebarHidden extends React.Component { componentDidMount() { this.props.ui.enableEditMode(); } diff --git a/app/components/ScrollToTop.js b/app/components/ScrollToTop.js index d1353ff8..490b432c 100644 --- a/app/components/ScrollToTop.js +++ b/app/components/ScrollToTop.js @@ -1,9 +1,9 @@ // @flow // based on: https://reacttraining.com/react-router/web/guides/scroll-restoration -import { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; -class ScrollToTop extends Component { +class ScrollToTop extends React.Component<*> { componentDidUpdate(prevProps) { if (this.props.location !== prevProps.location) { window.scrollTo(0, 0); diff --git a/app/components/Sidebar/Main.js b/app/components/Sidebar/Main.js index d8d1cbd3..649d508c 100644 --- a/app/components/Sidebar/Main.js +++ b/app/components/Sidebar/Main.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; import type { Location } from 'react-router-dom'; import { observer, inject } from 'mobx-react'; @@ -26,9 +26,7 @@ type Props = { }; @observer -class MainSidebar extends Component { - props: Props; - +class MainSidebar extends React.Component { handleCreateCollection = () => { this.props.ui.setActiveModal('collection-new'); }; diff --git a/app/components/Sidebar/Settings.js b/app/components/Sidebar/Settings.js index 87cb2608..18f70fd7 100644 --- a/app/components/Sidebar/Settings.js +++ b/app/components/Sidebar/Settings.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observer, inject } from 'mobx-react'; import { ProfileIcon, SettingsIcon, CodeIcon, UserIcon } from 'outline-icons'; @@ -17,9 +17,7 @@ type Props = { }; @observer -class SettingsSidebar extends Component { - props: Props; - +class SettingsSidebar extends React.Component { returnToDashboard = () => { this.props.history.push('/'); }; diff --git a/app/components/Sidebar/Sidebar.js b/app/components/Sidebar/Sidebar.js index fb763b0c..3f34e821 100644 --- a/app/components/Sidebar/Sidebar.js +++ b/app/components/Sidebar/Sidebar.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; import type { Location } from 'react-router-dom'; import styled from 'styled-components'; @@ -14,7 +14,7 @@ import DocumentsStore from 'stores/DocumentsStore'; import UiStore from 'stores/UiStore'; type Props = { - children: React.Element, + children: React.Node, history: Object, location: Location, auth: AuthStore, @@ -23,9 +23,7 @@ type Props = { }; @observer -class Sidebar extends Component { - props: Props; - +class Sidebar extends React.Component { componentWillReceiveProps = (nextProps: Props) => { if (this.props.location !== nextProps.location) { this.props.ui.hideMobileSidebar(); diff --git a/app/components/Sidebar/components/Collections.js b/app/components/Sidebar/components/Collections.js index 721a0ecc..3d753e99 100644 --- a/app/components/Sidebar/components/Collections.js +++ b/app/components/Sidebar/components/Collections.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable } from 'mobx'; import { observer, inject } from 'mobx-react'; import type { Location } from 'react-router-dom'; @@ -30,9 +30,7 @@ type Props = { }; @observer -class Collections extends Component { - props: Props; - +class Collections extends React.Component { render() { const { history, location, collections, ui, documents } = this.props; @@ -73,7 +71,7 @@ type CollectionLinkProps = { }; @observer -class CollectionLink extends Component { +class CollectionLink extends React.Component<*> { props: CollectionLinkProps; @observable menuOpen = false; @@ -168,7 +166,7 @@ const DocumentLink = observer( isActiveDocument) ); - const handleMouseEnter = (event: SyntheticEvent) => { + const handleMouseEnter = (event: SyntheticEvent<*>) => { event.stopPropagation(); event.preventDefault(); prefetchDocument(document.id); diff --git a/app/components/Sidebar/components/HeaderBlock.js b/app/components/Sidebar/components/HeaderBlock.js index be93d154..960f839e 100644 --- a/app/components/Sidebar/components/HeaderBlock.js +++ b/app/components/Sidebar/components/HeaderBlock.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { color } from 'shared/styles/constants'; import Flex from 'shared/components/Flex'; diff --git a/app/components/Sidebar/components/SidebarLink.js b/app/components/Sidebar/components/SidebarLink.js index 6281b1e2..e53e3200 100644 --- a/app/components/Sidebar/components/SidebarLink.js +++ b/app/components/Sidebar/components/SidebarLink.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable, action } from 'mobx'; import { observer } from 'mobx-react'; import { NavLink } from 'react-router-dom'; @@ -47,19 +47,18 @@ const StyledDiv = StyledNavLink.withComponent('div'); type Props = { to?: string, - onClick?: SyntheticEvent => *, - children?: React$Element<*>, - icon?: React$Element<*>, + onClick?: (SyntheticEvent<*>) => *, + children?: React.Node, + icon?: React.Node, expand?: boolean, - expandedContent?: React$Element<*>, + expandedContent?: React.Node, hideExpandToggle?: boolean, iconColor?: string, active?: boolean, }; @observer -class SidebarLink extends Component { - props: Props; +class SidebarLink extends React.Component { @observable expanded: boolean = false; componentDidMount() { @@ -71,7 +70,7 @@ class SidebarLink extends Component { } @action - handleClick = (event: SyntheticEvent) => { + handleClick = (event: SyntheticEvent<*>) => { event.preventDefault(); event.stopPropagation(); this.expanded = !this.expanded; diff --git a/app/components/Toasts/Toasts.js b/app/components/Toasts/Toasts.js index 3eeddb68..3d7656aa 100644 --- a/app/components/Toasts/Toasts.js +++ b/app/components/Toasts/Toasts.js @@ -1,12 +1,12 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { inject, observer } from 'mobx-react'; import styled from 'styled-components'; import { layout } from 'shared/styles/constants'; import Toast from './components/Toast'; @observer -class Toasts extends Component { +class Toasts extends React.Component<*> { handleClose = index => { this.props.errors.remove(index); }; diff --git a/app/components/Toasts/components/Toast.js b/app/components/Toasts/components/Toast.js index d0eb4605..6efc2bd9 100644 --- a/app/components/Toasts/components/Toast.js +++ b/app/components/Toasts/components/Toast.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { darken } from 'polished'; import { color } from 'shared/styles/constants'; @@ -12,9 +12,8 @@ type Props = { type: 'warning' | 'error' | 'info', }; -class Toast extends Component { - timeout: number; - props: Props; +class Toast extends React.Component { + timeout: TimeoutID; static defaultProps = { closeAfterMs: 3000, diff --git a/app/components/Tooltip/index.js b/app/components/Tooltip/index.js index 7416605c..c8ef00ae 100644 --- a/app/components/Tooltip/index.js +++ b/app/components/Tooltip/index.js @@ -2,10 +2,8 @@ import { TooltipTrigger } from 'pui-react-tooltip'; import { injectGlobal } from 'styled-components'; -injectGlobal([ - ` +injectGlobal` .tooltip:hover .tooltip-container:not(.tooltip-container-hidden){visibility:visible;opacity:1}.tooltip-container{visibility:hidden;-webkit-transition:opacity ease-out 0.2s;transition:opacity ease-out 0.2s;z-index:10;position:absolute;bottom:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:0 0 8px 0;text-align:left}.tooltip-container.tooltip-container-visible{visibility:visible}.tooltip-container.tooltip-hoverable:after{content:"";position:absolute;width:calc(100% + 16px);height:calc(100% + 16px);top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.tooltip-container .tooltip-content{white-space:nowrap;padding:4px 8px;font-size:12px;line-height:16px;font-weight:400;letter-spacing:0;text-transform:none;background-color:#243641;color:#fff;border-radius:2px;border:1px solid #243641;box-shadow:0px 2px 2px 0px rgba(36, 54, 65, .1),0px 0px 2px 0px rgba(36, 54, 65, .1)}.tooltip-container .tooltip-content:before{content:"";z-index:1;position:absolute;bottom:-4px;left:50%;-webkit-transform:translateX(-50%) rotateZ(45deg);transform:translateX(-50%) rotateZ(45deg);background-color:#243641;border-bottom:1px solid #243641;border-right:1px solid #243641;width:8px;height:8px}.tooltip-container .tooltip-content:after{content:"";box-sizing:content-box;z-index:-1;position:absolute;bottom:-4px;left:50%;-webkit-transform:translateX(-50%) rotateZ(45deg);transform:translateX(-50%) rotateZ(45deg);background-color:#243641;box-shadow:0px 2px 2px 0px rgba(36, 54, 65, .1),0px 0px 2px 0px rgba(36, 54, 65, .1);width:8px;height:8px}.tooltip{position:relative;display:inline-block}.tooltip.tooltip-light .tooltip-content{background-color:#fff;color:#243641;border:1px solid #DFE5E8}.tooltip.tooltip-light .tooltip-content:before{background-color:#fff;border-bottom:1px solid #DFE5E8;border-right:1px solid #DFE5E8}.tooltip.tooltip-light .tooltip-content:after{background-color:#fff}.tooltip.tooltip-bottom .tooltip-container{top:100%;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:8px 0 0 0}.tooltip.tooltip-bottom .tooltip-container .tooltip-content:before{bottom:auto;top:-4px;border-top:1px solid #243641;border-right:none;border-bottom:none;border-left:1px solid #243641}.tooltip.tooltip-bottom .tooltip-container .tooltip-content:after{bottom:auto;top:-4px}.tooltip.tooltip-bottom.tooltip-light .tooltip-content:before{border-top:1px solid #DFE5E8;border-left:1px solid #DFE5E8}.tooltip.tooltip-right .tooltip-container{top:50%;bottom:auto;left:100%;-webkit-transform:translatey(-50%);transform:translatey(-50%);margin:0 0 0 8px}.tooltip.tooltip-right .tooltip-container .tooltip-content:before{bottom:auto;left:-4px;top:50%;-webkit-transform:translatey(-50%) rotateZ(45deg);transform:translatey(-50%) rotateZ(45deg);border-top:none;border-right:none;border-bottom:1px solid #243641;border-left:1px solid #243641}.tooltip.tooltip-right .tooltip-container .tooltip-content:after{bottom:auto;left:-4px;top:50%;-webkit-transform:translatey(-50%) rotateZ(45deg);transform:translatey(-50%) rotateZ(45deg)}.tooltip.tooltip-right.tooltip-light .tooltip-content:before{border-bottom:1px solid #DFE5E8;border-left:1px solid #DFE5E8}.tooltip.tooltip-left .tooltip-container{top:50%;bottom:auto;right:100%;left:auto;-webkit-transform:translatey(-50%);transform:translatey(-50%);margin:0 8px 0 0}.tooltip.tooltip-left .tooltip-container .tooltip-content:before{bottom:auto;right:-4px;left:auto;top:50%;-webkit-transform:translatey(-50%) rotateZ(45deg);transform:translatey(-50%) rotateZ(45deg);border-top:1px solid #243641;border-right:1px solid #243641;border-bottom:none;border-left:none}.tooltip.tooltip-left .tooltip-container .tooltip-content:after{bottom:auto;right:-4px;left:auto;top:50%;-webkit-transform:translatey(-50%) rotateZ(45deg);transform:translatey(-50%) rotateZ(45deg)}.tooltip.tooltip-left.tooltip-light .tooltip-content:before{border-top:1px solid #DFE5E8;border-right:1px solid #DFE5E8}.tooltip-sm.tooltip-container{width:120px}.tooltip-sm.tooltip-container .tooltip-content{white-space:normal}.tooltip-md.tooltip-container{width:240px}.tooltip-md.tooltip-container .tooltip-content{white-space:normal}.tooltip-lg.tooltip-container{width:360px}.tooltip-lg.tooltip-container .tooltip-content{white-space:normal}.tether-element{z-index:99}.overlay-trigger{color:#1B78B3;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out;-webkit-transition-property:background-color, color, opacity;transition-property:background-color, color, opacity}.overlay-trigger:hover,.overlay-trigger:focus{color:#1f8ace;cursor:pointer;outline:none;text-decoration:none}.overlay-trigger:active,.overlay-trigger.active{color:#176698} -`, -]); +`; export default TooltipTrigger; diff --git a/app/index.js b/app/index.js index 5ec2dd5a..bb84a01c 100644 --- a/app/index.js +++ b/app/index.js @@ -49,83 +49,86 @@ const RedirectDocument = ({ match }: { match: Object }) => ( globalStyles(); -render( - - - - - - - - - - - +const element = document.getElementById('root'); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {DevTools && } - , - document.getElementById('root') -); +if (element) { + render( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {DevTools && } + , + element + ); +} window.addEventListener('load', async () => { // installation does not use Google Analytics, or tracking is blocked on client diff --git a/app/menus/AccountMenu.js b/app/menus/AccountMenu.js index 01aab33c..7ce948e4 100644 --- a/app/menus/AccountMenu.js +++ b/app/menus/AccountMenu.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; import { inject, observer } from 'mobx-react'; import UiStore from 'stores/UiStore'; @@ -12,15 +12,15 @@ import { spectrumUrl, } from '../../shared/utils/routeHelpers'; -@observer -class AccountMenu extends Component { - props: { - label?: React$Element, - history: Object, - ui: UiStore, - auth: AuthStore, - }; +type Props = { + label?: React.Node, + history: Object, + ui: UiStore, + auth: AuthStore, +}; +@observer +class AccountMenu extends React.Component { handleOpenKeyboardShortcuts = () => { this.props.ui.setActiveModal('keyboard-shortcuts'); }; diff --git a/app/menus/CollectionMenu.js b/app/menus/CollectionMenu.js index b627861e..9c7c906a 100644 --- a/app/menus/CollectionMenu.js +++ b/app/menus/CollectionMenu.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { inject, observer } from 'mobx-react'; import styled from 'styled-components'; import { MoreIcon } from 'outline-icons'; @@ -12,9 +12,9 @@ import DocumentsStore from 'stores/DocumentsStore'; import { DropdownMenu, DropdownMenuItem } from 'components/DropdownMenu'; type Props = { - label?: React$Element<*>, - onOpen?: () => void, - onClose?: () => void, + label?: React.Node, + onOpen?: () => *, + onClose?: () => *, history: Object, ui: UiStore, documents: DocumentsStore, @@ -22,24 +22,23 @@ type Props = { }; @observer -class CollectionMenu extends Component { - props: Props; +class CollectionMenu extends React.Component { file: HTMLInputElement; - onNewDocument = (ev: SyntheticEvent) => { + onNewDocument = (ev: SyntheticEvent<*>) => { ev.preventDefault(); const { collection, history } = this.props; history.push(`${collection.url}/new`); }; - onImportDocument = (ev: SyntheticEvent) => { + onImportDocument = (ev: SyntheticEvent<*>) => { ev.preventDefault(); // simulate a click on the file upload input element this.file.click(); }; - onFilePicked = async (ev: SyntheticEvent) => { + onFilePicked = async (ev: SyntheticEvent<*>) => { const files = getDataTransferFiles(ev); const document = await importFile({ file: files[0], @@ -50,13 +49,13 @@ class CollectionMenu extends Component { this.props.history.push(document.url); }; - onEdit = (ev: SyntheticEvent) => { + onEdit = (ev: SyntheticEvent<*>) => { ev.preventDefault(); const { collection } = this.props; this.props.ui.setActiveModal('collection-edit', { collection }); }; - onDelete = (ev: SyntheticEvent) => { + onDelete = (ev: SyntheticEvent<*>) => { ev.preventDefault(); const { collection } = this.props; this.props.ui.setActiveModal('collection-delete', { collection }); diff --git a/app/menus/DocumentMenu.js b/app/menus/DocumentMenu.js index 8940cf04..5d76b771 100644 --- a/app/menus/DocumentMenu.js +++ b/app/menus/DocumentMenu.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; import { inject, observer } from 'mobx-react'; import { MoreIcon } from 'outline-icons'; @@ -9,49 +9,49 @@ import UiStore from 'stores/UiStore'; import { documentMoveUrl } from 'utils/routeHelpers'; import { DropdownMenu, DropdownMenuItem } from 'components/DropdownMenu'; -@observer -class DocumentMenu extends Component { - props: { - ui: UiStore, - label?: React$Element, - history: Object, - document: Document, - className: string, - }; +type Props = { + ui: UiStore, + label?: React.Node, + history: Object, + document: Document, + className: string, +}; - handleNewChild = (ev: SyntheticEvent) => { +@observer +class DocumentMenu extends React.Component { + handleNewChild = (ev: SyntheticEvent<*>) => { const { history, document } = this.props; history.push( `${document.collection.url}/new?parentDocument=${document.id}` ); }; - handleDelete = (ev: SyntheticEvent) => { + handleDelete = (ev: SyntheticEvent<*>) => { const { document } = this.props; this.props.ui.setActiveModal('document-delete', { document }); }; - handleMove = (ev: SyntheticEvent) => { + handleMove = (ev: SyntheticEvent<*>) => { this.props.history.push(documentMoveUrl(this.props.document)); }; - handlePin = (ev: SyntheticEvent) => { + handlePin = (ev: SyntheticEvent<*>) => { this.props.document.pin(); }; - handleUnpin = (ev: SyntheticEvent) => { + handleUnpin = (ev: SyntheticEvent<*>) => { this.props.document.unpin(); }; - handleStar = (ev: SyntheticEvent) => { + handleStar = (ev: SyntheticEvent<*>) => { this.props.document.star(); }; - handleUnstar = (ev: SyntheticEvent) => { + handleUnstar = (ev: SyntheticEvent<*>) => { this.props.document.unstar(); }; - handleExport = (ev: SyntheticEvent) => { + handleExport = (ev: SyntheticEvent<*>) => { this.props.document.download(); }; diff --git a/app/scenes/Collection/Collection.js b/app/scenes/Collection/Collection.js index e2ea994e..eed71932 100644 --- a/app/scenes/Collection/Collection.js +++ b/app/scenes/Collection/Collection.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable } from 'mobx'; import { observer, inject } from 'mobx-react'; import { withRouter, Link } from 'react-router-dom'; @@ -33,8 +33,7 @@ type Props = { }; @observer -class CollectionScene extends Component { - props: Props; +class CollectionScene extends React.Component { @observable collection: ?Collection; @observable isFetching: boolean = true; @@ -74,7 +73,7 @@ class CollectionScene extends Component { this.isFetching = false; }; - onNewDocument = (ev: SyntheticEvent) => { + onNewDocument = (ev: SyntheticEvent<*>) => { ev.preventDefault(); if (this.collection) { diff --git a/app/scenes/CollectionDelete/CollectionDelete.js b/app/scenes/CollectionDelete/CollectionDelete.js index 1e06afa6..cd441ebd 100644 --- a/app/scenes/CollectionDelete/CollectionDelete.js +++ b/app/scenes/CollectionDelete/CollectionDelete.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; import { observable } from 'mobx'; import { inject, observer } from 'mobx-react'; @@ -18,11 +18,10 @@ type Props = { }; @observer -class CollectionDelete extends Component { - props: Props; +class CollectionDelete extends React.Component { @observable isDeleting: boolean; - handleSubmit = async (ev: SyntheticEvent) => { + handleSubmit = async (ev: SyntheticEvent<*>) => { ev.preventDefault(); this.isDeleting = true; const success = await this.props.collection.delete(); diff --git a/app/scenes/CollectionEdit/CollectionEdit.js b/app/scenes/CollectionEdit/CollectionEdit.js index b8612691..6ae01f23 100644 --- a/app/scenes/CollectionEdit/CollectionEdit.js +++ b/app/scenes/CollectionEdit/CollectionEdit.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; import { observable } from 'mobx'; import { inject, observer } from 'mobx-react'; @@ -17,8 +17,7 @@ type Props = { }; @observer -class CollectionEdit extends Component { - props: Props; +class CollectionEdit extends React.Component { @observable name: string; @observable color: string = ''; @observable isSaving: boolean; @@ -27,7 +26,7 @@ class CollectionEdit extends Component { this.name = this.props.collection.name; } - handleSubmit = async (ev: SyntheticEvent) => { + handleSubmit = async (ev: SyntheticEvent<*>) => { ev.preventDefault(); this.isSaving = true; @@ -41,7 +40,7 @@ class CollectionEdit extends Component { this.isSaving = false; }; - handleNameChange = (ev: SyntheticInputEvent) => { + handleNameChange = (ev: SyntheticInputEvent<*>) => { this.name = ev.target.value; }; diff --git a/app/scenes/CollectionNew/CollectionNew.js b/app/scenes/CollectionNew/CollectionNew.js index 80d93a87..866507df 100644 --- a/app/scenes/CollectionNew/CollectionNew.js +++ b/app/scenes/CollectionNew/CollectionNew.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; import { observable } from 'mobx'; import { inject, observer } from 'mobx-react'; @@ -18,8 +18,7 @@ type Props = { }; @observer -class CollectionNew extends Component { - props: Props; +class CollectionNew extends React.Component { @observable collection: Collection; @observable name: string = ''; @observable color: string = ''; @@ -30,7 +29,7 @@ class CollectionNew extends Component { this.collection = new Collection(); } - handleSubmit = async (ev: SyntheticEvent) => { + handleSubmit = async (ev: SyntheticEvent<*>) => { ev.preventDefault(); this.isSaving = true; this.collection.updateData({ name: this.name, color: this.color }); @@ -45,7 +44,7 @@ class CollectionNew extends Component { this.isSaving = false; }; - handleNameChange = (ev: SyntheticInputEvent) => { + handleNameChange = (ev: SyntheticInputEvent<*>) => { this.name = ev.target.value; }; diff --git a/app/scenes/Dashboard/Dashboard.js b/app/scenes/Dashboard/Dashboard.js index 5a410969..a641f2d7 100644 --- a/app/scenes/Dashboard/Dashboard.js +++ b/app/scenes/Dashboard/Dashboard.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable } from 'mobx'; import { observer, inject } from 'mobx-react'; @@ -15,8 +15,7 @@ type Props = { }; @observer -class Dashboard extends Component { - props: Props; +class Dashboard extends React.Component { @observable isLoaded: boolean = false; componentDidMount() { diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index e987588a..e1e7e7ca 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -48,9 +48,8 @@ type Props = { }; @observer -class DocumentScene extends React.Component { - props: Props; - savedTimeout: number; +class DocumentScene extends React.Component { + savedTimeout: TimeoutID; @observable editorComponent; @observable editCache: ?string; @@ -136,7 +135,7 @@ class DocumentScene extends React.Component { }; get isEditing() { - return ( + return !!( this.props.match.path === matchDocumentEdit || this.props.newDocument ); } @@ -163,7 +162,7 @@ class DocumentScene extends React.Component { this.editCache = null; this.isSaving = true; - this.isPublishing = publish; + this.isPublishing = !!publish; document = await document.save(publish, redirect); this.isSaving = false; this.isPublishing = false; diff --git a/app/scenes/Document/components/Actions.js b/app/scenes/Document/components/Actions.js index 943286dd..000c79f0 100644 --- a/app/scenes/Document/components/Actions.js +++ b/app/scenes/Document/components/Actions.js @@ -26,9 +26,7 @@ type Props = { history: Object, }; -class DocumentActions extends React.Component { - props: Props; - +class DocumentActions extends React.Component { handleNewDocument = () => { this.props.history.push(documentNewUrl(this.props.document)); }; diff --git a/app/scenes/Document/components/DocumentMove/DocumentMove.js b/app/scenes/Document/components/DocumentMove/DocumentMove.js index 8a2a9d22..10e50bed 100644 --- a/app/scenes/Document/components/DocumentMove/DocumentMove.js +++ b/app/scenes/Document/components/DocumentMove/DocumentMove.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import ReactDOM from 'react-dom'; import { observable, computed } from 'mobx'; import { observer, inject } from 'mobx-react'; @@ -29,10 +29,8 @@ type Props = { }; @observer -class DocumentMove extends Component { - props: Props; - firstDocument: HTMLElement; - +class DocumentMove extends React.Component { + firstDocument: *; @observable searchTerm: ?string; @observable isSaving: boolean; @@ -115,7 +113,7 @@ class DocumentMove extends Component { this.props.history.push(this.props.document.url); }; - handleFilter = (e: SyntheticInputEvent) => { + handleFilter = (e: SyntheticInputEvent<*>) => { this.searchTerm = e.target.value; }; diff --git a/app/scenes/Document/components/DocumentMove/components/PathToDocument.js b/app/scenes/Document/components/DocumentMove/components/PathToDocument.js index d7a11cc1..8b8b6747 100644 --- a/app/scenes/Document/components/DocumentMove/components/PathToDocument.js +++ b/app/scenes/Document/components/DocumentMove/components/PathToDocument.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { observer } from 'mobx-react'; import invariant from 'invariant'; import styled from 'styled-components'; @@ -49,10 +49,8 @@ type Props = { }; @observer -class PathToDocument extends React.Component { - props: Props; - - handleClick = async (ev: SyntheticEvent) => { +class PathToDocument extends React.Component { + handleClick = async (ev: SyntheticEvent<*>) => { ev.preventDefault(); const { document, result, onSuccess } = this.props; diff --git a/app/scenes/Document/components/LoadingPlaceholder.js b/app/scenes/Document/components/LoadingPlaceholder.js index ea608101..3cffaa92 100644 --- a/app/scenes/Document/components/LoadingPlaceholder.js +++ b/app/scenes/Document/components/LoadingPlaceholder.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { pulsate } from 'shared/styles/animations'; import { color } from 'shared/styles/constants'; diff --git a/app/scenes/DocumentDelete/DocumentDelete.js b/app/scenes/DocumentDelete/DocumentDelete.js index cab12368..7c3270bd 100644 --- a/app/scenes/DocumentDelete/DocumentDelete.js +++ b/app/scenes/DocumentDelete/DocumentDelete.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { withRouter } from 'react-router-dom'; import { observable } from 'mobx'; import { inject, observer } from 'mobx-react'; @@ -17,11 +17,10 @@ type Props = { }; @observer -class DocumentDelete extends Component { - props: Props; +class DocumentDelete extends React.Component { @observable isDeleting: boolean; - handleSubmit = async (ev: SyntheticEvent) => { + handleSubmit = async (ev: SyntheticEvent<*>) => { ev.preventDefault(); this.isDeleting = true; const { collection } = this.props.document; diff --git a/app/scenes/Drafts/Drafts.js b/app/scenes/Drafts/Drafts.js index ada616c2..6d5947d5 100644 --- a/app/scenes/Drafts/Drafts.js +++ b/app/scenes/Drafts/Drafts.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observer, inject } from 'mobx-react'; import CenteredContent from 'components/CenteredContent'; import { ListPlaceholder } from 'components/LoadingPlaceholder'; @@ -8,12 +8,12 @@ import PageTitle from 'components/PageTitle'; import DocumentList from 'components/DocumentList'; import DocumentsStore from 'stores/DocumentsStore'; -@observer -class Drafts extends Component { - props: { - documents: DocumentsStore, - }; +type Props = { + documents: DocumentsStore, +}; +@observer +class Drafts extends React.Component { componentDidMount() { this.props.documents.fetchDrafts(); } diff --git a/app/scenes/Error404/Error404.js b/app/scenes/Error404/Error404.js index 17bfc5eb..041767bd 100644 --- a/app/scenes/Error404/Error404.js +++ b/app/scenes/Error404/Error404.js @@ -1,11 +1,11 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Link } from 'react-router-dom'; import CenteredContent from 'components/CenteredContent'; import PageTitle from 'components/PageTitle'; -class Error404 extends React.Component { +class Error404 extends React.Component<*> { render() { return ( diff --git a/app/scenes/ErrorAuth/ErrorAuth.js b/app/scenes/ErrorAuth/ErrorAuth.js index edfbd009..97e19f2e 100644 --- a/app/scenes/ErrorAuth/ErrorAuth.js +++ b/app/scenes/ErrorAuth/ErrorAuth.js @@ -1,11 +1,11 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Link } from 'react-router-dom'; import CenteredContent from 'components/CenteredContent'; import PageTitle from 'components/PageTitle'; -class ErrorAuth extends React.Component { +class ErrorAuth extends React.Component<*> { render() { return ( diff --git a/app/scenes/ErrorSuspended/ErrorSuspended.js b/app/scenes/ErrorSuspended/ErrorSuspended.js index dd4ab86c..3f8041cd 100644 --- a/app/scenes/ErrorSuspended/ErrorSuspended.js +++ b/app/scenes/ErrorSuspended/ErrorSuspended.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { inject, observer } from 'mobx-react'; import CenteredContent from 'components/CenteredContent'; diff --git a/app/scenes/Home/Home.js b/app/scenes/Home/Home.js index 3c2f46c1..39825cd5 100644 --- a/app/scenes/Home/Home.js +++ b/app/scenes/Home/Home.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { observer, inject } from 'mobx-react'; import { Redirect } from 'react-router-dom'; import AuthStore from 'stores/AuthStore'; diff --git a/app/scenes/KeyboardShortcuts/KeyboardShortcuts.js b/app/scenes/KeyboardShortcuts/KeyboardShortcuts.js index 9c9c5db1..b9e31f0f 100644 --- a/app/scenes/KeyboardShortcuts/KeyboardShortcuts.js +++ b/app/scenes/KeyboardShortcuts/KeyboardShortcuts.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import Key from 'components/Key'; import Flex from 'shared/components/Flex'; diff --git a/app/scenes/Search/Search.js b/app/scenes/Search/Search.js index 4b775110..3e823117 100644 --- a/app/scenes/Search/Search.js +++ b/app/scenes/Search/Search.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import ReactDOM from 'react-dom'; import keydown from 'react-keydown'; import Waypoint from 'react-waypoint'; @@ -59,9 +59,8 @@ const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)` `; @observer -class Search extends Component { +class Search extends React.Component { firstDocument: HTMLElement; - props: Props; @observable resultIds: string[] = []; // Document IDs @observable query: string = ''; diff --git a/app/scenes/Search/components/SearchField.js b/app/scenes/Search/components/SearchField.js index 103fc162..2e4158be 100644 --- a/app/scenes/Search/components/SearchField.js +++ b/app/scenes/Search/components/SearchField.js @@ -1,22 +1,23 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { SearchIcon } from 'outline-icons'; import Flex from 'shared/components/Flex'; import { color } from 'shared/styles/constants'; -class SearchField extends Component { - input: HTMLInputElement; - props: { - onChange: Function, - }; +type Props = { + onChange: string => *, +}; - handleChange = (ev: SyntheticEvent) => { +class SearchField extends React.Component { + input: HTMLInputElement; + + handleChange = (ev: SyntheticEvent<*>) => { this.props.onChange(ev.currentTarget.value ? ev.currentTarget.value : ''); }; - focusInput = (ev: SyntheticEvent) => { + focusInput = (ev: SyntheticEvent<*>) => { this.input.focus(); }; diff --git a/app/scenes/Settings/Settings.js b/app/scenes/Settings/Settings.js index ae32d05c..aeeedb5f 100644 --- a/app/scenes/Settings/Settings.js +++ b/app/scenes/Settings/Settings.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable, runInAction } from 'mobx'; import { observer, inject } from 'mobx-react'; import invariant from 'invariant'; @@ -16,13 +16,14 @@ import CenteredContent from 'components/CenteredContent'; import PageTitle from 'components/PageTitle'; import Flex from 'shared/components/Flex'; +type Props = { + auth: AuthStore, + errors: ErrorsStore, +}; + @observer -class Settings extends Component { - timeout: number; - props: { - auth: AuthStore, - errors: ErrorsStore, - }; +class Settings extends React.Component { + timeout: TimeoutID; @observable name: string; @observable avatarUrl: ?string; @@ -39,7 +40,7 @@ class Settings extends Component { clearTimeout(this.timeout); } - handleSubmit = async (ev: SyntheticEvent) => { + handleSubmit = async (ev: SyntheticEvent<*>) => { ev.preventDefault(); this.isSaving = true; @@ -62,7 +63,7 @@ class Settings extends Component { } }; - handleNameChange = (ev: SyntheticInputEvent) => { + handleNameChange = (ev: SyntheticInputEvent<*>) => { this.name = ev.target.value; }; diff --git a/app/scenes/Settings/Slack.js b/app/scenes/Settings/Slack.js index 2e3eb8ab..188972bd 100644 --- a/app/scenes/Settings/Slack.js +++ b/app/scenes/Settings/Slack.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { inject, observer } from 'mobx-react'; import _ from 'lodash'; import styled from 'styled-components'; @@ -18,9 +18,7 @@ type Props = { }; @observer -class Slack extends Component { - props: Props; - +class Slack extends React.Component { componentDidMount() { this.props.integrations.fetchPage(); } diff --git a/app/scenes/Settings/Tokens.js b/app/scenes/Settings/Tokens.js index d753b41e..a3b30afa 100644 --- a/app/scenes/Settings/Tokens.js +++ b/app/scenes/Settings/Tokens.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable } from 'mobx'; import { observer, inject } from 'mobx-react'; import { Link } from 'react-router-dom'; @@ -15,22 +15,23 @@ import PageTitle from 'components/PageTitle'; import HelpText from 'components/HelpText'; import Subheading from 'components/Subheading'; +type Props = { + apiKeys: ApiKeysStore, +}; + @observer -class Tokens extends Component { +class Tokens extends React.Component { @observable name: string = ''; - props: { - apiKeys: ApiKeysStore, - }; componentDidMount() { this.props.apiKeys.fetchPage({ limit: 100 }); } - handleUpdate = (ev: SyntheticInputEvent) => { + handleUpdate = (ev: SyntheticInputEvent<*>) => { this.name = ev.target.value; }; - handleSubmit = async (ev: SyntheticEvent) => { + handleSubmit = async (ev: SyntheticEvent<*>) => { ev.preventDefault(); await this.props.apiKeys.createApiKey(this.name); this.name = ''; diff --git a/app/scenes/Settings/Users.js b/app/scenes/Settings/Users.js index 0e726dc5..e17b7cae 100644 --- a/app/scenes/Settings/Users.js +++ b/app/scenes/Settings/Users.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import invariant from 'invariant'; import { observer, inject } from 'mobx-react'; import styled from 'styled-components'; @@ -15,14 +15,14 @@ import LoadingPlaceholder from 'components/LoadingPlaceholder'; import PageTitle from 'components/PageTitle'; import UserMenu from './components/UserMenu'; -@observer -class Users extends Component { - props: { - auth: AuthStore, - errors: ErrorsStore, - users: UsersStore, - }; +type Props = { + auth: AuthStore, + errors: ErrorsStore, + users: UsersStore, +}; +@observer +class Users extends React.Component { componentDidMount() { this.props.users.fetchPage({ limit: 100 }); } diff --git a/app/scenes/Settings/components/ApiToken.js b/app/scenes/Settings/components/ApiToken.js index 649489e1..491a9036 100644 --- a/app/scenes/Settings/components/ApiToken.js +++ b/app/scenes/Settings/components/ApiToken.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { observable } from 'mobx'; import { observer } from 'mobx-react'; import Button from 'components/Button'; @@ -12,8 +12,7 @@ type Props = { }; @observer -class ApiToken extends React.Component { - props: Props; +class ApiToken extends React.Component { @observable disabled: boolean; onClick = () => { diff --git a/app/scenes/Settings/components/ImageUpload.js b/app/scenes/Settings/components/ImageUpload.js index 4c034a64..b3ca7a81 100644 --- a/app/scenes/Settings/components/ImageUpload.js +++ b/app/scenes/Settings/components/ImageUpload.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observable } from 'mobx'; import { observer } from 'mobx-react'; import styled from 'styled-components'; @@ -13,17 +13,16 @@ import AvatarEditor from 'react-avatar-editor'; import { uploadFile, dataUrlToBlob } from 'utils/uploadFile'; type Props = { - children?: React$Element, - onSuccess: string => void, - onError: string => void, + children?: React.Node, + onSuccess: string => *, + onError: string => *, }; @observer -class DropToImport extends Component { +class DropToImport extends React.Component { @observable isUploading: boolean = false; @observable isCropping: boolean = false; @observable zoom: number = 1; - props: Props; file: File; avatarEditorRef: AvatarEditor; @@ -46,7 +45,7 @@ class DropToImport extends Component { } }; - handleZoom = (event: SyntheticDragEvent) => { + handleZoom = (event: SyntheticDragEvent<*>) => { let target = event.target; if (target instanceof HTMLInputElement) { this.zoom = parseFloat(target.value); diff --git a/app/scenes/Settings/components/UserMenu.js b/app/scenes/Settings/components/UserMenu.js index d6f987b7..f833f921 100644 --- a/app/scenes/Settings/components/UserMenu.js +++ b/app/scenes/Settings/components/UserMenu.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { inject, observer } from 'mobx-react'; import { MoreIcon } from 'outline-icons'; @@ -13,10 +13,8 @@ type Props = { }; @observer -class UserMenu extends Component { - props: Props; - - handlePromote = (ev: SyntheticEvent) => { +class UserMenu extends React.Component { + handlePromote = (ev: SyntheticEvent<*>) => { ev.preventDefault(); const { user, users } = this.props; if ( @@ -31,7 +29,7 @@ class UserMenu extends Component { users.promote(user); }; - handleDemote = (ev: SyntheticEvent) => { + handleDemote = (ev: SyntheticEvent<*>) => { ev.preventDefault(); const { user, users } = this.props; if (!window.confirm(`Are you want to make ${user.name} a member?`)) { @@ -40,7 +38,7 @@ class UserMenu extends Component { users.demote(user); }; - handleSuspend = (ev: SyntheticEvent) => { + handleSuspend = (ev: SyntheticEvent<*>) => { ev.preventDefault(); const { user, users } = this.props; if ( @@ -53,7 +51,7 @@ class UserMenu extends Component { users.suspend(user); }; - handleActivate = (ev: SyntheticEvent) => { + handleActivate = (ev: SyntheticEvent<*>) => { ev.preventDefault(); const { user, users } = this.props; users.activate(user); diff --git a/app/scenes/SlackAuth/SlackAuth.js b/app/scenes/SlackAuth/SlackAuth.js index 86194bcc..dd942d88 100644 --- a/app/scenes/SlackAuth/SlackAuth.js +++ b/app/scenes/SlackAuth/SlackAuth.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Redirect } from 'react-router-dom'; import type { Location } from 'react-router-dom'; import queryString from 'query-string'; @@ -16,8 +16,7 @@ type Props = { }; @observer -class SlackAuth extends React.Component { - props: Props; +class SlackAuth extends React.Component { @observable redirectTo: string; componentDidMount() { diff --git a/app/scenes/Starred/Starred.js b/app/scenes/Starred/Starred.js index 44f85de5..7754eadc 100644 --- a/app/scenes/Starred/Starred.js +++ b/app/scenes/Starred/Starred.js @@ -1,5 +1,5 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { observer, inject } from 'mobx-react'; import CenteredContent from 'components/CenteredContent'; import { ListPlaceholder } from 'components/LoadingPlaceholder'; @@ -8,12 +8,12 @@ import PageTitle from 'components/PageTitle'; import DocumentList from 'components/DocumentList'; import DocumentsStore from 'stores/DocumentsStore'; -@observer -class Starred extends Component { - props: { - documents: DocumentsStore, - }; +type Props = { + documents: DocumentsStore, +}; +@observer +class Starred extends React.Component { componentDidMount() { this.props.documents.fetchStarred(); } diff --git a/app/stores/AuthStore.js b/app/stores/AuthStore.js index da873043..29b2f0e8 100644 --- a/app/stores/AuthStore.js +++ b/app/stores/AuthStore.js @@ -81,7 +81,7 @@ class AuthStore { authWithSlack = async (code: string, state: string) => { // in the case of direct install from the Slack app store the state is // created on the server and set as a cookie - const serverState = Cookie.get('state', { path: '/' }); + const serverState = Cookie.get('state'); if (state !== this.oauthState && state !== serverState) { return { success: false, diff --git a/app/utils/getDataTransferFiles.js b/app/utils/getDataTransferFiles.js index 5811090b..b8bef197 100644 --- a/app/utils/getDataTransferFiles.js +++ b/app/utils/getDataTransferFiles.js @@ -1,6 +1,8 @@ // @flow -export default function getDataTransferFiles(event: SyntheticEvent) { +export default function getDataTransferFiles(event: SyntheticEvent<*>): File[] { let dataTransferItemsList = []; + + // $FlowFixMe if (event.dataTransfer) { const dt = event.dataTransfer; if (dt.files && dt.files.length) { @@ -10,6 +12,8 @@ export default function getDataTransferFiles(event: SyntheticEvent) { // but Chrome implements some drag store, which is accesible via dataTransfer.items dataTransferItemsList = dt.items; } + + // $FlowFixMe } else if (event.target && event.target.files) { dataTransferItemsList = event.target.files; } diff --git a/app/utils/uploadFile.js b/app/utils/uploadFile.js index 16a9d26b..569941b4 100644 --- a/app/utils/uploadFile.js +++ b/app/utils/uploadFile.js @@ -27,6 +27,7 @@ export const uploadFile = async ( formData.append(key, data.form[key]); } + // $FlowFixMe if (file.blob) { // $FlowFixMe formData.append('file', file.file); diff --git a/flow-typed/npm/@tommoor/slate-drop-or-paste-images_vx.x.x.js b/flow-typed/npm/@tommoor/slate-drop-or-paste-images_vx.x.x.js new file mode 100644 index 00000000..1a1679b0 --- /dev/null +++ b/flow-typed/npm/@tommoor/slate-drop-or-paste-images_vx.x.x.js @@ -0,0 +1,67 @@ +// flow-typed signature: 1716f73356cbdf5450e8d7ab82dd2e1a +// flow-typed version: <>/@tommoor/slate-drop-or-paste-images_v^0.8.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * '@tommoor/slate-drop-or-paste-images' + * + * 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 '@tommoor/slate-drop-or-paste-images' { + 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 '@tommoor/slate-drop-or-paste-images/dist/slate-drop-or-paste-images' { + declare module.exports: any; +} + +declare module '@tommoor/slate-drop-or-paste-images/dist/slate-drop-or-paste-images.min' { + declare module.exports: any; +} + +declare module '@tommoor/slate-drop-or-paste-images/lib/data-uri-to-blob' { + declare module.exports: any; +} + +declare module '@tommoor/slate-drop-or-paste-images/lib/image-to-data-uri' { + declare module.exports: any; +} + +declare module '@tommoor/slate-drop-or-paste-images/lib/index' { + declare module.exports: any; +} + +declare module '@tommoor/slate-drop-or-paste-images/lib/load-image-file' { + declare module.exports: any; +} + +// Filename aliases +declare module '@tommoor/slate-drop-or-paste-images/dist/slate-drop-or-paste-images.js' { + declare module.exports: $Exports<'@tommoor/slate-drop-or-paste-images/dist/slate-drop-or-paste-images'>; +} +declare module '@tommoor/slate-drop-or-paste-images/dist/slate-drop-or-paste-images.min.js' { + declare module.exports: $Exports<'@tommoor/slate-drop-or-paste-images/dist/slate-drop-or-paste-images.min'>; +} +declare module '@tommoor/slate-drop-or-paste-images/lib/data-uri-to-blob.js' { + declare module.exports: $Exports<'@tommoor/slate-drop-or-paste-images/lib/data-uri-to-blob'>; +} +declare module '@tommoor/slate-drop-or-paste-images/lib/image-to-data-uri.js' { + declare module.exports: $Exports<'@tommoor/slate-drop-or-paste-images/lib/image-to-data-uri'>; +} +declare module '@tommoor/slate-drop-or-paste-images/lib/index.js' { + declare module.exports: $Exports<'@tommoor/slate-drop-or-paste-images/lib/index'>; +} +declare module '@tommoor/slate-drop-or-paste-images/lib/load-image-file.js' { + declare module.exports: $Exports<'@tommoor/slate-drop-or-paste-images/lib/load-image-file'>; +} diff --git a/flow-typed/npm/autotrack_vx.x.x.js b/flow-typed/npm/autotrack_vx.x.x.js new file mode 100644 index 00000000..22d9b9dc --- /dev/null +++ b/flow-typed/npm/autotrack_vx.x.x.js @@ -0,0 +1,431 @@ +// flow-typed signature: 0cb55f2f1730c36c81fb4d6e5baedccf +// flow-typed version: <>/autotrack_v^2.4.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'autotrack' + * + * 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 'autotrack' { + 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 'autotrack/autotrack' { + declare module.exports: any; +} + +declare module 'autotrack/bin/build' { + declare module.exports: any; +} + +declare module 'autotrack/bin/errors' { + declare module.exports: any; +} + +declare module 'autotrack/gulpfile' { + declare module.exports: any; +} + +declare module 'autotrack/lib/constants' { + declare module.exports: any; +} + +declare module 'autotrack/lib/event-emitter' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/analytics' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/clean-url-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/event-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/impression-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/max-scroll-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/media-query-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/outbound-form-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/outbound-link-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/page-visibility-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/session' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/social-widget-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/externs/url-change-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/index' { + declare module.exports: any; +} + +declare module 'autotrack/lib/method-chain' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/clean-url-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/event-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/impression-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/max-scroll-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/media-query-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/outbound-form-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/outbound-link-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/page-visibility-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/social-widget-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/plugins/url-change-tracker' { + declare module.exports: any; +} + +declare module 'autotrack/lib/provide' { + declare module.exports: any; +} + +declare module 'autotrack/lib/session' { + declare module.exports: any; +} + +declare module 'autotrack/lib/store' { + declare module.exports: any; +} + +declare module 'autotrack/lib/usage' { + declare module.exports: any; +} + +declare module 'autotrack/lib/utilities' { + declare module.exports: any; +} + +declare module 'autotrack/test/analytics_debug' { + declare module.exports: any; +} + +declare module 'autotrack/test/analytics' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/clean-url-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/event-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/ga' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/impression-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/index-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/max-scroll-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/media-query-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/outbound-form-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/outbound-link-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/page-visibility-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/server' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/social-widget-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/url-change-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/e2e/wdio.conf' { + declare module.exports: any; +} + +declare module 'autotrack/test/unit/event-emitter-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/unit/method-chain-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/unit/plugins/clean-url-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/unit/plugins/page-visibility-tracker-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/unit/session-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/unit/store-test' { + declare module.exports: any; +} + +declare module 'autotrack/test/unit/utilities-test' { + declare module.exports: any; +} + +// Filename aliases +declare module 'autotrack/autotrack.js' { + declare module.exports: $Exports<'autotrack/autotrack'>; +} +declare module 'autotrack/bin/build.js' { + declare module.exports: $Exports<'autotrack/bin/build'>; +} +declare module 'autotrack/bin/errors.js' { + declare module.exports: $Exports<'autotrack/bin/errors'>; +} +declare module 'autotrack/gulpfile.js' { + declare module.exports: $Exports<'autotrack/gulpfile'>; +} +declare module 'autotrack/lib/constants.js' { + declare module.exports: $Exports<'autotrack/lib/constants'>; +} +declare module 'autotrack/lib/event-emitter.js' { + declare module.exports: $Exports<'autotrack/lib/event-emitter'>; +} +declare module 'autotrack/lib/externs/analytics.js' { + declare module.exports: $Exports<'autotrack/lib/externs/analytics'>; +} +declare module 'autotrack/lib/externs/clean-url-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/clean-url-tracker'>; +} +declare module 'autotrack/lib/externs/event-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/event-tracker'>; +} +declare module 'autotrack/lib/externs/impression-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/impression-tracker'>; +} +declare module 'autotrack/lib/externs/max-scroll-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/max-scroll-tracker'>; +} +declare module 'autotrack/lib/externs/media-query-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/media-query-tracker'>; +} +declare module 'autotrack/lib/externs/outbound-form-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/outbound-form-tracker'>; +} +declare module 'autotrack/lib/externs/outbound-link-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/outbound-link-tracker'>; +} +declare module 'autotrack/lib/externs/page-visibility-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/page-visibility-tracker'>; +} +declare module 'autotrack/lib/externs/session.js' { + declare module.exports: $Exports<'autotrack/lib/externs/session'>; +} +declare module 'autotrack/lib/externs/social-widget-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/social-widget-tracker'>; +} +declare module 'autotrack/lib/externs/url-change-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/externs/url-change-tracker'>; +} +declare module 'autotrack/lib/index.js' { + declare module.exports: $Exports<'autotrack/lib/index'>; +} +declare module 'autotrack/lib/method-chain.js' { + declare module.exports: $Exports<'autotrack/lib/method-chain'>; +} +declare module 'autotrack/lib/plugins/clean-url-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/clean-url-tracker'>; +} +declare module 'autotrack/lib/plugins/event-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/event-tracker'>; +} +declare module 'autotrack/lib/plugins/impression-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/impression-tracker'>; +} +declare module 'autotrack/lib/plugins/max-scroll-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/max-scroll-tracker'>; +} +declare module 'autotrack/lib/plugins/media-query-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/media-query-tracker'>; +} +declare module 'autotrack/lib/plugins/outbound-form-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/outbound-form-tracker'>; +} +declare module 'autotrack/lib/plugins/outbound-link-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/outbound-link-tracker'>; +} +declare module 'autotrack/lib/plugins/page-visibility-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/page-visibility-tracker'>; +} +declare module 'autotrack/lib/plugins/social-widget-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/social-widget-tracker'>; +} +declare module 'autotrack/lib/plugins/url-change-tracker.js' { + declare module.exports: $Exports<'autotrack/lib/plugins/url-change-tracker'>; +} +declare module 'autotrack/lib/provide.js' { + declare module.exports: $Exports<'autotrack/lib/provide'>; +} +declare module 'autotrack/lib/session.js' { + declare module.exports: $Exports<'autotrack/lib/session'>; +} +declare module 'autotrack/lib/store.js' { + declare module.exports: $Exports<'autotrack/lib/store'>; +} +declare module 'autotrack/lib/usage.js' { + declare module.exports: $Exports<'autotrack/lib/usage'>; +} +declare module 'autotrack/lib/utilities.js' { + declare module.exports: $Exports<'autotrack/lib/utilities'>; +} +declare module 'autotrack/test/analytics_debug.js' { + declare module.exports: $Exports<'autotrack/test/analytics_debug'>; +} +declare module 'autotrack/test/analytics.js' { + declare module.exports: $Exports<'autotrack/test/analytics'>; +} +declare module 'autotrack/test/e2e/clean-url-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/clean-url-tracker-test'>; +} +declare module 'autotrack/test/e2e/event-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/event-tracker-test'>; +} +declare module 'autotrack/test/e2e/ga.js' { + declare module.exports: $Exports<'autotrack/test/e2e/ga'>; +} +declare module 'autotrack/test/e2e/impression-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/impression-tracker-test'>; +} +declare module 'autotrack/test/e2e/index-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/index-test'>; +} +declare module 'autotrack/test/e2e/max-scroll-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/max-scroll-tracker-test'>; +} +declare module 'autotrack/test/e2e/media-query-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/media-query-tracker-test'>; +} +declare module 'autotrack/test/e2e/outbound-form-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/outbound-form-tracker-test'>; +} +declare module 'autotrack/test/e2e/outbound-link-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/outbound-link-tracker-test'>; +} +declare module 'autotrack/test/e2e/page-visibility-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/page-visibility-tracker-test'>; +} +declare module 'autotrack/test/e2e/server.js' { + declare module.exports: $Exports<'autotrack/test/e2e/server'>; +} +declare module 'autotrack/test/e2e/social-widget-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/social-widget-tracker-test'>; +} +declare module 'autotrack/test/e2e/url-change-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/e2e/url-change-tracker-test'>; +} +declare module 'autotrack/test/e2e/wdio.conf.js' { + declare module.exports: $Exports<'autotrack/test/e2e/wdio.conf'>; +} +declare module 'autotrack/test/unit/event-emitter-test.js' { + declare module.exports: $Exports<'autotrack/test/unit/event-emitter-test'>; +} +declare module 'autotrack/test/unit/method-chain-test.js' { + declare module.exports: $Exports<'autotrack/test/unit/method-chain-test'>; +} +declare module 'autotrack/test/unit/plugins/clean-url-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/unit/plugins/clean-url-tracker-test'>; +} +declare module 'autotrack/test/unit/plugins/page-visibility-tracker-test.js' { + declare module.exports: $Exports<'autotrack/test/unit/plugins/page-visibility-tracker-test'>; +} +declare module 'autotrack/test/unit/session-test.js' { + declare module.exports: $Exports<'autotrack/test/unit/session-test'>; +} +declare module 'autotrack/test/unit/store-test.js' { + declare module.exports: $Exports<'autotrack/test/unit/store-test'>; +} +declare module 'autotrack/test/unit/utilities-test.js' { + declare module.exports: $Exports<'autotrack/test/unit/utilities-test'>; +} diff --git a/flow-typed/npm/aws-sdk_vx.x.x.js b/flow-typed/npm/aws-sdk_vx.x.x.js new file mode 100644 index 00000000..5c15c43d --- /dev/null +++ b/flow-typed/npm/aws-sdk_vx.x.x.js @@ -0,0 +1,1564 @@ +// flow-typed signature: 89d44f4cb92605ee21e7925d36b4d4f1 +// flow-typed version: <>/aws-sdk_v^2.135.0/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'aws-sdk' + * + * 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 'aws-sdk' { + 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 'aws-sdk/browser' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/acm' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/all' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/apigateway' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/applicationautoscaling' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/appstream' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/athena' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/autoscaling' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/batch' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/browser_default' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/budgets' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/clouddirectory' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudformation' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudfront' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudhsm' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudhsmv2' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudsearch' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudsearchdomain' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudtrail' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudwatch' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudwatchevents' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cloudwatchlogs' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/codebuild' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/codecommit' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/codedeploy' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/codepipeline' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/codestar' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cognitoidentity' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cognitoidentityserviceprovider' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cognitosync' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/configservice' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/cur' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/datapipeline' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/dax' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/devicefarm' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/directconnect' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/directoryservice' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/discovery' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/dms' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/dynamodb' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/dynamodbstreams' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/ec2' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/ecr' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/ecs' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/efs' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/elasticache' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/elasticbeanstalk' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/elastictranscoder' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/elb' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/elbv2' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/emr' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/es' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/firehose' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/gamelift' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/glacier' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/glue' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/greengrass' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/health' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/iam' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/importexport' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/inspector' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/iot' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/iotdata' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/kinesis' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/kinesisanalytics' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/kms' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/lambda' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/lexmodelbuildingservice' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/lexruntime' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/lightsail' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/machinelearning' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/marketplacecommerceanalytics' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/marketplaceentitlementservice' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/marketplacemetering' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/migrationhub' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/mobile' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/mobileanalytics' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/mturk' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/opsworks' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/opsworkscm' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/organizations' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/pinpoint' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/polly' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/rds' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/redshift' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/rekognition' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/resourcegroupstaggingapi' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/route53' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/route53domains' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/s3' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/servicecatalog' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/ses' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/shield' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/simpledb' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/sms' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/snowball' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/sns' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/sqs' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/ssm' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/stepfunctions' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/storagegateway' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/sts' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/support' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/swf' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/waf' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/wafregional' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/workdocs' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/workspaces' { + declare module.exports: any; +} + +declare module 'aws-sdk/clients/xray' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist-tools/browser-builder' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist-tools/client-creator' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist-tools/create-all-services' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist-tools/service-collector' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist-tools/transform' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist-tools/webpack.config.rn-core' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist-tools/webpack.config.rn-dep' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist-tools/webpack.config.rn' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist/aws-sdk-core-react-native' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist/aws-sdk-react-native' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist/aws-sdk' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist/aws-sdk.min' { + declare module.exports: any; +} + +declare module 'aws-sdk/dist/xml2js' { + declare module.exports: any; +} + +declare module 'aws-sdk/global' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/api_loader' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/aws' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/browser_loader' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/browser' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/cloudfront/signer' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/config' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/core' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/cognito_identity_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/credential_provider_chain' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/ec2_metadata_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/ecs_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/environment_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/file_system_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/saml_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/shared_ini_file_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/temporary_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/credentials/web_identity_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/dynamodb/converter' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/dynamodb/document_client' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/dynamodb/numberValue' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/dynamodb/set' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/dynamodb/translator' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/dynamodb/types' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/empty' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/event_listeners' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/http' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/http/node' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/http/xhr' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/json/builder' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/json/parser' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/metadata_service' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/model/api' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/model/collection' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/model/operation' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/model/paginator' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/model/resource_waiter' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/model/shape' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/node_loader' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/param_validator' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/polly/presigner' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/protocol/json' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/protocol/query' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/protocol/rest_json' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/protocol/rest_xml' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/protocol/rest' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/query/query_param_serializer' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/rds/signer' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/react-native-loader' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/react-native/add-content-type' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/region_config' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/request' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/resource_waiter' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/response' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/s3/managed_upload' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/sequential_executor' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/service' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/apigateway' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/cloudfront' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/cloudsearchdomain' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/cognitoidentity' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/dynamodb' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/ec2' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/glacier' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/iotdata' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/lambda' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/machinelearning' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/polly' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/rds' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/route53' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/s3' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/sqs' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/sts' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/services/swf' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/shared_ini' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/signers/presign' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/signers/request_signer' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/signers/s3' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/signers/v2' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/signers/v3' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/signers/v3https' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/signers/v4_credentials' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/signers/v4' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/state_machine' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/util' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/xml/browser_parser' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/xml/builder' { + declare module.exports: any; +} + +declare module 'aws-sdk/lib/xml/node_parser' { + declare module.exports: any; +} + +declare module 'aws-sdk/react-native' { + declare module.exports: any; +} + +declare module 'aws-sdk/scripts/changelog/add-change' { + declare module.exports: any; +} + +declare module 'aws-sdk/scripts/changelog/change-creator' { + declare module.exports: any; +} + +declare module 'aws-sdk/scripts/changelog/util' { + declare module.exports: any; +} + +declare module 'aws-sdk/scripts/lib/translator' { + declare module.exports: any; +} + +declare module 'aws-sdk/scripts/lib/ts-generator' { + declare module.exports: any; +} + +declare module 'aws-sdk/scripts/services-table-generator' { + declare module.exports: any; +} + +declare module 'aws-sdk/scripts/typings-generator' { + declare module.exports: any; +} + +// Filename aliases +declare module 'aws-sdk/browser.js' { + declare module.exports: $Exports<'aws-sdk/browser'>; +} +declare module 'aws-sdk/clients/acm.js' { + declare module.exports: $Exports<'aws-sdk/clients/acm'>; +} +declare module 'aws-sdk/clients/all.js' { + declare module.exports: $Exports<'aws-sdk/clients/all'>; +} +declare module 'aws-sdk/clients/apigateway.js' { + declare module.exports: $Exports<'aws-sdk/clients/apigateway'>; +} +declare module 'aws-sdk/clients/applicationautoscaling.js' { + declare module.exports: $Exports<'aws-sdk/clients/applicationautoscaling'>; +} +declare module 'aws-sdk/clients/appstream.js' { + declare module.exports: $Exports<'aws-sdk/clients/appstream'>; +} +declare module 'aws-sdk/clients/athena.js' { + declare module.exports: $Exports<'aws-sdk/clients/athena'>; +} +declare module 'aws-sdk/clients/autoscaling.js' { + declare module.exports: $Exports<'aws-sdk/clients/autoscaling'>; +} +declare module 'aws-sdk/clients/batch.js' { + declare module.exports: $Exports<'aws-sdk/clients/batch'>; +} +declare module 'aws-sdk/clients/browser_default.js' { + declare module.exports: $Exports<'aws-sdk/clients/browser_default'>; +} +declare module 'aws-sdk/clients/budgets.js' { + declare module.exports: $Exports<'aws-sdk/clients/budgets'>; +} +declare module 'aws-sdk/clients/clouddirectory.js' { + declare module.exports: $Exports<'aws-sdk/clients/clouddirectory'>; +} +declare module 'aws-sdk/clients/cloudformation.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudformation'>; +} +declare module 'aws-sdk/clients/cloudfront.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudfront'>; +} +declare module 'aws-sdk/clients/cloudhsm.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudhsm'>; +} +declare module 'aws-sdk/clients/cloudhsmv2.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudhsmv2'>; +} +declare module 'aws-sdk/clients/cloudsearch.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudsearch'>; +} +declare module 'aws-sdk/clients/cloudsearchdomain.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudsearchdomain'>; +} +declare module 'aws-sdk/clients/cloudtrail.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudtrail'>; +} +declare module 'aws-sdk/clients/cloudwatch.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudwatch'>; +} +declare module 'aws-sdk/clients/cloudwatchevents.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudwatchevents'>; +} +declare module 'aws-sdk/clients/cloudwatchlogs.js' { + declare module.exports: $Exports<'aws-sdk/clients/cloudwatchlogs'>; +} +declare module 'aws-sdk/clients/codebuild.js' { + declare module.exports: $Exports<'aws-sdk/clients/codebuild'>; +} +declare module 'aws-sdk/clients/codecommit.js' { + declare module.exports: $Exports<'aws-sdk/clients/codecommit'>; +} +declare module 'aws-sdk/clients/codedeploy.js' { + declare module.exports: $Exports<'aws-sdk/clients/codedeploy'>; +} +declare module 'aws-sdk/clients/codepipeline.js' { + declare module.exports: $Exports<'aws-sdk/clients/codepipeline'>; +} +declare module 'aws-sdk/clients/codestar.js' { + declare module.exports: $Exports<'aws-sdk/clients/codestar'>; +} +declare module 'aws-sdk/clients/cognitoidentity.js' { + declare module.exports: $Exports<'aws-sdk/clients/cognitoidentity'>; +} +declare module 'aws-sdk/clients/cognitoidentityserviceprovider.js' { + declare module.exports: $Exports<'aws-sdk/clients/cognitoidentityserviceprovider'>; +} +declare module 'aws-sdk/clients/cognitosync.js' { + declare module.exports: $Exports<'aws-sdk/clients/cognitosync'>; +} +declare module 'aws-sdk/clients/configservice.js' { + declare module.exports: $Exports<'aws-sdk/clients/configservice'>; +} +declare module 'aws-sdk/clients/cur.js' { + declare module.exports: $Exports<'aws-sdk/clients/cur'>; +} +declare module 'aws-sdk/clients/datapipeline.js' { + declare module.exports: $Exports<'aws-sdk/clients/datapipeline'>; +} +declare module 'aws-sdk/clients/dax.js' { + declare module.exports: $Exports<'aws-sdk/clients/dax'>; +} +declare module 'aws-sdk/clients/devicefarm.js' { + declare module.exports: $Exports<'aws-sdk/clients/devicefarm'>; +} +declare module 'aws-sdk/clients/directconnect.js' { + declare module.exports: $Exports<'aws-sdk/clients/directconnect'>; +} +declare module 'aws-sdk/clients/directoryservice.js' { + declare module.exports: $Exports<'aws-sdk/clients/directoryservice'>; +} +declare module 'aws-sdk/clients/discovery.js' { + declare module.exports: $Exports<'aws-sdk/clients/discovery'>; +} +declare module 'aws-sdk/clients/dms.js' { + declare module.exports: $Exports<'aws-sdk/clients/dms'>; +} +declare module 'aws-sdk/clients/dynamodb.js' { + declare module.exports: $Exports<'aws-sdk/clients/dynamodb'>; +} +declare module 'aws-sdk/clients/dynamodbstreams.js' { + declare module.exports: $Exports<'aws-sdk/clients/dynamodbstreams'>; +} +declare module 'aws-sdk/clients/ec2.js' { + declare module.exports: $Exports<'aws-sdk/clients/ec2'>; +} +declare module 'aws-sdk/clients/ecr.js' { + declare module.exports: $Exports<'aws-sdk/clients/ecr'>; +} +declare module 'aws-sdk/clients/ecs.js' { + declare module.exports: $Exports<'aws-sdk/clients/ecs'>; +} +declare module 'aws-sdk/clients/efs.js' { + declare module.exports: $Exports<'aws-sdk/clients/efs'>; +} +declare module 'aws-sdk/clients/elasticache.js' { + declare module.exports: $Exports<'aws-sdk/clients/elasticache'>; +} +declare module 'aws-sdk/clients/elasticbeanstalk.js' { + declare module.exports: $Exports<'aws-sdk/clients/elasticbeanstalk'>; +} +declare module 'aws-sdk/clients/elastictranscoder.js' { + declare module.exports: $Exports<'aws-sdk/clients/elastictranscoder'>; +} +declare module 'aws-sdk/clients/elb.js' { + declare module.exports: $Exports<'aws-sdk/clients/elb'>; +} +declare module 'aws-sdk/clients/elbv2.js' { + declare module.exports: $Exports<'aws-sdk/clients/elbv2'>; +} +declare module 'aws-sdk/clients/emr.js' { + declare module.exports: $Exports<'aws-sdk/clients/emr'>; +} +declare module 'aws-sdk/clients/es.js' { + declare module.exports: $Exports<'aws-sdk/clients/es'>; +} +declare module 'aws-sdk/clients/firehose.js' { + declare module.exports: $Exports<'aws-sdk/clients/firehose'>; +} +declare module 'aws-sdk/clients/gamelift.js' { + declare module.exports: $Exports<'aws-sdk/clients/gamelift'>; +} +declare module 'aws-sdk/clients/glacier.js' { + declare module.exports: $Exports<'aws-sdk/clients/glacier'>; +} +declare module 'aws-sdk/clients/glue.js' { + declare module.exports: $Exports<'aws-sdk/clients/glue'>; +} +declare module 'aws-sdk/clients/greengrass.js' { + declare module.exports: $Exports<'aws-sdk/clients/greengrass'>; +} +declare module 'aws-sdk/clients/health.js' { + declare module.exports: $Exports<'aws-sdk/clients/health'>; +} +declare module 'aws-sdk/clients/iam.js' { + declare module.exports: $Exports<'aws-sdk/clients/iam'>; +} +declare module 'aws-sdk/clients/importexport.js' { + declare module.exports: $Exports<'aws-sdk/clients/importexport'>; +} +declare module 'aws-sdk/clients/inspector.js' { + declare module.exports: $Exports<'aws-sdk/clients/inspector'>; +} +declare module 'aws-sdk/clients/iot.js' { + declare module.exports: $Exports<'aws-sdk/clients/iot'>; +} +declare module 'aws-sdk/clients/iotdata.js' { + declare module.exports: $Exports<'aws-sdk/clients/iotdata'>; +} +declare module 'aws-sdk/clients/kinesis.js' { + declare module.exports: $Exports<'aws-sdk/clients/kinesis'>; +} +declare module 'aws-sdk/clients/kinesisanalytics.js' { + declare module.exports: $Exports<'aws-sdk/clients/kinesisanalytics'>; +} +declare module 'aws-sdk/clients/kms.js' { + declare module.exports: $Exports<'aws-sdk/clients/kms'>; +} +declare module 'aws-sdk/clients/lambda.js' { + declare module.exports: $Exports<'aws-sdk/clients/lambda'>; +} +declare module 'aws-sdk/clients/lexmodelbuildingservice.js' { + declare module.exports: $Exports<'aws-sdk/clients/lexmodelbuildingservice'>; +} +declare module 'aws-sdk/clients/lexruntime.js' { + declare module.exports: $Exports<'aws-sdk/clients/lexruntime'>; +} +declare module 'aws-sdk/clients/lightsail.js' { + declare module.exports: $Exports<'aws-sdk/clients/lightsail'>; +} +declare module 'aws-sdk/clients/machinelearning.js' { + declare module.exports: $Exports<'aws-sdk/clients/machinelearning'>; +} +declare module 'aws-sdk/clients/marketplacecommerceanalytics.js' { + declare module.exports: $Exports<'aws-sdk/clients/marketplacecommerceanalytics'>; +} +declare module 'aws-sdk/clients/marketplaceentitlementservice.js' { + declare module.exports: $Exports<'aws-sdk/clients/marketplaceentitlementservice'>; +} +declare module 'aws-sdk/clients/marketplacemetering.js' { + declare module.exports: $Exports<'aws-sdk/clients/marketplacemetering'>; +} +declare module 'aws-sdk/clients/migrationhub.js' { + declare module.exports: $Exports<'aws-sdk/clients/migrationhub'>; +} +declare module 'aws-sdk/clients/mobile.js' { + declare module.exports: $Exports<'aws-sdk/clients/mobile'>; +} +declare module 'aws-sdk/clients/mobileanalytics.js' { + declare module.exports: $Exports<'aws-sdk/clients/mobileanalytics'>; +} +declare module 'aws-sdk/clients/mturk.js' { + declare module.exports: $Exports<'aws-sdk/clients/mturk'>; +} +declare module 'aws-sdk/clients/opsworks.js' { + declare module.exports: $Exports<'aws-sdk/clients/opsworks'>; +} +declare module 'aws-sdk/clients/opsworkscm.js' { + declare module.exports: $Exports<'aws-sdk/clients/opsworkscm'>; +} +declare module 'aws-sdk/clients/organizations.js' { + declare module.exports: $Exports<'aws-sdk/clients/organizations'>; +} +declare module 'aws-sdk/clients/pinpoint.js' { + declare module.exports: $Exports<'aws-sdk/clients/pinpoint'>; +} +declare module 'aws-sdk/clients/polly.js' { + declare module.exports: $Exports<'aws-sdk/clients/polly'>; +} +declare module 'aws-sdk/clients/rds.js' { + declare module.exports: $Exports<'aws-sdk/clients/rds'>; +} +declare module 'aws-sdk/clients/redshift.js' { + declare module.exports: $Exports<'aws-sdk/clients/redshift'>; +} +declare module 'aws-sdk/clients/rekognition.js' { + declare module.exports: $Exports<'aws-sdk/clients/rekognition'>; +} +declare module 'aws-sdk/clients/resourcegroupstaggingapi.js' { + declare module.exports: $Exports<'aws-sdk/clients/resourcegroupstaggingapi'>; +} +declare module 'aws-sdk/clients/route53.js' { + declare module.exports: $Exports<'aws-sdk/clients/route53'>; +} +declare module 'aws-sdk/clients/route53domains.js' { + declare module.exports: $Exports<'aws-sdk/clients/route53domains'>; +} +declare module 'aws-sdk/clients/s3.js' { + declare module.exports: $Exports<'aws-sdk/clients/s3'>; +} +declare module 'aws-sdk/clients/servicecatalog.js' { + declare module.exports: $Exports<'aws-sdk/clients/servicecatalog'>; +} +declare module 'aws-sdk/clients/ses.js' { + declare module.exports: $Exports<'aws-sdk/clients/ses'>; +} +declare module 'aws-sdk/clients/shield.js' { + declare module.exports: $Exports<'aws-sdk/clients/shield'>; +} +declare module 'aws-sdk/clients/simpledb.js' { + declare module.exports: $Exports<'aws-sdk/clients/simpledb'>; +} +declare module 'aws-sdk/clients/sms.js' { + declare module.exports: $Exports<'aws-sdk/clients/sms'>; +} +declare module 'aws-sdk/clients/snowball.js' { + declare module.exports: $Exports<'aws-sdk/clients/snowball'>; +} +declare module 'aws-sdk/clients/sns.js' { + declare module.exports: $Exports<'aws-sdk/clients/sns'>; +} +declare module 'aws-sdk/clients/sqs.js' { + declare module.exports: $Exports<'aws-sdk/clients/sqs'>; +} +declare module 'aws-sdk/clients/ssm.js' { + declare module.exports: $Exports<'aws-sdk/clients/ssm'>; +} +declare module 'aws-sdk/clients/stepfunctions.js' { + declare module.exports: $Exports<'aws-sdk/clients/stepfunctions'>; +} +declare module 'aws-sdk/clients/storagegateway.js' { + declare module.exports: $Exports<'aws-sdk/clients/storagegateway'>; +} +declare module 'aws-sdk/clients/sts.js' { + declare module.exports: $Exports<'aws-sdk/clients/sts'>; +} +declare module 'aws-sdk/clients/support.js' { + declare module.exports: $Exports<'aws-sdk/clients/support'>; +} +declare module 'aws-sdk/clients/swf.js' { + declare module.exports: $Exports<'aws-sdk/clients/swf'>; +} +declare module 'aws-sdk/clients/waf.js' { + declare module.exports: $Exports<'aws-sdk/clients/waf'>; +} +declare module 'aws-sdk/clients/wafregional.js' { + declare module.exports: $Exports<'aws-sdk/clients/wafregional'>; +} +declare module 'aws-sdk/clients/workdocs.js' { + declare module.exports: $Exports<'aws-sdk/clients/workdocs'>; +} +declare module 'aws-sdk/clients/workspaces.js' { + declare module.exports: $Exports<'aws-sdk/clients/workspaces'>; +} +declare module 'aws-sdk/clients/xray.js' { + declare module.exports: $Exports<'aws-sdk/clients/xray'>; +} +declare module 'aws-sdk/dist-tools/browser-builder.js' { + declare module.exports: $Exports<'aws-sdk/dist-tools/browser-builder'>; +} +declare module 'aws-sdk/dist-tools/client-creator.js' { + declare module.exports: $Exports<'aws-sdk/dist-tools/client-creator'>; +} +declare module 'aws-sdk/dist-tools/create-all-services.js' { + declare module.exports: $Exports<'aws-sdk/dist-tools/create-all-services'>; +} +declare module 'aws-sdk/dist-tools/service-collector.js' { + declare module.exports: $Exports<'aws-sdk/dist-tools/service-collector'>; +} +declare module 'aws-sdk/dist-tools/transform.js' { + declare module.exports: $Exports<'aws-sdk/dist-tools/transform'>; +} +declare module 'aws-sdk/dist-tools/webpack.config.rn-core.js' { + declare module.exports: $Exports<'aws-sdk/dist-tools/webpack.config.rn-core'>; +} +declare module 'aws-sdk/dist-tools/webpack.config.rn-dep.js' { + declare module.exports: $Exports<'aws-sdk/dist-tools/webpack.config.rn-dep'>; +} +declare module 'aws-sdk/dist-tools/webpack.config.rn.js' { + declare module.exports: $Exports<'aws-sdk/dist-tools/webpack.config.rn'>; +} +declare module 'aws-sdk/dist/aws-sdk-core-react-native.js' { + declare module.exports: $Exports<'aws-sdk/dist/aws-sdk-core-react-native'>; +} +declare module 'aws-sdk/dist/aws-sdk-react-native.js' { + declare module.exports: $Exports<'aws-sdk/dist/aws-sdk-react-native'>; +} +declare module 'aws-sdk/dist/aws-sdk.js' { + declare module.exports: $Exports<'aws-sdk/dist/aws-sdk'>; +} +declare module 'aws-sdk/dist/aws-sdk.min.js' { + declare module.exports: $Exports<'aws-sdk/dist/aws-sdk.min'>; +} +declare module 'aws-sdk/dist/xml2js.js' { + declare module.exports: $Exports<'aws-sdk/dist/xml2js'>; +} +declare module 'aws-sdk/global.js' { + declare module.exports: $Exports<'aws-sdk/global'>; +} +declare module 'aws-sdk/index' { + declare module.exports: $Exports<'aws-sdk'>; +} +declare module 'aws-sdk/index.js' { + declare module.exports: $Exports<'aws-sdk'>; +} +declare module 'aws-sdk/lib/api_loader.js' { + declare module.exports: $Exports<'aws-sdk/lib/api_loader'>; +} +declare module 'aws-sdk/lib/aws.js' { + declare module.exports: $Exports<'aws-sdk/lib/aws'>; +} +declare module 'aws-sdk/lib/browser_loader.js' { + declare module.exports: $Exports<'aws-sdk/lib/browser_loader'>; +} +declare module 'aws-sdk/lib/browser.js' { + declare module.exports: $Exports<'aws-sdk/lib/browser'>; +} +declare module 'aws-sdk/lib/cloudfront/signer.js' { + declare module.exports: $Exports<'aws-sdk/lib/cloudfront/signer'>; +} +declare module 'aws-sdk/lib/config.js' { + declare module.exports: $Exports<'aws-sdk/lib/config'>; +} +declare module 'aws-sdk/lib/core.js' { + declare module.exports: $Exports<'aws-sdk/lib/core'>; +} +declare module 'aws-sdk/lib/credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials'>; +} +declare module 'aws-sdk/lib/credentials/cognito_identity_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/cognito_identity_credentials'>; +} +declare module 'aws-sdk/lib/credentials/credential_provider_chain.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/credential_provider_chain'>; +} +declare module 'aws-sdk/lib/credentials/ec2_metadata_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/ec2_metadata_credentials'>; +} +declare module 'aws-sdk/lib/credentials/ecs_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/ecs_credentials'>; +} +declare module 'aws-sdk/lib/credentials/environment_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/environment_credentials'>; +} +declare module 'aws-sdk/lib/credentials/file_system_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/file_system_credentials'>; +} +declare module 'aws-sdk/lib/credentials/saml_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/saml_credentials'>; +} +declare module 'aws-sdk/lib/credentials/shared_ini_file_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/shared_ini_file_credentials'>; +} +declare module 'aws-sdk/lib/credentials/temporary_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/temporary_credentials'>; +} +declare module 'aws-sdk/lib/credentials/web_identity_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/credentials/web_identity_credentials'>; +} +declare module 'aws-sdk/lib/dynamodb/converter.js' { + declare module.exports: $Exports<'aws-sdk/lib/dynamodb/converter'>; +} +declare module 'aws-sdk/lib/dynamodb/document_client.js' { + declare module.exports: $Exports<'aws-sdk/lib/dynamodb/document_client'>; +} +declare module 'aws-sdk/lib/dynamodb/numberValue.js' { + declare module.exports: $Exports<'aws-sdk/lib/dynamodb/numberValue'>; +} +declare module 'aws-sdk/lib/dynamodb/set.js' { + declare module.exports: $Exports<'aws-sdk/lib/dynamodb/set'>; +} +declare module 'aws-sdk/lib/dynamodb/translator.js' { + declare module.exports: $Exports<'aws-sdk/lib/dynamodb/translator'>; +} +declare module 'aws-sdk/lib/dynamodb/types.js' { + declare module.exports: $Exports<'aws-sdk/lib/dynamodb/types'>; +} +declare module 'aws-sdk/lib/empty.js' { + declare module.exports: $Exports<'aws-sdk/lib/empty'>; +} +declare module 'aws-sdk/lib/event_listeners.js' { + declare module.exports: $Exports<'aws-sdk/lib/event_listeners'>; +} +declare module 'aws-sdk/lib/http.js' { + declare module.exports: $Exports<'aws-sdk/lib/http'>; +} +declare module 'aws-sdk/lib/http/node.js' { + declare module.exports: $Exports<'aws-sdk/lib/http/node'>; +} +declare module 'aws-sdk/lib/http/xhr.js' { + declare module.exports: $Exports<'aws-sdk/lib/http/xhr'>; +} +declare module 'aws-sdk/lib/json/builder.js' { + declare module.exports: $Exports<'aws-sdk/lib/json/builder'>; +} +declare module 'aws-sdk/lib/json/parser.js' { + declare module.exports: $Exports<'aws-sdk/lib/json/parser'>; +} +declare module 'aws-sdk/lib/metadata_service.js' { + declare module.exports: $Exports<'aws-sdk/lib/metadata_service'>; +} +declare module 'aws-sdk/lib/model/api.js' { + declare module.exports: $Exports<'aws-sdk/lib/model/api'>; +} +declare module 'aws-sdk/lib/model/collection.js' { + declare module.exports: $Exports<'aws-sdk/lib/model/collection'>; +} +declare module 'aws-sdk/lib/model/operation.js' { + declare module.exports: $Exports<'aws-sdk/lib/model/operation'>; +} +declare module 'aws-sdk/lib/model/paginator.js' { + declare module.exports: $Exports<'aws-sdk/lib/model/paginator'>; +} +declare module 'aws-sdk/lib/model/resource_waiter.js' { + declare module.exports: $Exports<'aws-sdk/lib/model/resource_waiter'>; +} +declare module 'aws-sdk/lib/model/shape.js' { + declare module.exports: $Exports<'aws-sdk/lib/model/shape'>; +} +declare module 'aws-sdk/lib/node_loader.js' { + declare module.exports: $Exports<'aws-sdk/lib/node_loader'>; +} +declare module 'aws-sdk/lib/param_validator.js' { + declare module.exports: $Exports<'aws-sdk/lib/param_validator'>; +} +declare module 'aws-sdk/lib/polly/presigner.js' { + declare module.exports: $Exports<'aws-sdk/lib/polly/presigner'>; +} +declare module 'aws-sdk/lib/protocol/json.js' { + declare module.exports: $Exports<'aws-sdk/lib/protocol/json'>; +} +declare module 'aws-sdk/lib/protocol/query.js' { + declare module.exports: $Exports<'aws-sdk/lib/protocol/query'>; +} +declare module 'aws-sdk/lib/protocol/rest_json.js' { + declare module.exports: $Exports<'aws-sdk/lib/protocol/rest_json'>; +} +declare module 'aws-sdk/lib/protocol/rest_xml.js' { + declare module.exports: $Exports<'aws-sdk/lib/protocol/rest_xml'>; +} +declare module 'aws-sdk/lib/protocol/rest.js' { + declare module.exports: $Exports<'aws-sdk/lib/protocol/rest'>; +} +declare module 'aws-sdk/lib/query/query_param_serializer.js' { + declare module.exports: $Exports<'aws-sdk/lib/query/query_param_serializer'>; +} +declare module 'aws-sdk/lib/rds/signer.js' { + declare module.exports: $Exports<'aws-sdk/lib/rds/signer'>; +} +declare module 'aws-sdk/lib/react-native-loader.js' { + declare module.exports: $Exports<'aws-sdk/lib/react-native-loader'>; +} +declare module 'aws-sdk/lib/react-native/add-content-type.js' { + declare module.exports: $Exports<'aws-sdk/lib/react-native/add-content-type'>; +} +declare module 'aws-sdk/lib/region_config.js' { + declare module.exports: $Exports<'aws-sdk/lib/region_config'>; +} +declare module 'aws-sdk/lib/request.js' { + declare module.exports: $Exports<'aws-sdk/lib/request'>; +} +declare module 'aws-sdk/lib/resource_waiter.js' { + declare module.exports: $Exports<'aws-sdk/lib/resource_waiter'>; +} +declare module 'aws-sdk/lib/response.js' { + declare module.exports: $Exports<'aws-sdk/lib/response'>; +} +declare module 'aws-sdk/lib/s3/managed_upload.js' { + declare module.exports: $Exports<'aws-sdk/lib/s3/managed_upload'>; +} +declare module 'aws-sdk/lib/sequential_executor.js' { + declare module.exports: $Exports<'aws-sdk/lib/sequential_executor'>; +} +declare module 'aws-sdk/lib/service.js' { + declare module.exports: $Exports<'aws-sdk/lib/service'>; +} +declare module 'aws-sdk/lib/services/apigateway.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/apigateway'>; +} +declare module 'aws-sdk/lib/services/cloudfront.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/cloudfront'>; +} +declare module 'aws-sdk/lib/services/cloudsearchdomain.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/cloudsearchdomain'>; +} +declare module 'aws-sdk/lib/services/cognitoidentity.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/cognitoidentity'>; +} +declare module 'aws-sdk/lib/services/dynamodb.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/dynamodb'>; +} +declare module 'aws-sdk/lib/services/ec2.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/ec2'>; +} +declare module 'aws-sdk/lib/services/glacier.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/glacier'>; +} +declare module 'aws-sdk/lib/services/iotdata.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/iotdata'>; +} +declare module 'aws-sdk/lib/services/lambda.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/lambda'>; +} +declare module 'aws-sdk/lib/services/machinelearning.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/machinelearning'>; +} +declare module 'aws-sdk/lib/services/polly.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/polly'>; +} +declare module 'aws-sdk/lib/services/rds.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/rds'>; +} +declare module 'aws-sdk/lib/services/route53.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/route53'>; +} +declare module 'aws-sdk/lib/services/s3.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/s3'>; +} +declare module 'aws-sdk/lib/services/sqs.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/sqs'>; +} +declare module 'aws-sdk/lib/services/sts.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/sts'>; +} +declare module 'aws-sdk/lib/services/swf.js' { + declare module.exports: $Exports<'aws-sdk/lib/services/swf'>; +} +declare module 'aws-sdk/lib/shared_ini.js' { + declare module.exports: $Exports<'aws-sdk/lib/shared_ini'>; +} +declare module 'aws-sdk/lib/signers/presign.js' { + declare module.exports: $Exports<'aws-sdk/lib/signers/presign'>; +} +declare module 'aws-sdk/lib/signers/request_signer.js' { + declare module.exports: $Exports<'aws-sdk/lib/signers/request_signer'>; +} +declare module 'aws-sdk/lib/signers/s3.js' { + declare module.exports: $Exports<'aws-sdk/lib/signers/s3'>; +} +declare module 'aws-sdk/lib/signers/v2.js' { + declare module.exports: $Exports<'aws-sdk/lib/signers/v2'>; +} +declare module 'aws-sdk/lib/signers/v3.js' { + declare module.exports: $Exports<'aws-sdk/lib/signers/v3'>; +} +declare module 'aws-sdk/lib/signers/v3https.js' { + declare module.exports: $Exports<'aws-sdk/lib/signers/v3https'>; +} +declare module 'aws-sdk/lib/signers/v4_credentials.js' { + declare module.exports: $Exports<'aws-sdk/lib/signers/v4_credentials'>; +} +declare module 'aws-sdk/lib/signers/v4.js' { + declare module.exports: $Exports<'aws-sdk/lib/signers/v4'>; +} +declare module 'aws-sdk/lib/state_machine.js' { + declare module.exports: $Exports<'aws-sdk/lib/state_machine'>; +} +declare module 'aws-sdk/lib/util.js' { + declare module.exports: $Exports<'aws-sdk/lib/util'>; +} +declare module 'aws-sdk/lib/xml/browser_parser.js' { + declare module.exports: $Exports<'aws-sdk/lib/xml/browser_parser'>; +} +declare module 'aws-sdk/lib/xml/builder.js' { + declare module.exports: $Exports<'aws-sdk/lib/xml/builder'>; +} +declare module 'aws-sdk/lib/xml/node_parser.js' { + declare module.exports: $Exports<'aws-sdk/lib/xml/node_parser'>; +} +declare module 'aws-sdk/react-native.js' { + declare module.exports: $Exports<'aws-sdk/react-native'>; +} +declare module 'aws-sdk/scripts/changelog/add-change.js' { + declare module.exports: $Exports<'aws-sdk/scripts/changelog/add-change'>; +} +declare module 'aws-sdk/scripts/changelog/change-creator.js' { + declare module.exports: $Exports<'aws-sdk/scripts/changelog/change-creator'>; +} +declare module 'aws-sdk/scripts/changelog/util.js' { + declare module.exports: $Exports<'aws-sdk/scripts/changelog/util'>; +} +declare module 'aws-sdk/scripts/lib/translator.js' { + declare module.exports: $Exports<'aws-sdk/scripts/lib/translator'>; +} +declare module 'aws-sdk/scripts/lib/ts-generator.js' { + declare module.exports: $Exports<'aws-sdk/scripts/lib/ts-generator'>; +} +declare module 'aws-sdk/scripts/services-table-generator.js' { + declare module.exports: $Exports<'aws-sdk/scripts/services-table-generator'>; +} +declare module 'aws-sdk/scripts/typings-generator.js' { + declare module.exports: $Exports<'aws-sdk/scripts/typings-generator'>; +} diff --git a/flow-typed/npm/babel-core_vx.x.x.js b/flow-typed/npm/babel-core_vx.x.x.js index a7f0838e..3ea2633a 100644 --- a/flow-typed/npm/babel-core_vx.x.x.js +++ b/flow-typed/npm/babel-core_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b44c78d7279f78b485d76b15c08cd683 -// flow-typed version: <>/babel-core_v^6.24.1/flow_v0.49.1 +// flow-typed signature: e24af6bf202d8e5fab4e87cde4d2bfa2 +// flow-typed version: <>/babel-core_v^6.24.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-eslint_vx.x.x.js b/flow-typed/npm/babel-eslint_vx.x.x.js index 0ad3949c..2e30cb83 100644 --- a/flow-typed/npm/babel-eslint_vx.x.x.js +++ b/flow-typed/npm/babel-eslint_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1bf74b25fb82cd002e8b966a31086e1a -// flow-typed version: <>/babel-eslint_v^7.2.3/flow_v0.49.1 +// flow-typed signature: 533f9ec506a216e4d7a0f986dfe83e8b +// flow-typed version: <>/babel-eslint_v^8.1.2/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,59 +22,102 @@ declare module 'babel-eslint' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'babel-eslint/babylon-to-espree/attachComments' { +declare module 'babel-eslint/lib/analyze-scope' { declare module.exports: any; } -declare module 'babel-eslint/babylon-to-espree/convertComments' { +declare module 'babel-eslint/lib/babylon-to-espree/attachComments' { declare module.exports: any; } -declare module 'babel-eslint/babylon-to-espree/convertTemplateType' { +declare module 'babel-eslint/lib/babylon-to-espree/convertComments' { declare module.exports: any; } -declare module 'babel-eslint/babylon-to-espree/index' { +declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType' { declare module.exports: any; } -declare module 'babel-eslint/babylon-to-espree/toAST' { +declare module 'babel-eslint/lib/babylon-to-espree/index' { declare module.exports: any; } -declare module 'babel-eslint/babylon-to-espree/toToken' { +declare module 'babel-eslint/lib/babylon-to-espree/toAST' { declare module.exports: any; } -declare module 'babel-eslint/babylon-to-espree/toTokens' { +declare module 'babel-eslint/lib/babylon-to-espree/toToken' { + declare module.exports: any; +} + +declare module 'babel-eslint/lib/babylon-to-espree/toTokens' { + declare module.exports: any; +} + +declare module 'babel-eslint/lib/index' { + declare module.exports: any; +} + +declare module 'babel-eslint/lib/parse-with-patch' { + declare module.exports: any; +} + +declare module 'babel-eslint/lib/parse-with-scope' { + declare module.exports: any; +} + +declare module 'babel-eslint/lib/parse' { + declare module.exports: any; +} + +declare module 'babel-eslint/lib/patch-eslint-scope' { + declare module.exports: any; +} + +declare module 'babel-eslint/lib/visitor-keys' { declare module.exports: any; } // Filename aliases -declare module 'babel-eslint/babylon-to-espree/attachComments.js' { - declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>; +declare module 'babel-eslint/lib/analyze-scope.js' { + declare module.exports: $Exports<'babel-eslint/lib/analyze-scope'>; } -declare module 'babel-eslint/babylon-to-espree/convertComments.js' { - declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertComments'>; +declare module 'babel-eslint/lib/babylon-to-espree/attachComments.js' { + declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/attachComments'>; } -declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' { - declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>; +declare module 'babel-eslint/lib/babylon-to-espree/convertComments.js' { + declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertComments'>; } -declare module 'babel-eslint/babylon-to-espree/index.js' { - declare module.exports: $Exports<'babel-eslint/babylon-to-espree/index'>; +declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType.js' { + declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertTemplateType'>; } -declare module 'babel-eslint/babylon-to-espree/toAST.js' { - declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toAST'>; +declare module 'babel-eslint/lib/babylon-to-espree/index.js' { + declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/index'>; } -declare module 'babel-eslint/babylon-to-espree/toToken.js' { - declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toToken'>; +declare module 'babel-eslint/lib/babylon-to-espree/toAST.js' { + declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toAST'>; } -declare module 'babel-eslint/babylon-to-espree/toTokens.js' { - declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toTokens'>; +declare module 'babel-eslint/lib/babylon-to-espree/toToken.js' { + declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toToken'>; } -declare module 'babel-eslint/index' { - declare module.exports: $Exports<'babel-eslint'>; +declare module 'babel-eslint/lib/babylon-to-espree/toTokens.js' { + declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toTokens'>; } -declare module 'babel-eslint/index.js' { - declare module.exports: $Exports<'babel-eslint'>; +declare module 'babel-eslint/lib/index.js' { + declare module.exports: $Exports<'babel-eslint/lib/index'>; +} +declare module 'babel-eslint/lib/parse-with-patch.js' { + declare module.exports: $Exports<'babel-eslint/lib/parse-with-patch'>; +} +declare module 'babel-eslint/lib/parse-with-scope.js' { + declare module.exports: $Exports<'babel-eslint/lib/parse-with-scope'>; +} +declare module 'babel-eslint/lib/parse.js' { + declare module.exports: $Exports<'babel-eslint/lib/parse'>; +} +declare module 'babel-eslint/lib/patch-eslint-scope.js' { + declare module.exports: $Exports<'babel-eslint/lib/patch-eslint-scope'>; +} +declare module 'babel-eslint/lib/visitor-keys.js' { + declare module.exports: $Exports<'babel-eslint/lib/visitor-keys'>; } diff --git a/flow-typed/npm/babel-jest_vx.x.x.js b/flow-typed/npm/babel-jest_vx.x.x.js index 650d024c..2290b43c 100644 --- a/flow-typed/npm/babel-jest_vx.x.x.js +++ b/flow-typed/npm/babel-jest_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 3c809891622d6f698104648531a2877f -// flow-typed version: <>/babel-jest_v^20.0.0/flow_v0.49.1 +// flow-typed signature: 16a74ec1b3f30574b1d17af2e1aae17e +// flow-typed version: <>/babel-jest_v22/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-loader_vx.x.x.js b/flow-typed/npm/babel-loader_vx.x.x.js index 0bc9ae31..2555f1ab 100644 --- a/flow-typed/npm/babel-loader_vx.x.x.js +++ b/flow-typed/npm/babel-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 62273b6ed2d83e96178263d3cc4988ea -// flow-typed version: <>/babel-loader_v6.2.5/flow_v0.49.1 +// flow-typed signature: a62195ffbfff5c6790934103be75a8ff +// flow-typed version: <>/babel-loader_v^7.1.2/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -26,11 +26,7 @@ declare module 'babel-loader/lib/fs-cache' { declare module.exports: any; } -declare module 'babel-loader/lib/helpers/exists' { - declare module.exports: any; -} - -declare module 'babel-loader/lib/helpers/read' { +declare module 'babel-loader/lib/index' { declare module.exports: any; } @@ -38,22 +34,34 @@ declare module 'babel-loader/lib/resolve-rc' { declare module.exports: any; } +declare module 'babel-loader/lib/utils/exists' { + declare module.exports: any; +} + +declare module 'babel-loader/lib/utils/read' { + declare module.exports: any; +} + +declare module 'babel-loader/lib/utils/relative' { + declare module.exports: any; +} + // Filename aliases -declare module 'babel-loader/index' { - declare module.exports: $Exports<'babel-loader'>; -} -declare module 'babel-loader/index.js' { - declare module.exports: $Exports<'babel-loader'>; -} declare module 'babel-loader/lib/fs-cache.js' { declare module.exports: $Exports<'babel-loader/lib/fs-cache'>; } -declare module 'babel-loader/lib/helpers/exists.js' { - declare module.exports: $Exports<'babel-loader/lib/helpers/exists'>; -} -declare module 'babel-loader/lib/helpers/read.js' { - declare module.exports: $Exports<'babel-loader/lib/helpers/read'>; +declare module 'babel-loader/lib/index.js' { + declare module.exports: $Exports<'babel-loader/lib/index'>; } declare module 'babel-loader/lib/resolve-rc.js' { declare module.exports: $Exports<'babel-loader/lib/resolve-rc'>; } +declare module 'babel-loader/lib/utils/exists.js' { + declare module.exports: $Exports<'babel-loader/lib/utils/exists'>; +} +declare module 'babel-loader/lib/utils/read.js' { + declare module.exports: $Exports<'babel-loader/lib/utils/read'>; +} +declare module 'babel-loader/lib/utils/relative.js' { + declare module.exports: $Exports<'babel-loader/lib/utils/relative'>; +} diff --git a/flow-typed/npm/babel-plugin-lodash_vx.x.x.js b/flow-typed/npm/babel-plugin-lodash_vx.x.x.js index d8e282c7..20883d6c 100644 --- a/flow-typed/npm/babel-plugin-lodash_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-lodash_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 312645f2a8bab19c593f2670a7ff103f -// flow-typed version: <>/babel-plugin-lodash_v^3.2.11/flow_v0.49.1 +// flow-typed signature: 47c9088583f2a3b1c3bb03b4055baece +// flow-typed version: <>/babel-plugin-lodash_v^3.2.11/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-styled-components_vx.x.x.js b/flow-typed/npm/babel-plugin-styled-components_vx.x.x.js new file mode 100644 index 00000000..58f414e5 --- /dev/null +++ b/flow-typed/npm/babel-plugin-styled-components_vx.x.x.js @@ -0,0 +1,144 @@ +// flow-typed signature: 9da92a15fa5848fd1ac62d37d77a6850 +// flow-typed version: <>/babel-plugin-styled-components_v^1.1.7/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-plugin-styled-components' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'babel-plugin-styled-components' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'babel-plugin-styled-components/lib/css/placeholderUtils' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/css/preprocess' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/css/preprocessInjectGlobal' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/css/preprocessKeyframes' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/css/preprocessUtils' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/index' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/minify/index' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/utils/detectors' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/utils/getName' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/utils/hash' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/utils/options' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/displayNameAndId' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/minify' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/noParserImport' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/index' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/preprocess' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-plugin-styled-components/lib/css/placeholderUtils.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/placeholderUtils'>; +} +declare module 'babel-plugin-styled-components/lib/css/preprocess.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/preprocess'>; +} +declare module 'babel-plugin-styled-components/lib/css/preprocessInjectGlobal.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/preprocessInjectGlobal'>; +} +declare module 'babel-plugin-styled-components/lib/css/preprocessKeyframes.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/preprocessKeyframes'>; +} +declare module 'babel-plugin-styled-components/lib/css/preprocessUtils.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/preprocessUtils'>; +} +declare module 'babel-plugin-styled-components/lib/index.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/index'>; +} +declare module 'babel-plugin-styled-components/lib/minify/index.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/minify/index'>; +} +declare module 'babel-plugin-styled-components/lib/utils/detectors.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/detectors'>; +} +declare module 'babel-plugin-styled-components/lib/utils/getName.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/getName'>; +} +declare module 'babel-plugin-styled-components/lib/utils/hash.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/hash'>; +} +declare module 'babel-plugin-styled-components/lib/utils/options.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/options'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/displayNameAndId.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/displayNameAndId'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/minify.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/minify'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/noParserImport.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/noParserImport'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/index.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/index'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/preprocess.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/preprocess'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile'>; +} diff --git a/flow-typed/npm/babel-plugin-syntax-dynamic-import_vx.x.x.js b/flow-typed/npm/babel-plugin-syntax-dynamic-import_vx.x.x.js new file mode 100644 index 00000000..e46f0514 --- /dev/null +++ b/flow-typed/npm/babel-plugin-syntax-dynamic-import_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 652608d2e8431a8c5274bad836ee0926 +// flow-typed version: <>/babel-plugin-syntax-dynamic-import_v^6.18.0/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-plugin-syntax-dynamic-import' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'babel-plugin-syntax-dynamic-import' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'babel-plugin-syntax-dynamic-import/lib/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-plugin-syntax-dynamic-import/lib/index.js' { + declare module.exports: $Exports<'babel-plugin-syntax-dynamic-import/lib/index'>; +} diff --git a/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js index 237c5c55..9167c3dd 100644 --- a/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1ac90a5b65b8621f1c6637100a3a49a0 -// flow-typed version: <>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.49.1 +// flow-typed signature: b26839abd705c305219fee62938d492b +// flow-typed version: <>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js index d1191b2b..275712c2 100644 --- a/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 883d88f87fe00aad41cc10200f4ed5c7 -// flow-typed version: <>/babel-plugin-transform-decorators-legacy_v1.3.4/flow_v0.49.1 +// flow-typed signature: c7f83286bf05aa71691f77b01cfe5ca8 +// flow-typed version: <>/babel-plugin-transform-decorators-legacy_v1.3.4/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-es2015-destructuring_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-es2015-destructuring_vx.x.x.js index 2fb56783..e9c5351d 100644 --- a/flow-typed/npm/babel-plugin-transform-es2015-destructuring_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-es2015-destructuring_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: c39ed7e0d504b99dbad16f4bc21577b7 -// flow-typed version: <>/babel-plugin-transform-es2015-destructuring_v^6.23.0/flow_v0.49.1 +// flow-typed signature: 9afa5c60629c28d30730ce2df5dcfcd7 +// flow-typed version: <>/babel-plugin-transform-es2015-destructuring_v^6.23.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js index 5868787c..21dc7fab 100644 --- a/flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: fabb91c6625b44603da3815cb1a0f606 -// flow-typed version: <>/babel-plugin-transform-es2015-modules-commonjs_v^6.24.1/flow_v0.49.1 +// flow-typed signature: c96a996d8250423b12b2ed9faec13a86 +// flow-typed version: <>/babel-plugin-transform-es2015-modules-commonjs_v^6.24.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js index 4eb1fc59..63dea329 100644 --- a/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9d5aec989f663e1a1ee84160a9b94c9a -// flow-typed version: <>/babel-plugin-transform-object-rest-spread_v^6.23.0/flow_v0.49.1 +// flow-typed signature: 51b77fa264d9add521224f44df19df82 +// flow-typed version: <>/babel-plugin-transform-object-rest-spread_v^6.23.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-regenerator_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-regenerator_vx.x.x.js index 9f828333..7f0cfa25 100644 --- a/flow-typed/npm/babel-plugin-transform-regenerator_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-regenerator_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d717de46f6c57058188f79e90ea26c27 -// flow-typed version: <>/babel-plugin-transform-regenerator_v^6.24.1/flow_v0.49.1 +// flow-typed signature: 246c54ac874037a4d9cffcb766e3bc91 +// flow-typed version: <>/babel-plugin-transform-regenerator_v^6.24.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-polyfill_vx.x.x.js b/flow-typed/npm/babel-polyfill_vx.x.x.js index 8f02194c..51aa827b 100644 --- a/flow-typed/npm/babel-polyfill_vx.x.x.js +++ b/flow-typed/npm/babel-polyfill_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6faf55e0643acc0d5b765261064df0f4 -// flow-typed version: <>/babel-polyfill_v^6.13.0/flow_v0.49.1 +// flow-typed signature: 5a748d46bf980bce1150ad979eb02e73 +// flow-typed version: <>/babel-polyfill_v^6.13.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-env_vx.x.x.js b/flow-typed/npm/babel-preset-env_vx.x.x.js index 7f1f3864..ab85392e 100644 --- a/flow-typed/npm/babel-preset-env_vx.x.x.js +++ b/flow-typed/npm/babel-preset-env_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b1c4442700dc843a41b14e8290b7e9d2 -// flow-typed version: <>/babel-preset-env_v^1.4.0/flow_v0.49.1 +// flow-typed signature: b27490fff2d5c4468766643659a3eb2b +// flow-typed version: <>/babel-preset-env_v^1.4.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -46,10 +46,18 @@ declare module 'babel-preset-env/lib/normalize-options' { declare module.exports: any; } +declare module 'babel-preset-env/lib/targets-parser' { + declare module.exports: any; +} + declare module 'babel-preset-env/lib/transform-polyfill-require-plugin' { declare module.exports: any; } +declare module 'babel-preset-env/lib/utils' { + declare module.exports: any; +} + // Filename aliases declare module 'babel-preset-env/data/built-in-features.js' { declare module.exports: $Exports<'babel-preset-env/data/built-in-features'>; @@ -69,6 +77,12 @@ declare module 'babel-preset-env/lib/module-transformations.js' { declare module 'babel-preset-env/lib/normalize-options.js' { declare module.exports: $Exports<'babel-preset-env/lib/normalize-options'>; } +declare module 'babel-preset-env/lib/targets-parser.js' { + declare module.exports: $Exports<'babel-preset-env/lib/targets-parser'>; +} declare module 'babel-preset-env/lib/transform-polyfill-require-plugin.js' { declare module.exports: $Exports<'babel-preset-env/lib/transform-polyfill-require-plugin'>; } +declare module 'babel-preset-env/lib/utils.js' { + declare module.exports: $Exports<'babel-preset-env/lib/utils'>; +} diff --git a/flow-typed/npm/babel-preset-react-hmre_vx.x.x.js b/flow-typed/npm/babel-preset-react-hmre_vx.x.x.js index 444898fc..fa647cb9 100644 --- a/flow-typed/npm/babel-preset-react-hmre_vx.x.x.js +++ b/flow-typed/npm/babel-preset-react-hmre_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 71439ef11c08f129d231c93a25ce7736 -// flow-typed version: <>/babel-preset-react-hmre_v1.1.1/flow_v0.49.1 +// flow-typed signature: c846d354ff1571b99d50a1c57f08f6e6 +// flow-typed version: <>/babel-preset-react-hmre_v1.1.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-react_vx.x.x.js b/flow-typed/npm/babel-preset-react_vx.x.x.js index f7bd59ea..059e7128 100644 --- a/flow-typed/npm/babel-preset-react_vx.x.x.js +++ b/flow-typed/npm/babel-preset-react_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b8a09cacee593afd996e2174c52b3f54 -// flow-typed version: <>/babel-preset-react_v6.11.1/flow_v0.49.1 +// flow-typed signature: ff1392fee98b43939eca4077f29d32a4 +// flow-typed version: <>/babel-preset-react_v6.11.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-regenerator-runtime_vx.x.x.js b/flow-typed/npm/babel-regenerator-runtime_vx.x.x.js index 12f6113d..34446a1d 100644 --- a/flow-typed/npm/babel-regenerator-runtime_vx.x.x.js +++ b/flow-typed/npm/babel-regenerator-runtime_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 452b03ec25e282c97f4b314724acb4b9 -// flow-typed version: <>/babel-regenerator-runtime_v6.5.0/flow_v0.49.1 +// flow-typed signature: 9feb616713e12a7d3ffecfc3f6a59af1 +// flow-typed version: <>/babel-regenerator-runtime_v6.5.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/bcrypt_v0.8.x.js b/flow-typed/npm/bcrypt_v0.8.x.js deleted file mode 100644 index 4f1ae7e5..00000000 --- a/flow-typed/npm/bcrypt_v0.8.x.js +++ /dev/null @@ -1,15 +0,0 @@ -// flow-typed signature: bb9b5453ac9299431750ea57dc928249 -// flow-typed version: 622c2ee76d/bcrypt_v0.8.x/flow_>=v0.29.x - -declare module bcrypt { - declare function genSaltSync(rounds?: number): string; - declare function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void; - declare function genSalt(callback: (err: Error, salt:string) => void): void; - declare function hashSync(data: string, salt: string): string; - declare function hashSync(data: string, rounds: number): string; - declare function hash(data: string, salt: string, callback: (err: Error, encrypted: string) => void): void; - declare function hash(data: string, rounds: number, callback: (err: Error, encrypted: string) => void): void; - declare function compareSync(data: string, encrypted: string): boolean; - declare function compare(data: string, encrypted: string, callback: (err: Error, same: boolean) => void): void; - declare function getRounds(encrypted: string): number; -} diff --git a/flow-typed/npm/bcrypt_v1.x.x.js b/flow-typed/npm/bcrypt_v1.x.x.js new file mode 100644 index 00000000..88a9d327 --- /dev/null +++ b/flow-typed/npm/bcrypt_v1.x.x.js @@ -0,0 +1,37 @@ +// flow-typed signature: 96d9e6596558a201899e45822d93e38d +// flow-typed version: da30fe6876/bcrypt_v1.x.x/flow_>=v0.25.x + +declare module bcrypt { + declare function genSaltSync(rounds?: number): string; + declare function genSalt(rounds: number): Promise; + declare function genSalt(): Promise; + declare function genSalt(callback: (err: Error, salt: string) => void): void; + declare function genSalt( + rounds: number, + callback: (err: Error, salt: string) => void + ): void; + declare function hashSync(data: string, salt: string): string; + declare function hashSync(data: string, rounds: number): string; + declare function hash( + data: string, + saltOrRounds: string | number + ): Promise; + declare function hash( + data: string, + rounds: number, + callback: (err: Error, encrypted: string) => void + ): void; + declare function hash( + data: string, + salt: string, + callback: (err: Error, encrypted: string) => void + ): void; + declare function compareSync(data: string, encrypted: string): boolean; + declare function compare(data: string, encrypted: string): Promise; + declare function compare( + data: string, + encrypted: string, + callback: (err: Error, same: boolean) => void + ): void; + declare function getRounds(encrypted: string): number; +} diff --git a/flow-typed/npm/boundless-arrow-key-navigation_vx.x.x.js b/flow-typed/npm/boundless-arrow-key-navigation_vx.x.x.js index fcfc7b95..9c900f41 100644 --- a/flow-typed/npm/boundless-arrow-key-navigation_vx.x.x.js +++ b/flow-typed/npm/boundless-arrow-key-navigation_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: c883dad70b225eb21638409735628062 -// flow-typed version: <>/boundless-arrow-key-navigation_v^1.0.4/flow_v0.49.1 +// flow-typed signature: 0b32c7cc183482efcdb782eeb3211877 +// flow-typed version: <>/boundless-arrow-key-navigation_v^1.0.4/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/boundless-popover_vx.x.x.js b/flow-typed/npm/boundless-popover_vx.x.x.js index 0aecee30..cdb866be 100644 --- a/flow-typed/npm/boundless-popover_vx.x.x.js +++ b/flow-typed/npm/boundless-popover_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 3538996cc7488e4e7856a0df6617769d -// flow-typed version: <>/boundless-popover_v^1.0.4/flow_v0.49.1 +// flow-typed signature: 67e1ab65a05ed9fc881e4c87f68ed770 +// flow-typed version: <>/boundless-popover_v^1.0.4/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/bugsnag_vx.x.x.js b/flow-typed/npm/bugsnag_vx.x.x.js index 85e3d1be..0bfde577 100644 --- a/flow-typed/npm/bugsnag_vx.x.x.js +++ b/flow-typed/npm/bugsnag_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e7351cb87cdb4db5495da290ee62842d -// flow-typed version: <>/bugsnag_v^1.7.0/flow_v0.49.1 +// flow-typed signature: ea1970876efdaf55e4b2b4d8d011e47a +// flow-typed version: <>/bugsnag_v^1.7.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,6 +22,30 @@ declare module 'bugsnag' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'bugsnag/examples/express/api' { + declare module.exports: any; +} + +declare module 'bugsnag/examples/express/bugsnag' { + declare module.exports: any; +} + +declare module 'bugsnag/examples/express/index' { + declare module.exports: any; +} + +declare module 'bugsnag/examples/koa/api' { + declare module.exports: any; +} + +declare module 'bugsnag/examples/koa/bugsnag' { + declare module.exports: any; +} + +declare module 'bugsnag/examples/koa/index' { + declare module.exports: any; +} + declare module 'bugsnag/Gruntfile' { declare module.exports: any; } @@ -75,6 +99,24 @@ declare module 'bugsnag/test/utils' { } // Filename aliases +declare module 'bugsnag/examples/express/api.js' { + declare module.exports: $Exports<'bugsnag/examples/express/api'>; +} +declare module 'bugsnag/examples/express/bugsnag.js' { + declare module.exports: $Exports<'bugsnag/examples/express/bugsnag'>; +} +declare module 'bugsnag/examples/express/index.js' { + declare module.exports: $Exports<'bugsnag/examples/express/index'>; +} +declare module 'bugsnag/examples/koa/api.js' { + declare module.exports: $Exports<'bugsnag/examples/koa/api'>; +} +declare module 'bugsnag/examples/koa/bugsnag.js' { + declare module.exports: $Exports<'bugsnag/examples/koa/bugsnag'>; +} +declare module 'bugsnag/examples/koa/index.js' { + declare module.exports: $Exports<'bugsnag/examples/koa/index'>; +} declare module 'bugsnag/Gruntfile.js' { declare module.exports: $Exports<'bugsnag/Gruntfile'>; } diff --git a/flow-typed/npm/bull_vx.x.x.js b/flow-typed/npm/bull_vx.x.x.js new file mode 100644 index 00000000..239c8762 --- /dev/null +++ b/flow-typed/npm/bull_vx.x.x.js @@ -0,0 +1,290 @@ +// flow-typed signature: 3a17bfa26cb5d7355c449859669d7139 +// flow-typed version: <>/bull_v^3.3.7/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'bull' + * + * 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 'bull' { + 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 'bull/cron-parse-bug' { + declare module.exports: any; +} + +declare module 'bull/examples/cluster-queue' { + declare module.exports: any; +} + +declare module 'bull/examples/message' { + declare module.exports: any; +} + +declare module 'bull/examples/state' { + declare module.exports: any; +} + +declare module 'bull/lib/commands/index' { + declare module.exports: any; +} + +declare module 'bull/lib/errors' { + declare module.exports: any; +} + +declare module 'bull/lib/getters' { + declare module.exports: any; +} + +declare module 'bull/lib/job' { + declare module.exports: any; +} + +declare module 'bull/lib/process/child-pool' { + declare module.exports: any; +} + +declare module 'bull/lib/process/master' { + declare module.exports: any; +} + +declare module 'bull/lib/process/sandbox' { + declare module.exports: any; +} + +declare module 'bull/lib/queue' { + declare module.exports: any; +} + +declare module 'bull/lib/repeatable' { + declare module.exports: any; +} + +declare module 'bull/lib/scripts' { + declare module.exports: any; +} + +declare module 'bull/lib/timer-manager' { + declare module.exports: any; +} + +declare module 'bull/lib/utils' { + declare module.exports: any; +} + +declare module 'bull/lib/worker' { + declare module.exports: any; +} + +declare module 'bull/test/cluster_worker' { + declare module.exports: any; +} + +declare module 'bull/test/fixtures/fixture_processor_callback_fail' { + declare module.exports: any; +} + +declare module 'bull/test/fixtures/fixture_processor_callback' { + declare module.exports: any; +} + +declare module 'bull/test/fixtures/fixture_processor_exit' { + declare module.exports: any; +} + +declare module 'bull/test/fixtures/fixture_processor_fail' { + declare module.exports: any; +} + +declare module 'bull/test/fixtures/fixture_processor_progress' { + declare module.exports: any; +} + +declare module 'bull/test/fixtures/fixture_processor_slow' { + declare module.exports: any; +} + +declare module 'bull/test/fixtures/fixture_processor' { + declare module.exports: any; +} + +declare module 'bull/test/test_cluster' { + declare module.exports: any; +} + +declare module 'bull/test/test_connection' { + declare module.exports: any; +} + +declare module 'bull/test/test_events' { + declare module.exports: any; +} + +declare module 'bull/test/test_job' { + declare module.exports: any; +} + +declare module 'bull/test/test_pause' { + declare module.exports: any; +} + +declare module 'bull/test/test_queue' { + declare module.exports: any; +} + +declare module 'bull/test/test_rate_limiter' { + declare module.exports: any; +} + +declare module 'bull/test/test_repeat' { + declare module.exports: any; +} + +declare module 'bull/test/test_sandboxed_process' { + declare module.exports: any; +} + +declare module 'bull/test/test_worker' { + declare module.exports: any; +} + +declare module 'bull/test/utils' { + declare module.exports: any; +} + +declare module 'bull/Untitled-1' { + declare module.exports: any; +} + +// Filename aliases +declare module 'bull/cron-parse-bug.js' { + declare module.exports: $Exports<'bull/cron-parse-bug'>; +} +declare module 'bull/examples/cluster-queue.js' { + declare module.exports: $Exports<'bull/examples/cluster-queue'>; +} +declare module 'bull/examples/message.js' { + declare module.exports: $Exports<'bull/examples/message'>; +} +declare module 'bull/examples/state.js' { + declare module.exports: $Exports<'bull/examples/state'>; +} +declare module 'bull/index' { + declare module.exports: $Exports<'bull'>; +} +declare module 'bull/index.js' { + declare module.exports: $Exports<'bull'>; +} +declare module 'bull/lib/commands/index.js' { + declare module.exports: $Exports<'bull/lib/commands/index'>; +} +declare module 'bull/lib/errors.js' { + declare module.exports: $Exports<'bull/lib/errors'>; +} +declare module 'bull/lib/getters.js' { + declare module.exports: $Exports<'bull/lib/getters'>; +} +declare module 'bull/lib/job.js' { + declare module.exports: $Exports<'bull/lib/job'>; +} +declare module 'bull/lib/process/child-pool.js' { + declare module.exports: $Exports<'bull/lib/process/child-pool'>; +} +declare module 'bull/lib/process/master.js' { + declare module.exports: $Exports<'bull/lib/process/master'>; +} +declare module 'bull/lib/process/sandbox.js' { + declare module.exports: $Exports<'bull/lib/process/sandbox'>; +} +declare module 'bull/lib/queue.js' { + declare module.exports: $Exports<'bull/lib/queue'>; +} +declare module 'bull/lib/repeatable.js' { + declare module.exports: $Exports<'bull/lib/repeatable'>; +} +declare module 'bull/lib/scripts.js' { + declare module.exports: $Exports<'bull/lib/scripts'>; +} +declare module 'bull/lib/timer-manager.js' { + declare module.exports: $Exports<'bull/lib/timer-manager'>; +} +declare module 'bull/lib/utils.js' { + declare module.exports: $Exports<'bull/lib/utils'>; +} +declare module 'bull/lib/worker.js' { + declare module.exports: $Exports<'bull/lib/worker'>; +} +declare module 'bull/test/cluster_worker.js' { + declare module.exports: $Exports<'bull/test/cluster_worker'>; +} +declare module 'bull/test/fixtures/fixture_processor_callback_fail.js' { + declare module.exports: $Exports<'bull/test/fixtures/fixture_processor_callback_fail'>; +} +declare module 'bull/test/fixtures/fixture_processor_callback.js' { + declare module.exports: $Exports<'bull/test/fixtures/fixture_processor_callback'>; +} +declare module 'bull/test/fixtures/fixture_processor_exit.js' { + declare module.exports: $Exports<'bull/test/fixtures/fixture_processor_exit'>; +} +declare module 'bull/test/fixtures/fixture_processor_fail.js' { + declare module.exports: $Exports<'bull/test/fixtures/fixture_processor_fail'>; +} +declare module 'bull/test/fixtures/fixture_processor_progress.js' { + declare module.exports: $Exports<'bull/test/fixtures/fixture_processor_progress'>; +} +declare module 'bull/test/fixtures/fixture_processor_slow.js' { + declare module.exports: $Exports<'bull/test/fixtures/fixture_processor_slow'>; +} +declare module 'bull/test/fixtures/fixture_processor.js' { + declare module.exports: $Exports<'bull/test/fixtures/fixture_processor'>; +} +declare module 'bull/test/test_cluster.js' { + declare module.exports: $Exports<'bull/test/test_cluster'>; +} +declare module 'bull/test/test_connection.js' { + declare module.exports: $Exports<'bull/test/test_connection'>; +} +declare module 'bull/test/test_events.js' { + declare module.exports: $Exports<'bull/test/test_events'>; +} +declare module 'bull/test/test_job.js' { + declare module.exports: $Exports<'bull/test/test_job'>; +} +declare module 'bull/test/test_pause.js' { + declare module.exports: $Exports<'bull/test/test_pause'>; +} +declare module 'bull/test/test_queue.js' { + declare module.exports: $Exports<'bull/test/test_queue'>; +} +declare module 'bull/test/test_rate_limiter.js' { + declare module.exports: $Exports<'bull/test/test_rate_limiter'>; +} +declare module 'bull/test/test_repeat.js' { + declare module.exports: $Exports<'bull/test/test_repeat'>; +} +declare module 'bull/test/test_sandboxed_process.js' { + declare module.exports: $Exports<'bull/test/test_sandboxed_process'>; +} +declare module 'bull/test/test_worker.js' { + declare module.exports: $Exports<'bull/test/test_worker'>; +} +declare module 'bull/test/utils.js' { + declare module.exports: $Exports<'bull/test/utils'>; +} +declare module 'bull/Untitled-1.js' { + declare module.exports: $Exports<'bull/Untitled-1'>; +} diff --git a/flow-typed/npm/koa-bodyparser_vx.x.x.js b/flow-typed/npm/cancan_vx.x.x.js similarity index 57% rename from flow-typed/npm/koa-bodyparser_vx.x.x.js rename to flow-typed/npm/cancan_vx.x.x.js index 61911b59..48849d32 100644 --- a/flow-typed/npm/koa-bodyparser_vx.x.x.js +++ b/flow-typed/npm/cancan_vx.x.x.js @@ -1,10 +1,10 @@ -// flow-typed signature: 119b52d89dd2c00f9f6c56f714a13028 -// flow-typed version: <>/koa-bodyparser_v4.2.0/flow_v0.49.1 +// flow-typed signature: 4f34c4d959be6be217a2ca760d4d8ee2 +// flow-typed version: <>/cancan_v3.1.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: * - * 'koa-bodyparser' + * 'cancan' * * Fill this stub out by replacing all the `any` types. * @@ -13,7 +13,7 @@ * https://github.com/flowtype/flow-typed */ -declare module 'koa-bodyparser' { +declare module 'cancan' { declare module.exports: any; } @@ -25,9 +25,9 @@ declare module 'koa-bodyparser' { // Filename aliases -declare module 'koa-bodyparser/index' { - declare module.exports: $Exports<'koa-bodyparser'>; +declare module 'cancan/index' { + declare module.exports: $Exports<'cancan'>; } -declare module 'koa-bodyparser/index.js' { - declare module.exports: $Exports<'koa-bodyparser'>; +declare module 'cancan/index.js' { + declare module.exports: $Exports<'cancan'>; } diff --git a/flow-typed/npm/copy-to-clipboard_v3.x.x.js b/flow-typed/npm/copy-to-clipboard_v3.x.x.js new file mode 100644 index 00000000..297d22e9 --- /dev/null +++ b/flow-typed/npm/copy-to-clipboard_v3.x.x.js @@ -0,0 +1,11 @@ +// flow-typed signature: 2d67b88033ed19841b9ad74ef2830c56 +// flow-typed version: 1ff8a2ca93/copy-to-clipboard_v3.x.x/flow_>=v0.25.x + +type Options = { + debug?: boolean, + message?: string +}; + +declare module 'copy-to-clipboard' { + declare module.exports: (text: string, options?: Options) => boolean; +} diff --git a/flow-typed/npm/css-loader_vx.x.x.js b/flow-typed/npm/css-loader_vx.x.x.js index aa1571d5..6ab5e99f 100644 --- a/flow-typed/npm/css-loader_vx.x.x.js +++ b/flow-typed/npm/css-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b592084c6718c1c5cba4a4f16362a5b7 -// flow-typed version: <>/css-loader_v0.23.1/flow_v0.49.1 +// flow-typed signature: 0d1fa34e43c771f5ed706bcded38f6fa +// flow-typed version: <>/css-loader_v^0.28.7/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -26,6 +26,10 @@ declare module 'css-loader/lib/compile-exports' { declare module.exports: any; } +declare module 'css-loader/lib/createResolver' { + declare module.exports: any; +} + declare module 'css-loader/lib/css-base' { declare module.exports: any; } @@ -64,6 +68,9 @@ declare module 'css-loader/index.js' { declare module 'css-loader/lib/compile-exports.js' { declare module.exports: $Exports<'css-loader/lib/compile-exports'>; } +declare module 'css-loader/lib/createResolver.js' { + declare module.exports: $Exports<'css-loader/lib/createResolver'>; +} declare module 'css-loader/lib/css-base.js' { declare module.exports: $Exports<'css-loader/lib/css-base'>; } diff --git a/flow-typed/npm/debug_v2.x.x.js b/flow-typed/npm/debug_v2.x.x.js index d62ded4f..e4434f4a 100644 --- a/flow-typed/npm/debug_v2.x.x.js +++ b/flow-typed/npm/debug_v2.x.x.js @@ -1,17 +1,17 @@ -// flow-typed signature: 405987958aa5512d6259ff42e56f7ecb -// flow-typed version: 94e9f7e0a4/debug_v2.x.x/flow_>=v0.28.x +// flow-typed signature: c7b1e1d8d9c2230d131299ddc21dcb0e +// flow-typed version: da30fe6876/debug_v2.x.x/flow_>=v0.28.x -declare module 'debug' { +declare module "debug" { declare type Debugger = { (...args: Array): void, (formatter: string, ...args: Array): void, (err: Error, ...args: Array): void, enabled: boolean, log: () => {}, - namespace: string; + namespace: string }; - declare function exports(namespace: string): Debugger; + declare module.exports: (namespace: string) => Debugger; declare var names: Array; declare var skips: Array; @@ -27,4 +27,4 @@ declare module 'debug' { declare var formatters: { [formatter: string]: () => {} }; -}; +} diff --git a/flow-typed/npm/dotenv_v4.x.x.js b/flow-typed/npm/dotenv_v4.x.x.js new file mode 100644 index 00000000..7bfe16c4 --- /dev/null +++ b/flow-typed/npm/dotenv_v4.x.x.js @@ -0,0 +1,17 @@ +// flow-typed signature: cf11c66b2c3d752c24fdf3eae1b44e1c +// flow-typed version: 21e1db763b/dotenv_v4.x.x/flow_>=v0.34.x + +declare module "dotenv" { + declare type DotenvOptions = { + encoding?: string, + path?: string + }; + + declare function config(options?: DotenvOptions): boolean; + + declare module.exports: { + config: typeof config, + load: typeof config, + parse: (src: string | Buffer) => { [string]: string } + } +} diff --git a/flow-typed/npm/emoji-regex_vx.x.x.js b/flow-typed/npm/emoji-regex_vx.x.x.js new file mode 100644 index 00000000..095ab921 --- /dev/null +++ b/flow-typed/npm/emoji-regex_vx.x.x.js @@ -0,0 +1,52 @@ +// flow-typed signature: 18e8f3ed605679047cefaa557e6f0508 +// flow-typed version: <>/emoji-regex_v^6.5.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'emoji-regex' + * + * 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 'emoji-regex' { + 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 'emoji-regex/es2015/index' { + declare module.exports: any; +} + +declare module 'emoji-regex/es2015/text' { + declare module.exports: any; +} + +declare module 'emoji-regex/text' { + declare module.exports: any; +} + +// Filename aliases +declare module 'emoji-regex/es2015/index.js' { + declare module.exports: $Exports<'emoji-regex/es2015/index'>; +} +declare module 'emoji-regex/es2015/text.js' { + declare module.exports: $Exports<'emoji-regex/es2015/text'>; +} +declare module 'emoji-regex/index' { + declare module.exports: $Exports<'emoji-regex'>; +} +declare module 'emoji-regex/index.js' { + declare module.exports: $Exports<'emoji-regex'>; +} +declare module 'emoji-regex/text.js' { + declare module.exports: $Exports<'emoji-regex/text'>; +} diff --git a/flow-typed/npm/enzyme-to-json_vx.x.x.js b/flow-typed/npm/enzyme-to-json_vx.x.x.js index 2dff6bd3..3e8b28b9 100644 --- a/flow-typed/npm/enzyme-to-json_vx.x.x.js +++ b/flow-typed/npm/enzyme-to-json_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ec66865b93942594f3f9527ccd1669ec -// flow-typed version: <>/enzyme-to-json_v^1.5.1/flow_v0.49.1 +// flow-typed signature: 668f4808f17d13a62c2026f0c16133c6 +// flow-typed version: <>/enzyme-to-json_v^1.5.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/enzyme_v2.3.x.js b/flow-typed/npm/enzyme_v2.3.x.js index 09216cb7..47e8112b 100644 --- a/flow-typed/npm/enzyme_v2.3.x.js +++ b/flow-typed/npm/enzyme_v2.3.x.js @@ -1,85 +1,110 @@ -// flow-typed signature: 7403d74c206787e80611f29782f19c4e -// flow-typed version: e6adbe598a/enzyme_v2.3.x/flow_>=v0.28.x +// flow-typed signature: ac18e8756b9f77851123c33e78aaa670 +// flow-typed version: 792f604e07/enzyme_v2.3.x/flow_>=v0.53.x -declare module 'enzyme' { - declare type PredicateFunction = (wrapper: T) => boolean; - declare type NodeOrNodes = React$Element | Array>; - declare type EnzymeSelector = string | ReactClass | Object; +import * as React from "react"; + +declare module "enzyme" { + declare type PredicateFunction = ( + wrapper: T, + index: number + ) => boolean; + declare type NodeOrNodes = React.Node | Array; + declare type EnzymeSelector = string | Class> | Object; // CheerioWrapper is a type alias for an actual cheerio instance // TODO: Reference correct type from cheerio's type declarations declare type CheerioWrapper = any; declare class Wrapper { - find(selector: EnzymeSelector): this; - findWhere(predicate: PredicateFunction): this; - filter(selector: EnzymeSelector): this; - filterWhere(predicate: PredicateFunction): this; - contains(nodeOrNodes: NodeOrNodes): boolean; - containsMatchingElement(node: React$Element): boolean; - containsAllMatchingElements(nodes: NodeOrNodes): boolean; - containsAnyMatchingElements(nodes: NodeOrNodes): boolean; - dive(option?: { context?: Object }): this; - exists(): boolean; - matchesElement(node: React$Element): boolean; - hasClass(className: string): boolean; - is(selector: EnzymeSelector): boolean; - isEmpty(): boolean; - not(selector: EnzymeSelector): this; - children(selector?: EnzymeSelector): this; - childAt(index: number): this; - parents(selector?: EnzymeSelector): this; - parent(): this; - closest(selector: EnzymeSelector): this; - render(): CheerioWrapper; - unmount(): this; - text(): string; - html(): string; - get(index: number): React$Element; - getNode(): React$Element; - getNodes(): Array>; - getDOMNode(): HTMLElement | HTMLInputElement; - at(index: number): this; - first(): this; - last(): this; - state(key?: string): any; - context(key?: string): any; - props(): Object; - prop(key: string): any; - key(): string; - simulate(event: string, ...args: Array): this; - setState(state: Object, callback?: Function): this, - setProps(props: Object): this; - setContext(context: Object): this; - instance(): React$Component<*, *, *>; - update(): this; - debug(): string; - type(): string | Function | null; - name(): string; - forEach(fn: (node: this) => any): this; - map(fn: (node: this) => T): Array; - reduce(fn: (value: T, node: this, index: number) => T, initialValue?: T): Array; - reduceRight(fn: (value: T, node: this, index: number) => T, initialValue?: T): Array; - some(selector: EnzymeSelector): boolean; - someWhere(predicate: PredicateFunction): boolean; - every(selector: EnzymeSelector): boolean; - everyWhere(predicate: PredicateFunction): boolean; - length: number; + find(selector: EnzymeSelector): this, + findWhere(predicate: PredicateFunction): this, + filter(selector: EnzymeSelector): this, + filterWhere(predicate: PredicateFunction): this, + contains(nodeOrNodes: NodeOrNodes): boolean, + containsMatchingElement(node: React.Node): boolean, + containsAllMatchingElements(nodes: NodeOrNodes): boolean, + containsAnyMatchingElements(nodes: NodeOrNodes): boolean, + dive(option?: { context?: Object }): this, + exists(): boolean, + matchesElement(node: React.Node): boolean, + hasClass(className: string): boolean, + is(selector: EnzymeSelector): boolean, + isEmpty(): boolean, + not(selector: EnzymeSelector): this, + children(selector?: EnzymeSelector): this, + childAt(index: number): this, + parents(selector?: EnzymeSelector): this, + parent(): this, + closest(selector: EnzymeSelector): this, + render(): CheerioWrapper, + unmount(): this, + text(): string, + html(): string, + get(index: number): React.Node, + getNode(): React.Node, + getNodes(): Array, + getDOMNode(): HTMLElement | HTMLInputElement, + at(index: number): this, + first(): this, + last(): this, + state(key?: string): any, + context(key?: string): any, + props(): Object, + prop(key: string): any, + key(): string, + simulate(event: string, ...args: Array): this, + setState(state: {}, callback?: Function): this, + setProps(props: {}): this, + setContext(context: Object): this, + instance(): React.Component<*, *>, + update(): this, + debug(options?: Object): string, + type(): string | Function | null, + name(): string, + forEach(fn: (node: this, index: number) => mixed): this, + map(fn: (node: this, index: number) => T): Array, + reduce( + fn: (value: T, node: this, index: number) => T, + initialValue?: T + ): Array, + reduceRight( + fn: (value: T, node: this, index: number) => T, + initialValue?: T + ): Array, + some(selector: EnzymeSelector): boolean, + someWhere(predicate: PredicateFunction): boolean, + every(selector: EnzymeSelector): boolean, + everyWhere(predicate: PredicateFunction): boolean, + length: number } declare export class ReactWrapper extends Wrapper { - constructor(nodes: NodeOrNodes, root: any, options?: ?Object): ReactWrapper; - mount(): this; - ref(refName: string): this; - detach(): void; + constructor(nodes: NodeOrNodes, root: any, options?: ?Object): ReactWrapper, + mount(): this, + ref(refName: string): this, + detach(): void } declare export class ShallowWrapper extends Wrapper { - equals(node: React$Element): boolean; - shallow(options?: { context?: Object }): ShallowWrapper; + constructor(nodes: NodeOrNodes, root: any, options?: ?Object): ShallowWrapper; + equals(node: React.Node): boolean, + shallow(options?: { context?: Object }): ShallowWrapper } - declare export function shallow(node: React$Element, options?: { context?: Object }): ShallowWrapper; - declare export function mount(node: React$Element, options?: { context?: Object, attachTo?: HTMLElement, childContextTypes?: Object }): ReactWrapper; - declare export function render(node: React$Element, options?: { context?: Object }): CheerioWrapper; + declare export function shallow( + node: React.Node, + options?: { context?: Object } + ): ShallowWrapper; + declare export function mount( + node: React.Node, + options?: { + context?: Object, + attachTo?: HTMLElement, + childContextTypes?: Object + } + ): ReactWrapper; + declare export function render( + node: React.Node, + options?: { context?: Object } + ): CheerioWrapper; } diff --git a/flow-typed/npm/eslint-config-react-app_vx.x.x.js b/flow-typed/npm/eslint-config-react-app_vx.x.x.js index 7ee95707..fb05cf47 100644 --- a/flow-typed/npm/eslint-config-react-app_vx.x.x.js +++ b/flow-typed/npm/eslint-config-react-app_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 72fcf3b52bd4a0e13b657d3692f97a0e -// flow-typed version: <>/eslint-config-react-app_v^0.6.2/flow_v0.49.1 +// flow-typed signature: 42e3a437aef9dbf7bfe21daa33b3fede +// flow-typed version: <>/eslint-config-react-app_v^2.0.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js index bcab6cb6..faf125d2 100644 --- a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: fa71df5a833b1fd871db5fdec058a208 -// flow-typed version: <>/eslint-plugin-flowtype_v^2.32.1/flow_v0.49.1 +// flow-typed signature: a4e6eb2652034382c5c81483cb1e008e +// flow-typed version: <>/eslint-plugin-flowtype_v^2.40.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -50,6 +50,10 @@ declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys' { declare module.exports: any; } +declare module 'eslint-plugin-flowtype/dist/rules/noMutableArray' { + declare module.exports: any; +} + declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes' { declare module.exports: any; } @@ -58,6 +62,10 @@ declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation' declare module.exports: any; } +declare module 'eslint-plugin-flowtype/dist/rules/noUnusedExpressions' { + declare module.exports: any; +} + declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes' { declare module.exports: any; } @@ -216,12 +224,18 @@ declare module 'eslint-plugin-flowtype/dist/rules/genericSpacing.js' { declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noDupeKeys'>; } +declare module 'eslint-plugin-flowtype/dist/rules/noMutableArray.js' { + declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noMutableArray'>; +} declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes'>; } declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation'>; } +declare module 'eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js' { + declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noUnusedExpressions'>; +} declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noWeakTypes'>; } diff --git a/flow-typed/npm/eslint-plugin-import_vx.x.x.js b/flow-typed/npm/eslint-plugin-import_vx.x.x.js index e78c8409..dd07fdae 100644 --- a/flow-typed/npm/eslint-plugin-import_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-import_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 648dd21b73dc794cbba83495010df3a7 -// flow-typed version: <>/eslint-plugin-import_v^2.2.0/flow_v0.49.1 +// flow-typed signature: 57a0f8afb19807ebd5db77c02a7596a2 +// flow-typed version: <>/eslint-plugin-import_v^2.8.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -78,6 +78,10 @@ declare module 'eslint-plugin-import/lib/rules/export' { declare module.exports: any; } +declare module 'eslint-plugin-import/lib/rules/exports-last' { + declare module.exports: any; +} + declare module 'eslint-plugin-import/lib/rules/extensions' { declare module.exports: any; } @@ -114,6 +118,10 @@ declare module 'eslint-plugin-import/lib/rules/no-amd' { declare module.exports: any; } +declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export' { + declare module.exports: any; +} + declare module 'eslint-plugin-import/lib/rules/no-commonjs' { declare module.exports: any; } @@ -237,6 +245,9 @@ declare module 'eslint-plugin-import/lib/rules/default.js' { declare module 'eslint-plugin-import/lib/rules/export.js' { declare module.exports: $Exports<'eslint-plugin-import/lib/rules/export'>; } +declare module 'eslint-plugin-import/lib/rules/exports-last.js' { + declare module.exports: $Exports<'eslint-plugin-import/lib/rules/exports-last'>; +} declare module 'eslint-plugin-import/lib/rules/extensions.js' { declare module.exports: $Exports<'eslint-plugin-import/lib/rules/extensions'>; } @@ -264,6 +275,9 @@ declare module 'eslint-plugin-import/lib/rules/no-absolute-path.js' { declare module 'eslint-plugin-import/lib/rules/no-amd.js' { declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-amd'>; } +declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export.js' { + declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-anonymous-default-export'>; +} declare module 'eslint-plugin-import/lib/rules/no-commonjs.js' { declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-commonjs'>; } diff --git a/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js b/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js index 61578e9e..d412f403 100644 --- a/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 92a2a11236da1fc75b48643fef1c8706 -// flow-typed version: <>/eslint-plugin-jsx-a11y_v^4.0.0/flow_v0.49.1 +// flow-typed signature: c110f56873e176d5c2504b15fb96c358 +// flow-typed version: <>/eslint-plugin-jsx-a11y_v5.1.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -46,6 +46,10 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/__util__/parserOptionsMapper' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/__tests__/__util__/ruleOptionsMapperFactory' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/__tests__/index-test' { declare module.exports: any; } @@ -54,10 +58,18 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/accessible-emoji-test declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/alt-text-test' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-is-valid-test' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-activedescendant-has-tabindex-test' { declare module.exports: any; } @@ -98,11 +110,11 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/iframe-has-title-test declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test' { +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test' { declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test' { +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/interactive-supports-focus-test' { declare module.exports: any; } @@ -114,6 +126,10 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/media-has-caption-test' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test' { declare module.exports: any; } @@ -130,6 +146,22 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-distracting-elemen declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-interactive-element-to-noninteractive-role-test' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-interactions-test' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-tabindex-test' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test' { declare module.exports: any; } @@ -142,14 +174,6 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-int declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test' { - declare module.exports: any; -} - declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test' { declare module.exports: any; } @@ -166,6 +190,10 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive- declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/attributesComparator-test' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test' { declare module.exports: any; } @@ -174,6 +202,14 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getTabIndex-test' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/hasAccessibleChild-test' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isAbstractRole-test' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveElement-test' { declare module.exports: any; } @@ -182,6 +218,14 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveRole-test declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveElement-test' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveRole-test' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/parserOptionsMapper-test' { declare module.exports: any; } @@ -190,6 +234,10 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/flow/eslint-jsx' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/flow/eslint' { declare module.exports: any; } @@ -202,10 +250,18 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/accessible-emoji' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/alt-text' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-is-valid' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-activedescendant-has-tabindex' { declare module.exports: any; } @@ -246,11 +302,11 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/iframe-has-title' { declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/lib/rules/img-has-alt' { +declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt' { declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt' { +declare module 'eslint-plugin-jsx-a11y/lib/rules/interactive-supports-focus' { declare module.exports: any; } @@ -262,6 +318,10 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/lang' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/media-has-caption' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events' { declare module.exports: any; } @@ -278,6 +338,22 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/no-distracting-elements' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/no-interactive-element-to-noninteractive-role' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-to-interactive-role' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-tabindex' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/lib/rules/no-onchange' { declare module.exports: any; } @@ -290,14 +366,6 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions' declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role' { - declare module.exports: any; -} - declare module 'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props' { declare module.exports: any; } @@ -314,6 +382,10 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/lib/util/attributesComparator' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/lib/util/getImplicitRole' { declare module.exports: any; } @@ -326,6 +398,10 @@ declare module 'eslint-plugin-jsx-a11y/lib/util/getTabIndex' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/lib/util/hasAccessibleChild' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a' { declare module.exports: any; } @@ -478,6 +554,10 @@ declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/lib/util/isAbstractRole' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader' { declare module.exports: any; } @@ -490,6 +570,18 @@ declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveRole' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveElement' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveRole' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/lib/util/isPresentationRole' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/lib/util/schemas' { declare module.exports: any; } @@ -522,10 +614,18 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/accessible-emoji' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/src/rules/alt-text' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/src/rules/anchor-has-content' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/src/rules/anchor-is-valid' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/src/rules/aria-activedescendant-has-tabindex' { declare module.exports: any; } @@ -566,11 +666,11 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/iframe-has-title' { declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/src/rules/img-has-alt' { +declare module 'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt' { declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt' { +declare module 'eslint-plugin-jsx-a11y/src/rules/interactive-supports-focus' { declare module.exports: any; } @@ -582,6 +682,10 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/lang' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/src/rules/media-has-caption' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events' { declare module.exports: any; } @@ -598,6 +702,22 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/no-distracting-elements' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/src/rules/no-interactive-element-to-noninteractive-role' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-element-interactions' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-element-to-interactive-role' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-tabindex' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/src/rules/no-onchange' { declare module.exports: any; } @@ -610,14 +730,6 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions' declare module.exports: any; } -declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus' { - declare module.exports: any; -} - -declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-role' { - declare module.exports: any; -} - declare module 'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props' { declare module.exports: any; } @@ -634,6 +746,10 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/src/util/attributesComparator' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/src/util/getImplicitRole' { declare module.exports: any; } @@ -646,6 +762,10 @@ declare module 'eslint-plugin-jsx-a11y/src/util/getTabIndex' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/src/util/hasAccessibleChild' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/a' { declare module.exports: any; } @@ -798,6 +918,10 @@ declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/src/util/isAbstractRole' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader' { declare module.exports: any; } @@ -810,6 +934,18 @@ declare module 'eslint-plugin-jsx-a11y/src/util/isInteractiveRole' { declare module.exports: any; } +declare module 'eslint-plugin-jsx-a11y/src/util/isNonInteractiveElement' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/src/util/isNonInteractiveRole' { + declare module.exports: any; +} + +declare module 'eslint-plugin-jsx-a11y/src/util/isPresentationRole' { + declare module.exports: any; +} + declare module 'eslint-plugin-jsx-a11y/src/util/schemas' { declare module.exports: any; } @@ -833,15 +969,24 @@ declare module 'eslint-plugin-jsx-a11y/__mocks__/JSXExpressionContainerMock.js' declare module 'eslint-plugin-jsx-a11y/__tests__/__util__/parserOptionsMapper.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/__util__/parserOptionsMapper'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/__util__/ruleOptionsMapperFactory.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/__util__/ruleOptionsMapperFactory'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/index-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/index-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/accessible-emoji-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/accessible-emoji-test'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/alt-text-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/alt-text-test'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-is-valid-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-is-valid-test'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-activedescendant-has-tabindex-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-activedescendant-has-tabindex-test'>; } @@ -872,18 +1017,21 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test.js declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/iframe-has-title-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/iframe-has-title-test'>; } -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test'>; -} declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/interactive-supports-focus-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/interactive-supports-focus-test'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/media-has-caption-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/media-has-caption-test'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test'>; } @@ -896,6 +1044,18 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-autofocus-test.js' declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-distracting-elements-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-distracting-elements-test'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-interactive-element-to-noninteractive-role-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-interactive-element-to-noninteractive-role-test'>; +} +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-interactions-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-interactions-test'>; +} +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test'>; +} +declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-tabindex-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-noninteractive-tabindex-test'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test'>; } @@ -905,12 +1065,6 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-redundant-roles-te declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test'>; } -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test'>; -} -declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test'>; -} declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test'>; } @@ -923,24 +1077,42 @@ declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test.js' { declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/attributesComparator-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/attributesComparator-test'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getTabIndex-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/getTabIndex-test'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/hasAccessibleChild-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/hasAccessibleChild-test'>; +} +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isAbstractRole-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isAbstractRole-test'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveElement-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveElement-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveRole-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isInteractiveRole-test'>; } +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveElement-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveElement-test'>; +} +declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveRole-test.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/isNonInteractiveRole-test'>; +} declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/parserOptionsMapper-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/parserOptionsMapper-test'>; } declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test'>; } +declare module 'eslint-plugin-jsx-a11y/flow/eslint-jsx.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/flow/eslint-jsx'>; +} declare module 'eslint-plugin-jsx-a11y/flow/eslint.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/flow/eslint'>; } @@ -950,9 +1122,15 @@ declare module 'eslint-plugin-jsx-a11y/lib/index.js' { declare module 'eslint-plugin-jsx-a11y/lib/rules/accessible-emoji.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/accessible-emoji'>; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/alt-text.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/alt-text'>; +} declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content'>; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-is-valid.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/anchor-is-valid'>; +} declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-activedescendant-has-tabindex.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-activedescendant-has-tabindex'>; } @@ -983,18 +1161,21 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/html-has-lang.js' { declare module 'eslint-plugin-jsx-a11y/lib/rules/iframe-has-title.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/iframe-has-title'>; } -declare module 'eslint-plugin-jsx-a11y/lib/rules/img-has-alt.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/img-has-alt'>; -} declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt'>; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/interactive-supports-focus.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/interactive-supports-focus'>; +} declare module 'eslint-plugin-jsx-a11y/lib/rules/label-has-for.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/label-has-for'>; } declare module 'eslint-plugin-jsx-a11y/lib/rules/lang.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/lang'>; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/media-has-caption.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/media-has-caption'>; +} declare module 'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events'>; } @@ -1007,6 +1188,18 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/no-autofocus.js' { declare module 'eslint-plugin-jsx-a11y/lib/rules/no-distracting-elements.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-distracting-elements'>; } +declare module 'eslint-plugin-jsx-a11y/lib/rules/no-interactive-element-to-noninteractive-role.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-interactive-element-to-noninteractive-role'>; +} +declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions'>; +} +declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-to-interactive-role.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-to-interactive-role'>; +} +declare module 'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-tabindex.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-tabindex'>; +} declare module 'eslint-plugin-jsx-a11y/lib/rules/no-onchange.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-onchange'>; } @@ -1016,12 +1209,6 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/no-redundant-roles.js' { declare module 'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions'>; } -declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus'>; -} -declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role'>; -} declare module 'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props'>; } @@ -1034,6 +1221,9 @@ declare module 'eslint-plugin-jsx-a11y/lib/rules/scope.js' { declare module 'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive'>; } +declare module 'eslint-plugin-jsx-a11y/lib/util/attributesComparator.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/attributesComparator'>; +} declare module 'eslint-plugin-jsx-a11y/lib/util/getImplicitRole.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getImplicitRole'>; } @@ -1043,6 +1233,9 @@ declare module 'eslint-plugin-jsx-a11y/lib/util/getSuggestion.js' { declare module 'eslint-plugin-jsx-a11y/lib/util/getTabIndex.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getTabIndex'>; } +declare module 'eslint-plugin-jsx-a11y/lib/util/hasAccessibleChild.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/hasAccessibleChild'>; +} declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a'>; } @@ -1157,6 +1350,9 @@ declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead.js' { declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul'>; } +declare module 'eslint-plugin-jsx-a11y/lib/util/isAbstractRole.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isAbstractRole'>; +} declare module 'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader'>; } @@ -1166,6 +1362,15 @@ declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement.js' { declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveRole.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isInteractiveRole'>; } +declare module 'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveElement.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveElement'>; +} +declare module 'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveRole.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isNonInteractiveRole'>; +} +declare module 'eslint-plugin-jsx-a11y/lib/util/isPresentationRole.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isPresentationRole'>; +} declare module 'eslint-plugin-jsx-a11y/lib/util/schemas.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/schemas'>; } @@ -1190,9 +1395,15 @@ declare module 'eslint-plugin-jsx-a11y/src/index.js' { declare module 'eslint-plugin-jsx-a11y/src/rules/accessible-emoji.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/accessible-emoji'>; } +declare module 'eslint-plugin-jsx-a11y/src/rules/alt-text.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/alt-text'>; +} declare module 'eslint-plugin-jsx-a11y/src/rules/anchor-has-content.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/anchor-has-content'>; } +declare module 'eslint-plugin-jsx-a11y/src/rules/anchor-is-valid.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/anchor-is-valid'>; +} declare module 'eslint-plugin-jsx-a11y/src/rules/aria-activedescendant-has-tabindex.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-activedescendant-has-tabindex'>; } @@ -1223,18 +1434,21 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/html-has-lang.js' { declare module 'eslint-plugin-jsx-a11y/src/rules/iframe-has-title.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/iframe-has-title'>; } -declare module 'eslint-plugin-jsx-a11y/src/rules/img-has-alt.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/img-has-alt'>; -} declare module 'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt'>; } +declare module 'eslint-plugin-jsx-a11y/src/rules/interactive-supports-focus.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/interactive-supports-focus'>; +} declare module 'eslint-plugin-jsx-a11y/src/rules/label-has-for.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/label-has-for'>; } declare module 'eslint-plugin-jsx-a11y/src/rules/lang.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/lang'>; } +declare module 'eslint-plugin-jsx-a11y/src/rules/media-has-caption.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/media-has-caption'>; +} declare module 'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events'>; } @@ -1247,6 +1461,18 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/no-autofocus.js' { declare module 'eslint-plugin-jsx-a11y/src/rules/no-distracting-elements.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-distracting-elements'>; } +declare module 'eslint-plugin-jsx-a11y/src/rules/no-interactive-element-to-noninteractive-role.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-interactive-element-to-noninteractive-role'>; +} +declare module 'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-element-interactions.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-element-interactions'>; +} +declare module 'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-element-to-interactive-role.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-element-to-interactive-role'>; +} +declare module 'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-tabindex.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-noninteractive-tabindex'>; +} declare module 'eslint-plugin-jsx-a11y/src/rules/no-onchange.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-onchange'>; } @@ -1256,12 +1482,6 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/no-redundant-roles.js' { declare module 'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions'>; } -declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus'>; -} -declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-role.js' { - declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/onclick-has-role'>; -} declare module 'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props'>; } @@ -1274,6 +1494,9 @@ declare module 'eslint-plugin-jsx-a11y/src/rules/scope.js' { declare module 'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive'>; } +declare module 'eslint-plugin-jsx-a11y/src/util/attributesComparator.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/attributesComparator'>; +} declare module 'eslint-plugin-jsx-a11y/src/util/getImplicitRole.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/getImplicitRole'>; } @@ -1283,6 +1506,9 @@ declare module 'eslint-plugin-jsx-a11y/src/util/getSuggestion.js' { declare module 'eslint-plugin-jsx-a11y/src/util/getTabIndex.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/getTabIndex'>; } +declare module 'eslint-plugin-jsx-a11y/src/util/hasAccessibleChild.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/hasAccessibleChild'>; +} declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/a.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/a'>; } @@ -1397,6 +1623,9 @@ declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/thead.js' { declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul'>; } +declare module 'eslint-plugin-jsx-a11y/src/util/isAbstractRole.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isAbstractRole'>; +} declare module 'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader'>; } @@ -1406,6 +1635,15 @@ declare module 'eslint-plugin-jsx-a11y/src/util/isInteractiveElement.js' { declare module 'eslint-plugin-jsx-a11y/src/util/isInteractiveRole.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isInteractiveRole'>; } +declare module 'eslint-plugin-jsx-a11y/src/util/isNonInteractiveElement.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isNonInteractiveElement'>; +} +declare module 'eslint-plugin-jsx-a11y/src/util/isNonInteractiveRole.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isNonInteractiveRole'>; +} +declare module 'eslint-plugin-jsx-a11y/src/util/isPresentationRole.js' { + declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isPresentationRole'>; +} declare module 'eslint-plugin-jsx-a11y/src/util/schemas.js' { declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/schemas'>; } diff --git a/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js b/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js index 3ff5683c..1fb377f1 100644 --- a/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 7705993c316ac97ed14e3e50dcf0b057 -// flow-typed version: <>/eslint-plugin-prettier_v^2.0.1/flow_v0.49.1 +// flow-typed signature: 3aa6f9707bfdf4229ff6adef1567e676 +// flow-typed version: <>/eslint-plugin-prettier_v^2.4.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,25 +22,11 @@ declare module 'eslint-plugin-prettier' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'eslint-plugin-prettier/lib/index' { - declare module.exports: any; -} - -declare module 'eslint-plugin-prettier/lib/rules/prettier' { - declare module.exports: any; -} - -declare module 'eslint-plugin-prettier/tests/lib/rules/prettier' { +declare module 'eslint-plugin-prettier/eslint-plugin-prettier' { declare module.exports: any; } // Filename aliases -declare module 'eslint-plugin-prettier/lib/index.js' { - declare module.exports: $Exports<'eslint-plugin-prettier/lib/index'>; -} -declare module 'eslint-plugin-prettier/lib/rules/prettier.js' { - declare module.exports: $Exports<'eslint-plugin-prettier/lib/rules/prettier'>; -} -declare module 'eslint-plugin-prettier/tests/lib/rules/prettier.js' { - declare module.exports: $Exports<'eslint-plugin-prettier/tests/lib/rules/prettier'>; +declare module 'eslint-plugin-prettier/eslint-plugin-prettier.js' { + declare module.exports: $Exports<'eslint-plugin-prettier/eslint-plugin-prettier'>; } diff --git a/flow-typed/npm/eslint-plugin-react_vx.x.x.js b/flow-typed/npm/eslint-plugin-react_vx.x.x.js index f2633301..c0900881 100644 --- a/flow-typed/npm/eslint-plugin-react_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-react_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: c65eb0aa770b735ba49885c0d000a6da -// flow-typed version: <>/eslint-plugin-react_v^6.10.3/flow_v0.49.1 +// flow-typed signature: 273acfd1d99bae8320d5bf128f08cadb +// flow-typed version: <>/eslint-plugin-react_v^7.5.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,6 +22,22 @@ declare module 'eslint-plugin-react' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'eslint-plugin-react/lib/rules/boolean-prop-naming' { + declare module.exports: any; +} + +declare module 'eslint-plugin-react/lib/rules/button-has-type' { + declare module.exports: any; +} + +declare module 'eslint-plugin-react/lib/rules/default-props-match-prop-types' { + declare module.exports: any; +} + +declare module 'eslint-plugin-react/lib/rules/destructuring-assignment' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/rules/display-name' { declare module.exports: any; } @@ -50,6 +66,14 @@ declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/rules/jsx-closing-tag-location' { + declare module.exports: any; +} + +declare module 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing' { declare module.exports: any; } @@ -110,6 +134,10 @@ declare module 'eslint-plugin-react/lib/rules/jsx-no-undef' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/rules/jsx-one-expression-per-line' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/rules/jsx-pascal-case' { declare module.exports: any; } @@ -138,6 +166,10 @@ declare module 'eslint-plugin-react/lib/rules/jsx-wrap-multilines' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/rules/no-access-state-in-setstate' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/rules/no-array-index-key' { declare module.exports: any; } @@ -146,10 +178,6 @@ declare module 'eslint-plugin-react/lib/rules/no-children-prop' { declare module.exports: any; } -declare module 'eslint-plugin-react/lib/rules/no-comment-textnodes' { - declare module.exports: any; -} - declare module 'eslint-plugin-react/lib/rules/no-danger-with-children' { declare module.exports: any; } @@ -186,6 +214,10 @@ declare module 'eslint-plugin-react/lib/rules/no-multi-comp' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/rules/no-redundant-should-component-update' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/rules/no-render-return-value' { declare module.exports: any; } @@ -198,6 +230,10 @@ declare module 'eslint-plugin-react/lib/rules/no-string-refs' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/rules/no-typos' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities' { declare module.exports: any; } @@ -210,6 +246,14 @@ declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/rules/no-unused-state' { + declare module.exports: any; +} + +declare module 'eslint-plugin-react/lib/rules/no-will-update-set-state' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/rules/prefer-es6-class' { declare module.exports: any; } @@ -230,10 +274,6 @@ declare module 'eslint-plugin-react/lib/rules/require-default-props' { declare module.exports: any; } -declare module 'eslint-plugin-react/lib/rules/require-extension' { - declare module.exports: any; -} - declare module 'eslint-plugin-react/lib/rules/require-optimization' { declare module.exports: any; } @@ -262,11 +302,11 @@ declare module 'eslint-plugin-react/lib/rules/void-dom-elements-no-children' { declare module.exports: any; } -declare module 'eslint-plugin-react/lib/rules/wrap-multilines' { +declare module 'eslint-plugin-react/lib/util/annotations' { declare module.exports: any; } -declare module 'eslint-plugin-react/lib/util/annotations' { +declare module 'eslint-plugin-react/lib/util/ast' { declare module.exports: any; } @@ -278,10 +318,18 @@ declare module 'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/util/makeNoMethodSetStateRule' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/util/pragma' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/util/props' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/util/variable' { declare module.exports: any; } @@ -297,6 +345,18 @@ declare module 'eslint-plugin-react/index' { declare module 'eslint-plugin-react/index.js' { declare module.exports: $Exports<'eslint-plugin-react'>; } +declare module 'eslint-plugin-react/lib/rules/boolean-prop-naming.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/boolean-prop-naming'>; +} +declare module 'eslint-plugin-react/lib/rules/button-has-type.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/button-has-type'>; +} +declare module 'eslint-plugin-react/lib/rules/default-props-match-prop-types.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/default-props-match-prop-types'>; +} +declare module 'eslint-plugin-react/lib/rules/destructuring-assignment.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/destructuring-assignment'>; +} declare module 'eslint-plugin-react/lib/rules/display-name.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/display-name'>; } @@ -318,6 +378,12 @@ declare module 'eslint-plugin-react/lib/rules/jsx-boolean-value.js' { declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-closing-bracket-location'>; } +declare module 'eslint-plugin-react/lib/rules/jsx-closing-tag-location.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-closing-tag-location'>; +} +declare module 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-brace-presence'>; +} declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-spacing'>; } @@ -363,6 +429,9 @@ declare module 'eslint-plugin-react/lib/rules/jsx-no-target-blank.js' { declare module 'eslint-plugin-react/lib/rules/jsx-no-undef.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-undef'>; } +declare module 'eslint-plugin-react/lib/rules/jsx-one-expression-per-line.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-one-expression-per-line'>; +} declare module 'eslint-plugin-react/lib/rules/jsx-pascal-case.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-pascal-case'>; } @@ -384,15 +453,15 @@ declare module 'eslint-plugin-react/lib/rules/jsx-uses-vars.js' { declare module 'eslint-plugin-react/lib/rules/jsx-wrap-multilines.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-wrap-multilines'>; } +declare module 'eslint-plugin-react/lib/rules/no-access-state-in-setstate.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-access-state-in-setstate'>; +} declare module 'eslint-plugin-react/lib/rules/no-array-index-key.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-array-index-key'>; } declare module 'eslint-plugin-react/lib/rules/no-children-prop.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-children-prop'>; } -declare module 'eslint-plugin-react/lib/rules/no-comment-textnodes.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-comment-textnodes'>; -} declare module 'eslint-plugin-react/lib/rules/no-danger-with-children.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-danger-with-children'>; } @@ -420,6 +489,9 @@ declare module 'eslint-plugin-react/lib/rules/no-is-mounted.js' { declare module 'eslint-plugin-react/lib/rules/no-multi-comp.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-multi-comp'>; } +declare module 'eslint-plugin-react/lib/rules/no-redundant-should-component-update.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-redundant-should-component-update'>; +} declare module 'eslint-plugin-react/lib/rules/no-render-return-value.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-render-return-value'>; } @@ -429,6 +501,9 @@ declare module 'eslint-plugin-react/lib/rules/no-set-state.js' { declare module 'eslint-plugin-react/lib/rules/no-string-refs.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-string-refs'>; } +declare module 'eslint-plugin-react/lib/rules/no-typos.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-typos'>; +} declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unescaped-entities'>; } @@ -438,6 +513,12 @@ declare module 'eslint-plugin-react/lib/rules/no-unknown-property.js' { declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unused-prop-types'>; } +declare module 'eslint-plugin-react/lib/rules/no-unused-state.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unused-state'>; +} +declare module 'eslint-plugin-react/lib/rules/no-will-update-set-state.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-will-update-set-state'>; +} declare module 'eslint-plugin-react/lib/rules/prefer-es6-class.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prefer-es6-class'>; } @@ -453,9 +534,6 @@ declare module 'eslint-plugin-react/lib/rules/react-in-jsx-scope.js' { declare module 'eslint-plugin-react/lib/rules/require-default-props.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-default-props'>; } -declare module 'eslint-plugin-react/lib/rules/require-extension.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-extension'>; -} declare module 'eslint-plugin-react/lib/rules/require-optimization.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-optimization'>; } @@ -477,21 +555,27 @@ declare module 'eslint-plugin-react/lib/rules/style-prop-object.js' { declare module 'eslint-plugin-react/lib/rules/void-dom-elements-no-children.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/void-dom-elements-no-children'>; } -declare module 'eslint-plugin-react/lib/rules/wrap-multilines.js' { - declare module.exports: $Exports<'eslint-plugin-react/lib/rules/wrap-multilines'>; -} declare module 'eslint-plugin-react/lib/util/annotations.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/util/annotations'>; } +declare module 'eslint-plugin-react/lib/util/ast.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/util/ast'>; +} declare module 'eslint-plugin-react/lib/util/Components.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/util/Components'>; } declare module 'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket'>; } +declare module 'eslint-plugin-react/lib/util/makeNoMethodSetStateRule.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/util/makeNoMethodSetStateRule'>; +} declare module 'eslint-plugin-react/lib/util/pragma.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/util/pragma'>; } +declare module 'eslint-plugin-react/lib/util/props.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/util/props'>; +} declare module 'eslint-plugin-react/lib/util/variable.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/util/variable'>; } diff --git a/flow-typed/npm/eslint_vx.x.x.js b/flow-typed/npm/eslint_vx.x.x.js index 9e1f229a..e4efac67 100644 --- a/flow-typed/npm/eslint_vx.x.x.js +++ b/flow-typed/npm/eslint_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: dd3494d8356296df35d657fd358968c5 -// flow-typed version: <>/eslint_v^3.19.0/flow_v0.49.1 +// flow-typed signature: 22b9d866ff5972ab23317d268ccb3809 +// flow-typed version: <>/eslint_v^4.14.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -26,7 +26,15 @@ declare module 'eslint/bin/eslint' { declare module.exports: any; } -declare module 'eslint/conf/cli-options' { +declare module 'eslint/conf/config-schema' { + declare module.exports: any; +} + +declare module 'eslint/conf/default-cli-options' { + declare module.exports: any; +} + +declare module 'eslint/conf/default-config-options' { declare module.exports: any; } @@ -94,6 +102,10 @@ declare module 'eslint/lib/config/autoconfig' { declare module.exports: any; } +declare module 'eslint/lib/config/config-cache' { + declare module.exports: any; +} + declare module 'eslint/lib/config/config-file' { declare module.exports: any; } @@ -122,10 +134,6 @@ declare module 'eslint/lib/config/plugins' { declare module.exports: any; } -declare module 'eslint/lib/eslint' { - declare module.exports: any; -} - declare module 'eslint/lib/file-finder' { declare module.exports: any; } @@ -182,11 +190,7 @@ declare module 'eslint/lib/ignored-paths' { declare module.exports: any; } -declare module 'eslint/lib/internal-rules/internal-consistent-docs-description' { - declare module.exports: any; -} - -declare module 'eslint/lib/internal-rules/internal-no-invalid-meta' { +declare module 'eslint/lib/linter' { declare module.exports: any; } @@ -202,7 +206,7 @@ declare module 'eslint/lib/options' { declare module.exports: any; } -declare module 'eslint/lib/rule-context' { +declare module 'eslint/lib/report-translator' { declare module.exports: any; } @@ -214,6 +218,10 @@ declare module 'eslint/lib/rules/accessor-pairs' { declare module.exports: any; } +declare module 'eslint/lib/rules/array-bracket-newline' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/array-bracket-spacing' { declare module.exports: any; } @@ -222,6 +230,10 @@ declare module 'eslint/lib/rules/array-callback-return' { declare module.exports: any; } +declare module 'eslint/lib/rules/array-element-newline' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/arrow-body-style' { declare module.exports: any; } @@ -318,6 +330,10 @@ declare module 'eslint/lib/rules/eqeqeq' { declare module.exports: any; } +declare module 'eslint/lib/rules/for-direction' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/func-call-spacing' { declare module.exports: any; } @@ -334,10 +350,18 @@ declare module 'eslint/lib/rules/func-style' { declare module.exports: any; } +declare module 'eslint/lib/rules/function-paren-newline' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/generator-star-spacing' { declare module.exports: any; } +declare module 'eslint/lib/rules/getter-return' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/global-require' { declare module.exports: any; } @@ -362,6 +386,14 @@ declare module 'eslint/lib/rules/id-match' { declare module.exports: any; } +declare module 'eslint/lib/rules/implicit-arrow-linebreak' { + declare module.exports: any; +} + +declare module 'eslint/lib/rules/indent-legacy' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/indent' { declare module.exports: any; } @@ -398,6 +430,10 @@ declare module 'eslint/lib/rules/lines-around-directive' { declare module.exports: any; } +declare module 'eslint/lib/rules/lines-between-class-members' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/max-depth' { declare module.exports: any; } @@ -426,6 +462,10 @@ declare module 'eslint/lib/rules/max-statements' { declare module.exports: any; } +declare module 'eslint/lib/rules/multiline-comment-style' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/multiline-ternary' { declare module.exports: any; } @@ -466,6 +506,10 @@ declare module 'eslint/lib/rules/no-bitwise' { declare module.exports: any; } +declare module 'eslint/lib/rules/no-buffer-constructor' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/no-caller' { declare module.exports: any; } @@ -1026,6 +1070,10 @@ declare module 'eslint/lib/rules/padded-blocks' { declare module.exports: any; } +declare module 'eslint/lib/rules/padding-line-between-statements' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/prefer-arrow-callback' { declare module.exports: any; } @@ -1094,6 +1142,10 @@ declare module 'eslint/lib/rules/semi-spacing' { declare module.exports: any; } +declare module 'eslint/lib/rules/semi-style' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/semi' { declare module.exports: any; } @@ -1138,6 +1190,10 @@ declare module 'eslint/lib/rules/strict' { declare module.exports: any; } +declare module 'eslint/lib/rules/switch-colon-spacing' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/symbol-description' { declare module.exports: any; } @@ -1186,10 +1242,6 @@ declare module 'eslint/lib/rules/yoda' { declare module.exports: any; } -declare module 'eslint/lib/testers/event-generator-tester' { - declare module.exports: any; -} - declare module 'eslint/lib/testers/rule-tester' { declare module.exports: any; } @@ -1250,7 +1302,11 @@ declare module 'eslint/lib/token-store/utils' { declare module.exports: any; } -declare module 'eslint/lib/util/comment-event-generator' { +declare module 'eslint/lib/util/ajv' { + declare module.exports: any; +} + +declare module 'eslint/lib/util/apply-disable-directives' { declare module.exports: any; } @@ -1278,6 +1334,10 @@ declare module 'eslint/lib/util/module-resolver' { declare module.exports: any; } +declare module 'eslint/lib/util/naming' { + declare module.exports: any; +} + declare module 'eslint/lib/util/node-event-generator' { declare module.exports: any; } @@ -1298,6 +1358,10 @@ declare module 'eslint/lib/util/rule-fixer' { declare module.exports: any; } +declare module 'eslint/lib/util/safe-emitter' { + declare module.exports: any; +} + declare module 'eslint/lib/util/source-code-fixer' { declare module.exports: any; } @@ -1322,8 +1386,14 @@ declare module 'eslint/lib/util/xml-escape' { declare module 'eslint/bin/eslint.js' { declare module.exports: $Exports<'eslint/bin/eslint'>; } -declare module 'eslint/conf/cli-options.js' { - declare module.exports: $Exports<'eslint/conf/cli-options'>; +declare module 'eslint/conf/config-schema.js' { + declare module.exports: $Exports<'eslint/conf/config-schema'>; +} +declare module 'eslint/conf/default-cli-options.js' { + declare module.exports: $Exports<'eslint/conf/default-cli-options'>; +} +declare module 'eslint/conf/default-config-options.js' { + declare module.exports: $Exports<'eslint/conf/default-config-options'>; } declare module 'eslint/conf/environments.js' { declare module.exports: $Exports<'eslint/conf/environments'>; @@ -1373,6 +1443,9 @@ declare module 'eslint/lib/config.js' { declare module 'eslint/lib/config/autoconfig.js' { declare module.exports: $Exports<'eslint/lib/config/autoconfig'>; } +declare module 'eslint/lib/config/config-cache.js' { + declare module.exports: $Exports<'eslint/lib/config/config-cache'>; +} declare module 'eslint/lib/config/config-file.js' { declare module.exports: $Exports<'eslint/lib/config/config-file'>; } @@ -1394,9 +1467,6 @@ declare module 'eslint/lib/config/environments.js' { declare module 'eslint/lib/config/plugins.js' { declare module.exports: $Exports<'eslint/lib/config/plugins'>; } -declare module 'eslint/lib/eslint.js' { - declare module.exports: $Exports<'eslint/lib/eslint'>; -} declare module 'eslint/lib/file-finder.js' { declare module.exports: $Exports<'eslint/lib/file-finder'>; } @@ -1439,11 +1509,8 @@ declare module 'eslint/lib/formatters/visualstudio.js' { declare module 'eslint/lib/ignored-paths.js' { declare module.exports: $Exports<'eslint/lib/ignored-paths'>; } -declare module 'eslint/lib/internal-rules/internal-consistent-docs-description.js' { - declare module.exports: $Exports<'eslint/lib/internal-rules/internal-consistent-docs-description'>; -} -declare module 'eslint/lib/internal-rules/internal-no-invalid-meta.js' { - declare module.exports: $Exports<'eslint/lib/internal-rules/internal-no-invalid-meta'>; +declare module 'eslint/lib/linter.js' { + declare module.exports: $Exports<'eslint/lib/linter'>; } declare module 'eslint/lib/load-rules.js' { declare module.exports: $Exports<'eslint/lib/load-rules'>; @@ -1454,8 +1521,8 @@ declare module 'eslint/lib/logging.js' { declare module 'eslint/lib/options.js' { declare module.exports: $Exports<'eslint/lib/options'>; } -declare module 'eslint/lib/rule-context.js' { - declare module.exports: $Exports<'eslint/lib/rule-context'>; +declare module 'eslint/lib/report-translator.js' { + declare module.exports: $Exports<'eslint/lib/report-translator'>; } declare module 'eslint/lib/rules.js' { declare module.exports: $Exports<'eslint/lib/rules'>; @@ -1463,12 +1530,18 @@ declare module 'eslint/lib/rules.js' { declare module 'eslint/lib/rules/accessor-pairs.js' { declare module.exports: $Exports<'eslint/lib/rules/accessor-pairs'>; } +declare module 'eslint/lib/rules/array-bracket-newline.js' { + declare module.exports: $Exports<'eslint/lib/rules/array-bracket-newline'>; +} declare module 'eslint/lib/rules/array-bracket-spacing.js' { declare module.exports: $Exports<'eslint/lib/rules/array-bracket-spacing'>; } declare module 'eslint/lib/rules/array-callback-return.js' { declare module.exports: $Exports<'eslint/lib/rules/array-callback-return'>; } +declare module 'eslint/lib/rules/array-element-newline.js' { + declare module.exports: $Exports<'eslint/lib/rules/array-element-newline'>; +} declare module 'eslint/lib/rules/arrow-body-style.js' { declare module.exports: $Exports<'eslint/lib/rules/arrow-body-style'>; } @@ -1541,6 +1614,9 @@ declare module 'eslint/lib/rules/eol-last.js' { declare module 'eslint/lib/rules/eqeqeq.js' { declare module.exports: $Exports<'eslint/lib/rules/eqeqeq'>; } +declare module 'eslint/lib/rules/for-direction.js' { + declare module.exports: $Exports<'eslint/lib/rules/for-direction'>; +} declare module 'eslint/lib/rules/func-call-spacing.js' { declare module.exports: $Exports<'eslint/lib/rules/func-call-spacing'>; } @@ -1553,9 +1629,15 @@ declare module 'eslint/lib/rules/func-names.js' { declare module 'eslint/lib/rules/func-style.js' { declare module.exports: $Exports<'eslint/lib/rules/func-style'>; } +declare module 'eslint/lib/rules/function-paren-newline.js' { + declare module.exports: $Exports<'eslint/lib/rules/function-paren-newline'>; +} declare module 'eslint/lib/rules/generator-star-spacing.js' { declare module.exports: $Exports<'eslint/lib/rules/generator-star-spacing'>; } +declare module 'eslint/lib/rules/getter-return.js' { + declare module.exports: $Exports<'eslint/lib/rules/getter-return'>; +} declare module 'eslint/lib/rules/global-require.js' { declare module.exports: $Exports<'eslint/lib/rules/global-require'>; } @@ -1574,6 +1656,12 @@ declare module 'eslint/lib/rules/id-length.js' { declare module 'eslint/lib/rules/id-match.js' { declare module.exports: $Exports<'eslint/lib/rules/id-match'>; } +declare module 'eslint/lib/rules/implicit-arrow-linebreak.js' { + declare module.exports: $Exports<'eslint/lib/rules/implicit-arrow-linebreak'>; +} +declare module 'eslint/lib/rules/indent-legacy.js' { + declare module.exports: $Exports<'eslint/lib/rules/indent-legacy'>; +} declare module 'eslint/lib/rules/indent.js' { declare module.exports: $Exports<'eslint/lib/rules/indent'>; } @@ -1601,6 +1689,9 @@ declare module 'eslint/lib/rules/lines-around-comment.js' { declare module 'eslint/lib/rules/lines-around-directive.js' { declare module.exports: $Exports<'eslint/lib/rules/lines-around-directive'>; } +declare module 'eslint/lib/rules/lines-between-class-members.js' { + declare module.exports: $Exports<'eslint/lib/rules/lines-between-class-members'>; +} declare module 'eslint/lib/rules/max-depth.js' { declare module.exports: $Exports<'eslint/lib/rules/max-depth'>; } @@ -1622,6 +1713,9 @@ declare module 'eslint/lib/rules/max-statements-per-line.js' { declare module 'eslint/lib/rules/max-statements.js' { declare module.exports: $Exports<'eslint/lib/rules/max-statements'>; } +declare module 'eslint/lib/rules/multiline-comment-style.js' { + declare module.exports: $Exports<'eslint/lib/rules/multiline-comment-style'>; +} declare module 'eslint/lib/rules/multiline-ternary.js' { declare module.exports: $Exports<'eslint/lib/rules/multiline-ternary'>; } @@ -1652,6 +1746,9 @@ declare module 'eslint/lib/rules/no-await-in-loop.js' { declare module 'eslint/lib/rules/no-bitwise.js' { declare module.exports: $Exports<'eslint/lib/rules/no-bitwise'>; } +declare module 'eslint/lib/rules/no-buffer-constructor.js' { + declare module.exports: $Exports<'eslint/lib/rules/no-buffer-constructor'>; +} declare module 'eslint/lib/rules/no-caller.js' { declare module.exports: $Exports<'eslint/lib/rules/no-caller'>; } @@ -2072,6 +2169,9 @@ declare module 'eslint/lib/rules/operator-linebreak.js' { declare module 'eslint/lib/rules/padded-blocks.js' { declare module.exports: $Exports<'eslint/lib/rules/padded-blocks'>; } +declare module 'eslint/lib/rules/padding-line-between-statements.js' { + declare module.exports: $Exports<'eslint/lib/rules/padding-line-between-statements'>; +} declare module 'eslint/lib/rules/prefer-arrow-callback.js' { declare module.exports: $Exports<'eslint/lib/rules/prefer-arrow-callback'>; } @@ -2123,6 +2223,9 @@ declare module 'eslint/lib/rules/rest-spread-spacing.js' { declare module 'eslint/lib/rules/semi-spacing.js' { declare module.exports: $Exports<'eslint/lib/rules/semi-spacing'>; } +declare module 'eslint/lib/rules/semi-style.js' { + declare module.exports: $Exports<'eslint/lib/rules/semi-style'>; +} declare module 'eslint/lib/rules/semi.js' { declare module.exports: $Exports<'eslint/lib/rules/semi'>; } @@ -2156,6 +2259,9 @@ declare module 'eslint/lib/rules/spaced-comment.js' { declare module 'eslint/lib/rules/strict.js' { declare module.exports: $Exports<'eslint/lib/rules/strict'>; } +declare module 'eslint/lib/rules/switch-colon-spacing.js' { + declare module.exports: $Exports<'eslint/lib/rules/switch-colon-spacing'>; +} declare module 'eslint/lib/rules/symbol-description.js' { declare module.exports: $Exports<'eslint/lib/rules/symbol-description'>; } @@ -2192,9 +2298,6 @@ declare module 'eslint/lib/rules/yield-star-spacing.js' { declare module 'eslint/lib/rules/yoda.js' { declare module.exports: $Exports<'eslint/lib/rules/yoda'>; } -declare module 'eslint/lib/testers/event-generator-tester.js' { - declare module.exports: $Exports<'eslint/lib/testers/event-generator-tester'>; -} declare module 'eslint/lib/testers/rule-tester.js' { declare module.exports: $Exports<'eslint/lib/testers/rule-tester'>; } @@ -2240,8 +2343,11 @@ declare module 'eslint/lib/token-store/skip-cursor.js' { declare module 'eslint/lib/token-store/utils.js' { declare module.exports: $Exports<'eslint/lib/token-store/utils'>; } -declare module 'eslint/lib/util/comment-event-generator.js' { - declare module.exports: $Exports<'eslint/lib/util/comment-event-generator'>; +declare module 'eslint/lib/util/ajv.js' { + declare module.exports: $Exports<'eslint/lib/util/ajv'>; +} +declare module 'eslint/lib/util/apply-disable-directives.js' { + declare module.exports: $Exports<'eslint/lib/util/apply-disable-directives'>; } declare module 'eslint/lib/util/fix-tracker.js' { declare module.exports: $Exports<'eslint/lib/util/fix-tracker'>; @@ -2261,6 +2367,9 @@ declare module 'eslint/lib/util/keywords.js' { declare module 'eslint/lib/util/module-resolver.js' { declare module.exports: $Exports<'eslint/lib/util/module-resolver'>; } +declare module 'eslint/lib/util/naming.js' { + declare module.exports: $Exports<'eslint/lib/util/naming'>; +} declare module 'eslint/lib/util/node-event-generator.js' { declare module.exports: $Exports<'eslint/lib/util/node-event-generator'>; } @@ -2276,6 +2385,9 @@ declare module 'eslint/lib/util/patterns/letters.js' { declare module 'eslint/lib/util/rule-fixer.js' { declare module.exports: $Exports<'eslint/lib/util/rule-fixer'>; } +declare module 'eslint/lib/util/safe-emitter.js' { + declare module.exports: $Exports<'eslint/lib/util/safe-emitter'>; +} declare module 'eslint/lib/util/source-code-fixer.js' { declare module.exports: $Exports<'eslint/lib/util/source-code-fixer'>; } diff --git a/flow-typed/npm/exports-loader_vx.x.x.js b/flow-typed/npm/exports-loader_vx.x.x.js index 8cdc04fd..d79c166a 100644 --- a/flow-typed/npm/exports-loader_vx.x.x.js +++ b/flow-typed/npm/exports-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ab82790a40fe2c8c24dc45916a8ef86d -// flow-typed version: <>/exports-loader_v0.6.3/flow_v0.49.1 +// flow-typed signature: 98f43e76dc0586e0479c5fc344008539 +// flow-typed version: <>/exports-loader_v^0.6.4/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js b/flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js index df9353f5..a3ab41e1 100644 --- a/flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js +++ b/flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: c88c3c46cc897461015c0a4f444f830b -// flow-typed version: <>/extract-text-webpack-plugin_v1.0.1/flow_v0.49.1 +// flow-typed signature: 13580009774392276ae66bdb72190d37 +// flow-typed version: <>/extract-text-webpack-plugin_v^3.0.2/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,31 +22,53 @@ declare module 'extract-text-webpack-plugin' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'extract-text-webpack-plugin/ExtractedModule' { +declare module 'extract-text-webpack-plugin/dist/cjs' { declare module.exports: any; } -declare module 'extract-text-webpack-plugin/loader' { +declare module 'extract-text-webpack-plugin/dist/index' { declare module.exports: any; } -declare module 'extract-text-webpack-plugin/OrderUndefinedError' { +declare module 'extract-text-webpack-plugin/dist/lib/ExtractedModule' { + declare module.exports: any; +} + +declare module 'extract-text-webpack-plugin/dist/lib/ExtractTextPluginCompilation' { + declare module.exports: any; +} + +declare module 'extract-text-webpack-plugin/dist/lib/helpers' { + declare module.exports: any; +} + +declare module 'extract-text-webpack-plugin/dist/lib/OrderUndefinedError' { + declare module.exports: any; +} + +declare module 'extract-text-webpack-plugin/dist/loader' { declare module.exports: any; } // Filename aliases -declare module 'extract-text-webpack-plugin/ExtractedModule.js' { - declare module.exports: $Exports<'extract-text-webpack-plugin/ExtractedModule'>; +declare module 'extract-text-webpack-plugin/dist/cjs.js' { + declare module.exports: $Exports<'extract-text-webpack-plugin/dist/cjs'>; } -declare module 'extract-text-webpack-plugin/index' { - declare module.exports: $Exports<'extract-text-webpack-plugin'>; +declare module 'extract-text-webpack-plugin/dist/index.js' { + declare module.exports: $Exports<'extract-text-webpack-plugin/dist/index'>; } -declare module 'extract-text-webpack-plugin/index.js' { - declare module.exports: $Exports<'extract-text-webpack-plugin'>; +declare module 'extract-text-webpack-plugin/dist/lib/ExtractedModule.js' { + declare module.exports: $Exports<'extract-text-webpack-plugin/dist/lib/ExtractedModule'>; } -declare module 'extract-text-webpack-plugin/loader.js' { - declare module.exports: $Exports<'extract-text-webpack-plugin/loader'>; +declare module 'extract-text-webpack-plugin/dist/lib/ExtractTextPluginCompilation.js' { + declare module.exports: $Exports<'extract-text-webpack-plugin/dist/lib/ExtractTextPluginCompilation'>; } -declare module 'extract-text-webpack-plugin/OrderUndefinedError.js' { - declare module.exports: $Exports<'extract-text-webpack-plugin/OrderUndefinedError'>; +declare module 'extract-text-webpack-plugin/dist/lib/helpers.js' { + declare module.exports: $Exports<'extract-text-webpack-plugin/dist/lib/helpers'>; +} +declare module 'extract-text-webpack-plugin/dist/lib/OrderUndefinedError.js' { + declare module.exports: $Exports<'extract-text-webpack-plugin/dist/lib/OrderUndefinedError'>; +} +declare module 'extract-text-webpack-plugin/dist/loader.js' { + declare module.exports: $Exports<'extract-text-webpack-plugin/dist/loader'>; } diff --git a/flow-typed/npm/fbemitter_vx.x.x.js b/flow-typed/npm/fbemitter_vx.x.x.js new file mode 100644 index 00000000..1f3a6139 --- /dev/null +++ b/flow-typed/npm/fbemitter_vx.x.x.js @@ -0,0 +1,59 @@ +// flow-typed signature: 2a564681f2da79d9b211e58ae8d6d366 +// flow-typed version: <>/fbemitter_v^2.1.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'fbemitter' + * + * 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 'fbemitter' { + 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 'fbemitter/lib/BaseEventEmitter' { + declare module.exports: any; +} + +declare module 'fbemitter/lib/EmitterSubscription' { + declare module.exports: any; +} + +declare module 'fbemitter/lib/EventSubscription' { + declare module.exports: any; +} + +declare module 'fbemitter/lib/EventSubscriptionVendor' { + declare module.exports: any; +} + +// Filename aliases +declare module 'fbemitter/index' { + declare module.exports: $Exports<'fbemitter'>; +} +declare module 'fbemitter/index.js' { + declare module.exports: $Exports<'fbemitter'>; +} +declare module 'fbemitter/lib/BaseEventEmitter.js' { + declare module.exports: $Exports<'fbemitter/lib/BaseEventEmitter'>; +} +declare module 'fbemitter/lib/EmitterSubscription.js' { + declare module.exports: $Exports<'fbemitter/lib/EmitterSubscription'>; +} +declare module 'fbemitter/lib/EventSubscription.js' { + declare module.exports: $Exports<'fbemitter/lib/EventSubscription'>; +} +declare module 'fbemitter/lib/EventSubscriptionVendor.js' { + declare module.exports: $Exports<'fbemitter/lib/EventSubscriptionVendor'>; +} diff --git a/flow-typed/npm/fetch-test-server_vx.x.x.js b/flow-typed/npm/fetch-test-server_vx.x.x.js index 091cf568..1038b9bf 100644 --- a/flow-typed/npm/fetch-test-server_vx.x.x.js +++ b/flow-typed/npm/fetch-test-server_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e8c9fe12336632c955c8a9b6a3e24c8c -// flow-typed version: <>/fetch-test-server_v^1.1.0/flow_v0.49.1 +// flow-typed signature: 81603ff9aa21930a190f0d9adb5e5236 +// flow-typed version: <>/fetch-test-server_v^1.1.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/file-loader_vx.x.x.js b/flow-typed/npm/file-loader_vx.x.x.js index 0af7bfc5..0e147bca 100644 --- a/flow-typed/npm/file-loader_vx.x.x.js +++ b/flow-typed/npm/file-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 74e51c3fbd9c4fd15c9dc6d74a6110d5 -// flow-typed version: <>/file-loader_v0.9.0/flow_v0.49.1 +// flow-typed signature: e8f66c6ccde681e2762b1b90d91f79e0 +// flow-typed version: <>/file-loader_v^1.1.6/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,12 +22,18 @@ declare module 'file-loader' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'file-loader/dist/cjs' { + declare module.exports: any; +} +declare module 'file-loader/dist/index' { + declare module.exports: any; +} // Filename aliases -declare module 'file-loader/index' { - declare module.exports: $Exports<'file-loader'>; +declare module 'file-loader/dist/cjs.js' { + declare module.exports: $Exports<'file-loader/dist/cjs'>; } -declare module 'file-loader/index.js' { - declare module.exports: $Exports<'file-loader'>; +declare module 'file-loader/dist/index.js' { + declare module.exports: $Exports<'file-loader/dist/index'>; } diff --git a/flow-typed/npm/flow-typed_vx.x.x.js b/flow-typed/npm/flow-typed_vx.x.x.js index 8c6a3311..f31f7f4c 100644 --- a/flow-typed/npm/flow-typed_vx.x.x.js +++ b/flow-typed/npm/flow-typed_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 0c6919ea71e8cbcf5d1f6bc3fcc77115 -// flow-typed version: <>/flow-typed_v^2.1.2/flow_v0.49.1 +// flow-typed signature: 8df8e9fddb022eef212e7a5440fa38d4 +// flow-typed version: <>/flow-typed_v^2.4.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/fs-extra_vx.x.x.js b/flow-typed/npm/fs-extra_vx.x.x.js new file mode 100644 index 00000000..080b84b8 --- /dev/null +++ b/flow-typed/npm/fs-extra_vx.x.x.js @@ -0,0 +1,249 @@ +// flow-typed signature: 7d7ff1f6fcc7c443fb095baeca646021 +// flow-typed version: <>/fs-extra_v^4.0.2/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'fs-extra' + * + * 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 'fs-extra' { + 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 'fs-extra/lib/copy-sync/copy-file-sync' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/copy-sync/copy-sync' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/copy-sync/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/copy/copy' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/copy/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/copy/ncp' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/empty/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/ensure/file' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/ensure/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/ensure/link' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/ensure/symlink-paths' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/ensure/symlink-type' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/ensure/symlink' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/fs/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/json/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/json/jsonfile' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/json/output-json-sync' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/json/output-json' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/mkdirs/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/mkdirs/mkdirs-sync' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/mkdirs/mkdirs' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/mkdirs/win32' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/move-sync/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/move/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/output/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/path-exists/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/remove/index' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/remove/rimraf' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/util/assign' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/util/buffer' { + declare module.exports: any; +} + +declare module 'fs-extra/lib/util/utimes' { + declare module.exports: any; +} + +// Filename aliases +declare module 'fs-extra/lib/copy-sync/copy-file-sync.js' { + declare module.exports: $Exports<'fs-extra/lib/copy-sync/copy-file-sync'>; +} +declare module 'fs-extra/lib/copy-sync/copy-sync.js' { + declare module.exports: $Exports<'fs-extra/lib/copy-sync/copy-sync'>; +} +declare module 'fs-extra/lib/copy-sync/index.js' { + declare module.exports: $Exports<'fs-extra/lib/copy-sync/index'>; +} +declare module 'fs-extra/lib/copy/copy.js' { + declare module.exports: $Exports<'fs-extra/lib/copy/copy'>; +} +declare module 'fs-extra/lib/copy/index.js' { + declare module.exports: $Exports<'fs-extra/lib/copy/index'>; +} +declare module 'fs-extra/lib/copy/ncp.js' { + declare module.exports: $Exports<'fs-extra/lib/copy/ncp'>; +} +declare module 'fs-extra/lib/empty/index.js' { + declare module.exports: $Exports<'fs-extra/lib/empty/index'>; +} +declare module 'fs-extra/lib/ensure/file.js' { + declare module.exports: $Exports<'fs-extra/lib/ensure/file'>; +} +declare module 'fs-extra/lib/ensure/index.js' { + declare module.exports: $Exports<'fs-extra/lib/ensure/index'>; +} +declare module 'fs-extra/lib/ensure/link.js' { + declare module.exports: $Exports<'fs-extra/lib/ensure/link'>; +} +declare module 'fs-extra/lib/ensure/symlink-paths.js' { + declare module.exports: $Exports<'fs-extra/lib/ensure/symlink-paths'>; +} +declare module 'fs-extra/lib/ensure/symlink-type.js' { + declare module.exports: $Exports<'fs-extra/lib/ensure/symlink-type'>; +} +declare module 'fs-extra/lib/ensure/symlink.js' { + declare module.exports: $Exports<'fs-extra/lib/ensure/symlink'>; +} +declare module 'fs-extra/lib/fs/index.js' { + declare module.exports: $Exports<'fs-extra/lib/fs/index'>; +} +declare module 'fs-extra/lib/index.js' { + declare module.exports: $Exports<'fs-extra/lib/index'>; +} +declare module 'fs-extra/lib/json/index.js' { + declare module.exports: $Exports<'fs-extra/lib/json/index'>; +} +declare module 'fs-extra/lib/json/jsonfile.js' { + declare module.exports: $Exports<'fs-extra/lib/json/jsonfile'>; +} +declare module 'fs-extra/lib/json/output-json-sync.js' { + declare module.exports: $Exports<'fs-extra/lib/json/output-json-sync'>; +} +declare module 'fs-extra/lib/json/output-json.js' { + declare module.exports: $Exports<'fs-extra/lib/json/output-json'>; +} +declare module 'fs-extra/lib/mkdirs/index.js' { + declare module.exports: $Exports<'fs-extra/lib/mkdirs/index'>; +} +declare module 'fs-extra/lib/mkdirs/mkdirs-sync.js' { + declare module.exports: $Exports<'fs-extra/lib/mkdirs/mkdirs-sync'>; +} +declare module 'fs-extra/lib/mkdirs/mkdirs.js' { + declare module.exports: $Exports<'fs-extra/lib/mkdirs/mkdirs'>; +} +declare module 'fs-extra/lib/mkdirs/win32.js' { + declare module.exports: $Exports<'fs-extra/lib/mkdirs/win32'>; +} +declare module 'fs-extra/lib/move-sync/index.js' { + declare module.exports: $Exports<'fs-extra/lib/move-sync/index'>; +} +declare module 'fs-extra/lib/move/index.js' { + declare module.exports: $Exports<'fs-extra/lib/move/index'>; +} +declare module 'fs-extra/lib/output/index.js' { + declare module.exports: $Exports<'fs-extra/lib/output/index'>; +} +declare module 'fs-extra/lib/path-exists/index.js' { + declare module.exports: $Exports<'fs-extra/lib/path-exists/index'>; +} +declare module 'fs-extra/lib/remove/index.js' { + declare module.exports: $Exports<'fs-extra/lib/remove/index'>; +} +declare module 'fs-extra/lib/remove/rimraf.js' { + declare module.exports: $Exports<'fs-extra/lib/remove/rimraf'>; +} +declare module 'fs-extra/lib/util/assign.js' { + declare module.exports: $Exports<'fs-extra/lib/util/assign'>; +} +declare module 'fs-extra/lib/util/buffer.js' { + declare module.exports: $Exports<'fs-extra/lib/util/buffer'>; +} +declare module 'fs-extra/lib/util/utimes.js' { + declare module.exports: $Exports<'fs-extra/lib/util/utimes'>; +} diff --git a/flow-typed/npm/history_vx.x.x.js b/flow-typed/npm/history_vx.x.x.js index f5cadd4f..5a35dddb 100644 --- a/flow-typed/npm/history_vx.x.x.js +++ b/flow-typed/npm/history_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 68b33586b43e91cd772baae451456c75 -// flow-typed version: <>/history_v3.0.0/flow_v0.49.1 +// flow-typed signature: f958869c92e9a209eaeff48fa8be11db +// flow-typed version: <>/history_v3.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/html-webpack-plugin_vx.x.x.js b/flow-typed/npm/html-webpack-plugin_vx.x.x.js index d43d2607..076d9ed6 100644 --- a/flow-typed/npm/html-webpack-plugin_vx.x.x.js +++ b/flow-typed/npm/html-webpack-plugin_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: cbb57cfea57110be418abda1de31c6a9 -// flow-typed version: <>/html-webpack-plugin_v2.17.0/flow_v0.49.1 +// flow-typed signature: a02b4a5c49f09bfee3eb3db5cf9062d7 +// flow-typed version: <>/html-webpack-plugin_v2.17.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/http-errors_v1.x.x.js b/flow-typed/npm/http-errors_v1.x.x.js index d63309bd..981638d6 100644 --- a/flow-typed/npm/http-errors_v1.x.x.js +++ b/flow-typed/npm/http-errors_v1.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b3b804f1ba0cd2d05171763e91ad594a -// flow-typed version: 94e9f7e0a4/http-errors_v1.x.x/flow_>=v0.28.x +// flow-typed signature: 573c576fe34eb3c3c65dd7a9c90a46d2 +// flow-typed version: b43dff3e0e/http-errors_v1.x.x/flow_>=v0.25.x declare module 'http-errors' { declare class SpecialHttpError extends HttpError { diff --git a/flow-typed/npm/identity-obj-proxy_vx.x.x.js b/flow-typed/npm/identity-obj-proxy_vx.x.x.js index 7a2e33a1..b8d5999b 100644 --- a/flow-typed/npm/identity-obj-proxy_vx.x.x.js +++ b/flow-typed/npm/identity-obj-proxy_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 8043184d18fa6390e682ff3f824c8e3c -// flow-typed version: <>/identity-obj-proxy_v^3.0.0/flow_v0.49.1 +// flow-typed signature: e10a8847ab761c9238273cb3bd54facf +// flow-typed version: <>/identity-obj-proxy_v^3.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/imports-loader_vx.x.x.js b/flow-typed/npm/imports-loader_vx.x.x.js index 037b66b7..dece1623 100644 --- a/flow-typed/npm/imports-loader_vx.x.x.js +++ b/flow-typed/npm/imports-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a0ebbefc4e7af8c4e06eafeee06ce538 -// flow-typed version: <>/imports-loader_v0.6.5/flow_v0.49.1 +// flow-typed signature: 66d39c39842aa41ca9ffca0951cc7a81 +// flow-typed version: <>/imports-loader_v0.6.5/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/invariant_v2.x.x.js b/flow-typed/npm/invariant_v2.x.x.js index d174a929..63221787 100644 --- a/flow-typed/npm/invariant_v2.x.x.js +++ b/flow-typed/npm/invariant_v2.x.x.js @@ -1,6 +1,6 @@ -// flow-typed signature: ff4b66f26bb16b809e4f03558817d388 -// flow-typed version: 40dabcce78/invariant_v2.x.x/flow_>=v0.40.x +// flow-typed signature: 60de437d85342dea19dcd82c5a50f88a +// flow-typed version: da30fe6876/invariant_v2.x.x/flow_>=v0.33.x declare module invariant { - declare var exports: (condition: boolean, message: string) => void; + declare module.exports: (condition: boolean, message: string) => void; } diff --git a/flow-typed/npm/isomorphic-fetch_v2.x.x.js b/flow-typed/npm/isomorphic-fetch_v2.x.x.js index ce5712ed..4692d54e 100644 --- a/flow-typed/npm/isomorphic-fetch_v2.x.x.js +++ b/flow-typed/npm/isomorphic-fetch_v2.x.x.js @@ -1,7 +1,7 @@ -// flow-typed signature: 28ad27471ba2cb831af6a1f17b7f0cf0 -// flow-typed version: f3161dc07c/isomorphic-fetch_v2.x.x/flow_>=v0.25.x +// flow-typed signature: 47370d221401bec823c43c3598266e26 +// flow-typed version: ec28077c25/isomorphic-fetch_v2.x.x/flow_>=v0.25.x declare module 'isomorphic-fetch' { - declare module.exports: (input: string | Request, init?: RequestOptions) => Promise; + declare module.exports: (input: string | Request | URL, init?: RequestOptions) => Promise; } diff --git a/flow-typed/npm/jest-cli_vx.x.x.js b/flow-typed/npm/jest-cli_vx.x.x.js index 8646d5f2..c032e550 100644 --- a/flow-typed/npm/jest-cli_vx.x.x.js +++ b/flow-typed/npm/jest-cli_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 3b9af3a3b964e60dad18b033f1820e60 -// flow-typed version: <>/jest-cli_v^20.0.0/flow_v0.49.1 +// flow-typed signature: 919b5375355510e8278463cfb50f4bff +// flow-typed version: <>/jest-cli_v22/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -30,7 +30,7 @@ declare module 'jest-cli/build/cli/args' { declare module.exports: any; } -declare module 'jest-cli/build/cli/getJest' { +declare module 'jest-cli/build/cli/get_jest' { declare module.exports: any; } @@ -38,15 +38,39 @@ declare module 'jest-cli/build/cli/index' { declare module.exports: any; } -declare module 'jest-cli/build/cli/runCLI' { - declare module.exports: any; -} - declare module 'jest-cli/build/constants' { declare module.exports: any; } -declare module 'jest-cli/build/generateEmptyCoverage' { +declare module 'jest-cli/build/failed_tests_cache' { + declare module.exports: any; +} + +declare module 'jest-cli/build/generate_empty_coverage' { + declare module.exports: any; +} + +declare module 'jest-cli/build/get_changed_files_promise' { + declare module.exports: any; +} + +declare module 'jest-cli/build/get_no_test_found_failed' { + declare module.exports: any; +} + +declare module 'jest-cli/build/get_no_test_found_message' { + declare module.exports: any; +} + +declare module 'jest-cli/build/get_no_test_found_related_to_changed_files' { + declare module.exports: any; +} + +declare module 'jest-cli/build/get_no_test_found_verbose' { + declare module.exports: any; +} + +declare module 'jest-cli/build/get_no_test_found' { declare module.exports: any; } @@ -54,47 +78,31 @@ declare module 'jest-cli/build/jest' { declare module.exports: any; } -declare module 'jest-cli/build/lib/BufferedConsole' { - declare module.exports: any; -} - declare module 'jest-cli/build/lib/colorize' { declare module.exports: any; } -declare module 'jest-cli/build/lib/createContext' { +declare module 'jest-cli/build/lib/create_context' { declare module.exports: any; } -declare module 'jest-cli/build/lib/formatTestNameByPattern' { +declare module 'jest-cli/build/lib/format_test_name_by_pattern' { declare module.exports: any; } -declare module 'jest-cli/build/lib/getMaxWorkers' { +declare module 'jest-cli/build/lib/handle_deprecation_warnings' { declare module.exports: any; } -declare module 'jest-cli/build/lib/getTestPathPattern' { +declare module 'jest-cli/build/lib/is_valid_path' { declare module.exports: any; } -declare module 'jest-cli/build/lib/handleDeprecationWarnings' { +declare module 'jest-cli/build/lib/log_debug_messages' { declare module.exports: any; } -declare module 'jest-cli/build/lib/highlight' { - declare module.exports: any; -} - -declare module 'jest-cli/build/lib/isValidPath' { - declare module.exports: any; -} - -declare module 'jest-cli/build/lib/logDebugMessages' { - declare module.exports: any; -} - -declare module 'jest-cli/build/lib/patternModeHelpers' { +declare module 'jest-cli/build/lib/pattern_mode_helpers' { declare module.exports: any; } @@ -102,59 +110,67 @@ declare module 'jest-cli/build/lib/Prompt' { declare module.exports: any; } -declare module 'jest-cli/build/lib/scrollList' { +declare module 'jest-cli/build/lib/scroll_list' { declare module.exports: any; } -declare module 'jest-cli/build/lib/terminalUtils' { +declare module 'jest-cli/build/lib/terminal_utils' { declare module.exports: any; } -declare module 'jest-cli/build/lib/updateArgv' { +declare module 'jest-cli/build/lib/update_global_config' { declare module.exports: any; } -declare module 'jest-cli/build/lib/validatePattern' { +declare module 'jest-cli/build/lib/watch_plugin_registry' { declare module.exports: any; } -declare module 'jest-cli/build/PatternPrompt' { +declare module 'jest-cli/build/pattern_prompt' { declare module.exports: any; } -declare module 'jest-cli/build/preRunMessage' { +declare module 'jest-cli/build/pluralize' { declare module.exports: any; } -declare module 'jest-cli/build/ReporterDispatcher' { +declare module 'jest-cli/build/pre_run_message' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/BaseReporter' { +declare module 'jest-cli/build/reporter_dispatcher' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/CoverageReporter' { +declare module 'jest-cli/build/reporters/base_reporter' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/CoverageWorker' { +declare module 'jest-cli/build/reporters/coverage_reporter' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/DefaultReporter' { +declare module 'jest-cli/build/reporters/coverage_worker' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/getConsoleOutput' { +declare module 'jest-cli/build/reporters/default_reporter' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/getResultHeader' { +declare module 'jest-cli/build/reporters/get_result_header' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/NotifyReporter' { +declare module 'jest-cli/build/reporters/get_snapshot_status' { + declare module.exports: any; +} + +declare module 'jest-cli/build/reporters/get_snapshot_summary' { + declare module.exports: any; +} + +declare module 'jest-cli/build/reporters/notify_reporter' { declare module.exports: any; } @@ -162,7 +178,7 @@ declare module 'jest-cli/build/reporters/Status' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/SummaryReporter' { +declare module 'jest-cli/build/reporters/summary_reporter' { declare module.exports: any; } @@ -170,43 +186,47 @@ declare module 'jest-cli/build/reporters/utils' { declare module.exports: any; } -declare module 'jest-cli/build/reporters/VerboseReporter' { +declare module 'jest-cli/build/reporters/verbose_reporter' { declare module.exports: any; } -declare module 'jest-cli/build/runJest' { +declare module 'jest-cli/build/run_jest' { declare module.exports: any; } -declare module 'jest-cli/build/runTest' { +declare module 'jest-cli/build/search_source' { declare module.exports: any; } -declare module 'jest-cli/build/SearchSource' { +declare module 'jest-cli/build/test_name_pattern_prompt' { declare module.exports: any; } -declare module 'jest-cli/build/TestNamePatternPrompt' { +declare module 'jest-cli/build/test_path_pattern_prompt' { declare module.exports: any; } -declare module 'jest-cli/build/TestPathPatternPrompt' { +declare module 'jest-cli/build/test_path_pattern_to_regexp' { declare module.exports: any; } -declare module 'jest-cli/build/TestRunner' { +declare module 'jest-cli/build/test_result_helpers' { declare module.exports: any; } -declare module 'jest-cli/build/TestSequencer' { +declare module 'jest-cli/build/test_scheduler' { declare module.exports: any; } -declare module 'jest-cli/build/TestWatcher' { +declare module 'jest-cli/build/test_sequencer' { declare module.exports: any; } -declare module 'jest-cli/build/TestWorker' { +declare module 'jest-cli/build/test_watcher' { + declare module.exports: any; +} + +declare module 'jest-cli/build/types' { declare module.exports: any; } @@ -221,140 +241,155 @@ declare module 'jest-cli/bin/jest.js' { declare module 'jest-cli/build/cli/args.js' { declare module.exports: $Exports<'jest-cli/build/cli/args'>; } -declare module 'jest-cli/build/cli/getJest.js' { - declare module.exports: $Exports<'jest-cli/build/cli/getJest'>; +declare module 'jest-cli/build/cli/get_jest.js' { + declare module.exports: $Exports<'jest-cli/build/cli/get_jest'>; } declare module 'jest-cli/build/cli/index.js' { declare module.exports: $Exports<'jest-cli/build/cli/index'>; } -declare module 'jest-cli/build/cli/runCLI.js' { - declare module.exports: $Exports<'jest-cli/build/cli/runCLI'>; -} declare module 'jest-cli/build/constants.js' { declare module.exports: $Exports<'jest-cli/build/constants'>; } -declare module 'jest-cli/build/generateEmptyCoverage.js' { - declare module.exports: $Exports<'jest-cli/build/generateEmptyCoverage'>; +declare module 'jest-cli/build/failed_tests_cache.js' { + declare module.exports: $Exports<'jest-cli/build/failed_tests_cache'>; +} +declare module 'jest-cli/build/generate_empty_coverage.js' { + declare module.exports: $Exports<'jest-cli/build/generate_empty_coverage'>; +} +declare module 'jest-cli/build/get_changed_files_promise.js' { + declare module.exports: $Exports<'jest-cli/build/get_changed_files_promise'>; +} +declare module 'jest-cli/build/get_no_test_found_failed.js' { + declare module.exports: $Exports<'jest-cli/build/get_no_test_found_failed'>; +} +declare module 'jest-cli/build/get_no_test_found_message.js' { + declare module.exports: $Exports<'jest-cli/build/get_no_test_found_message'>; +} +declare module 'jest-cli/build/get_no_test_found_related_to_changed_files.js' { + declare module.exports: $Exports<'jest-cli/build/get_no_test_found_related_to_changed_files'>; +} +declare module 'jest-cli/build/get_no_test_found_verbose.js' { + declare module.exports: $Exports<'jest-cli/build/get_no_test_found_verbose'>; +} +declare module 'jest-cli/build/get_no_test_found.js' { + declare module.exports: $Exports<'jest-cli/build/get_no_test_found'>; } declare module 'jest-cli/build/jest.js' { declare module.exports: $Exports<'jest-cli/build/jest'>; } -declare module 'jest-cli/build/lib/BufferedConsole.js' { - declare module.exports: $Exports<'jest-cli/build/lib/BufferedConsole'>; -} declare module 'jest-cli/build/lib/colorize.js' { declare module.exports: $Exports<'jest-cli/build/lib/colorize'>; } -declare module 'jest-cli/build/lib/createContext.js' { - declare module.exports: $Exports<'jest-cli/build/lib/createContext'>; +declare module 'jest-cli/build/lib/create_context.js' { + declare module.exports: $Exports<'jest-cli/build/lib/create_context'>; } -declare module 'jest-cli/build/lib/formatTestNameByPattern.js' { - declare module.exports: $Exports<'jest-cli/build/lib/formatTestNameByPattern'>; +declare module 'jest-cli/build/lib/format_test_name_by_pattern.js' { + declare module.exports: $Exports<'jest-cli/build/lib/format_test_name_by_pattern'>; } -declare module 'jest-cli/build/lib/getMaxWorkers.js' { - declare module.exports: $Exports<'jest-cli/build/lib/getMaxWorkers'>; +declare module 'jest-cli/build/lib/handle_deprecation_warnings.js' { + declare module.exports: $Exports<'jest-cli/build/lib/handle_deprecation_warnings'>; } -declare module 'jest-cli/build/lib/getTestPathPattern.js' { - declare module.exports: $Exports<'jest-cli/build/lib/getTestPathPattern'>; +declare module 'jest-cli/build/lib/is_valid_path.js' { + declare module.exports: $Exports<'jest-cli/build/lib/is_valid_path'>; } -declare module 'jest-cli/build/lib/handleDeprecationWarnings.js' { - declare module.exports: $Exports<'jest-cli/build/lib/handleDeprecationWarnings'>; +declare module 'jest-cli/build/lib/log_debug_messages.js' { + declare module.exports: $Exports<'jest-cli/build/lib/log_debug_messages'>; } -declare module 'jest-cli/build/lib/highlight.js' { - declare module.exports: $Exports<'jest-cli/build/lib/highlight'>; -} -declare module 'jest-cli/build/lib/isValidPath.js' { - declare module.exports: $Exports<'jest-cli/build/lib/isValidPath'>; -} -declare module 'jest-cli/build/lib/logDebugMessages.js' { - declare module.exports: $Exports<'jest-cli/build/lib/logDebugMessages'>; -} -declare module 'jest-cli/build/lib/patternModeHelpers.js' { - declare module.exports: $Exports<'jest-cli/build/lib/patternModeHelpers'>; +declare module 'jest-cli/build/lib/pattern_mode_helpers.js' { + declare module.exports: $Exports<'jest-cli/build/lib/pattern_mode_helpers'>; } declare module 'jest-cli/build/lib/Prompt.js' { declare module.exports: $Exports<'jest-cli/build/lib/Prompt'>; } -declare module 'jest-cli/build/lib/scrollList.js' { - declare module.exports: $Exports<'jest-cli/build/lib/scrollList'>; +declare module 'jest-cli/build/lib/scroll_list.js' { + declare module.exports: $Exports<'jest-cli/build/lib/scroll_list'>; } -declare module 'jest-cli/build/lib/terminalUtils.js' { - declare module.exports: $Exports<'jest-cli/build/lib/terminalUtils'>; +declare module 'jest-cli/build/lib/terminal_utils.js' { + declare module.exports: $Exports<'jest-cli/build/lib/terminal_utils'>; } -declare module 'jest-cli/build/lib/updateArgv.js' { - declare module.exports: $Exports<'jest-cli/build/lib/updateArgv'>; +declare module 'jest-cli/build/lib/update_global_config.js' { + declare module.exports: $Exports<'jest-cli/build/lib/update_global_config'>; } -declare module 'jest-cli/build/lib/validatePattern.js' { - declare module.exports: $Exports<'jest-cli/build/lib/validatePattern'>; +declare module 'jest-cli/build/lib/watch_plugin_registry.js' { + declare module.exports: $Exports<'jest-cli/build/lib/watch_plugin_registry'>; } -declare module 'jest-cli/build/PatternPrompt.js' { - declare module.exports: $Exports<'jest-cli/build/PatternPrompt'>; +declare module 'jest-cli/build/pattern_prompt.js' { + declare module.exports: $Exports<'jest-cli/build/pattern_prompt'>; } -declare module 'jest-cli/build/preRunMessage.js' { - declare module.exports: $Exports<'jest-cli/build/preRunMessage'>; +declare module 'jest-cli/build/pluralize.js' { + declare module.exports: $Exports<'jest-cli/build/pluralize'>; } -declare module 'jest-cli/build/ReporterDispatcher.js' { - declare module.exports: $Exports<'jest-cli/build/ReporterDispatcher'>; +declare module 'jest-cli/build/pre_run_message.js' { + declare module.exports: $Exports<'jest-cli/build/pre_run_message'>; } -declare module 'jest-cli/build/reporters/BaseReporter.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/BaseReporter'>; +declare module 'jest-cli/build/reporter_dispatcher.js' { + declare module.exports: $Exports<'jest-cli/build/reporter_dispatcher'>; } -declare module 'jest-cli/build/reporters/CoverageReporter.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/CoverageReporter'>; +declare module 'jest-cli/build/reporters/base_reporter.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/base_reporter'>; } -declare module 'jest-cli/build/reporters/CoverageWorker.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/CoverageWorker'>; +declare module 'jest-cli/build/reporters/coverage_reporter.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/coverage_reporter'>; } -declare module 'jest-cli/build/reporters/DefaultReporter.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/DefaultReporter'>; +declare module 'jest-cli/build/reporters/coverage_worker.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/coverage_worker'>; } -declare module 'jest-cli/build/reporters/getConsoleOutput.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/getConsoleOutput'>; +declare module 'jest-cli/build/reporters/default_reporter.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/default_reporter'>; } -declare module 'jest-cli/build/reporters/getResultHeader.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/getResultHeader'>; +declare module 'jest-cli/build/reporters/get_result_header.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/get_result_header'>; } -declare module 'jest-cli/build/reporters/NotifyReporter.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/NotifyReporter'>; +declare module 'jest-cli/build/reporters/get_snapshot_status.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/get_snapshot_status'>; +} +declare module 'jest-cli/build/reporters/get_snapshot_summary.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/get_snapshot_summary'>; +} +declare module 'jest-cli/build/reporters/notify_reporter.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/notify_reporter'>; } declare module 'jest-cli/build/reporters/Status.js' { declare module.exports: $Exports<'jest-cli/build/reporters/Status'>; } -declare module 'jest-cli/build/reporters/SummaryReporter.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/SummaryReporter'>; +declare module 'jest-cli/build/reporters/summary_reporter.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/summary_reporter'>; } declare module 'jest-cli/build/reporters/utils.js' { declare module.exports: $Exports<'jest-cli/build/reporters/utils'>; } -declare module 'jest-cli/build/reporters/VerboseReporter.js' { - declare module.exports: $Exports<'jest-cli/build/reporters/VerboseReporter'>; +declare module 'jest-cli/build/reporters/verbose_reporter.js' { + declare module.exports: $Exports<'jest-cli/build/reporters/verbose_reporter'>; } -declare module 'jest-cli/build/runJest.js' { - declare module.exports: $Exports<'jest-cli/build/runJest'>; +declare module 'jest-cli/build/run_jest.js' { + declare module.exports: $Exports<'jest-cli/build/run_jest'>; } -declare module 'jest-cli/build/runTest.js' { - declare module.exports: $Exports<'jest-cli/build/runTest'>; +declare module 'jest-cli/build/search_source.js' { + declare module.exports: $Exports<'jest-cli/build/search_source'>; } -declare module 'jest-cli/build/SearchSource.js' { - declare module.exports: $Exports<'jest-cli/build/SearchSource'>; +declare module 'jest-cli/build/test_name_pattern_prompt.js' { + declare module.exports: $Exports<'jest-cli/build/test_name_pattern_prompt'>; } -declare module 'jest-cli/build/TestNamePatternPrompt.js' { - declare module.exports: $Exports<'jest-cli/build/TestNamePatternPrompt'>; +declare module 'jest-cli/build/test_path_pattern_prompt.js' { + declare module.exports: $Exports<'jest-cli/build/test_path_pattern_prompt'>; } -declare module 'jest-cli/build/TestPathPatternPrompt.js' { - declare module.exports: $Exports<'jest-cli/build/TestPathPatternPrompt'>; +declare module 'jest-cli/build/test_path_pattern_to_regexp.js' { + declare module.exports: $Exports<'jest-cli/build/test_path_pattern_to_regexp'>; } -declare module 'jest-cli/build/TestRunner.js' { - declare module.exports: $Exports<'jest-cli/build/TestRunner'>; +declare module 'jest-cli/build/test_result_helpers.js' { + declare module.exports: $Exports<'jest-cli/build/test_result_helpers'>; } -declare module 'jest-cli/build/TestSequencer.js' { - declare module.exports: $Exports<'jest-cli/build/TestSequencer'>; +declare module 'jest-cli/build/test_scheduler.js' { + declare module.exports: $Exports<'jest-cli/build/test_scheduler'>; } -declare module 'jest-cli/build/TestWatcher.js' { - declare module.exports: $Exports<'jest-cli/build/TestWatcher'>; +declare module 'jest-cli/build/test_sequencer.js' { + declare module.exports: $Exports<'jest-cli/build/test_sequencer'>; } -declare module 'jest-cli/build/TestWorker.js' { - declare module.exports: $Exports<'jest-cli/build/TestWorker'>; +declare module 'jest-cli/build/test_watcher.js' { + declare module.exports: $Exports<'jest-cli/build/test_watcher'>; +} +declare module 'jest-cli/build/types.js' { + declare module.exports: $Exports<'jest-cli/build/types'>; } declare module 'jest-cli/build/watch.js' { declare module.exports: $Exports<'jest-cli/build/watch'>; diff --git a/flow-typed/npm/js-cookie_v2.x.x.js b/flow-typed/npm/js-cookie_v2.x.x.js new file mode 100644 index 00000000..215629f4 --- /dev/null +++ b/flow-typed/npm/js-cookie_v2.x.x.js @@ -0,0 +1,28 @@ +// flow-typed signature: 3ec9bf9b258f375a8abeff95acd8b2ad +// flow-typed version: cd78efc61a/js-cookie_v2.x.x/flow_>=v0.38.x + +declare module 'js-cookie' { + declare type CookieOptions = { + expires?: number | Date, + path?: string, + domain?: string, + secure?: boolean + } + declare type ConverterFunc = (value: string, name: string) => string; + declare type ConverterObj = { + read: ConverterFunc, + write: ConverterFunc + }; + declare class Cookie { + defaults: CookieOptions; + set(name: string, value: mixed, options?: CookieOptions): void; + get(...args: Array): { [key: string]: string }; + get(name: string, ...args: Array): string | void; + remove(name: string, options?: CookieOptions): void; + getJSON(name: string): mixed; + withConverter(converter: ConverterFunc | ConverterObj): this; + noConflict(): this; + } + + declare module.exports: Cookie; +} diff --git a/flow-typed/npm/js-search_vx.x.x.js b/flow-typed/npm/js-search_vx.x.x.js new file mode 100644 index 00000000..f183fd6f --- /dev/null +++ b/flow-typed/npm/js-search_vx.x.x.js @@ -0,0 +1,200 @@ +// flow-typed signature: 6a6a191b599141bb11b3d93899e43f1b +// flow-typed version: <>/js-search_v^1.4.2/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'js-search' + * + * 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 'js-search' { + 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 'js-search/dist/commonjs/getNestedFieldValue' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/index' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/IndexStrategy/AllSubstringsIndexStrategy' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/IndexStrategy/ExactWordIndexStrategy' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/IndexStrategy/index' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/IndexStrategy/IndexStrategy' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/IndexStrategy/PrefixIndexStrategy' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Sanitizer/CaseSensitiveSanitizer' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Sanitizer/index' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Sanitizer/LowerCaseSanitizer' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Sanitizer/Sanitizer' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Search' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/SearchIndex/index' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/SearchIndex/SearchIndex' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/SearchIndex/TfIdfSearchIndex' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/SearchIndex/UnorderedSearchIndex' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/StopWordsMap' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/TokenHighlighter' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Tokenizer/index' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Tokenizer/SimpleTokenizer' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Tokenizer/StemmingTokenizer' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Tokenizer/StopWordsTokenizer' { + declare module.exports: any; +} + +declare module 'js-search/dist/commonjs/Tokenizer/Tokenizer' { + declare module.exports: any; +} + +declare module 'js-search/dist/umd/js-search' { + declare module.exports: any; +} + +declare module 'js-search/dist/umd/js-search.min' { + declare module.exports: any; +} + +// Filename aliases +declare module 'js-search/dist/commonjs/getNestedFieldValue.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/getNestedFieldValue'>; +} +declare module 'js-search/dist/commonjs/index.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/index'>; +} +declare module 'js-search/dist/commonjs/IndexStrategy/AllSubstringsIndexStrategy.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/IndexStrategy/AllSubstringsIndexStrategy'>; +} +declare module 'js-search/dist/commonjs/IndexStrategy/ExactWordIndexStrategy.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/IndexStrategy/ExactWordIndexStrategy'>; +} +declare module 'js-search/dist/commonjs/IndexStrategy/index.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/IndexStrategy/index'>; +} +declare module 'js-search/dist/commonjs/IndexStrategy/IndexStrategy.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/IndexStrategy/IndexStrategy'>; +} +declare module 'js-search/dist/commonjs/IndexStrategy/PrefixIndexStrategy.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/IndexStrategy/PrefixIndexStrategy'>; +} +declare module 'js-search/dist/commonjs/Sanitizer/CaseSensitiveSanitizer.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Sanitizer/CaseSensitiveSanitizer'>; +} +declare module 'js-search/dist/commonjs/Sanitizer/index.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Sanitizer/index'>; +} +declare module 'js-search/dist/commonjs/Sanitizer/LowerCaseSanitizer.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Sanitizer/LowerCaseSanitizer'>; +} +declare module 'js-search/dist/commonjs/Sanitizer/Sanitizer.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Sanitizer/Sanitizer'>; +} +declare module 'js-search/dist/commonjs/Search.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Search'>; +} +declare module 'js-search/dist/commonjs/SearchIndex/index.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/SearchIndex/index'>; +} +declare module 'js-search/dist/commonjs/SearchIndex/SearchIndex.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/SearchIndex/SearchIndex'>; +} +declare module 'js-search/dist/commonjs/SearchIndex/TfIdfSearchIndex.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/SearchIndex/TfIdfSearchIndex'>; +} +declare module 'js-search/dist/commonjs/SearchIndex/UnorderedSearchIndex.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/SearchIndex/UnorderedSearchIndex'>; +} +declare module 'js-search/dist/commonjs/StopWordsMap.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/StopWordsMap'>; +} +declare module 'js-search/dist/commonjs/TokenHighlighter.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/TokenHighlighter'>; +} +declare module 'js-search/dist/commonjs/Tokenizer/index.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Tokenizer/index'>; +} +declare module 'js-search/dist/commonjs/Tokenizer/SimpleTokenizer.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Tokenizer/SimpleTokenizer'>; +} +declare module 'js-search/dist/commonjs/Tokenizer/StemmingTokenizer.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Tokenizer/StemmingTokenizer'>; +} +declare module 'js-search/dist/commonjs/Tokenizer/StopWordsTokenizer.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Tokenizer/StopWordsTokenizer'>; +} +declare module 'js-search/dist/commonjs/Tokenizer/Tokenizer.js' { + declare module.exports: $Exports<'js-search/dist/commonjs/Tokenizer/Tokenizer'>; +} +declare module 'js-search/dist/umd/js-search.js' { + declare module.exports: $Exports<'js-search/dist/umd/js-search'>; +} +declare module 'js-search/dist/umd/js-search.min.js' { + declare module.exports: $Exports<'js-search/dist/umd/js-search.min'>; +} diff --git a/flow-typed/npm/json-loader_vx.x.x.js b/flow-typed/npm/json-loader_vx.x.x.js index 0759f64c..3fa5582e 100644 --- a/flow-typed/npm/json-loader_vx.x.x.js +++ b/flow-typed/npm/json-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: caf57b9239786b88a0f8e4edc7045629 -// flow-typed version: <>/json-loader_v0.5.4/flow_v0.49.1 +// flow-typed signature: 33d10e95fdc39017d61e9c2ba7e461bf +// flow-typed version: <>/json-loader_v0.5.4/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/jsonwebtoken_vx.x.x.js b/flow-typed/npm/jsonwebtoken_vx.x.x.js index b9c7220f..54e7dda9 100644 --- a/flow-typed/npm/jsonwebtoken_vx.x.x.js +++ b/flow-typed/npm/jsonwebtoken_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 765cb9bbe3b966949778a768c7544204 -// flow-typed version: <>/jsonwebtoken_v7.0.1/flow_v0.49.1 +// flow-typed signature: 69c860f2741ede15238fac888eeda802 +// flow-typed version: <>/jsonwebtoken_v7.0.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-bodyparser_v4.x.x.js b/flow-typed/npm/koa-bodyparser_v4.x.x.js new file mode 100644 index 00000000..ea6ad3a6 --- /dev/null +++ b/flow-typed/npm/koa-bodyparser_v4.x.x.js @@ -0,0 +1,28 @@ +// flow-typed signature: 89e31dc3d71df377b34d408f5725e57a +// flow-typed version: 60fd29d2cf/koa-bodyparser_v4.x.x/flow_>=v0.56.x + +declare module "koa-bodyparser" { + declare type Context = Object; + + declare type Middleware = ( + ctx: Context, + next: () => Promise + ) => Promise | void; + + declare type Options = {| + enableTypes?: Array, + encode?: string, + formLimit?: string, + jsonLimit?: string, + strict?: boolean, + detectJSON?: (ctx: Context) => boolean, + extendTypes?: { + json?: Array, + form?: Array, + text?: Array + }, + onerror?: (err: Error, ctx: Context) => void + |}; + + declare export default function bodyParser(opts?: Options): Middleware; +} diff --git a/flow-typed/npm/koa-compress_vx.x.x.js b/flow-typed/npm/koa-compress_vx.x.x.js index 6dfdff84..2d79d2a4 100644 --- a/flow-typed/npm/koa-compress_vx.x.x.js +++ b/flow-typed/npm/koa-compress_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 64486cdfc0663c608f270fcafb73c6a9 -// flow-typed version: <>/koa-compress_v2.0.0/flow_v0.49.1 +// flow-typed signature: ba5bba9e04a906866671688b51057c5b +// flow-typed version: <>/koa-compress_v2.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-connect_vx.x.x.js b/flow-typed/npm/koa-connect_vx.x.x.js index ac67cde7..6ed581cf 100644 --- a/flow-typed/npm/koa-connect_vx.x.x.js +++ b/flow-typed/npm/koa-connect_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1e5ab92836d0c74ea2fb45b2d989d657 -// flow-typed version: <>/koa-connect_v1.0.0/flow_v0.49.1 +// flow-typed signature: b685e62eface5c97d8b4fda5a054440d +// flow-typed version: <>/koa-connect_v1.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-convert_vx.x.x.js b/flow-typed/npm/koa-convert_vx.x.x.js index 2e2ddf54..f639a6f6 100644 --- a/flow-typed/npm/koa-convert_vx.x.x.js +++ b/flow-typed/npm/koa-convert_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b37c76182ddbff30a0908abc55345f3e -// flow-typed version: <>/koa-convert_v1.2.0/flow_v0.49.1 +// flow-typed signature: 9db483741148ac6ce073abb078d95b26 +// flow-typed version: <>/koa-convert_v1.2.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-helmet_vx.x.x.js b/flow-typed/npm/koa-helmet_vx.x.x.js index 670f1662..77ed45a2 100644 --- a/flow-typed/npm/koa-helmet_vx.x.x.js +++ b/flow-typed/npm/koa-helmet_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 26710f460b12fa44ab5fe75736833823 -// flow-typed version: <>/koa-helmet_v3.2.0/flow_v0.49.1 +// flow-typed signature: 01719aca9d37d24e76d77529e594870c +// flow-typed version: <>/koa-helmet_v3.2.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-jwt_vx.x.x.js b/flow-typed/npm/koa-jwt_vx.x.x.js index 183283c6..76d79e53 100644 --- a/flow-typed/npm/koa-jwt_vx.x.x.js +++ b/flow-typed/npm/koa-jwt_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: be5307205932b96272b85e4e51358277 -// flow-typed version: <>/koa-jwt_v^3.2.1/flow_v0.49.1 +// flow-typed signature: f76652e8648b2a381dc68b1c3e9b6ccd +// flow-typed version: <>/koa-jwt_v^3.2.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-logger_vx.x.x.js b/flow-typed/npm/koa-logger_vx.x.x.js index a3a53998..224253e9 100644 --- a/flow-typed/npm/koa-logger_vx.x.x.js +++ b/flow-typed/npm/koa-logger_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 11bfc5a378aa2a9aa7158da0dc6b093f -// flow-typed version: <>/koa-logger_v^2.0.1/flow_v0.49.1 +// flow-typed signature: 9b79c5924a74185b98f768d70b00fb77 +// flow-typed version: <>/koa-logger_v^2.0.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-mount_vx.x.x.js b/flow-typed/npm/koa-mount_vx.x.x.js index 54972aaa..37da555e 100644 --- a/flow-typed/npm/koa-mount_vx.x.x.js +++ b/flow-typed/npm/koa-mount_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f1bb28389bc673dbac48fbae4b48167c -// flow-typed version: <>/koa-mount_v^3.0.0/flow_v0.49.1 +// flow-typed signature: da8cd9f23db359c6c3612e0239ce431d +// flow-typed version: <>/koa-mount_v^3.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-test-renderer_vx.x.x.js b/flow-typed/npm/koa-onerror_vx.x.x.js similarity index 55% rename from flow-typed/npm/react-test-renderer_vx.x.x.js rename to flow-typed/npm/koa-onerror_vx.x.x.js index dd6ae966..d172ac88 100644 --- a/flow-typed/npm/react-test-renderer_vx.x.x.js +++ b/flow-typed/npm/koa-onerror_vx.x.x.js @@ -1,10 +1,10 @@ -// flow-typed signature: e0af82639f4e92094b68ef409938a88f -// flow-typed version: <>/react-test-renderer_v^15.3.1/flow_v0.49.1 +// flow-typed signature: 5de337753354c6d6467aae61dec405a5 +// flow-typed version: <>/koa-onerror_v^4.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: * - * 'react-test-renderer' + * 'koa-onerror' * * Fill this stub out by replacing all the `any` types. * @@ -13,7 +13,7 @@ * https://github.com/flowtype/flow-typed */ -declare module 'react-test-renderer' { +declare module 'koa-onerror' { declare module.exports: any; } @@ -25,9 +25,9 @@ declare module 'react-test-renderer' { // Filename aliases -declare module 'react-test-renderer/index' { - declare module.exports: $Exports<'react-test-renderer'>; +declare module 'koa-onerror/index' { + declare module.exports: $Exports<'koa-onerror'>; } -declare module 'react-test-renderer/index.js' { - declare module.exports: $Exports<'react-test-renderer'>; +declare module 'koa-onerror/index.js' { + declare module.exports: $Exports<'koa-onerror'>; } diff --git a/flow-typed/npm/koa-router_vx.x.x.js b/flow-typed/npm/koa-router_vx.x.x.js index 0bf293ce..f0745b2b 100644 --- a/flow-typed/npm/koa-router_vx.x.x.js +++ b/flow-typed/npm/koa-router_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9bc8536b69375b7c71d987c313a940b2 -// flow-typed version: <>/koa-router_v7.0.1/flow_v0.49.1 +// flow-typed signature: 0839b244c6ed3252cfce863ca47616e2 +// flow-typed version: <>/koa-router_v7.0.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-sendfile_vx.x.x.js b/flow-typed/npm/koa-sendfile_vx.x.x.js index de68d28a..a064279f 100644 --- a/flow-typed/npm/koa-sendfile_vx.x.x.js +++ b/flow-typed/npm/koa-sendfile_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d55e35ed3f2fe1449b25bb21fde8c810 -// flow-typed version: <>/koa-sendfile_v2.0.0/flow_v0.49.1 +// flow-typed signature: 40d2c7de6932fe128d7accc903707306 +// flow-typed version: <>/koa-sendfile_v2.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-static_v4.x.x.js b/flow-typed/npm/koa-static_v4.x.x.js new file mode 100644 index 00000000..ed7224fc --- /dev/null +++ b/flow-typed/npm/koa-static_v4.x.x.js @@ -0,0 +1,34 @@ +// flow-typed signature: d92c6847dfd001423387c701022de893 +// flow-typed version: 60fd29d2cf/koa-static_v4.x.x/flow_>=v0.56.x + +declare module "koa-static" { + import type { Stats } from "fs"; + + declare type Context = Object; + declare type Response = Object; + + declare type Middleware = ( + ctx: Context, + next: () => Promise + ) => Promise | void; + + declare type Options = {| + defer?: boolean, + maxage?: number, + maxAge?: number, + immutable?: boolean, + hidden?: boolean, + root?: string, + index?: string | false, + gzip?: boolean, + brotli?: boolean, + format?: boolean, + setHeaders?: (res: Response, path: string, stats: Stats) => any, + extensions?: Array | false + |}; + + declare export default function serve( + root: string, + opts?: Options + ): Middleware; +} diff --git a/flow-typed/npm/koa-webpack-dev-middleware_vx.x.x.js b/flow-typed/npm/koa-webpack-dev-middleware_vx.x.x.js index 685c2c5b..c7feb022 100644 --- a/flow-typed/npm/koa-webpack-dev-middleware_vx.x.x.js +++ b/flow-typed/npm/koa-webpack-dev-middleware_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 57bd3918380da3caa66ec0a99374bd9e -// flow-typed version: <>/koa-webpack-dev-middleware_v1.4.5/flow_v0.49.1 +// flow-typed signature: 8471947c40dbe31c872217f40f93ae80 +// flow-typed version: <>/koa-webpack-dev-middleware_v1.4.5/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa-webpack-hot-middleware_vx.x.x.js b/flow-typed/npm/koa-webpack-hot-middleware_vx.x.x.js index cdf03d7f..a40a600b 100644 --- a/flow-typed/npm/koa-webpack-hot-middleware_vx.x.x.js +++ b/flow-typed/npm/koa-webpack-hot-middleware_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 69614e55c22ccf34902f957157bd152a -// flow-typed version: <>/koa-webpack-hot-middleware_v1.0.3/flow_v0.49.1 +// flow-typed signature: b1eb8c4a8294f42cec34bcc98e171dce +// flow-typed version: <>/koa-webpack-hot-middleware_v1.0.3/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/koa_v2.x.x.js b/flow-typed/npm/koa_v2.x.x.js index 55ffd124..a393cd47 100644 --- a/flow-typed/npm/koa_v2.x.x.js +++ b/flow-typed/npm/koa_v2.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 846c003f881e5aba2c7c39e3edf8ce31 -// flow-typed version: 47f1640404/koa_v2.x.x/flow_>=v0.47.x +// flow-typed signature: 1a33220ead1c6b6e3205a55b2a2ec3a0 +// flow-typed version: 18b7d8b101/koa_v2.x.x/flow_>=v0.47.x /* * Type def from from source code of koa. @@ -14,7 +14,7 @@ declare module 'koa' { // Currently, import type doesnt work well ? // so copy `Server` from flow/lib/node.js#L820 declare class Server extends net$Server { - listen(port: number, hostname?: string, backlog?: number, callback?: Function): Server, + listen(port?: number, hostname?: string, backlog?: number, callback?: Function): Server, listen(path: string, callback?: Function): Server, listen(handle: Object, callback?: Function): Server, close(callback?: Function): Server, @@ -286,7 +286,7 @@ declare module 'koa' { ips: $PropertyType, ip: $PropertyType, - [key: string]: mixed, // props added by middlewares. + [key: string]: any, // props added by middlewares. } declare type Middleware = diff --git a/flow-typed/npm/lint-staged_vx.x.x.js b/flow-typed/npm/lint-staged_vx.x.x.js index c48ea230..630d6565 100644 --- a/flow-typed/npm/lint-staged_vx.x.x.js +++ b/flow-typed/npm/lint-staged_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 04f9421257cdbd5d2d7990fa481829e0 -// flow-typed version: <>/lint-staged_v^3.4.0/flow_v0.49.1 +// flow-typed signature: af040f265d532c0b83974221b6d209db +// flow-typed version: <>/lint-staged_v^3.4.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,6 +22,10 @@ declare module 'lint-staged' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'lint-staged/src/calcChunkSize' { + declare module.exports: any; +} + declare module 'lint-staged/src/findBin' { declare module.exports: any; } @@ -34,6 +38,10 @@ declare module 'lint-staged/src/index' { declare module.exports: any; } +declare module 'lint-staged/src/readConfigOption' { + declare module.exports: any; +} + declare module 'lint-staged/src/runScript' { declare module.exports: any; } @@ -46,6 +54,10 @@ declare module 'lint-staged/test/__mocks__/npm-which' { declare module.exports: any; } +declare module 'lint-staged/test/calcChunkSize.spec' { + declare module.exports: any; +} + declare module 'lint-staged/test/findBin.spec' { declare module.exports: any; } @@ -54,6 +66,18 @@ declare module 'lint-staged/test/generateTasks.spec' { declare module.exports: any; } +declare module 'lint-staged/test/readConfigOption.spec' { + declare module.exports: any; +} + +declare module 'lint-staged/test/runScript-mock-findBin.spec' { + declare module.exports: any; +} + +declare module 'lint-staged/test/runScript-mock-pMap.spec' { + declare module.exports: any; +} + declare module 'lint-staged/test/runScript.spec' { declare module.exports: any; } @@ -69,6 +93,9 @@ declare module 'lint-staged/index' { declare module 'lint-staged/index.js' { declare module.exports: $Exports<'lint-staged'>; } +declare module 'lint-staged/src/calcChunkSize.js' { + declare module.exports: $Exports<'lint-staged/src/calcChunkSize'>; +} declare module 'lint-staged/src/findBin.js' { declare module.exports: $Exports<'lint-staged/src/findBin'>; } @@ -78,6 +105,9 @@ declare module 'lint-staged/src/generateTasks.js' { declare module 'lint-staged/src/index.js' { declare module.exports: $Exports<'lint-staged/src/index'>; } +declare module 'lint-staged/src/readConfigOption.js' { + declare module.exports: $Exports<'lint-staged/src/readConfigOption'>; +} declare module 'lint-staged/src/runScript.js' { declare module.exports: $Exports<'lint-staged/src/runScript'>; } @@ -87,12 +117,24 @@ declare module 'lint-staged/test/__mocks__/execa.js' { declare module 'lint-staged/test/__mocks__/npm-which.js' { declare module.exports: $Exports<'lint-staged/test/__mocks__/npm-which'>; } +declare module 'lint-staged/test/calcChunkSize.spec.js' { + declare module.exports: $Exports<'lint-staged/test/calcChunkSize.spec'>; +} declare module 'lint-staged/test/findBin.spec.js' { declare module.exports: $Exports<'lint-staged/test/findBin.spec'>; } declare module 'lint-staged/test/generateTasks.spec.js' { declare module.exports: $Exports<'lint-staged/test/generateTasks.spec'>; } +declare module 'lint-staged/test/readConfigOption.spec.js' { + declare module.exports: $Exports<'lint-staged/test/readConfigOption.spec'>; +} +declare module 'lint-staged/test/runScript-mock-findBin.spec.js' { + declare module.exports: $Exports<'lint-staged/test/runScript-mock-findBin.spec'>; +} +declare module 'lint-staged/test/runScript-mock-pMap.spec.js' { + declare module.exports: $Exports<'lint-staged/test/runScript-mock-pMap.spec'>; +} declare module 'lint-staged/test/runScript.spec.js' { declare module.exports: $Exports<'lint-staged/test/runScript.spec'>; } diff --git a/flow-typed/npm/localforage_v1.5.x.js b/flow-typed/npm/localforage_v1.5.x.js new file mode 100644 index 00000000..bcbf1704 --- /dev/null +++ b/flow-typed/npm/localforage_v1.5.x.js @@ -0,0 +1,84 @@ +// flow-typed signature: 37b164ad4c10b3c89887d1fd5b7ca096 +// flow-typed version: 9c854fa980/localforage_v1.5.x/flow_>=v0.25.x + +type PartialConfig = { + driver?: string | Array, + name?: string, + size?: number, + storeName?: string, + version?: string, + description?: string, +}; + +type Driver = { + _driver: string, + _initStorage(config: PartialConfig): void, + + getItem( + key: string, + successCallback?: (err?: Error, value?: T) => mixed, + ): ?Promise, + setItem( + key: string, + value: T, + successCallback?: (err?: Error, value?: T) => mixed, + ): ?Promise, + removeItem( + key: string, + successCallback?: (err?: Error) => mixed, + ): ?Promise, + clear(successCallback?: ?(numberOfKeys: number) => mixed): ?Promise, + length(successCallback?: (numberOfKeys: number) => mixed): ?Promise, + key( + keyIndex: number, + successCallback?: (keyName: string) => mixed, + ): ?Promise, + keys( + successCallback?: (keyNames: Array) => mixed, + ): ?Promise>, +}; + +type localforageInstance = { + INDEXEDDB: 'asyncStorage', + WEBSQL: 'webSQLStorage', + LOCALSTORAGE: 'localStorageWrapper', + + getItem( + key: string, + successCallback?: (err?: Error, value?: T) => mixed, + ): Promise, + setItem( + key: string, + value: T, + successCallback?: (err?: Error, value?: T) => mixed, + ): Promise, + removeItem( + key: string, + successCallback?: (err?: Error) => mixed, + ): Promise, + clear(successCallback?: ?(numberOfKeys: number) => mixed): Promise, + length(successCallback?: (numberOfKeys: number) => mixed): Promise, + key( + keyIndex: number, + successCallback?: (keyName: string) => mixed, + ): Promise, + keys( + successCallback?: (keyNames: Array) => mixed, + ): Promise>, + iterate( + iteratorCallback: (value: T, key: string, iterationNumber: number) => mixed, + successCallback?: (result: void | [string, T]) => mixed, + ): Promise, + setDriver(driverNames: string | Array): void, + config(config?: PartialConfig): boolean | PartialConfig, + defineDriver(driver: Driver): void, + driver(): string, + ready(): Promise, + supports(driverName: string): boolean, + createInstance(config?: PartialConfig): localforageInstance, + dropInstance(config?: PartialConfig): Promise, +}; + +declare module 'localforage' { + declare module.exports: localforageInstance; +} diff --git a/flow-typed/npm/lodash_v4.x.x.js b/flow-typed/npm/lodash_v4.x.x.js index ec3a7f7a..a6e563b8 100644 --- a/flow-typed/npm/lodash_v4.x.x.js +++ b/flow-typed/npm/lodash_v4.x.x.js @@ -1,30 +1,162 @@ -// flow-typed signature: 965815c926d58b631e3746ecfe0bc204 -// flow-typed version: 0953311d72/lodash_v4.x.x/flow_>=v0.47.x +// flow-typed signature: 9b30c25bfb40dd9968c9c9f32b43ce75 +// flow-typed version: 6aad05d35e/lodash_v4.x.x/flow_>=v0.63.x + +declare module "lodash" { + declare type __CurriedFunction1 = (...r: [AA]) => R; + declare type CurriedFunction1 = __CurriedFunction1; + + declare type __CurriedFunction2 = (( + ...r: [AA] + ) => CurriedFunction1) & + ((...r: [AA, BB]) => R); + declare type CurriedFunction2 = __CurriedFunction2; + + declare type __CurriedFunction3 = (( + ...r: [AA] + ) => CurriedFunction2) & + ((...r: [AA, BB]) => CurriedFunction1) & + ((...r: [AA, BB, CC]) => R); + declare type CurriedFunction3 = __CurriedFunction3< + A, + B, + C, + R, + *, + *, + * + >; + + declare type __CurriedFunction4< + A, + B, + C, + D, + R, + AA: A, + BB: B, + CC: C, + DD: D + > = ((...r: [AA]) => CurriedFunction3) & + ((...r: [AA, BB]) => CurriedFunction2) & + ((...r: [AA, BB, CC]) => CurriedFunction1) & + ((...r: [AA, BB, CC, DD]) => R); + declare type CurriedFunction4 = __CurriedFunction4< + A, + B, + C, + D, + R, + *, + *, + *, + * + >; + + declare type __CurriedFunction5< + A, + B, + C, + D, + E, + R, + AA: A, + BB: B, + CC: C, + DD: D, + EE: E + > = ((...r: [AA]) => CurriedFunction4) & + ((...r: [AA, BB]) => CurriedFunction3) & + ((...r: [AA, BB, CC]) => CurriedFunction2) & + ((...r: [AA, BB, CC, DD]) => CurriedFunction1) & + ((...r: [AA, BB, CC, DD, EE]) => R); + declare type CurriedFunction5 = __CurriedFunction5< + A, + B, + C, + D, + E, + R, + *, + *, + *, + *, + * + >; + + declare type __CurriedFunction6< + A, + B, + C, + D, + E, + F, + R, + AA: A, + BB: B, + CC: C, + DD: D, + EE: E, + FF: F + > = ((...r: [AA]) => CurriedFunction5) & + ((...r: [AA, BB]) => CurriedFunction4) & + ((...r: [AA, BB, CC]) => CurriedFunction3) & + ((...r: [AA, BB, CC, DD]) => CurriedFunction2) & + ((...r: [AA, BB, CC, DD, EE]) => CurriedFunction1) & + ((...r: [AA, BB, CC, DD, EE, FF]) => R); + declare type CurriedFunction6 = __CurriedFunction6< + A, + B, + C, + D, + E, + F, + R, + *, + *, + *, + *, + *, + * + >; + + declare type Curry = (((...r: [A]) => R) => CurriedFunction1) & + (((...r: [A, B]) => R) => CurriedFunction2) & + (((...r: [A, B, C]) => R) => CurriedFunction3) & + (( + (...r: [A, B, C, D]) => R + ) => CurriedFunction4) & + (( + (...r: [A, B, C, D, E]) => R + ) => CurriedFunction5) & + (( + (...r: [A, B, C, D, E, F]) => R + ) => CurriedFunction6); + + declare type UnaryFn = (a: A) => R; -declare module 'lodash' { declare type TemplateSettings = { escape?: RegExp, evaluate?: RegExp, imports?: Object, interpolate?: RegExp, - variable?: string, + variable?: string }; declare type TruncateOptions = { length?: number, omission?: string, - separator?: RegExp|string, + separator?: RegExp | string }; declare type DebounceOptions = { - leading?: bool, + leading?: boolean, maxWait?: number, - trailing?: bool, + trailing?: boolean }; declare type ThrottleOptions = { - leading?: bool, - trailing?: bool, + leading?: boolean, + trailing?: boolean }; declare type NestedArray = Array>; @@ -39,7 +171,10 @@ declare module 'lodash' { | matchesPropertyIterateeShorthand | propertyIterateeShorthand; - declare type OIterateeWithResult = Object|string|((value: V, key: string, object: O) => R); + declare type OIterateeWithResult = + | Object + | string + | ((value: V, key: string, object: O) => R); declare type OIteratee = OIterateeWithResult; declare type OFlatMapIteratee = OIterateeWithResult>; @@ -50,184 +185,561 @@ declare module 'lodash' { | propertyIterateeShorthand; declare type _ValueOnlyIteratee = (value: T) => mixed; - declare type ValueOnlyIteratee = _ValueOnlyIteratee|string; - declare type _Iteratee = (item: T, index: number, array: ?Array) => mixed; - declare type Iteratee = _Iteratee|Object|string; - declare type FlatMapIteratee = ((item: T, index: number, array: ?Array) => Array)|Object|string; - declare type Comparator = (item: T, item2: T) => bool; + 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 = + declare type MapIterator = | ((item: T, index: number, array: Array) => U) | propertyIterateeShorthand; - declare type OMapIterator = + declare type ReadOnlyMapIterator = + | ((item: T, index: number, array: $ReadOnlyArray) => U) + | propertyIterateeShorthand; + + declare type OMapIterator = | ((item: T, key: string, object: O) => U) | propertyIterateeShorthand; declare class Lodash { // Array - chunk(array: ?Array, size?: number): Array>; - compact(array: Array): Array; - concat(base: Array, ...elements: Array): Array; - difference(array: ?Array, values?: Array): Array; - differenceBy(array: ?Array, values: Array, iteratee: ValueOnlyIteratee): T[]; - differenceWith(array: T[], values: T[], 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: ?Array, predicate?: Predicate): number; - findLastIndex(array: ?Array, predicate?: Predicate): number; + chunk(array?: ?Array, size?: ?number): Array>; + compact(array?: ?Array): Array; + concat(base?: ?Array, ...elements: Array): Array; + difference(array?: ?$ReadOnlyArray, values?: ?$ReadOnlyArray): Array; + differenceBy( + array?: ?$ReadOnlyArray, + values?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee + ): T[]; + differenceWith(array?: ?$ReadOnlyArray, values?: ?$ReadOnlyArray, comparator?: ?Comparator): T[]; + drop(array?: ?Array, n?: ?number): Array; + dropRight(array?: ?Array, n?: ?number): Array; + dropRightWhile(array?: ?Array, predicate?: ?Predicate): Array; + dropWhile(array?: ?Array, predicate?: ?Predicate): Array; + fill( + array?: ?Array, + value?: ?U, + start?: ?number, + end?: ?number + ): Array; + findIndex( + array: $ReadOnlyArray, + predicate?: ?Predicate, + fromIndex?: ?number + ): number; + findIndex( + array: void | null, + predicate?: ?Predicate, + fromIndex?: ?number + ): -1; + findLastIndex( + array: $ReadOnlyArray, + predicate?: ?Predicate, + fromIndex?: ?number + ): number; + findLastIndex( + array: void | null, + predicate?: ?Predicate, + fromIndex?: ?number + ): -1; // alias of _.head first(array: ?Array): T; - flatten(array: Array|X>): Array; - flattenDeep(array: any[]): Array; - flattenDepth(array: any[], depth?: number): any[]; - fromPairs(pairs: Array): Object; + flatten(array?: ?Array | X>): Array; + flattenDeep(array?: ?any[]): Array; + flattenDepth(array?: ?any[], depth?: ?number): any[]; + fromPairs(pairs?: ?Array<[A, B]>): { [key: A]: B }; head(array: ?Array): T; - indexOf(array: ?Array, value: T, fromIndex?: number): number; + indexOf(array: Array, value: T, fromIndex?: number): number; + indexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; initial(array: ?Array): Array; - intersection(...arrays: Array>): Array; + intersection(...arrays?: Array>): Array; //Workaround until (...parameter: T, parameter2: U) works - intersectionBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; - intersectionBy(a1: Array, a2: Array, iteratee?: ValueOnlyIteratee): Array; - intersectionBy(a1: Array, a2: Array, a3: Array, iteratee?: ValueOnlyIteratee): Array; - intersectionBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: ValueOnlyIteratee): Array; + intersectionBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; + intersectionBy( + a1?: ?Array, + a2?: ?Array, + iteratee?: ?ValueOnlyIteratee + ): Array; + intersectionBy( + a1?: ?Array, + a2?: ?Array, + a3?: ?Array, + iteratee?: ?ValueOnlyIteratee + ): Array; + intersectionBy( + a1?: ?Array, + a2?: ?Array, + a3?: ?Array, + a4?: ?Array, + iteratee?: ?ValueOnlyIteratee + ): Array; //Workaround until (...parameter: T, parameter2: U) works - intersectionWith(a1: Array, comparator: Comparator): Array; - intersectionWith(a1: Array, a2: Array, comparator: Comparator): Array; - intersectionWith(a1: Array, a2: Array, a3: Array, comparator: Comparator): Array; - intersectionWith(a1: Array, a2: Array, a3: Array, a4: Array, comparator: Comparator): Array; - join(array: ?Array, separator?: string): string; + intersectionWith(a1?: ?Array, comparator?: ?Comparator): Array; + intersectionWith( + a1?: ?Array, + a2?: ?Array, + comparator?: ?Comparator + ): Array; + intersectionWith( + a1?: ?Array, + a2?: ?Array, + a3?: ?Array, + comparator?: ?Comparator + ): Array; + intersectionWith( + a1?: ?Array, + a2?: ?Array, + a3?: ?Array, + a4?: ?Array, + comparator?: ?Comparator + ): Array; + join(array: Array, separator?: ?string): string; + join(array: void | null, separator?: ?string): ''; last(array: ?Array): T; - lastIndexOf(array: ?Array, value: T, fromIndex?: number): number; - nth(array: T[], n?: number): T; - pull(array: ?Array, ...values?: Array): Array; - pullAll(array: ?Array, values: Array): Array; - pullAllBy(array: ?Array, values: Array, iteratee?: ValueOnlyIteratee): Array; - pullAllWith(array?: T[], values: T[], 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; - slice(array: ?Array, start?: number, end?: number): Array; - sortedIndex(array: ?Array, value: T): number; - sortedIndexBy(array: ?Array, value: T, iteratee?: ValueOnlyIteratee): number; - sortedIndexOf(array: ?Array, value: T): number; - sortedLastIndex(array: ?Array, value: T): number; - sortedLastIndexBy(array: ?Array, value: T, iteratee?: ValueOnlyIteratee): number; - sortedLastIndexOf(array: ?Array, value: T): number; - sortedUniq(array: ?Array): Array; - sortedUniqBy(array: ?Array, iteratee?: (value: T) => mixed): Array; - tail(array: ?Array): Array; - take(array: ?Array, n?: number): Array; - takeRight(array: ?Array, n?: number): Array; - takeRightWhile(array: ?Array, predicate?: Predicate): Array; - takeWhile(array: ?Array, predicate?: Predicate): Array; + lastIndexOf(array: Array, value?: ?T, fromIndex?: ?number): number; + lastIndexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; + nth(array: T[], n?: ?number): T; + nth(array: void | null, n?: ?number): void; + pull(array: Array, ...values?: Array): Array; + pull(array: T, ...values?: Array): T; + pullAll(array: Array, values?: ?Array): Array; + pullAll(array: T, values?: ?Array): T; + pullAllBy( + array: Array, + values?: ?Array, + iteratee?: ?ValueOnlyIteratee + ): Array; + pullAllBy( + array: T, + values?: ?Array, + iteratee?: ?ValueOnlyIteratee + ): T; + pullAllWith(array: T[], values?: ?T[], comparator?: ?Function): T[]; + pullAllWith(array: T, values?: ?Array, comparator?: ?Function): T; + pullAt(array?: ?Array, ...indexed?: Array): Array; + pullAt(array?: ?Array, indexed?: ?Array): Array; + remove(array?: ?Array, predicate?: ?Predicate): Array; + reverse(array: Array): Array; + reverse(array: T): T; + slice(array?: ?Array, start?: ?number, end?: ?number): Array; + sortedIndex(array: Array, value: T): number; + sortedIndex(array: void | null, value: ?T): 0; + sortedIndexBy( + array: Array, + value?: ?T, + iteratee?: ?ValueOnlyIteratee + ): number; + sortedIndexBy( + array: void | null, + value?: ?T, + iteratee?: ?ValueOnlyIteratee + ): 0; + sortedIndexOf(array: Array, value: T): number; + sortedIndexOf(array: void | null, value?: ?T): -1; + sortedLastIndex(array: Array, value: T): number; + sortedLastIndex(array: void | null, value?: ?T): 0; + sortedLastIndexBy( + array: Array, + value: T, + iteratee?: ValueOnlyIteratee + ): number; + sortedLastIndexBy( + array: void | null, + value?: ?T, + iteratee?: ?ValueOnlyIteratee + ): 0; + sortedLastIndexOf(array: Array, value: T): number; + sortedLastIndexOf(array: void | null, value?: ?T): -1; + sortedUniq(array?: ?Array): Array; + sortedUniqBy(array?: ?Array, iteratee?: ?(value: T) => mixed): Array; + tail(array?: ?Array): Array; + take(array?: ?Array, n?: ?number): Array; + takeRight(array?: ?Array, n?: ?number): Array; + takeRightWhile(array?: ?Array, predicate?: ?Predicate): Array; + takeWhile(array?: ?Array, predicate?: ?Predicate): Array; union(...arrays?: Array>): Array; //Workaround until (...parameter: T, parameter2: U) works - unionBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; - unionBy(a1: Array, a2: Array, iteratee?: ValueOnlyIteratee): Array; - unionBy(a1: Array, a2: Array, a3: Array, iteratee?: ValueOnlyIteratee): Array; - unionBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: ValueOnlyIteratee): Array; + unionBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; + unionBy( + a1?: ?Array, + a2: Array, + iteratee?: ValueOnlyIteratee + ): Array; + unionBy( + a1: Array, + a2: Array, + a3: Array, + iteratee?: ValueOnlyIteratee + ): Array; + unionBy( + a1: Array, + a2: Array, + a3: Array, + a4: Array, + iteratee?: ValueOnlyIteratee + ): Array; //Workaround until (...parameter: T, parameter2: U) works - unionWith(a1: Array, comparator?: Comparator): Array; - unionWith(a1: Array, a2: Array, comparator?: Comparator): Array; - unionWith(a1: Array, a2: Array, a3: Array, comparator?: Comparator): Array; - unionWith(a1: Array, a2: Array, a3: Array, a4: Array, comparator?: Comparator): Array; - uniq(array: ?Array): Array; - uniqBy(array: ?Array, iteratee?: ValueOnlyIteratee): Array; - uniqWith(array: ?Array, comparator?: Comparator): Array; - unzip(array: ?Array): Array; - unzipWith(array: ?Array, iteratee?: Iteratee): Array; - without(array: ?Array, ...values?: Array): Array; + unionWith(a1?: ?Array, comparator?: ?Comparator): Array; + unionWith( + a1: Array, + a2: Array, + comparator?: Comparator + ): Array; + unionWith( + a1: Array, + a2: Array, + a3: Array, + comparator?: Comparator + ): Array; + unionWith( + a1: Array, + a2: Array, + a3: Array, + a4: Array, + comparator?: Comparator + ): Array; + uniq(array?: ?Array): Array; + uniqBy(array?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; + uniqWith(array?: ?Array, comparator?: ?Comparator): Array; + unzip(array?: ?Array): Array; + unzipWith(array: ?Array, iteratee?: ?Iteratee): Array; + without(array?: ?Array, ...values?: Array): Array; xor(...array: Array>): Array; //Workaround until (...parameter: T, parameter2: U) works - xorBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; - xorBy(a1: Array, a2: Array, iteratee?: ValueOnlyIteratee): Array; - xorBy(a1: Array, a2: Array, a3: Array, iteratee?: ValueOnlyIteratee): Array; - xorBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: ValueOnlyIteratee): Array; + 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]>; + 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]>; + zip( + a1: A[], + a2: B[], + a3: C[], + a4: D[], + a5: E[] + ): Array<[A, B, C, D, E]>; - zipObject(props?: Array, values?: Array): Object; - zipObjectDeep(props?: any[], values?: any): Object; - //Workaround until (...parameter: T, parameter2: U) works - zipWith(a1: NestedArray, iteratee?: Iteratee): Array; - zipWith(a1: NestedArray, a2: NestedArray, iteratee?: Iteratee): Array; - zipWith(a1: NestedArray, a2: NestedArray, a3: NestedArray, iteratee?: Iteratee): Array; - zipWith(a1: NestedArray, a2: NestedArray, a3: NestedArray, a4: NestedArray, iteratee?: Iteratee): Array; + 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(object: T, iteratee?: ValueOnlyIteratee): Object; + countBy(array: Array, iteratee?: ?ValueOnlyIteratee): Object; + countBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; + countBy(object: T, iteratee?: ?ValueOnlyIteratee): Object; // alias of _.forEach - each(array: ?Array, iteratee?: Iteratee): Array; - each(object: T, iteratee?: OIteratee): T; + each(array: Array, iteratee?: ?Iteratee): Array; + each(array: T, iteratee?: ?Iteratee): T; + each(object: T, iteratee?: ?OIteratee): T; // alias of _.forEachRight - eachRight(array: ?Array, iteratee?: Iteratee): Array; + eachRight(array: Array, iteratee?: ?Iteratee): Array; + eachRight(array: T, iteratee?: ?Iteratee): T; eachRight(object: T, iteratee?: OIteratee): T; - every(array: ?Array, iteratee?: Iteratee): bool; - every(object: T, iteratee?: OIteratee): bool; - filter(array: ?Array, predicate?: Predicate): Array; - filter(object: T, predicate?: OPredicate): Array; - find(array: ?Array, predicate?: Predicate, fromIndex?: number): T|void; - find(object: T, predicate?: OPredicate, fromIndex?: number): V; - findLast(array: ?Array, predicate?: Predicate, fromIndex?: number): T|void; - findLast(object: T, predicate?: OPredicate): V; - flatMap(array: ?Array, iteratee?: FlatMapIteratee): Array; - flatMap(object: T, iteratee?: OFlatMapIteratee): Array; - flatMapDeep(array: ?Array, iteratee?: FlatMapIteratee): Array; - flatMapDeep(object: T, iteratee?: OFlatMapIteratee): Array; - flatMapDepth(array: ?Array, iteratee?: FlatMapIteratee, depth?: number): Array; - flatMapDepth(object: T, iteratee?: OFlatMapIteratee, depth?: number): Array; - forEach(array: ?Array, iteratee?: Iteratee): Array; - forEach(object: T, iteratee?: OIteratee): T; - forEachRight(array: ?Array, iteratee?: Iteratee): Array; - forEachRight(object: T, iteratee?: OIteratee): T; - groupBy(array: ?Array, iteratee?: ValueOnlyIteratee): {[key: V]: ?Array}; - groupBy(object: T, iteratee?: ValueOnlyIteratee): {[key: V]: ?Array}; - includes(array: ?Array, value: T, fromIndex?: number): bool; - includes(object: T, value: any, fromIndex?: number): bool; - includes(str: string, value: string, fromIndex?: number): bool; - invokeMap(array: ?Array, path: ((value: T) => Array|string)|Array|string, ...args?: Array): Array; - invokeMap(object: T, path: ((value: any) => Array|string)|Array|string, ...args?: Array): Array; - keyBy(array: ?Array, iteratee?: ValueOnlyIteratee): {[key: V]: ?T}; - keyBy(object: T, iteratee?: ValueOnlyIteratee): {[key: V]: ?A}; - map(array: ?Array, iteratee?: MapIterator): Array; - map(object: ?T, iteratee?: OMapIterator): Array; - map(str: ?string, iteratee?: (char: string, index: number, str: string) => any): string; - orderBy(array: ?Array, iteratees?: Array>|string, orders?: Array<'asc'|'desc'>|string): Array; - orderBy(object: T, iteratees?: Array>|string, orders?: Array<'asc'|'desc'>|string): Array; - partition(array: ?Array, predicate?: Predicate): NestedArray; - partition(object: T, predicate?: OPredicate): NestedArray; - reduce(array: ?Array, iteratee?: (accumulator: U, value: T, index: number, array: ?Array) => U, accumulator?: U): U; - reduce(object: T, iteratee?: (accumulator: U, value: any, key: string, object: T) => U, accumulator?: U): U; - reduceRight(array: ?Array, iteratee?: (accumulator: U, value: T, index: number, array: ?Array) => U, accumulator?: U): U; - reduceRight(object: T, iteratee?: (accumulator: U, value: any, key: string, object: T) => U, accumulator?: U): U; + every(array?: ?$ReadOnlyArray, iteratee?: ?Iteratee): boolean; + every(object: T, iteratee?: OIteratee): boolean; + filter(array?: ?Array, predicate?: ?Predicate): Array; + filter( + object: T, + predicate?: OPredicate + ): Array; + find( + array: $ReadOnlyArray, + predicate?: ?Predicate, + fromIndex?: ?number + ): T | void; + find( + array: void | null, + predicate?: ?Predicate, + fromIndex?: ?number + ): void; + find( + object: T, + predicate?: OPredicate, + fromIndex?: number + ): V; + findLast( + array: ?$ReadOnlyArray, + predicate?: ?Predicate, + fromIndex?: ?number + ): T | void; + findLast( + object: T, + predicate?: ?OPredicate + ): V; + flatMap( + array?: ?$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: Array, iteratee?: ?Iteratee): Array; + forEach(array: T, iteratee?: ?Iteratee): T; + forEach(object: T, iteratee?: ?OIteratee): T; + forEachRight(array: Array, iteratee?: ?Iteratee): Array; + forEachRight(array: T, iteratee?: ?Iteratee): T; + forEachRight(object: T, iteratee?: ?OIteratee): T; + groupBy( + array: $ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee + ): { [key: V]: Array }; + groupBy( + array: void | null, + iteratee?: ?ValueOnlyIteratee + ): {}; + groupBy( + object: T, + iteratee?: ValueOnlyIteratee + ): { [key: V]: Array }; + includes(array: Array, value: T, fromIndex?: ?number): boolean; + includes(array: void | null, value?: ?T, fromIndex?: ?number): false; + includes(object: T, value: any, fromIndex?: number): boolean; + includes(str: string, value: string, fromIndex?: number): boolean; + invokeMap( + array?: ?Array, + path?: ?((value: T) => Array | string) | Array | string, + ...args?: Array + ): Array; + invokeMap( + object: T, + path: ((value: any) => Array | string) | Array | string, + ...args?: Array + ): Array; + keyBy( + array: $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: Array, + iteratee?: ( + accumulator: U, + value: T, + index: number, + array: ?Array + ) => U, + accumulator?: U + ): U; + reduce( + array: void | null, + iteratee?: ?( + accumulator: U, + value: T, + index: number, + array: ?Array + ) => U, + accumulator?: ?U + ): void | null; + reduce( + object: T, + iteratee?: (accumulator: U, value: any, key: string, object: T) => U, + accumulator?: U + ): U; + reduceRight( + array: void | null, + iteratee?: ?( + accumulator: U, + value: T, + index: number, + array: ?Array + ) => U, + accumulator?: ?U + ): void | null; + reduceRight( + array: Array, + iteratee?: ?( + accumulator: U, + value: T, + index: number, + array: ?Array + ) => U, + accumulator?: ?U + ): U; + reduceRight( + object: T, + iteratee?: ?(accumulator: U, value: any, key: string, object: T) => U, + accumulator?: ?U + ): U; reject(array: ?Array, predicate?: Predicate): Array; - reject(object: T, predicate?: OPredicate): Array; + reject( + object?: ?T, + predicate?: ?OPredicate + ): Array; sample(array: ?Array): T; sample(object: T): V; - sampleSize(array: ?Array, n?: number): Array; + sampleSize(array?: ?Array, n?: ?number): Array; sampleSize(object: T, n?: number): Array; shuffle(array: ?Array): Array; shuffle(object: T): Array; - size(collection: Array|Object): number; - some(array: ?Array, predicate?: Predicate): bool; - some(object?: ?T, predicate?: OPredicate): bool; - sortBy(array: ?Array, ...iteratees?: Array>): Array; - sortBy(array: ?Array, iteratees?: Array>): Array; - sortBy(object: T, ...iteratees?: Array>): Array; - sortBy(object: T, iteratees?: Array>): Array; + size(collection: Array | 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; @@ -237,18 +749,19 @@ declare module 'lodash' { 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; + bindKey(obj?: ?Object, key?: ?string, ...partials?: Array): Function; + curry: Curry; curry(func: Function, arity?: number): Function; curryRight(func: Function, arity?: number): Function; - debounce(func: Function, wait?: number, options?: DebounceOptions): Function; - defer(func: Function, ...args?: Array): number; - delay(func: Function, wait: number, ...args?: Array): number; + 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: Function, resolver?: 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; + 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; @@ -256,68 +769,141 @@ declare module 'lodash' { rearg(func: Function, indexes: Array): Function; rest(func: Function, start?: number): Function; spread(func: Function): Function; - throttle(func: Function, wait?: number, options?: ThrottleOptions): Function; + throttle( + func: Function, + wait?: number, + options?: ThrottleOptions + ): Function; unary(func: Function): Function; - wrap(value: any, wrapper: 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): bool; - gt(value: any, other: any): bool; - gte(value: any, other: any): bool; - isArguments(value: any): bool; - isArray(value: any): bool; - isArrayBuffer(value: any): bool; - isArrayLike(value: any): bool; - isArrayLikeObject(value: any): bool; - isBoolean(value: any): bool; - isBuffer(value: any): bool; - isDate(value: any): bool; - isElement(value: any): bool; - isEmpty(value: any): bool; - isEqual(value: any, other: any): bool; - isEqualWith(value: T, other: U, customizer?: (objValue: any, otherValue: any, key: number|string, object: T, other: U, stack: any) => bool|void): bool; - isError(value: any): bool; - isFinite(value: any): bool; + 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: number|string|void|null|Object): false; - isInteger(value: any): bool; - isLength(value: any): bool; - isMap(value: any): bool; - isMatch(object?: ?Object, source: Object): bool; - isMatchWith(object: T, source: U, customizer?: (objValue: any, srcValue: any, key: number|string, object: T, source: U) => bool|void): bool; - isNaN(value: any): bool; - isNative(value: any): bool; - isNil(value: any): bool; - isNull(value: any): bool; - isNumber(value: any): bool; - isObject(value: any): bool; - isObjectLike(value: any): bool; - isPlainObject(value: any): bool; - isRegExp(value: any): bool; - isSafeInteger(value: any): bool; - isSet(value: any): bool; + isFunction(value: any): false; + isInteger(value: number): boolean; + isInteger(value: any): false; + isLength(value: void | null): false; + isLength(value: any): boolean; + isMap(value: Map): true; + isMap(value: any): false; + isMatch(object?: ?Object, source?: ?Object): boolean; + isMatchWith( + object?: ?T, + source?: ?U, + customizer?: ?( + objValue: any, + srcValue: any, + key: number | string, + object: T, + source: U + ) => boolean | void + ): boolean; + isNaN(value: Function | string | void | null | Object): false; + isNaN(value: number): boolean; + isNative(value: number | string | void | null | Object): false; + isNative(value: any): boolean; + isNil(value: void | null): true; + isNil(value: any): false; + isNull(value: null): true; + isNull(value: any): false; + isNumber(value: number): true; + isNumber(value: any): false; + isObject(value: Object): true; + isObject(value: any): false; + isObjectLike(value: void | null): false; + isObjectLike(value: any): boolean; + isPlainObject(value: Object): true; + isPlainObject(value: any): false; + isRegExp(value: RegExp): true; + isRegExp(value: any): false; + isSafeInteger(value: number): boolean; + isSafeInteger(value: any): false; + isSet(value: Set): true; + isSet(value: any): false; isString(value: string): true; - isString(value: number|bool|Function|void|null|Object|Array): false; - isSymbol(value: any): bool; - isTypedArray(value: any): bool; - isUndefined(value: any): bool; - isWeakMap(value: any): bool; - isWeakSet(value: any): bool; - lt(value: any, other: any): bool; - lte(value: any, other: any): bool; + isString( + value: number | boolean | Function | void | null | Object | Array + ): false; + isSymbol(value: Symbol): true; + isSymbol(value: any): false; + isTypedArray(value: $TypedArray): true; + isTypedArray(value: any): false; + isUndefined(value: void): true; + isUndefined(value: any): false; + isWeakMap(value: WeakMap): true; + isWeakMap(value: any): false; + isWeakSet(value: WeakSet): true; + isWeakSet(value: any): false; + lt(value: any, other: any): boolean; + lte(value: any, other: any): boolean; toArray(value: any): Array; + toFinite(value: void | null): 0; toFinite(value: any): number; + toInteger(value: void | null): 0; toInteger(value: any): number; + toLength(value: void | null): 0; toLength(value: any): number; + toNumber(value: void | null): 0; toNumber(value: any): number; toPlainObject(value: any): Object; + toSafeInteger(value: void | null): 0; toSafeInteger(value: any): number; + toString(value: void | null): ''; toString(value: any): string; // Math @@ -338,81 +924,363 @@ declare module 'lodash' { sumBy(array: Array, iteratee?: Iteratee): number; // number - clamp(number: number, lower?: number, upper: number): number; - inRange(number: number, start?: number, end: number): bool; - random(lower?: number, upper?: number, floating?: bool): 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(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(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; + assignInWith(): {}; + assignInWith( + object: T, + s1: A, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void + ): Object; + assignInWith( + object: T, + s1: A, + s2: B, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B + ) => any | void + ): Object; + assignInWith( + object: T, + s1: A, + s2: B, + s3: C, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B | C + ) => any | void + ): Object; + assignInWith( + object: T, + s1: A, + s2: B, + s3: C, + s4: D, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B | C | D + ) => any | void + ): Object; + assignWith(): {}; + assignWith( + object: T, + s1: A, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void + ): Object; + assignWith( + object: T, + s1: A, + s2: B, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B + ) => any | void + ): Object; + assignWith( + object: T, + s1: A, + s2: B, + s3: C, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B | C + ) => any | void + ): Object; + assignWith( + object: T, + s1: A, + s2: B, + s3: C, + s4: D, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B | C | D + ) => any | void + ): Object; at(object?: ?Object, ...paths: Array): Array; at(object?: ?Object, paths: Array): Array; - create(prototype: T, properties?: Object): $Supertype; + create(prototype: T, properties: Object): $Supertype; + create(prototype: any, properties: void | null): {}; defaults(object?: ?Object, ...sources?: Array): Object; defaultsDeep(object?: ?Object, ...sources?: Array): Object; // alias for _.toPairs - entries(object?: ?Object): NestedArray; + entries(object?: ?Object): Array<[string, any]>; // alias for _.toPairsIn - entriesIn(object?: ?Object): NestedArray; + entriesIn(object?: ?Object): Array<[string, any]>; // alias for _.assignIn - extend(a: A, b: B): A & B; + 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; - findLastKey(object?: ?T, predicate?: OPredicate): string|void; - forIn(object?: ?Object, iteratee?: OIteratee<*>): Object; - forInRight(object?: ?Object, iteratee?: OIteratee<*>): Object; - forOwn(object?: ?Object, iteratee?: OIteratee<*>): Object; - forOwnRight(object?: ?Object, iteratee?: OIteratee<*>): Object; + extendWith( + object?: ?T, + s1?: ?A, + customizer?: ?( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void + ): Object; + extendWith( + object: T, + s1: A, + s2: B, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B + ) => any | void + ): Object; + extendWith( + object: T, + s1: A, + s2: B, + s3: C, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B | C + ) => any | void + ): Object; + extendWith( + object: T, + s1: A, + s2: B, + s3: C, + s4: D, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B | C | D + ) => any | void + ): Object; + findKey( + object: T, + predicate?: ?OPredicate + ): string | void; + findKey( + object: void | null, + predicate?: ?OPredicate + ): void; + findLastKey( + object: T, + predicate?: ?OPredicate + ): string | void; + findLastKey( + object: void | null, + predicate?: ?OPredicate + ): void; + forIn(object: Object, iteratee?: ?OIteratee<*>): Object; + forIn(object: void | null, iteratee?: ?OIteratee<*>): null; + forInRight(object: Object, iteratee?: ?OIteratee<*>): Object; + forInRight(object: void | null, iteratee?: ?OIteratee<*>): null; + forOwn(object: Object, iteratee?: ?OIteratee<*>): Object; + forOwn(object: void | null, iteratee?: ?OIteratee<*>): null; + forOwnRight(object: Object, iteratee?: ?OIteratee<*>): Object; + forOwnRight(object: void | null, iteratee?: ?OIteratee<*>): null; functions(object?: ?Object): Array; functionsIn(object?: ?Object): Array; - get(object?: ?Object|?Array, path?: ?Array|string, defaultValue?: any): any; - has(object?: ?Object, path?: ?Array|string): bool; - hasIn(object?: ?Object, path?: ?Array|string): bool; - invert(object?: ?Object, multiVal?: bool): Object; - invertBy(object: ?Object, iteratee?: Function): Object; - invoke(object?: ?Object, path?: ?Array|string, ...args?: Array): any; + get( + object?: ?Object | ?Array, + path?: ?Array | string, + defaultValue?: any + ): any; + has(object: Object, path: Array | string): boolean; + has(object: Object, path: void | null): false; + has(object: void | null, path?: ?Array | ?string): false; + hasIn(object: Object, path: Array | string): boolean; + hasIn(object: Object, path: void | null): false; + hasIn(object: void | null, path?: ?Array | ?string): false; + invert(object: Object, multiVal?: ?boolean): Object; + invert(object: void | null, multiVal?: ?boolean): {}; + invertBy(object: Object, iteratee?: ?Function): Object; + invertBy(object: void | null, iteratee?: ?Function): {}; + invoke( + object?: ?Object, + path?: ?Array | string, + ...args?: Array + ): any; + keys(object?: ?{ [key: K]: any }): Array; keys(object?: ?Object): Array; keysIn(object?: ?Object): Array; - mapKeys(object?: ?Object, iteratee?: OIteratee<*>): Object; - mapValues(object?: ?Object, iteratee?: OIteratee<*>): Object; + 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(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; + mergeWith(): {}; + mergeWith( + object: T, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void + ): Object; + mergeWith( + object: T, + s1: A, + s2: B, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B + ) => any | void + ): Object; + mergeWith( + object: T, + s1: A, + s2: B, + s3: C, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B | C + ) => any | void + ): Object; + mergeWith( + object: T, + s1: A, + s2: B, + s3: C, + s4: D, + customizer?: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B | C | D + ) => any | void + ): Object; omit(object?: ?Object, ...props: Array): Object; omit(object?: ?Object, props: Array): Object; - omitBy(object?: ?T, predicate?: OPredicate): Object; + omitBy( + object: T, + predicate?: ?OPredicate + ): Object; + omitBy( + object: T, + predicate?: ?OPredicate + ): {}; pick(object?: ?Object, ...props: Array): Object; pick(object?: ?Object, props: Array): Object; - pickBy(object?: ?T, predicate?: OPredicate): Object; - result(object?: ?Object, path?: ?Array|string, defaultValue?: any): any; - set(object?: ?Object, path?: ?Array|string, value: any): Object; - setWith(object: T, path?: ?Array|string, value: any, customizer?: (nsValue: any, key: string, nsObject: T) => any): Object; - toPairs(object?: ?Object|Array<*>): NestedArray; - toPairsIn(object?: ?Object): NestedArray; - transform(collection: Object|Array, iteratee?: OIteratee<*>, accumulator?: any): any; - unset(object?: ?Object, path?: ?Array|string): bool; - update(object: Object, path: string[]|string, updater: Function): Object; - updateWith(object: Object, path: string[]|string, updater: Function, customizer?: Function): Object; + pickBy( + object: T, + predicate?: ?OPredicate + ): Object; + pickBy( + object: T, + predicate?: ?OPredicate + ): {}; + result( + object?: ?Object, + path?: ?Array | string, + defaultValue?: any + ): any; + set(object: Object, path?: ?Array | string, value: any): Object; + set( + object: T, + path?: ?Array | string, + value?: ?any): T; + setWith( + object: T, + path?: ?Array | string, + value: any, + customizer?: (nsValue: any, key: string, nsObject: T) => any + ): Object; + setWith( + object: T, + path?: ?Array | string, + value?: ?any, + customizer?: ?(nsValue: any, key: string, nsObject: T) => any + ): T; + toPairs(object?: ?Object | Array<*>): Array<[string, any]>; + toPairsIn(object?: ?Object): Array<[string, any]>; + transform( + collection: Object | $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; @@ -420,95 +1288,4704 @@ declare module 'lodash' { // 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; + tap(value: T, interceptor: (value: T) => any): T; + thru(value: T1, interceptor: (value: T1) => T2): T2; // TODO: _.prototype.* // String - camelCase(string?: ?string): string; - capitalize(string?: string): string; - deburr(string?: string): string; - endsWith(string?: string, target?: string, position?: number): bool; - escape(string?: string): string; - escapeRegExp(string?: string): string; - kebabCase(string?: string): string; - lowerCase(string?: string): string; - lowerFirst(string?: string): string; - 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; - replace(string?: string, pattern: RegExp|string, replacement: ((string: string) => string)|string): string; - snakeCase(string?: string): string; - split(string?: string, separator: RegExp|string, limit?: number): Array; - startCase(string?: string): string; - startsWith(string?: string, target?: string, position?: number): bool; - template(string?: string, options?: TemplateSettings): Function; - toLower(string?: string): string; - toUpper(string?: string): string; - trim(string?: string, chars?: string): string; - trimEnd(string?: string, chars?: string): string; - trimStart(string?: string, chars?: string): string; - truncate(string?: string, options?: TruncateOptions): string; - unescape(string?: string): string; - upperCase(string?: string): string; - upperFirst(string?: string): string; - words(string?: string, pattern?: RegExp|string): Array; + 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): any; - bindAll(object?: ?Object, methodNames: Array): Object; - bindAll(object?: ?Object, ...methodNames: Array): Object; - cond(pairs: NestedArray): Function; - conforms(source: Object): Function; + 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, default: T2): T1; + 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, default: T2): T1|T2; - defaultTo(value: T1, default: T2): T2; - flow(...funcs?: Array): Function; - flow(funcs?: Array): Function; - flowRight(...funcs?: Array): Function; - flowRight(funcs?: Array): Function; + 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; + 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: bool }): T; + mixin( + object?: T, + source: Object, + options?: { chain: boolean } + ): T; noConflict(): Lodash; noop(...args: Array): void; - nthArg(n?: number): Function; + 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; + 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; + rangeRight(start?: ?number, end?: ?number, step?: ?number): Array; + rangeRight(end?: ?number, step?: ?number): Array; + runInContext(context?: ?Object): Function; stubArray(): Array<*>; stubFalse(): false; stubObject(): {}; - stubString(): ''; + stubString(): ""; stubTrue(): true; - times(n: number, ...rest: Array): Array; - times(n: number, iteratee: ((i: number) => T)): Array; + times(n?: ?number, ...rest?: Array): Array; + times(n: number, iteratee: (i: number) => T): Array; toPath(value: any): Array; - uniqueId(prefix?: string): string; + uniqueId(prefix?: ?string): string; // Properties VERSION: string; templateSettings: TemplateSettings; } - declare var exports: Lodash; + 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( + values: $ReadOnlyArray + ): ((comparator: Comparator) => (array: $ReadOnlyArray) => T[]) & + ((comparator: Comparator, array: $ReadOnlyArray) => T[]); + differenceWith( + values: $ReadOnlyArray, + comparator: Comparator + ): (array: $ReadOnlyArray) => T[]; + differenceWith(values: $ReadOnlyArray, comparator: Comparator, array: $ReadOnlyArray): T[]; + drop(n: number): (array: Array) => Array; + drop(n: number, array: Array): Array; + dropLast(n: number): (array: Array) => Array; + dropLast(n: number, array: Array): Array; + dropRight(n: number): (array: Array) => Array; + dropRight(n: number, array: Array): Array; + dropRightWhile(predicate: Predicate): (array: Array) => Array; + dropRightWhile(predicate: Predicate, array: Array): Array; + dropWhile(predicate: Predicate): (array: Array) => Array; + dropWhile(predicate: Predicate, array: Array): Array; + dropLastWhile(predicate: Predicate): (array: Array) => Array; + dropLastWhile(predicate: Predicate, array: Array): Array; + fill( + start: number + ): (( + end: number + ) => ((value: U) => (array: Array) => Array) & + ((value: U, array: Array) => Array)) & + ((end: number, value: U) => (array: Array) => Array) & + ((end: number, value: U, array: Array) => Array); + fill( + start: number, + end: number + ): ((value: U) => (array: Array) => Array) & + ((value: U, array: Array) => Array); + fill( + start: number, + end: number, + value: U + ): (array: Array) => Array; + fill( + start: number, + end: number, + value: U, + array: Array + ): Array; + findIndex(predicate: Predicate): (array: $ReadOnlyArray) => number; + findIndex(predicate: Predicate, array: $ReadOnlyArray): number; + findIndexFrom( + predicate: Predicate + ): ((fromIndex: number) => (array: $ReadOnlyArray) => number) & + ((fromIndex: number, array: $ReadOnlyArray) => number); + findIndexFrom( + predicate: Predicate, + fromIndex: number + ): (array: $ReadOnlyArray) => number; + findIndexFrom( + predicate: Predicate, + fromIndex: number, + array: $ReadOnlyArray + ): number; + findLastIndex( + predicate: Predicate + ): (array: $ReadOnlyArray) => number; + findLastIndex(predicate: Predicate, array: $ReadOnlyArray): number; + findLastIndexFrom( + predicate: Predicate + ): ((fromIndex: number) => (array: $ReadOnlyArray) => number) & + ((fromIndex: number, array: $ReadOnlyArray) => number); + findLastIndexFrom( + predicate: Predicate, + fromIndex: number + ): (array: $ReadOnlyArray) => number; + findLastIndexFrom( + predicate: Predicate, + fromIndex: number, + array: $ReadOnlyArray + ): number; + // alias of _.head + first(array: Array): T; + flatten(array: Array | X>): Array; + unnest(array: Array | X>): Array; + flattenDeep(array: any[]): Array; + flattenDepth(depth: number): (array: any[]) => any[]; + flattenDepth(depth: number, array: any[]): any[]; + fromPairs(pairs: Array<[A, B]>): { [key: A]: B }; + head(array: Array): T; + indexOf(value: T): (array: Array) => number; + indexOf(value: T, array: Array): number; + indexOfFrom( + value: T + ): ((fromIndex: number) => (array: Array) => number) & + ((fromIndex: number, array: Array) => number); + indexOfFrom(value: T, fromIndex: number): (array: Array) => number; + indexOfFrom(value: T, fromIndex: number, array: Array): number; + initial(array: Array): Array; + init(array: Array): Array; + intersection(a1: Array): (a2: Array) => Array; + intersection(a1: Array, a2: Array): Array; + intersectionBy( + iteratee: ValueOnlyIteratee + ): ((a1: Array) => (a2: Array) => Array) & + ((a1: Array, a2: Array) => Array); + intersectionBy( + iteratee: ValueOnlyIteratee, + a1: Array + ): (a2: Array) => Array; + intersectionBy( + iteratee: ValueOnlyIteratee, + a1: Array, + a2: Array + ): Array; + intersectionWith( + comparator: Comparator + ): ((a1: Array) => (a2: Array) => Array) & + ((a1: Array, a2: Array) => Array); + intersectionWith( + comparator: Comparator, + a1: Array + ): (a2: Array) => Array; + intersectionWith( + comparator: Comparator, + a1: Array, + a2: Array + ): Array; + join(separator: string): (array: Array) => string; + join(separator: string, array: Array): string; + last(array: Array): T; + lastIndexOf(value: T): (array: Array) => number; + lastIndexOf(value: T, array: Array): number; + lastIndexOfFrom( + value: T + ): ((fromIndex: number) => (array: Array) => number) & + ((fromIndex: number, array: Array) => number); + lastIndexOfFrom( + value: T, + fromIndex: number + ): (array: Array) => number; + lastIndexOfFrom(value: T, fromIndex: number, array: Array): number; + nth(n: number): (array: T[]) => T; + nth(n: number, array: T[]): T; + pull(value: T): (array: Array) => Array; + pull(value: T, array: Array): Array; + pullAll(values: Array): (array: Array) => Array; + pullAll(values: Array, array: Array): Array; + pullAllBy( + iteratee: ValueOnlyIteratee + ): ((values: Array) => (array: Array) => Array) & + ((values: Array, array: Array) => Array); + pullAllBy( + iteratee: ValueOnlyIteratee, + values: Array + ): (array: Array) => Array; + pullAllBy( + iteratee: ValueOnlyIteratee, + values: Array, + array: Array + ): Array; + pullAllWith( + comparator: Function + ): ((values: T[]) => (array: T[]) => T[]) & + ((values: T[], array: T[]) => T[]); + pullAllWith(comparator: Function, values: T[]): (array: T[]) => T[]; + pullAllWith(comparator: Function, values: T[], array: T[]): T[]; + pullAt(indexed: Array): (array: Array) => Array; + pullAt(indexed: Array, array: Array): Array; + remove(predicate: Predicate): (array: Array) => Array; + remove(predicate: Predicate, array: Array): Array; + reverse(array: Array): Array; + slice( + start: number + ): ((end: number) => (array: Array) => Array) & + ((end: number, array: Array) => Array); + slice(start: number, end: number): (array: Array) => Array; + slice(start: number, end: number, array: Array): Array; + sortedIndex(value: T): (array: Array) => number; + sortedIndex(value: T, array: Array): number; + sortedIndexBy( + iteratee: ValueOnlyIteratee + ): ((value: T) => (array: Array) => number) & + ((value: T, array: Array) => number); + sortedIndexBy( + iteratee: ValueOnlyIteratee, + value: T + ): (array: Array) => number; + sortedIndexBy( + iteratee: ValueOnlyIteratee, + value: T, + array: Array + ): number; + sortedIndexOf(value: T): (array: Array) => number; + sortedIndexOf(value: T, array: Array): number; + sortedLastIndex(value: T): (array: Array) => number; + sortedLastIndex(value: T, array: Array): number; + sortedLastIndexBy( + iteratee: ValueOnlyIteratee + ): ((value: T) => (array: Array) => number) & + ((value: T, array: Array) => number); + sortedLastIndexBy( + iteratee: ValueOnlyIteratee, + value: T + ): (array: Array) => number; + sortedLastIndexBy( + iteratee: ValueOnlyIteratee, + value: T, + array: Array + ): number; + sortedLastIndexOf(value: T): (array: Array) => number; + sortedLastIndexOf(value: T, array: Array): number; + sortedUniq(array: Array): Array; + sortedUniqBy( + iteratee: (value: T) => mixed + ): (array: Array) => Array; + sortedUniqBy(iteratee: (value: T) => mixed, array: Array): Array; + tail(array: Array): Array; + take(n: number): (array: Array) => Array; + take(n: number, array: Array): Array; + takeRight(n: number): (array: Array) => Array; + takeRight(n: number, array: Array): Array; + takeLast(n: number): (array: Array) => Array; + takeLast(n: number, array: Array): Array; + takeRightWhile(predicate: Predicate): (array: Array) => Array; + takeRightWhile(predicate: Predicate, array: Array): Array; + takeLastWhile(predicate: Predicate): (array: Array) => Array; + takeLastWhile(predicate: Predicate, array: Array): Array; + takeWhile(predicate: Predicate): (array: Array) => Array; + takeWhile(predicate: Predicate, array: Array): Array; + union(a1: Array): (a2: Array) => Array; + union(a1: Array, a2: Array): Array; + unionBy( + iteratee: ValueOnlyIteratee + ): ((a1: Array) => (a2: Array) => Array) & + ((a1: Array, a2: Array) => Array); + unionBy( + iteratee: ValueOnlyIteratee, + a1: Array + ): (a2: Array) => Array; + unionBy( + iteratee: ValueOnlyIteratee, + a1: Array, + a2: Array + ): Array; + unionWith( + comparator: Comparator + ): ((a1: Array) => (a2: Array) => Array) & + ((a1: Array, a2: Array) => Array); + unionWith( + comparator: Comparator, + a1: Array + ): (a2: Array) => Array; + unionWith( + comparator: Comparator, + a1: Array, + a2: Array + ): Array; + uniq(array: Array): Array; + uniqBy(iteratee: ValueOnlyIteratee): (array: Array) => Array; + uniqBy(iteratee: ValueOnlyIteratee, array: Array): Array; + uniqWith(comparator: Comparator): (array: Array) => Array; + uniqWith(comparator: Comparator, array: Array): Array; + unzip(array: Array): Array; + unzipWith(iteratee: Iteratee): (array: Array) => Array; + unzipWith(iteratee: Iteratee, array: Array): Array; + without(values: Array): (array: Array) => Array; + without(values: Array, array: Array): Array; + xor(a1: Array): (a2: Array) => Array; + xor(a1: Array, a2: Array): Array; + symmetricDifference(a1: Array): (a2: Array) => Array; + symmetricDifference(a1: Array, a2: Array): Array; + xorBy( + iteratee: ValueOnlyIteratee + ): ((a1: Array) => (a2: Array) => Array) & + ((a1: Array, a2: Array) => Array); + xorBy( + iteratee: ValueOnlyIteratee, + a1: Array + ): (a2: Array) => Array; + xorBy( + iteratee: ValueOnlyIteratee, + a1: Array, + a2: Array + ): Array; + symmetricDifferenceBy( + iteratee: ValueOnlyIteratee + ): ((a1: Array) => (a2: Array) => Array) & + ((a1: Array, a2: Array) => Array); + symmetricDifferenceBy( + iteratee: ValueOnlyIteratee, + a1: Array + ): (a2: Array) => Array; + symmetricDifferenceBy( + iteratee: ValueOnlyIteratee, + a1: Array, + a2: Array + ): Array; + xorWith( + comparator: Comparator + ): ((a1: Array) => (a2: Array) => Array) & + ((a1: Array, a2: Array) => Array); + xorWith( + comparator: Comparator, + a1: Array + ): (a2: Array) => Array; + xorWith(comparator: Comparator, a1: Array, a2: Array): Array; + symmetricDifferenceWith( + comparator: Comparator + ): ((a1: Array) => (a2: Array) => Array) & + ((a1: Array, a2: Array) => Array); + symmetricDifferenceWith( + comparator: Comparator, + a1: Array + ): (a2: Array) => Array; + symmetricDifferenceWith( + comparator: Comparator, + a1: Array, + a2: Array + ): Array; + zip(a1: A[]): (a2: B[]) => Array<[A, B]>; + zip(a1: A[], a2: B[]): Array<[A, B]>; + zipAll(arrays: Array>): Array; + zipObject(props?: Array): (values?: Array) => { [key: K]: V }; + zipObject(props?: Array, values?: Array): { [key: K]: V }; + zipObj(props: Array): (values: Array) => Object; + zipObj(props: Array, values: Array): Object; + zipObjectDeep(props: any[]): (values: any) => Object; + zipObjectDeep(props: any[], values: any): Object; + zipWith( + iteratee: Iteratee + ): ((a1: NestedArray) => (a2: NestedArray) => Array) & + ((a1: NestedArray, a2: NestedArray) => Array); + zipWith( + iteratee: Iteratee, + a1: NestedArray + ): (a2: NestedArray) => Array; + zipWith( + iteratee: Iteratee, + a1: NestedArray, + a2: NestedArray + ): Array; + // Collection + countBy( + iteratee: ValueOnlyIteratee + ): (collection: Array | { [id: any]: T }) => { [string]: number }; + countBy( + iteratee: ValueOnlyIteratee, + collection: Array | { [id: any]: T } + ): { [string]: number }; + // alias of _.forEach + each( + iteratee: Iteratee | OIteratee + ): (collection: Array | { [id: any]: T }) => Array; + each( + iteratee: Iteratee | OIteratee, + collection: Array | { [id: any]: T } + ): Array; + // alias of _.forEachRight + eachRight( + iteratee: Iteratee | OIteratee + ): (collection: Array | { [id: any]: T }) => Array; + eachRight( + iteratee: Iteratee | OIteratee, + collection: Array | { [id: any]: T } + ): Array; + every( + iteratee: Iteratee | OIteratee + ): (collection: $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: Array | { [id: any]: T }) => Array; + filter( + predicate: Predicate | OPredicate, + collection: Array | { [id: any]: T } + ): Array; + find( + predicate: Predicate | OPredicate + ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; + find( + predicate: Predicate | OPredicate, + collection: $ReadOnlyArray | { [id: any]: T } + ): T | void; + findFrom( + predicate: Predicate | OPredicate + ): (( + fromIndex: number + ) => (collection: $ReadOnlyArray | { [id: any]: T }) => T | void) & + (( + fromIndex: number, + collection: $ReadOnlyArray | { [id: any]: T } + ) => T | void); + findFrom( + predicate: Predicate | OPredicate, + fromIndex: number + ): (collection: Array | { [id: any]: T }) => T | void; + findFrom( + predicate: Predicate | OPredicate, + fromIndex: number, + collection: $ReadOnlyArray | { [id: any]: T } + ): T | void; + findLast( + predicate: Predicate | OPredicate + ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; + findLast( + predicate: Predicate | OPredicate, + collection: $ReadOnlyArray | { [id: any]: T } + ): T | void; + findLastFrom( + predicate: Predicate | OPredicate + ): (( + fromIndex: number + ) => (collection: $ReadOnlyArray | { [id: any]: T }) => T | void) & + (( + fromIndex: number, + collection: $ReadOnlyArray | { [id: any]: T } + ) => T | void); + findLastFrom( + predicate: Predicate | OPredicate, + fromIndex: number + ): (collection: $ReadOnlyArray | { [id: any]: T }) => T | void; + findLastFrom( + predicate: Predicate | OPredicate, + fromIndex: number, + collection: $ReadOnlyArray | { [id: any]: T } + ): T | void; + flatMap( + iteratee: FlatMapIteratee | OFlatMapIteratee + ): (collection: Array | { [id: any]: T }) => Array; + flatMap( + iteratee: FlatMapIteratee | OFlatMapIteratee, + collection: Array | { [id: any]: T } + ): Array; + flatMapDeep( + iteratee: FlatMapIteratee | OFlatMapIteratee + ): (collection: Array | { [id: any]: T }) => Array; + flatMapDeep( + iteratee: FlatMapIteratee | OFlatMapIteratee, + collection: Array | { [id: any]: T } + ): Array; + flatMapDepth( + iteratee: FlatMapIteratee | OFlatMapIteratee + ): (( + depth: number + ) => (collection: Array | { [id: any]: T }) => Array) & + ((depth: number, collection: Array | { [id: any]: T }) => Array); + flatMapDepth( + iteratee: FlatMapIteratee | OFlatMapIteratee, + depth: number + ): (collection: Array | { [id: any]: T }) => Array; + flatMapDepth( + iteratee: FlatMapIteratee | OFlatMapIteratee, + depth: number, + collection: Array | { [id: any]: T } + ): Array; + forEach( + iteratee: Iteratee | OIteratee + ): (collection: Array | { [id: any]: T }) => Array; + forEach( + iteratee: Iteratee | OIteratee, + collection: Array | { [id: any]: T } + ): Array; + forEachRight( + iteratee: Iteratee | OIteratee + ): (collection: Array | { [id: any]: T }) => Array; + forEachRight( + iteratee: Iteratee | OIteratee, + collection: Array | { [id: any]: T } + ): Array; + groupBy( + iteratee: ValueOnlyIteratee + ): ( + collection: $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: Array | { [id: any]: T }) => Array; + map( + iteratee: MapIterator | OMapIterator, + collection: Array | { [id: any]: T } + ): Array; + map(iteratee: (char: string) => any): (str: string) => string; + map(iteratee: (char: string) => any, str: string): string; + pluck( + iteratee: MapIterator | OMapIterator + ): (collection: Array | { [id: any]: T }) => Array; + pluck( + iteratee: MapIterator | OMapIterator, + collection: Array | { [id: any]: T } + ): Array; + pluck(iteratee: (char: string) => any): (str: string) => string; + pluck(iteratee: (char: string) => any, str: string): string; + orderBy( + iteratees: $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: Array | 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: number | boolean | Function | void | null | Object | Array + ): false; + isSymbol(value: any): boolean; + isTypedArray(value: any): boolean; + isUndefined(value: any): boolean; + isWeakMap(value: any): boolean; + isWeakSet(value: any): boolean; + lt(value: any): (other: any) => boolean; + lt(value: any, other: any): boolean; + lte(value: any): (other: any) => boolean; + lte(value: any, other: any): boolean; + toArray(value: any): Array; + toFinite(value: any): number; + toInteger(value: any): number; + toLength(value: any): number; + toNumber(value: any): number; + toPlainObject(value: any): Object; + toSafeInteger(value: any): number; + toString(value: any): string; + + // Math + add(augend: number): (addend: number) => number; + add(augend: number, addend: number): number; + ceil(number: number): number; + divide(dividend: number): (divisor: number) => number; + divide(dividend: number, divisor: number): number; + floor(number: number): number; + max(array: Array): T; + maxBy(iteratee: Iteratee): (array: Array) => T; + maxBy(iteratee: Iteratee, array: Array): T; + mean(array: Array<*>): number; + meanBy(iteratee: Iteratee): (array: Array) => number; + meanBy(iteratee: Iteratee, array: Array): number; + min(array: Array): T; + minBy(iteratee: Iteratee): (array: Array) => T; + minBy(iteratee: Iteratee, array: Array): T; + multiply(multiplier: number): (multiplicand: number) => number; + multiply(multiplier: number, multiplicand: number): number; + round(number: number): number; + subtract(minuend: number): (subtrahend: number) => number; + subtract(minuend: number, subtrahend: number): number; + sum(array: Array<*>): number; + sumBy(iteratee: Iteratee): (array: Array) => number; + sumBy(iteratee: Iteratee, array: Array): number; + + // number + clamp( + lower: number + ): ((upper: number) => (number: number) => number) & + ((upper: number, number: number) => number); + clamp(lower: number, upper: number): (number: number) => number; + clamp(lower: number, upper: number, number: number): number; + inRange( + start: number + ): ((end: number) => (number: number) => boolean) & + ((end: number, number: number) => boolean); + inRange(start: number, end: number): (number: number) => boolean; + inRange(start: number, end: number, number: number): boolean; + random(lower: number): (upper: number) => number; + random(lower: number, upper: number): number; + + // Object + assign(object: Object): (source: Object) => Object; + assign(object: Object, source: Object): Object; + assignAll(objects: Array): Object; + assignInAll(objects: Array): Object; + extendAll(objects: Array): Object; + assignIn(a: A): (b: B) => A & B; + assignIn(a: A, b: B): A & B; + assignInWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void + ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); + assignInWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void, + object: T + ): (s1: A) => Object; + assignInWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void, + object: T, + s1: A + ): Object; + assignWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void + ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); + assignWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void, + object: T + ): (s1: A) => Object; + assignWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void, + object: T, + s1: A + ): Object; + assignInAllWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: Object, + source: Object + ) => any | void + ): (objects: Array) => Object; + assignInAllWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: Object, + source: Object + ) => any | void, + objects: Array + ): Object; + extendAllWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: Object, + source: Object + ) => any | void + ): (objects: Array) => Object; + extendAllWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: Object, + source: Object + ) => any | void, + objects: Array + ): Object; + assignAllWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: Object, + source: Object + ) => any | void + ): (objects: Array) => Object; + assignAllWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: Object, + source: Object + ) => any | void, + objects: Array + ): Object; + at(paths: Array): (object: Object) => Array; + at(paths: Array, object: Object): Array; + props(paths: Array): (object: Object) => Array; + props(paths: Array, object: Object): Array; + paths(paths: Array): (object: Object) => Array; + paths(paths: Array, object: Object): Array; + create(prototype: T): $Supertype; + defaults(source: Object): (object: Object) => Object; + defaults(source: Object, object: Object): Object; + defaultsAll(objects: Array): Object; + defaultsDeep(source: Object): (object: Object) => Object; + defaultsDeep(source: Object, object: Object): Object; + defaultsDeepAll(objects: Array): Object; + // alias for _.toPairs + entries(object: Object): Array<[string, any]>; + // alias for _.toPairsIn + entriesIn(object: Object): Array<[string, any]>; + // alias for _.assignIn + extend(a: A): (b: B) => A & B; + extend(a: A, b: B): A & B; + // alias for _.assignInWith + extendWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void + ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); + extendWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void, + object: T + ): (s1: A) => Object; + extendWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A + ) => any | void, + object: T, + s1: A + ): Object; + findKey( + predicate: OPredicate + ): (object: T) => string | void; + findKey( + predicate: OPredicate, + object: T + ): string | void; + findLastKey( + predicate: OPredicate + ): (object: T) => string | void; + findLastKey( + predicate: OPredicate, + object: T + ): string | void; + forIn(iteratee: OIteratee<*>): (object: Object) => Object; + forIn(iteratee: OIteratee<*>, object: Object): Object; + forInRight(iteratee: OIteratee<*>): (object: Object) => Object; + forInRight(iteratee: OIteratee<*>, object: Object): Object; + forOwn(iteratee: OIteratee<*>): (object: Object) => Object; + forOwn(iteratee: OIteratee<*>, object: Object): Object; + forOwnRight(iteratee: OIteratee<*>): (object: Object) => Object; + forOwnRight(iteratee: OIteratee<*>, object: Object): Object; + functions(object: Object): Array; + functionsIn(object: Object): Array; + get(path: Array | string): (object: Object | Array) => any; + get(path: Array | string, object: Object | Array): any; + prop(path: Array | string): (object: Object | Array) => any; + prop(path: Array | string, object: Object | Array): any; + path(path: Array | string): (object: Object | Array) => any; + path(path: Array | string, object: Object | Array): any; + getOr( + defaultValue: any + ): (( + path: Array | string + ) => (object: Object | Array) => any) & + ((path: Array | string, object: Object | Array) => any); + getOr( + defaultValue: any, + path: Array | string + ): (object: Object | Array) => any; + getOr( + defaultValue: any, + path: Array | string, + object: Object | Array + ): any; + propOr( + defaultValue: any + ): (( + path: Array | string + ) => (object: Object | Array) => any) & + ((path: Array | string, object: Object | Array) => any); + propOr( + defaultValue: any, + path: Array | string + ): (object: Object | Array) => any; + propOr( + defaultValue: any, + path: Array | string, + object: Object | Array + ): any; + pathOr( + defaultValue: any + ): (( + path: Array | string + ) => (object: Object | Array) => any) & + ((path: Array | string, object: Object | Array) => any); + pathOr( + defaultValue: any, + path: Array | string + ): (object: Object | Array) => any; + pathOr( + defaultValue: any, + path: Array | string, + object: Object | Array + ): any; + has(path: Array | string): (object: Object) => boolean; + has(path: Array | string, object: Object): boolean; + hasIn(path: Array | string): (object: Object) => boolean; + hasIn(path: Array | string, object: Object): boolean; + invert(object: Object): Object; + invertObj(object: Object): Object; + invertBy(iteratee: Function): (object: Object) => Object; + invertBy(iteratee: Function, object: Object): Object; + invoke(path: Array | string): (object: Object) => any; + invoke(path: Array | string, object: Object): any; + invokeArgs( + path: Array | string + ): ((object: Object) => (args: Array) => any) & + ((object: Object, args: Array) => any); + invokeArgs( + path: Array | string, + object: Object + ): (args: Array) => any; + invokeArgs( + path: Array | string, + object: Object, + args: Array + ): any; + keys(object: { [key: K]: any }): Array; + keys(object: Object): Array; + keysIn(object: Object): Array; + mapKeys(iteratee: OIteratee<*>): (object: Object) => Object; + mapKeys(iteratee: OIteratee<*>, object: Object): Object; + mapValues(iteratee: OIteratee<*>): (object: Object) => Object; + mapValues(iteratee: OIteratee<*>, object: Object): Object; + merge(object: Object): (source: Object) => Object; + merge(object: Object, source: Object): Object; + mergeAll(objects: Array): Object; + mergeWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B + ) => any | void + ): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object); + mergeWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B + ) => any | void, + object: T + ): (s1: A) => Object; + mergeWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: T, + source: A | B + ) => any | void, + object: T, + s1: A + ): Object; + mergeAllWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: Object, + source: Object + ) => any | void + ): (objects: Array) => Object; + mergeAllWith( + customizer: ( + objValue: any, + srcValue: any, + key: string, + object: Object, + source: Object + ) => any | void, + objects: Array + ): Object; + omit(props: Array): (object: Object) => Object; + omit(props: Array, object: Object): Object; + omitAll(props: Array): (object: Object) => Object; + omitAll(props: Array, object: Object): Object; + omitBy( + predicate: OPredicate + ): (object: T) => Object; + omitBy(predicate: OPredicate, object: T): Object; + pick(props: Array): (object: Object) => Object; + pick(props: Array, object: Object): Object; + pickAll(props: Array): (object: Object) => Object; + pickAll(props: Array, object: Object): Object; + pickBy( + predicate: OPredicate + ): (object: T) => Object; + pickBy(predicate: OPredicate, object: T): Object; + result(path: Array | string): (object: Object) => any; + result(path: Array | string, object: Object): any; + set( + path: Array | string + ): ((value: any) => (object: Object) => Object) & + ((value: any, object: Object) => Object); + set(path: Array | string, value: any): (object: Object) => Object; + set(path: Array | string, value: any, object: Object): Object; + assoc( + path: Array | string + ): ((value: any) => (object: Object) => Object) & + ((value: any, object: Object) => Object); + assoc(path: Array | string, value: any): (object: Object) => Object; + assoc(path: Array | string, value: any, object: Object): Object; + assocPath( + path: Array | string + ): ((value: any) => (object: Object) => Object) & + ((value: any, object: Object) => Object); + assocPath( + path: Array | string, + value: any + ): (object: Object) => Object; + assocPath(path: Array | string, value: any, object: Object): Object; + setWith( + customizer: (nsValue: any, key: string, nsObject: T) => any + ): (( + path: Array | string + ) => ((value: any) => (object: T) => Object) & + ((value: any, object: T) => Object)) & + ((path: Array | string, value: any) => (object: T) => Object) & + ((path: Array | string, value: any, object: T) => Object); + setWith( + customizer: (nsValue: any, key: string, nsObject: T) => any, + path: Array | string + ): ((value: any) => (object: T) => Object) & + ((value: any, object: T) => Object); + setWith( + customizer: (nsValue: any, key: string, nsObject: T) => any, + path: Array | string, + value: any + ): (object: T) => Object; + setWith( + customizer: (nsValue: any, key: string, nsObject: T) => any, + path: Array | string, + value: any, + object: T + ): Object; + toPairs(object: Object | Array<*>): Array<[string, any]>; + toPairsIn(object: Object): Array<[string, any]>; + transform( + iteratee: OIteratee<*> + ): (( + accumulator: any + ) => (collection: Object | $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/flow-typed/npm/marked_v0.3.x.js b/flow-typed/npm/marked_v0.3.x.js index 6aa54608..d98c9197 100644 --- a/flow-typed/npm/marked_v0.3.x.js +++ b/flow-typed/npm/marked_v0.3.x.js @@ -1,12 +1,11 @@ // flow-typed signature: c2bec7cd5128630b7dfee2f1a66a4782 // flow-typed version: f111325994/marked_v0.3.x/flow_>=v0.28.x -type marked$AlignFlag = 'left' | 'right' | 'center' +type marked$AlignFlag = 'left' | 'right' | 'center'; -type marked$NodeCallback = (e: ?Error, d: ?T) => void +type marked$NodeCallback = (e: ?Error, d: ?T) => void; class marked$Renderer { - constructor: (o?: marked$MarkedOptions) => marked$Renderer options: marked$MarkedOptions; code: (c: string, l: string) => string; blockquote: (q: string) => string; @@ -31,41 +30,46 @@ class marked$Renderer { } type marked$HighlightFunction = - ((c: string, l: string, cb: marked$NodeCallback) => void) + | ((c: string, l: string, cb: marked$NodeCallback) => void) | ((c: string, cb: marked$NodeCallback) => void) - | ((c: string, l?: string) => string) + | ((c: string, l?: string) => string); type marked$MarkedOptions = { - highlight?: marked$HighlightFunction; - renderer?: marked$Renderer; - gfm?: boolean; - tables?: boolean; - breaks?: boolean; - pedantic?: boolean; - sanitize?: boolean; - smartLists?: boolean; - smartypants?: boolean; -} + highlight?: marked$HighlightFunction, + renderer?: marked$Renderer, + gfm?: boolean, + tables?: boolean, + breaks?: boolean, + pedantic?: boolean, + sanitize?: boolean, + smartLists?: boolean, + smartypants?: boolean, +}; /* * marked$Tokens */ -type marked$Space = { type: 'space'; } -type marked$Code = { type: 'code'; text: string; lang?: string; } -type marked$Heading = { type: 'heading'; depth: number; text: string; } -type marked$Table = { type: 'table'; header: string; align: Array ; cells: Array> } -type marked$Hr = { type: 'hr'; } -type marked$BlockquoteStart = { type: 'blockquote_start' } -type marked$BlockquoteEnd = { type: 'blockquote_end' } -type marked$ListStart = { type: 'list_start' } -type marked$ListEnd = { type: 'list_end' } -type marked$Paragraph = { type: 'paragraph'; pre: boolean; text: string; } -type marked$Html = { type: 'paragraph'; pre: boolean; text: string; } -type marked$Text = { type: 'text'; text: string; } +type marked$Space = { type: 'space' }; +type marked$Code = { type: 'code', text: string, lang?: string }; +type marked$Heading = { type: 'heading', depth: number, text: string }; +type marked$Table = { + type: 'table', + header: string, + align: Array, + cells: Array>, +}; +type marked$Hr = { type: 'hr' }; +type marked$BlockquoteStart = { type: 'blockquote_start' }; +type marked$BlockquoteEnd = { type: 'blockquote_end' }; +type marked$ListStart = { type: 'list_start' }; +type marked$ListEnd = { type: 'list_end' }; +type marked$Paragraph = { type: 'paragraph', pre: boolean, text: string }; +type marked$Html = { type: 'paragraph', pre: boolean, text: string }; +type marked$Text = { type: 'text', text: string }; type marked$Token = - marked$Space + | marked$Space | marked$Code | marked$Heading | marked$Table @@ -76,21 +80,21 @@ type marked$Token = | marked$ListEnd | marked$Paragraph | marked$Html - | marked$Text + | marked$Text; type marked$Link = { - title: ?string; - href: string; -} + title: ?string, + href: string, +}; type marked$Tokens = { links: Array } & Array; type marked$NoopRule = { - (i: mixed): void; - exec: (i: mixed) => void; -} + (i: mixed): void, + exec: (i: mixed) => void, +}; -type marked$Rule = RegExp | marked$NoopRule +type marked$Rule = RegExp | marked$NoopRule; type marked$lex = (t: string) => marked$Tokens; @@ -98,7 +102,6 @@ class marked$Lexer { static lexer: (t: string, o?: marked$MarkedOptions) => marked$Tokens; static rules: { [key: string]: marked$Rule }; rules: { [key: string]: marked$Rule }; - constructor: (o?: marked$MarkedOptions) => marked$Lexer; lex: marked$lex; tokens: marked$Tokens; options: marked$MarkedOptions; @@ -106,7 +109,6 @@ class marked$Lexer { class marked$Parser { static parse: (t: marked$Tokens, o?: marked$MarkedOptions) => string; - constructor: (o?: marked$MarkedOptions) => marked$Parser; parse: (t: marked$Tokens) => string; next: () => marked$Token; peek: () => marked$Token; @@ -120,8 +122,11 @@ class marked$Parser { class marked$InlineLexer { static rules: Array; - static output: (s: string, l: Array, o?: marked$MarkedOptions) => string; - constructor: (l: Array, o?: marked$MarkedOptions) => marked$InlineLexer; + static output: ( + s: string, + l: Array, + o?: marked$MarkedOptions + ) => string; output: (s: string) => string; outputmarked$Link: (c: Array, l: marked$Link) => string; smartypants: (t: string) => string; @@ -133,23 +138,21 @@ class marked$InlineLexer { } type marked$Marked = { - (md: string, o: marked$MarkedOptions, cb: marked$NodeCallback): void; - (md: string, cb: marked$NodeCallback): void; - (md: string, o?: marked$MarkedOptions): string; - setOptions: (o: marked$MarkedOptions) => void; - defaults: marked$MarkedOptions; - Parser: typeof marked$Parser; - parser: typeof marked$Parser.parse; - Lexer: typeof marked$Lexer; - lexer: typeof marked$Lexer.lexer; - InlineLexer: typeof marked$InlineLexer; - inlinelexer: marked$InlineLexer.output; - Renderer: typeof marked$Renderer; - parse: marked$Marked; -} - + (md: string, o: marked$MarkedOptions, cb: marked$NodeCallback): void, + (md: string, cb: marked$NodeCallback): void, + (md: string, o?: marked$MarkedOptions): string, + setOptions: (o: marked$MarkedOptions) => void, + defaults: marked$MarkedOptions, + Parser: typeof marked$Parser, + parser: typeof marked$Parser.parse, + Lexer: typeof marked$Lexer, + lexer: typeof marked$Lexer.lexer, + InlineLexer: typeof marked$InlineLexer, + inlinelexer: marked$InlineLexer.output, + Renderer: typeof marked$Renderer, + parse: marked$Marked, +}; declare module marked { - declare export default marked$Marked; + declare export default marked$Marked } - diff --git a/flow-typed/npm/mobx-react-devtools_vx.x.x.js b/flow-typed/npm/mobx-react-devtools_vx.x.x.js index b2ad9c09..302a26d4 100644 --- a/flow-typed/npm/mobx-react-devtools_vx.x.x.js +++ b/flow-typed/npm/mobx-react-devtools_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5cffd40d057233a0f047efd89b8ed83b -// flow-typed version: <>/mobx-react-devtools_v^4.2.11/flow_v0.49.1 +// flow-typed signature: 9dfd68f79417dcbe8773b9c44fd893b0 +// flow-typed version: <>/mobx-react-devtools_v^4.2.11/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/mobx-react_vx.x.x.js b/flow-typed/npm/mobx-react_vx.x.x.js index 59d0c921..db54d7c6 100644 --- a/flow-typed/npm/mobx-react_vx.x.x.js +++ b/flow-typed/npm/mobx-react_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1de61a1ceae245f92e0d44fafb2f5612 -// flow-typed version: <>/mobx-react_v^4.1.8/flow_v0.49.1 +// flow-typed signature: 56b12b99239cfd17e23ba8e956d6812c +// flow-typed version: <>/mobx-react_v^4.1.8/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,10 +22,18 @@ declare module 'mobx-react' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'mobx-react/build-rollup' { + declare module.exports: any; +} + declare module 'mobx-react/custom' { declare module.exports: any; } +declare module 'mobx-react/empty' { + declare module.exports: any; +} + declare module 'mobx-react/index.min' { declare module.exports: any; } @@ -35,9 +43,15 @@ declare module 'mobx-react/native' { } // Filename aliases +declare module 'mobx-react/build-rollup.js' { + declare module.exports: $Exports<'mobx-react/build-rollup'>; +} declare module 'mobx-react/custom.js' { declare module.exports: $Exports<'mobx-react/custom'>; } +declare module 'mobx-react/empty.js' { + declare module.exports: $Exports<'mobx-react/empty'>; +} declare module 'mobx-react/index' { declare module.exports: $Exports<'mobx-react'>; } diff --git a/flow-typed/npm/dotenv_vx.x.x.js b/flow-typed/npm/natural-sort_vx.x.x.js similarity index 54% rename from flow-typed/npm/dotenv_vx.x.x.js rename to flow-typed/npm/natural-sort_vx.x.x.js index e9429a94..f96b1abe 100644 --- a/flow-typed/npm/dotenv_vx.x.x.js +++ b/flow-typed/npm/natural-sort_vx.x.x.js @@ -1,10 +1,10 @@ -// flow-typed signature: 66742f6544296e6bc77e5af64953ed3e -// flow-typed version: <>/dotenv_v^4.0.0/flow_v0.49.1 +// flow-typed signature: b5342d4d1d47437f9918a7fc93259e22 +// flow-typed version: <>/natural-sort_v^1.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: * - * 'dotenv' + * 'natural-sort' * * Fill this stub out by replacing all the `any` types. * @@ -13,7 +13,7 @@ * https://github.com/flowtype/flow-typed */ -declare module 'dotenv' { +declare module 'natural-sort' { declare module.exports: any; } @@ -22,18 +22,11 @@ declare module 'dotenv' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'dotenv/config' { - declare module.exports: any; -} - -declare module 'dotenv/lib/main' { +declare module 'natural-sort/dist/natural-sort' { declare module.exports: any; } // Filename aliases -declare module 'dotenv/config.js' { - declare module.exports: $Exports<'dotenv/config'>; -} -declare module 'dotenv/lib/main.js' { - declare module.exports: $Exports<'dotenv/lib/main'>; +declare module 'natural-sort/dist/natural-sort.js' { + declare module.exports: $Exports<'natural-sort/dist/natural-sort'>; } diff --git a/flow-typed/npm/node-dev_vx.x.x.js b/flow-typed/npm/node-dev_vx.x.x.js index dda8727b..ac6021cc 100644 --- a/flow-typed/npm/node-dev_vx.x.x.js +++ b/flow-typed/npm/node-dev_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 83815e1c6bb84053b9dbcbc969444540 -// flow-typed version: <>/node-dev_v3.1.0/flow_v0.49.1 +// flow-typed signature: 52f978864c264a5b8db13bdb0b6425da +// flow-typed version: <>/node-dev_v3.1.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/nodemailer_vx.x.x.js b/flow-typed/npm/nodemailer_vx.x.x.js new file mode 100644 index 00000000..c3782a19 --- /dev/null +++ b/flow-typed/npm/nodemailer_vx.x.x.js @@ -0,0 +1,249 @@ +// flow-typed signature: 20960ec90133f5f2b621128db5577293 +// flow-typed version: <>/nodemailer_v^4.4.0/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'nodemailer' + * + * 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 'nodemailer' { + 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 'nodemailer/lib/addressparser/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/base64/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/dkim/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/dkim/message-parser' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/dkim/relaxed-body' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/dkim/sign' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/fetch/cookies' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/fetch/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/json-transport/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/mail-composer/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/mailer/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/mailer/mail-message' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/mime-funcs/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/mime-funcs/mime-types' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/mime-node/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/mime-node/last-newline' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/nodemailer' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/qp/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/sendmail-transport/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/sendmail-transport/le-unix' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/sendmail-transport/le-windows' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/ses-transport/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/shared/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/smtp-connection/data-stream' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/smtp-connection/http-proxy-client' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/smtp-connection/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/smtp-pool/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/smtp-pool/pool-resource' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/smtp-transport/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/stream-transport/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/well-known/index' { + declare module.exports: any; +} + +declare module 'nodemailer/lib/xoauth2/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'nodemailer/lib/addressparser/index.js' { + declare module.exports: $Exports<'nodemailer/lib/addressparser/index'>; +} +declare module 'nodemailer/lib/base64/index.js' { + declare module.exports: $Exports<'nodemailer/lib/base64/index'>; +} +declare module 'nodemailer/lib/dkim/index.js' { + declare module.exports: $Exports<'nodemailer/lib/dkim/index'>; +} +declare module 'nodemailer/lib/dkim/message-parser.js' { + declare module.exports: $Exports<'nodemailer/lib/dkim/message-parser'>; +} +declare module 'nodemailer/lib/dkim/relaxed-body.js' { + declare module.exports: $Exports<'nodemailer/lib/dkim/relaxed-body'>; +} +declare module 'nodemailer/lib/dkim/sign.js' { + declare module.exports: $Exports<'nodemailer/lib/dkim/sign'>; +} +declare module 'nodemailer/lib/fetch/cookies.js' { + declare module.exports: $Exports<'nodemailer/lib/fetch/cookies'>; +} +declare module 'nodemailer/lib/fetch/index.js' { + declare module.exports: $Exports<'nodemailer/lib/fetch/index'>; +} +declare module 'nodemailer/lib/json-transport/index.js' { + declare module.exports: $Exports<'nodemailer/lib/json-transport/index'>; +} +declare module 'nodemailer/lib/mail-composer/index.js' { + declare module.exports: $Exports<'nodemailer/lib/mail-composer/index'>; +} +declare module 'nodemailer/lib/mailer/index.js' { + declare module.exports: $Exports<'nodemailer/lib/mailer/index'>; +} +declare module 'nodemailer/lib/mailer/mail-message.js' { + declare module.exports: $Exports<'nodemailer/lib/mailer/mail-message'>; +} +declare module 'nodemailer/lib/mime-funcs/index.js' { + declare module.exports: $Exports<'nodemailer/lib/mime-funcs/index'>; +} +declare module 'nodemailer/lib/mime-funcs/mime-types.js' { + declare module.exports: $Exports<'nodemailer/lib/mime-funcs/mime-types'>; +} +declare module 'nodemailer/lib/mime-node/index.js' { + declare module.exports: $Exports<'nodemailer/lib/mime-node/index'>; +} +declare module 'nodemailer/lib/mime-node/last-newline.js' { + declare module.exports: $Exports<'nodemailer/lib/mime-node/last-newline'>; +} +declare module 'nodemailer/lib/nodemailer.js' { + declare module.exports: $Exports<'nodemailer/lib/nodemailer'>; +} +declare module 'nodemailer/lib/qp/index.js' { + declare module.exports: $Exports<'nodemailer/lib/qp/index'>; +} +declare module 'nodemailer/lib/sendmail-transport/index.js' { + declare module.exports: $Exports<'nodemailer/lib/sendmail-transport/index'>; +} +declare module 'nodemailer/lib/sendmail-transport/le-unix.js' { + declare module.exports: $Exports<'nodemailer/lib/sendmail-transport/le-unix'>; +} +declare module 'nodemailer/lib/sendmail-transport/le-windows.js' { + declare module.exports: $Exports<'nodemailer/lib/sendmail-transport/le-windows'>; +} +declare module 'nodemailer/lib/ses-transport/index.js' { + declare module.exports: $Exports<'nodemailer/lib/ses-transport/index'>; +} +declare module 'nodemailer/lib/shared/index.js' { + declare module.exports: $Exports<'nodemailer/lib/shared/index'>; +} +declare module 'nodemailer/lib/smtp-connection/data-stream.js' { + declare module.exports: $Exports<'nodemailer/lib/smtp-connection/data-stream'>; +} +declare module 'nodemailer/lib/smtp-connection/http-proxy-client.js' { + declare module.exports: $Exports<'nodemailer/lib/smtp-connection/http-proxy-client'>; +} +declare module 'nodemailer/lib/smtp-connection/index.js' { + declare module.exports: $Exports<'nodemailer/lib/smtp-connection/index'>; +} +declare module 'nodemailer/lib/smtp-pool/index.js' { + declare module.exports: $Exports<'nodemailer/lib/smtp-pool/index'>; +} +declare module 'nodemailer/lib/smtp-pool/pool-resource.js' { + declare module.exports: $Exports<'nodemailer/lib/smtp-pool/pool-resource'>; +} +declare module 'nodemailer/lib/smtp-transport/index.js' { + declare module.exports: $Exports<'nodemailer/lib/smtp-transport/index'>; +} +declare module 'nodemailer/lib/stream-transport/index.js' { + declare module.exports: $Exports<'nodemailer/lib/stream-transport/index'>; +} +declare module 'nodemailer/lib/well-known/index.js' { + declare module.exports: $Exports<'nodemailer/lib/well-known/index'>; +} +declare module 'nodemailer/lib/xoauth2/index.js' { + declare module.exports: $Exports<'nodemailer/lib/xoauth2/index'>; +} diff --git a/flow-typed/npm/nodemon_vx.x.x.js b/flow-typed/npm/nodemon_vx.x.x.js index e0e88291..89bdecd6 100644 --- a/flow-typed/npm/nodemon_vx.x.x.js +++ b/flow-typed/npm/nodemon_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 00d1a19bb1653464d0c31934cd129db2 -// flow-typed version: <>/nodemon_v1.11.0/flow_v0.49.1 +// flow-typed signature: f90e3a9dd492d09941f65b3029903562 +// flow-typed version: <>/nodemon_v1.11.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/normalize.css_v7.x.x.js b/flow-typed/npm/normalize.css_v7.x.x.js new file mode 100644 index 00000000..a17c0d86 --- /dev/null +++ b/flow-typed/npm/normalize.css_v7.x.x.js @@ -0,0 +1,9 @@ +// flow-typed signature: b0a8c8851219a1c2a933509d842e0bc8 +// flow-typed version: 4a2d036a51/normalize.css_v7.x.x/flow_>=v0.34.x + +// normalize.css may be imported for side-effects, +// e.g. to force webpack to bundle it alongside CSS modules + +declare module "normalize.css" { + declare export default empty +} diff --git a/flow-typed/npm/normalize.css_vx.x.x.js b/flow-typed/npm/normalize.css_vx.x.x.js deleted file mode 100644 index d2149de0..00000000 --- a/flow-typed/npm/normalize.css_vx.x.x.js +++ /dev/null @@ -1,18 +0,0 @@ -// flow-typed signature: 438806ae67b03fce866ea16b89cf8cf1 -// flow-typed version: <>/normalize.css_v4.1.1/flow_v0.49.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'normalize.css' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'normalize.css' { - declare module.exports: any; -} diff --git a/flow-typed/npm/normalizr_v2.x.x.js b/flow-typed/npm/normalizr_v2.x.x.js index e489bde9..4c5132e0 100644 --- a/flow-typed/npm/normalizr_v2.x.x.js +++ b/flow-typed/npm/normalizr_v2.x.x.js @@ -1,17 +1,26 @@ -// flow-typed signature: 8b4e81417cdc2bee0f08e1e62d60809e -// flow-typed version: bba36190a2/normalizr_v2.x.x/flow_>=v0.23.x +// flow-typed signature: 2950a094dd6d8e47a8535df1da5d65eb +// flow-typed version: da30fe6876/normalizr_v2.x.x/flow_>=v0.25.x declare class Normalizr$Schema { define(nestedSchema: Object): void; } type Normalizr$SchemaOrObject = Normalizr$Schema | Object; -declare module 'normalizr' { +declare module "normalizr" { declare class Normalizr { - normalize(obj: Object | Array, schema: Normalizr$SchemaOrObject): Object; + normalize( + obj: Object | Array, + schema: Normalizr$SchemaOrObject + ): Object; Schema(key: string, options?: Object): Normalizr$Schema; - arrayOf(schema: Normalizr$SchemaOrObject, options?: Object): Normalizr$Schema; - valuesOf(schema: Normalizr$SchemaOrObject, options?: Object): Normalizr$Schema; + arrayOf( + schema: Normalizr$SchemaOrObject, + options?: Object + ): Normalizr$Schema; + valuesOf( + schema: Normalizr$SchemaOrObject, + options?: Object + ): Normalizr$Schema; } - declare var exports: Normalizr; + declare module.exports: Normalizr; } diff --git a/flow-typed/npm/outline-icons_vx.x.x.js b/flow-typed/npm/outline-icons_vx.x.x.js new file mode 100644 index 00000000..453c1cbf --- /dev/null +++ b/flow-typed/npm/outline-icons_vx.x.x.js @@ -0,0 +1,298 @@ +// flow-typed signature: b9fcff5cf9372b696aa69b214d896dbe +// flow-typed version: <>/outline-icons_v^1.0.2/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'outline-icons' + * + * 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 'outline-icons' { + 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 'outline-icons/lib/components/BackIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/BlockQuoteIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/BoldIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/BulletedListIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/CheckboxIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/CloseIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/CodeIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/CollapsedIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/CollectionIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/DocumentIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/EditIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/GoToIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/Heading1Icon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/Heading2Icon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/HomeIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/HorizontalRuleIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/Icon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/ImageIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/ItalicIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/KeyboardIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/LinkIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/MenuIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/MoreIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/NewDocumentIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/NextIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/OpenIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/OrderedListIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/PinIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/PlusIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/ProfileIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/SearchIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/SettingsIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/StarredIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/StrikethroughIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/TableIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/TodoListIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/TrashIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/components/UserIcon' { + declare module.exports: any; +} + +declare module 'outline-icons/lib/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'outline-icons/lib/components/BackIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/BackIcon'>; +} +declare module 'outline-icons/lib/components/BlockQuoteIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/BlockQuoteIcon'>; +} +declare module 'outline-icons/lib/components/BoldIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/BoldIcon'>; +} +declare module 'outline-icons/lib/components/BulletedListIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/BulletedListIcon'>; +} +declare module 'outline-icons/lib/components/CheckboxIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/CheckboxIcon'>; +} +declare module 'outline-icons/lib/components/CloseIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/CloseIcon'>; +} +declare module 'outline-icons/lib/components/CodeIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/CodeIcon'>; +} +declare module 'outline-icons/lib/components/CollapsedIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/CollapsedIcon'>; +} +declare module 'outline-icons/lib/components/CollectionIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/CollectionIcon'>; +} +declare module 'outline-icons/lib/components/DocumentIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/DocumentIcon'>; +} +declare module 'outline-icons/lib/components/EditIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/EditIcon'>; +} +declare module 'outline-icons/lib/components/GoToIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/GoToIcon'>; +} +declare module 'outline-icons/lib/components/Heading1Icon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/Heading1Icon'>; +} +declare module 'outline-icons/lib/components/Heading2Icon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/Heading2Icon'>; +} +declare module 'outline-icons/lib/components/HomeIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/HomeIcon'>; +} +declare module 'outline-icons/lib/components/HorizontalRuleIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/HorizontalRuleIcon'>; +} +declare module 'outline-icons/lib/components/Icon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/Icon'>; +} +declare module 'outline-icons/lib/components/ImageIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/ImageIcon'>; +} +declare module 'outline-icons/lib/components/ItalicIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/ItalicIcon'>; +} +declare module 'outline-icons/lib/components/KeyboardIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/KeyboardIcon'>; +} +declare module 'outline-icons/lib/components/LinkIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/LinkIcon'>; +} +declare module 'outline-icons/lib/components/MenuIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/MenuIcon'>; +} +declare module 'outline-icons/lib/components/MoreIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/MoreIcon'>; +} +declare module 'outline-icons/lib/components/NewDocumentIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/NewDocumentIcon'>; +} +declare module 'outline-icons/lib/components/NextIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/NextIcon'>; +} +declare module 'outline-icons/lib/components/OpenIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/OpenIcon'>; +} +declare module 'outline-icons/lib/components/OrderedListIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/OrderedListIcon'>; +} +declare module 'outline-icons/lib/components/PinIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/PinIcon'>; +} +declare module 'outline-icons/lib/components/PlusIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/PlusIcon'>; +} +declare module 'outline-icons/lib/components/ProfileIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/ProfileIcon'>; +} +declare module 'outline-icons/lib/components/SearchIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/SearchIcon'>; +} +declare module 'outline-icons/lib/components/SettingsIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/SettingsIcon'>; +} +declare module 'outline-icons/lib/components/StarredIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/StarredIcon'>; +} +declare module 'outline-icons/lib/components/StrikethroughIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/StrikethroughIcon'>; +} +declare module 'outline-icons/lib/components/TableIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/TableIcon'>; +} +declare module 'outline-icons/lib/components/TodoListIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/TodoListIcon'>; +} +declare module 'outline-icons/lib/components/TrashIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/TrashIcon'>; +} +declare module 'outline-icons/lib/components/UserIcon.js' { + declare module.exports: $Exports<'outline-icons/lib/components/UserIcon'>; +} +declare module 'outline-icons/lib/index.js' { + declare module.exports: $Exports<'outline-icons/lib/index'>; +} diff --git a/flow-typed/npm/oy-vey_vx.x.x.js b/flow-typed/npm/oy-vey_vx.x.x.js new file mode 100644 index 00000000..9184a0f8 --- /dev/null +++ b/flow-typed/npm/oy-vey_vx.x.x.js @@ -0,0 +1,515 @@ +// flow-typed signature: ad69ab2250a355e029acddf8caf4f155 +// flow-typed version: <>/oy-vey_v^0.10.0/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'oy-vey' + * + * 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 'oy-vey' { + 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 'oy-vey/examples/hello/HelloWorldEmail' { + declare module.exports: any; +} + +declare module 'oy-vey/examples/hello/layouts/Layout' { + declare module.exports: any; +} + +declare module 'oy-vey/examples/hello/modules/Body' { + declare module.exports: any; +} + +declare module 'oy-vey/examples/hello/modules/EmptySpace' { + declare module.exports: any; +} + +declare module 'oy-vey/examples/hello/modules/Footer' { + declare module.exports: any; +} + +declare module 'oy-vey/examples/hello/modules/Header' { + declare module.exports: any; +} + +declare module 'oy-vey/examples/hello/server' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/__tests__/Oy-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/components/DefaultElement' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/Oy' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/BackgroundAbsoluteURLRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/EmptyTDRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/HrefAbsoluteURLRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/ImgAltTextRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/ImgAltTextStyleRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/ImgDimensionsRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/ShorthandFontRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/SixCharacterHexBackgroundColorRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/SrcAbsoluteURLRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/TableBorderRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/TableCellPaddingRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/__tests__/TableCellSpacingRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/BackgroundAbsoluteURLRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/EmptyTDRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/HrefAbsoluteURLRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/ImgAltTextRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/ImgAltTextStyleRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/ImgDimensionsRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/index' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/ShorthandFontRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/SixCharacterHexBackgroundColorRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/SrcAbsoluteURLRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/TableBorderRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/TableCellPaddingRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/rules/TableCellSpacingRule' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/utils/__tests__/CSS-test' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/utils/CSS' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/utils/HTML4' { + declare module.exports: any; +} + +declare module 'oy-vey/lib/utils/Renderer' { + declare module.exports: any; +} + +declare module 'oy-vey/src/components/DefaultElement' { + declare module.exports: any; +} + +declare module 'oy-vey/src/Oy' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/BackgroundAbsoluteURLRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/EmptyTDRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/HrefAbsoluteURLRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/ImgAltTextRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/ImgAltTextStyleRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/ImgDimensionsRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/ShorthandFontRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/SixCharacterHexBackgroundColorRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/SrcAbsoluteURLRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/TableBorderRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/TableCellPaddingRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/__tests__/TableCellSpacingRule-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/BackgroundAbsoluteURLRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/EmptyTDRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/HrefAbsoluteURLRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/ImgAltTextRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/ImgAltTextStyleRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/ImgDimensionsRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/index' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/ShorthandFontRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/SixCharacterHexBackgroundColorRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/SrcAbsoluteURLRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/TableBorderRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/TableCellPaddingRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/rules/TableCellSpacingRule' { + declare module.exports: any; +} + +declare module 'oy-vey/src/utils/__tests__/CSS-test' { + declare module.exports: any; +} + +declare module 'oy-vey/src/utils/CSS' { + declare module.exports: any; +} + +declare module 'oy-vey/src/utils/HTML4' { + declare module.exports: any; +} + +declare module 'oy-vey/src/utils/Renderer' { + declare module.exports: any; +} + +// Filename aliases +declare module 'oy-vey/examples/hello/HelloWorldEmail.jsx' { + declare module.exports: $Exports<'oy-vey/examples/hello/HelloWorldEmail'>; +} +declare module 'oy-vey/examples/hello/layouts/Layout.jsx' { + declare module.exports: $Exports<'oy-vey/examples/hello/layouts/Layout'>; +} +declare module 'oy-vey/examples/hello/modules/Body.jsx' { + declare module.exports: $Exports<'oy-vey/examples/hello/modules/Body'>; +} +declare module 'oy-vey/examples/hello/modules/EmptySpace.jsx' { + declare module.exports: $Exports<'oy-vey/examples/hello/modules/EmptySpace'>; +} +declare module 'oy-vey/examples/hello/modules/Footer.jsx' { + declare module.exports: $Exports<'oy-vey/examples/hello/modules/Footer'>; +} +declare module 'oy-vey/examples/hello/modules/Header.jsx' { + declare module.exports: $Exports<'oy-vey/examples/hello/modules/Header'>; +} +declare module 'oy-vey/examples/hello/server.js' { + declare module.exports: $Exports<'oy-vey/examples/hello/server'>; +} +declare module 'oy-vey/lib/__tests__/Oy-test.js' { + declare module.exports: $Exports<'oy-vey/lib/__tests__/Oy-test'>; +} +declare module 'oy-vey/lib/components/DefaultElement.js' { + declare module.exports: $Exports<'oy-vey/lib/components/DefaultElement'>; +} +declare module 'oy-vey/lib/Oy.js' { + declare module.exports: $Exports<'oy-vey/lib/Oy'>; +} +declare module 'oy-vey/lib/rules/__tests__/BackgroundAbsoluteURLRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/BackgroundAbsoluteURLRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/EmptyTDRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/EmptyTDRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/HrefAbsoluteURLRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/HrefAbsoluteURLRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/ImgAltTextRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/ImgAltTextRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/ImgAltTextStyleRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/ImgAltTextStyleRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/ImgDimensionsRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/ImgDimensionsRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/ShorthandFontRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/ShorthandFontRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/SixCharacterHexBackgroundColorRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/SixCharacterHexBackgroundColorRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/SrcAbsoluteURLRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/SrcAbsoluteURLRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/TableBorderRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/TableBorderRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/TableCellPaddingRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/TableCellPaddingRule-test'>; +} +declare module 'oy-vey/lib/rules/__tests__/TableCellSpacingRule-test.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/__tests__/TableCellSpacingRule-test'>; +} +declare module 'oy-vey/lib/rules/BackgroundAbsoluteURLRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/BackgroundAbsoluteURLRule'>; +} +declare module 'oy-vey/lib/rules/EmptyTDRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/EmptyTDRule'>; +} +declare module 'oy-vey/lib/rules/HrefAbsoluteURLRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/HrefAbsoluteURLRule'>; +} +declare module 'oy-vey/lib/rules/ImgAltTextRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/ImgAltTextRule'>; +} +declare module 'oy-vey/lib/rules/ImgAltTextStyleRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/ImgAltTextStyleRule'>; +} +declare module 'oy-vey/lib/rules/ImgDimensionsRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/ImgDimensionsRule'>; +} +declare module 'oy-vey/lib/rules/index.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/index'>; +} +declare module 'oy-vey/lib/rules/ShorthandFontRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/ShorthandFontRule'>; +} +declare module 'oy-vey/lib/rules/SixCharacterHexBackgroundColorRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/SixCharacterHexBackgroundColorRule'>; +} +declare module 'oy-vey/lib/rules/SrcAbsoluteURLRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/SrcAbsoluteURLRule'>; +} +declare module 'oy-vey/lib/rules/TableBorderRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/TableBorderRule'>; +} +declare module 'oy-vey/lib/rules/TableCellPaddingRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/TableCellPaddingRule'>; +} +declare module 'oy-vey/lib/rules/TableCellSpacingRule.js' { + declare module.exports: $Exports<'oy-vey/lib/rules/TableCellSpacingRule'>; +} +declare module 'oy-vey/lib/utils/__tests__/CSS-test.js' { + declare module.exports: $Exports<'oy-vey/lib/utils/__tests__/CSS-test'>; +} +declare module 'oy-vey/lib/utils/CSS.js' { + declare module.exports: $Exports<'oy-vey/lib/utils/CSS'>; +} +declare module 'oy-vey/lib/utils/HTML4.js' { + declare module.exports: $Exports<'oy-vey/lib/utils/HTML4'>; +} +declare module 'oy-vey/lib/utils/Renderer.js' { + declare module.exports: $Exports<'oy-vey/lib/utils/Renderer'>; +} +declare module 'oy-vey/src/components/DefaultElement.jsx' { + declare module.exports: $Exports<'oy-vey/src/components/DefaultElement'>; +} +declare module 'oy-vey/src/Oy.js' { + declare module.exports: $Exports<'oy-vey/src/Oy'>; +} +declare module 'oy-vey/src/rules/__tests__/BackgroundAbsoluteURLRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/BackgroundAbsoluteURLRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/EmptyTDRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/EmptyTDRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/HrefAbsoluteURLRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/HrefAbsoluteURLRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/ImgAltTextRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/ImgAltTextRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/ImgAltTextStyleRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/ImgAltTextStyleRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/ImgDimensionsRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/ImgDimensionsRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/ShorthandFontRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/ShorthandFontRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/SixCharacterHexBackgroundColorRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/SixCharacterHexBackgroundColorRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/SrcAbsoluteURLRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/SrcAbsoluteURLRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/TableBorderRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/TableBorderRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/TableCellPaddingRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/TableCellPaddingRule-test'>; +} +declare module 'oy-vey/src/rules/__tests__/TableCellSpacingRule-test.js' { + declare module.exports: $Exports<'oy-vey/src/rules/__tests__/TableCellSpacingRule-test'>; +} +declare module 'oy-vey/src/rules/BackgroundAbsoluteURLRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/BackgroundAbsoluteURLRule'>; +} +declare module 'oy-vey/src/rules/EmptyTDRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/EmptyTDRule'>; +} +declare module 'oy-vey/src/rules/HrefAbsoluteURLRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/HrefAbsoluteURLRule'>; +} +declare module 'oy-vey/src/rules/ImgAltTextRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/ImgAltTextRule'>; +} +declare module 'oy-vey/src/rules/ImgAltTextStyleRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/ImgAltTextStyleRule'>; +} +declare module 'oy-vey/src/rules/ImgDimensionsRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/ImgDimensionsRule'>; +} +declare module 'oy-vey/src/rules/index.js' { + declare module.exports: $Exports<'oy-vey/src/rules/index'>; +} +declare module 'oy-vey/src/rules/ShorthandFontRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/ShorthandFontRule'>; +} +declare module 'oy-vey/src/rules/SixCharacterHexBackgroundColorRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/SixCharacterHexBackgroundColorRule'>; +} +declare module 'oy-vey/src/rules/SrcAbsoluteURLRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/SrcAbsoluteURLRule'>; +} +declare module 'oy-vey/src/rules/TableBorderRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/TableBorderRule'>; +} +declare module 'oy-vey/src/rules/TableCellPaddingRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/TableCellPaddingRule'>; +} +declare module 'oy-vey/src/rules/TableCellSpacingRule.js' { + declare module.exports: $Exports<'oy-vey/src/rules/TableCellSpacingRule'>; +} +declare module 'oy-vey/src/utils/__tests__/CSS-test.js' { + declare module.exports: $Exports<'oy-vey/src/utils/__tests__/CSS-test'>; +} +declare module 'oy-vey/src/utils/CSS.js' { + declare module.exports: $Exports<'oy-vey/src/utils/CSS'>; +} +declare module 'oy-vey/src/utils/HTML4.js' { + declare module.exports: $Exports<'oy-vey/src/utils/HTML4'>; +} +declare module 'oy-vey/src/utils/Renderer.js' { + declare module.exports: $Exports<'oy-vey/src/utils/Renderer'>; +} diff --git a/flow-typed/npm/pg-hstore_vx.x.x.js b/flow-typed/npm/pg-hstore_vx.x.x.js index 0dad5e2e..17f05e4e 100644 --- a/flow-typed/npm/pg-hstore_vx.x.x.js +++ b/flow-typed/npm/pg-hstore_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 690404df4ace2f3522673625de07241b -// flow-typed version: <>/pg-hstore_v2.3.2/flow_v0.49.1 +// flow-typed signature: 225f5c7515e21a2d6914fec01df4f2ac +// flow-typed version: <>/pg-hstore_v2.3.2/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/pg_v6.x.x.js b/flow-typed/npm/pg_v6.x.x.js deleted file mode 100644 index 70674c93..00000000 --- a/flow-typed/npm/pg_v6.x.x.js +++ /dev/null @@ -1,293 +0,0 @@ -// flow-typed signature: 0fa8645f698c218659697bf5a3573a9c -// flow-typed version: cb69951a83/pg_v6.x.x/flow_>=v0.32.x - -declare module pg { - // Note: Currently There are some issues in Function overloading. - // https://github.com/facebook/flow/issues/2423 - // So i temporarily remove the - // `((event: string, listener: Function) => EventEmitter );` - // from all overloading for EventEmitter.on(). - - // `any` types exised in this file, cause of currently `mixed` did not work well - // in Function Overloading. - - // `Function` types exised in this file, cause of they come from another - // untyped npm lib. - - /* Cause of > - /* - * PgPoolConfig's properties are passed unchanged to both - * the node-postgres Client constructor and the node-pool constructor - * allowing you to fully configure the behavior of both - * node-pool (https://github.com/coopernurse/node-pool) - */ - declare type PgPoolConfig = { - // node-pool ---------------- - name: string, - create: Function, - destroy: Function, - max: number, - min: number, - refreshIdle: boolean, - idleTimeoutMillis: number, - reapIntervalMillis: number, - returnToHead: boolean, - priorityRange: number, - validate: Function, - validateAsync: Function, - log: Function, - - // node-postgres Client ------ - //database user's name - user: string, - //name of database to connect - database: string, - //database user's password - password: string, - //database port - port: number, - // database host. defaults to localhost - host?: string, - // whether to try SSL/TLS to connect to server. default value: false - ssl?: boolean, - // name displayed in the pg_stat_activity view and included in CSV log entries - // default value: process.env.PGAPPNAME - application_name?: string, - // fallback value for the application_name configuration parameter - // default value: false - fallback_application_name?: string, - - // pg-pool - Client: mixed, - Promise: mixed, - onCreate: Function, - }; - - /* - * Not extends from Client, cause some of Client's functions(ex: connect and end) - * should not be used by PoolClient (which returned from Pool.connect). - */ - declare type PoolClient = { - release(error?: mixed): void, - - query: - ( (query: QueryConfig|string, callback?: QueryCallback) => Query ) & - ( (text: string, values: Array, callback?: QueryCallback) => Query ), - - on: - ((event: 'drain', listener: () => void) => events$EventEmitter )& - ((event: 'error', listener: (err: PG_ERROR) => void) => events$EventEmitter )& - ((event: 'notification', listener: (message: any) => void) => events$EventEmitter )& - ((event: 'notice', listener: (message: any) => void) => events$EventEmitter )& - ((event: 'end', listener: () => void) => events$EventEmitter ), - } - - declare type PoolConnectCallback = (error: PG_ERROR|null, - client: PoolClient|null, done: DoneCallback) => void; - declare type DoneCallback = (error?: mixed) => void; - // https://github.com/facebook/flow/blob/master/lib/node.js#L581 - // on() returns a events$EventEmitter - declare class Pool extends events$EventEmitter { - constructor(options: $Shape, Client?: Class): void; - connect(cb?: PoolConnectCallback): Promise; - take(cb?: PoolConnectCallback): Promise; - end(cb?: DoneCallback): Promise; - - // Note: not like the pg's Client, the Pool.query return a Promise, - // not a Thenable Query which Client returned. - // And there is a flow(<0.34) issue here, when Array, - // the overloading will not work - query: - ( (query: QueryConfig|string, callback?: QueryCallback) => Promise ) & - ( (text: string, values: Array, callback?: QueryCallback) => Promise); - - /* flow issue: https://github.com/facebook/flow/issues/2423 - * When this fixed, this overloading can be used. - */ - /* - on: - ((event: 'connect', listener: (client: PoolClient) => void) => events$EventEmitter )& - ((event: 'acquire', listener: (client: PoolClient) => void) => events$EventEmitter )& - ((event: "error", listener: (err: PG_ERROR) => void) => events$EventEmitter )& - ((event: string, listener: Function) => events$EventEmitter); - */ - } - - // <<------------- copy from 'pg-pool' ------------------------------ - - - // error - declare type PG_ERROR = { - name: string, - length: number, - severity: string, - code: string, - detail: string|void, - hint: string|void, - position: string|void, - internalPosition: string|void, - internalQuery: string|void, - where: string|void, - schema: string|void, - table: string|void, - column: string|void, - dataType: string|void, - constraint: string|void, - file: string|void, - line: string|void, - routine: string|void - }; - - declare type ClientConfig = { - //database user's name - user: string, - //name of database to connect - database: string, - //database user's password - password: string, - //database port - port: number, - // database host. defaults to localhost - host: string, - // whether to try SSL/TLS to connect to server. default value: false - ssl: boolean, - // name displayed in the pg_stat_activity view and included in CSV log entries - // default value: process.env.PGAPPNAME - application_name: string, - // fallback value for the application_name configuration parameter - // default value: false - fallback_application_name: string, - } - - declare type Row = { - [key: string]: mixed, - }; - declare type ResultSet = { - command: string, - rowCount: number, - oid: number, - rows: Array, - }; - declare type ResultBuilder = { - command: string, - rowCount: number, - oid: number, - rows: Array, - addRow: (row: Row) => void, - }; - declare type QueryConfig = { - name?: string, - text: string, - values?: any[], - }; - - declare type QueryCallback = (err: PG_ERROR|null, result: ResultSet|void) => void; - declare type ClientConnectCallback = (err: PG_ERROR|null, client: Client|void) => void; - - /* - * lib/query.js - * Query extends from EventEmitter in source code. - * but in Flow there is no multiple extends. - * And in Flow await is a `declare function $await(p: Promise | T): T;` - * seems can not resolve a Thenable's value type directly - * so `Query extends Promise` to make thing temporarily work. - * like this: - * const q = client.query('select * from some'); - * q.on('row',cb); // Event - * const result = await q; // or await - * - * ToDo: should find a better way. - */ - declare class Query extends Promise { - then( onFulfill?: (value: ResultSet) => Promise | U, - onReject?: (error: PG_ERROR) => Promise | U - ): Promise; - // Because then and catch return a Promise, - // .then.catch will lose catch's type information PG_ERROR. - catch( onReject?: (error: PG_ERROR) => ?Promise | U ): Promise; - - on : - ((event: 'row', listener: (row: Row, result: ResultBuilder) => void) => events$EventEmitter )& - ((event: 'end', listener: (result: ResultBuilder) => void) => events$EventEmitter )& - ((event: 'error', listener: (err: PG_ERROR) => void) => events$EventEmitter ); - } - - /* - * lib/client.js - * Note: not extends from EventEmitter, for This Type returned by on(). - * Flow's EventEmitter force return a EventEmitter in on(). - * ToDo: Not sure in on() if return events$EventEmitter or this will be more suitable - * return this will restrict event to given literial when chain on().on().on(). - * return a events$EventEmitter will fallback to raw EventEmitter, when chains - */ - declare class Client { - constructor(config?: string | ClientConfig): void; - connect(callback?: ClientConnectCallback):void; - end(): void; - - query: - ( (query: QueryConfig|string, callback?: QueryCallback) => Query ) & - ( (text: string, values: Array, callback?: QueryCallback) => Query ); - - on: - ((event: 'drain', listener: () => void) => this )& - ((event: 'error', listener: (err: PG_ERROR) => void) => this )& - ((event: 'notification', listener: (message: any) => void) => this )& - ((event: 'notice', listener: (message: any) => void) => this )& - ((event: 'end', listener: () => void) => this ); - } - - /* - * require('pg-types') - */ - declare type TypeParserText = (value: string) => any; - declare type TypeParserBinary = (value: Buffer) => any; - declare type Types = { - getTypeParser: - ((oid: number, format?: 'text') => TypeParserText )& - ((oid: number, format: 'binary') => TypeParserBinary ); - - setTypeParser: - ((oid: number, format?: 'text', parseFn: TypeParserText) => void )& - ((oid: number, format: 'binary', parseFn: TypeParserBinary) => void)& - ((oid: number, parseFn: TypeParserText) => void), - } - - /* - * lib/index.js ( class PG) - */ - declare class PG extends events$EventEmitter { - types: Types; - Client: Class; - Pool: Class; - Connection: mixed; //Connection is used internally by the Client. - constructor(client: Client): void; - native: { // native binding, have the same capability like PG - types: Types; - Client: Class; - Pool: Class; - Connection: mixed; - }; - // The end(),connect(),cancel() in PG is abandoned ? - } - - // These class are not exposed by pg. - declare type PoolType = Pool; - declare type PGType = PG; - declare type QueryType = Query; - // module export, keep same structure with index.js - declare module.exports: PG; -} diff --git a/flow-typed/npm/prettier_v1.x.x.js b/flow-typed/npm/prettier_v1.x.x.js new file mode 100644 index 00000000..0c244915 --- /dev/null +++ b/flow-typed/npm/prettier_v1.x.x.js @@ -0,0 +1,178 @@ +// flow-typed signature: 4eed8da2dc730dc33e7710b465eaa44b +// flow-typed version: cc7a557b34/prettier_v1.x.x/flow_>=v0.56.x + +declare module "prettier" { + declare type AST = Object; + declare type Doc = Object; + declare type FastPath = Object; + + declare type PrettierParserName = + | "babylon" + | "flow" + | "typescript" + | "postcss" + | "css" + | "less" + | "scss" + | "json" + | "graphql" + | "markdown" + | "vue"; + + declare type PrettierParser = { + [name: PrettierParserName]: (text: string, options?: Object) => AST + }; + + declare type CustomParser = ( + text: string, + parsers: PrettierParser, + options: Options + ) => AST; + + declare type Options = {| + printWidth?: number, + tabWidth?: number, + useTabs?: boolean, + semi?: boolean, + singleQuote?: boolean, + trailingComma?: "none" | "es5" | "all", + bracketSpacing?: boolean, + jsxBracketSameLine?: boolean, + arrowParens?: "avoid" | "always", + rangeStart?: number, + rangeEnd?: number, + parser?: PrettierParserName | CustomParser, + filepath?: string, + requirePragma?: boolean, + insertPragma?: boolean, + proseWrap?: "always" | "never" | "preserve", + plugins?: Array + |}; + + declare type Plugin = { + languages: SupportLanguage, + parsers: { [parserName: string]: Parser }, + printers: { [astFormat: string]: Printer } + }; + + declare type Parser = { + parse: ( + text: string, + parsers: { [parserName: string]: Parser }, + options: Object + ) => AST, + astFormat: string + }; + + declare type Printer = { + print: ( + path: FastPath, + options: Object, + print: (path: FastPath) => Doc + ) => Doc, + embed: ( + path: FastPath, + print: (path: FastPath) => Doc, + textToDoc: (text: string, options: Object) => Doc, + options: Object + ) => ?Doc + }; + + declare type CursorOptions = {| + cursorOffset: number, + printWidth?: $PropertyType, + tabWidth?: $PropertyType, + useTabs?: $PropertyType, + semi?: $PropertyType, + singleQuote?: $PropertyType, + trailingComma?: $PropertyType, + bracketSpacing?: $PropertyType, + jsxBracketSameLine?: $PropertyType, + arrowParens?: $PropertyType, + parser?: $PropertyType, + filepath?: $PropertyType, + requirePragma?: $PropertyType, + insertPragma?: $PropertyType, + proseWrap?: $PropertyType, + plugins?: $PropertyType + |}; + + declare type CursorResult = {| + formatted: string, + cursorOffset: number + |}; + + declare type ResolveConfigOptions = {| + useCache?: boolean, + config?: string, + editorconfig?: boolean + |}; + + declare type SupportLanguage = { + name: string, + since: string, + parsers: Array, + group?: string, + tmScope: string, + aceMode: string, + codemirrorMode: string, + codemirrorMimeType: string, + aliases?: Array, + extensions: Array, + filenames?: Array, + linguistLanguageId: number, + vscodeLanguageIds: Array + }; + + declare type SupportOption = {| + since: string, + type: "int" | "boolean" | "choice" | "path", + deprecated?: string, + redirect?: SupportOptionRedirect, + description: string, + oppositeDescription?: string, + default: SupportOptionValue, + range?: SupportOptionRange, + choices?: SupportOptionChoice + |}; + + declare type SupportOptionRedirect = {| + options: string, + value: SupportOptionValue + |}; + + declare type SupportOptionRange = {| + start: number, + end: number, + step: number + |}; + + declare type SupportOptionChoice = {| + value: boolean | string, + description?: string, + since?: string, + deprecated?: string, + redirect?: SupportOptionValue + |}; + + declare type SupportOptionValue = number | boolean | string; + + declare type SupportInfo = {| + languages: Array, + options: Array + |}; + + declare type Prettier = {| + format: (source: string, options?: Options) => string, + check: (source: string, options?: Options) => boolean, + formatWithCursor: (source: string, options: CursorOptions) => CursorResult, + resolveConfig: { + (filePath: string, options?: ResolveConfigOptions): Promise, + sync(filePath: string, options?: ResolveConfigOptions): Promise + }, + clearConfigCache: () => void, + getSupportInfo: (version?: string) => SupportInfo + |}; + + declare export default Prettier; +} diff --git a/flow-typed/npm/prettier_vx.x.x.js b/flow-typed/npm/prettier_vx.x.x.js deleted file mode 100644 index 6f6d1319..00000000 --- a/flow-typed/npm/prettier_vx.x.x.js +++ /dev/null @@ -1,157 +0,0 @@ -// flow-typed signature: ce2ecafdfab5bed512ff0ffb86b58aea -// flow-typed version: <>/prettier_v1.3.1/flow_v0.49.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'prettier' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'prettier' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'prettier/bin/prettier' { - declare module.exports: any; -} - -declare module 'prettier/docs/prettier.min' { - declare module.exports: any; -} - -declare module 'prettier/docs/rollup.config' { - declare module.exports: any; -} - -declare module 'prettier/scripts/sync-flow-tests' { - declare module.exports: any; -} - -declare module 'prettier/src/ast-types' { - declare module.exports: any; -} - -declare module 'prettier/src/comments' { - declare module.exports: any; -} - -declare module 'prettier/src/deprecated' { - declare module.exports: any; -} - -declare module 'prettier/src/doc-builders' { - declare module.exports: any; -} - -declare module 'prettier/src/doc-debug' { - declare module.exports: any; -} - -declare module 'prettier/src/doc-printer' { - declare module.exports: any; -} - -declare module 'prettier/src/doc-utils' { - declare module.exports: any; -} - -declare module 'prettier/src/fast-path' { - declare module.exports: any; -} - -declare module 'prettier/src/options' { - declare module.exports: any; -} - -declare module 'prettier/src/parser' { - declare module.exports: any; -} - -declare module 'prettier/src/printer' { - declare module.exports: any; -} - -declare module 'prettier/src/typescript-ast-nodes' { - declare module.exports: any; -} - -declare module 'prettier/src/util' { - declare module.exports: any; -} - -declare module 'prettier/test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'prettier/bin/prettier.js' { - declare module.exports: $Exports<'prettier/bin/prettier'>; -} -declare module 'prettier/docs/prettier.min.js' { - declare module.exports: $Exports<'prettier/docs/prettier.min'>; -} -declare module 'prettier/docs/rollup.config.js' { - declare module.exports: $Exports<'prettier/docs/rollup.config'>; -} -declare module 'prettier/index' { - declare module.exports: $Exports<'prettier'>; -} -declare module 'prettier/index.js' { - declare module.exports: $Exports<'prettier'>; -} -declare module 'prettier/scripts/sync-flow-tests.js' { - declare module.exports: $Exports<'prettier/scripts/sync-flow-tests'>; -} -declare module 'prettier/src/ast-types.js' { - declare module.exports: $Exports<'prettier/src/ast-types'>; -} -declare module 'prettier/src/comments.js' { - declare module.exports: $Exports<'prettier/src/comments'>; -} -declare module 'prettier/src/deprecated.js' { - declare module.exports: $Exports<'prettier/src/deprecated'>; -} -declare module 'prettier/src/doc-builders.js' { - declare module.exports: $Exports<'prettier/src/doc-builders'>; -} -declare module 'prettier/src/doc-debug.js' { - declare module.exports: $Exports<'prettier/src/doc-debug'>; -} -declare module 'prettier/src/doc-printer.js' { - declare module.exports: $Exports<'prettier/src/doc-printer'>; -} -declare module 'prettier/src/doc-utils.js' { - declare module.exports: $Exports<'prettier/src/doc-utils'>; -} -declare module 'prettier/src/fast-path.js' { - declare module.exports: $Exports<'prettier/src/fast-path'>; -} -declare module 'prettier/src/options.js' { - declare module.exports: $Exports<'prettier/src/options'>; -} -declare module 'prettier/src/parser.js' { - declare module.exports: $Exports<'prettier/src/parser'>; -} -declare module 'prettier/src/printer.js' { - declare module.exports: $Exports<'prettier/src/printer'>; -} -declare module 'prettier/src/typescript-ast-nodes.js' { - declare module.exports: $Exports<'prettier/src/typescript-ast-nodes'>; -} -declare module 'prettier/src/util.js' { - declare module.exports: $Exports<'prettier/src/util'>; -} -declare module 'prettier/test.js' { - declare module.exports: $Exports<'prettier/test'>; -} diff --git a/flow-typed/npm/rimraf_vx.x.x.js b/flow-typed/npm/pui-react-tooltip_vx.x.x.js similarity index 55% rename from flow-typed/npm/rimraf_vx.x.x.js rename to flow-typed/npm/pui-react-tooltip_vx.x.x.js index ae566917..f1c707bd 100644 --- a/flow-typed/npm/rimraf_vx.x.x.js +++ b/flow-typed/npm/pui-react-tooltip_vx.x.x.js @@ -1,10 +1,10 @@ -// flow-typed signature: 58e959a96187b4c1debb695e7411fe4b -// flow-typed version: <>/rimraf_v^2.5.4/flow_v0.49.1 +// flow-typed signature: 7da3d28962c82e31b8d50d9fe76c65af +// flow-typed version: <>/pui-react-tooltip_v^8.3.3/flow_v0.71.0 /** * This is an autogenerated libdef stub for: * - * 'rimraf' + * 'pui-react-tooltip' * * Fill this stub out by replacing all the `any` types. * @@ -13,7 +13,7 @@ * https://github.com/flowtype/flow-typed */ -declare module 'rimraf' { +declare module 'pui-react-tooltip' { declare module.exports: any; } @@ -22,18 +22,11 @@ declare module 'rimraf' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'rimraf/bin' { - declare module.exports: any; -} - -declare module 'rimraf/rimraf' { +declare module 'pui-react-tooltip/tooltip' { declare module.exports: any; } // Filename aliases -declare module 'rimraf/bin.js' { - declare module.exports: $Exports<'rimraf/bin'>; -} -declare module 'rimraf/rimraf.js' { - declare module.exports: $Exports<'rimraf/rimraf'>; +declare module 'pui-react-tooltip/tooltip.js' { + declare module.exports: $Exports<'pui-react-tooltip/tooltip'>; } diff --git a/flow-typed/npm/query-string_vx.x.x.js b/flow-typed/npm/query-string_vx.x.x.js index e706cd5d..c4b4a675 100644 --- a/flow-typed/npm/query-string_vx.x.x.js +++ b/flow-typed/npm/query-string_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a00bae10dfe689e57d04ff3c1326fbaf -// flow-typed version: <>/query-string_v^4.3.4/flow_v0.49.1 +// flow-typed signature: ed4bb1502d9bf1bed52a3aca47420c03 +// flow-typed version: <>/query-string_v^4.3.4/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/raf_vx.x.x.js b/flow-typed/npm/raf_vx.x.x.js new file mode 100644 index 00000000..0cbed730 --- /dev/null +++ b/flow-typed/npm/raf_vx.x.x.js @@ -0,0 +1,52 @@ +// flow-typed signature: 0678b907aea37ebdff11d65316b18ca4 +// flow-typed version: <>/raf_v^3.4.0/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'raf' + * + * 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 'raf' { + 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 'raf/polyfill' { + declare module.exports: any; +} + +declare module 'raf/test' { + declare module.exports: any; +} + +declare module 'raf/window' { + declare module.exports: any; +} + +// Filename aliases +declare module 'raf/index' { + declare module.exports: $Exports<'raf'>; +} +declare module 'raf/index.js' { + declare module.exports: $Exports<'raf'>; +} +declare module 'raf/polyfill.js' { + declare module.exports: $Exports<'raf/polyfill'>; +} +declare module 'raf/test.js' { + declare module.exports: $Exports<'raf/test'>; +} +declare module 'raf/window.js' { + declare module.exports: $Exports<'raf/window'>; +} diff --git a/flow-typed/npm/randomstring_vx.x.x.js b/flow-typed/npm/randomstring_vx.x.x.js index 3d801ca3..587c481d 100644 --- a/flow-typed/npm/randomstring_vx.x.x.js +++ b/flow-typed/npm/randomstring_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 76de3d9445be7c7a4d970610dc4ad3ac -// flow-typed version: <>/randomstring_v1.1.5/flow_v0.49.1 +// flow-typed signature: 0b5a9e3ddbb48e4532d5be95fa91a314 +// flow-typed version: <>/randomstring_v1.1.5/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/raw-loader_vx.x.x.js b/flow-typed/npm/raw-loader_vx.x.x.js index ed5e3c1f..725c6ea2 100644 --- a/flow-typed/npm/raw-loader_vx.x.x.js +++ b/flow-typed/npm/raw-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 8b0adafb90c15baee3d2cfbea1d3f8c2 -// flow-typed version: <>/raw-loader_v^0.5.1/flow_v0.49.1 +// flow-typed signature: 8c21082592421b1ec812a12171d9ae5c +// flow-typed version: <>/raw-loader_v^0.5.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-addons-css-transition-group_v15.x.x.js b/flow-typed/npm/react-addons-css-transition-group_v15.x.x.js deleted file mode 100644 index e7c65e9f..00000000 --- a/flow-typed/npm/react-addons-css-transition-group_v15.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: fe7abf92d2b0a6cb8907b2ea573c8586 -// flow-typed version: e06e1b48c4/react-addons-css-transition-group_v15.x.x/flow_>=v0.26.x - -declare module 'react-addons-css-transition-group' { - declare type ReactCSSTransitionGroupNames = { - enter: string, - enterActive?: string, - leave: string, - leaveActive?: string, - appear: string, - appearActive?: string - }; - declare type Props = { - transitionName: string | ReactCSSTransitionGroupNames, - transitionAppear?: boolean, - transitionEnter?: boolean, - transitionLeave?: boolean, - transitionAppearTimeout?: number, - transitionEnterTimeout?: number, - transitionLeaveTimeout?: number, - }; - declare type DefaultProps = { - transitionAppear: boolean, - transitionEnter: boolean, - transitionLeave: boolean, - } - declare class ReactCSSTransitionGroup extends React$Component { - props: Props; - static defaultProps: DefaultProps; - } - declare module.exports: Class; -} diff --git a/flow-typed/npm/react-avatar-editor_vx.x.x.js b/flow-typed/npm/react-avatar-editor_vx.x.x.js new file mode 100644 index 00000000..ec1de1ff --- /dev/null +++ b/flow-typed/npm/react-avatar-editor_vx.x.x.js @@ -0,0 +1,67 @@ +// flow-typed signature: c7abb539c7cf9804e3d7e9c56e405ce2 +// flow-typed version: <>/react-avatar-editor_v^10.3.0/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'react-avatar-editor' + * + * 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-avatar-editor' { + 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-avatar-editor/dist/index' { + declare module.exports: any; +} + +declare module 'react-avatar-editor/src/index' { + declare module.exports: any; +} + +declare module 'react-avatar-editor/src/utils/parse-dom' { + declare module.exports: any; +} + +declare module 'react-avatar-editor/src/utils/parse-dom.test' { + declare module.exports: any; +} + +declare module 'react-avatar-editor/src/utils/retrieve-image-url' { + declare module.exports: any; +} + +declare module 'react-avatar-editor/src/utils/retrieve-image-url.test' { + declare module.exports: any; +} + +// Filename aliases +declare module 'react-avatar-editor/dist/index.js' { + declare module.exports: $Exports<'react-avatar-editor/dist/index'>; +} +declare module 'react-avatar-editor/src/index.js' { + declare module.exports: $Exports<'react-avatar-editor/src/index'>; +} +declare module 'react-avatar-editor/src/utils/parse-dom.js' { + declare module.exports: $Exports<'react-avatar-editor/src/utils/parse-dom'>; +} +declare module 'react-avatar-editor/src/utils/parse-dom.test.js' { + declare module.exports: $Exports<'react-avatar-editor/src/utils/parse-dom.test'>; +} +declare module 'react-avatar-editor/src/utils/retrieve-image-url.js' { + declare module.exports: $Exports<'react-avatar-editor/src/utils/retrieve-image-url'>; +} +declare module 'react-avatar-editor/src/utils/retrieve-image-url.test.js' { + declare module.exports: $Exports<'react-avatar-editor/src/utils/retrieve-image-url.test'>; +} diff --git a/flow-typed/npm/react-dropzone_v4.x.x.js b/flow-typed/npm/react-dropzone_v4.x.x.js new file mode 100644 index 00000000..0991d2d9 --- /dev/null +++ b/flow-typed/npm/react-dropzone_v4.x.x.js @@ -0,0 +1,56 @@ +// flow-typed signature: 8c363caa55dbf77d9ea18d964c715f0b +// flow-typed version: 36aaaa262e/react-dropzone_v4.x.x/flow_>=v0.53.x + +declare module "react-dropzone" { + declare type ChildrenProps = { + draggedFiles: Array, + acceptedFile: Array, + rejectedFiles: Array, + isDragActive: boolean, + isDragAccept: boolean, + isDragReject: boolean, + } + + declare type DropzoneFile = File & { + preview?: string; + } + + declare type DropzoneProps = { + accept?: string, + children?: React$Node | (ChildrenProps) => React$Node, + disableClick?: boolean, + disabled?: boolean, + disablePreview?: boolean, + preventDropOnDocument?: boolean, + inputProps?: Object, + multiple?: boolean, + name?: string, + maxSize?: number, + minSize?: number, + className?: string, + activeClassName?: string, + acceptClassName?: string, + rejectClassName?: string, + disabledClassName?: string, + style?: Object, + activeStyle?: Object, + acceptStyle?: Object, + rejectStyle?: Object, + disabledStyle?: Object, + onClick?: (event: SyntheticMouseEvent<>) => mixed, + onDrop?: (acceptedFiles: Array, rejectedFiles: Array, event: SyntheticDragEvent<>) => mixed, + onDropAccepted?: (acceptedFiles: Array, event: SyntheticDragEvent<>) => mixed, + onDropRejected?: (rejectedFiles: Array, event: SyntheticDragEvent<>) => mixed, + onDragStart?: (event: SyntheticDragEvent<>) => mixed, + onDragEnter?: (event: SyntheticDragEvent<>) => mixed, + onDragOver?: (event: SyntheticDragEvent<>) => mixed, + onDragLeave?: (event: SyntheticDragEvent<>) => mixed, + onFileDialogCancel?: () => mixed, + }; + + declare class Dropzone extends React$Component { + open(): void; + } + + declare module.exports: typeof Dropzone; +} diff --git a/flow-typed/npm/react-dropzone_vx.x.x.js b/flow-typed/npm/react-dropzone_vx.x.x.js deleted file mode 100644 index 73d45793..00000000 --- a/flow-typed/npm/react-dropzone_vx.x.x.js +++ /dev/null @@ -1,60 +0,0 @@ -// flow-typed signature: a79ed2c6a1de7304f17e06ece0d9e40c -// flow-typed version: <>/react-dropzone_v3.6.0/flow_v0.49.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'react-dropzone' - * - * 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-dropzone' { - 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-dropzone/dist/index' { - declare module.exports: any; -} - -declare module 'react-dropzone/mocha-environment' { - declare module.exports: any; -} - -declare module 'react-dropzone/src/index' { - declare module.exports: any; -} - -declare module 'react-dropzone/src/test' { - declare module.exports: any; -} - -declare module 'react-dropzone/webpack.config' { - declare module.exports: any; -} - -// Filename aliases -declare module 'react-dropzone/dist/index.js' { - declare module.exports: $Exports<'react-dropzone/dist/index'>; -} -declare module 'react-dropzone/mocha-environment.js' { - declare module.exports: $Exports<'react-dropzone/mocha-environment'>; -} -declare module 'react-dropzone/src/index.js' { - declare module.exports: $Exports<'react-dropzone/src/index'>; -} -declare module 'react-dropzone/src/test.js' { - declare module.exports: $Exports<'react-dropzone/src/test'>; -} -declare module 'react-dropzone/webpack.config.js' { - declare module.exports: $Exports<'react-dropzone/webpack.config'>; -} diff --git a/flow-typed/npm/react-helmet_v5.x.x.js b/flow-typed/npm/react-helmet_v5.x.x.js new file mode 100644 index 00000000..3949227c --- /dev/null +++ b/flow-typed/npm/react-helmet_v5.x.x.js @@ -0,0 +1,59 @@ +// flow-typed signature: afa3502910d5b2aef93707cc683f52b8 +// flow-typed version: 492c298a82/react-helmet_v5.x.x/flow_>=v0.53.x + +declare module 'react-helmet' { + declare type Props = { + base?: Object, + bodyAttributes?: Object, + children?: React$Node, + defaultTitle?: string, + defer?: boolean, + encodeSpecialCharacters?: boolean, + htmlAttributes?: Object, + link?: Array, + meta?: Array, + noscript?: Array, + onChangeClientState?: ( + newState?: Object, + addedTags?: Object, + removeTags?: Object + ) => any, + script?: Array, + style?: Array, + title?: string, + titleAttributes?: Object, + titleTemplate?: string, + } + + declare interface TagMethods { + toString(): string; + toComponent(): [React$Element<*>] | React$Element<*> | Array; + } + + declare interface AttributeTagMethods { + toString(): string; + toComponent(): {[string]: *}; + } + + declare interface StateOnServer { + base: TagMethods; + bodyAttributes: AttributeTagMethods, + htmlAttributes: AttributeTagMethods; + link: TagMethods; + meta: TagMethods; + noscript: TagMethods; + script: TagMethods; + style: TagMethods; + title: TagMethods; + } + + declare class Helmet extends React$Component { + static rewind(): StateOnServer; + static renderStatic(): StateOnServer; + static canUseDom(canUseDOM: boolean): void; + } + + declare export default typeof Helmet + declare export var Helmet: typeof Helmet +} + diff --git a/flow-typed/npm/react-keydown_vx.x.x.js b/flow-typed/npm/react-keydown_vx.x.x.js index 1bf5a544..d1a08c87 100644 --- a/flow-typed/npm/react-keydown_vx.x.x.js +++ b/flow-typed/npm/react-keydown_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 108094499f3c97974461a85b7272e373 -// flow-typed version: <>/react-keydown_v^1.7.3/flow_v0.49.1 +// flow-typed signature: 6fca626c25643bea727225c90df1f42c +// flow-typed version: <>/react-keydown_v^1.7.3/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -50,10 +50,6 @@ declare module 'react-keydown/dist/lib/array.from' { declare module.exports: any; } -declare module 'react-keydown/dist/lib/attach_listeners' { - declare module.exports: any; -} - declare module 'react-keydown/dist/lib/dom_helpers' { declare module.exports: any; } @@ -74,6 +70,10 @@ declare module 'react-keydown/dist/lib/parse_keys' { declare module.exports: any; } +declare module 'react-keydown/dist/lib/symbol.polyfill' { + declare module.exports: any; +} + declare module 'react-keydown/dist/lib/uuid' { declare module.exports: any; } @@ -130,6 +130,10 @@ declare module 'react-keydown/es/lib/parse_keys' { declare module.exports: any; } +declare module 'react-keydown/es/lib/symbol.polyfill' { + declare module.exports: any; +} + declare module 'react-keydown/es/lib/uuid' { declare module.exports: any; } @@ -272,9 +276,6 @@ declare module 'react-keydown/dist/index.js' { declare module 'react-keydown/dist/lib/array.from.js' { declare module.exports: $Exports<'react-keydown/dist/lib/array.from'>; } -declare module 'react-keydown/dist/lib/attach_listeners.js' { - declare module.exports: $Exports<'react-keydown/dist/lib/attach_listeners'>; -} declare module 'react-keydown/dist/lib/dom_helpers.js' { declare module.exports: $Exports<'react-keydown/dist/lib/dom_helpers'>; } @@ -290,6 +291,9 @@ declare module 'react-keydown/dist/lib/match_keys.js' { declare module 'react-keydown/dist/lib/parse_keys.js' { declare module.exports: $Exports<'react-keydown/dist/lib/parse_keys'>; } +declare module 'react-keydown/dist/lib/symbol.polyfill.js' { + declare module.exports: $Exports<'react-keydown/dist/lib/symbol.polyfill'>; +} declare module 'react-keydown/dist/lib/uuid.js' { declare module.exports: $Exports<'react-keydown/dist/lib/uuid'>; } @@ -332,6 +336,9 @@ declare module 'react-keydown/es/lib/match_keys.js' { declare module 'react-keydown/es/lib/parse_keys.js' { declare module.exports: $Exports<'react-keydown/es/lib/parse_keys'>; } +declare module 'react-keydown/es/lib/symbol.polyfill.js' { + declare module.exports: $Exports<'react-keydown/es/lib/symbol.polyfill'>; +} declare module 'react-keydown/es/lib/uuid.js' { declare module.exports: $Exports<'react-keydown/es/lib/uuid'>; } diff --git a/flow-typed/npm/react-markdown_vx.x.x.js b/flow-typed/npm/react-markdown_vx.x.x.js new file mode 100644 index 00000000..0ed5fea7 --- /dev/null +++ b/flow-typed/npm/react-markdown_vx.x.x.js @@ -0,0 +1,200 @@ +// flow-typed signature: 288146b7c4a1ae6cfec86fa1bed560b4 +// flow-typed version: <>/react-markdown_v^3.0.2/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'react-markdown' + * + * 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-markdown' { + 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-markdown/demo/dist/js/codemirror' { + declare module.exports: any; +} + +declare module 'react-markdown/demo/dist/js/demo' { + declare module.exports: any; +} + +declare module 'react-markdown/demo/src/code-block' { + declare module.exports: any; +} + +declare module 'react-markdown/demo/src/demo' { + declare module.exports: any; +} + +declare module 'react-markdown/demo/src/editor' { + declare module.exports: any; +} + +declare module 'react-markdown/demo/src/markdown-controls' { + declare module.exports: any; +} + +declare module 'react-markdown/lib/ast-to-react' { + declare module.exports: any; +} + +declare module 'react-markdown/lib/get-definitions' { + declare module.exports: any; +} + +declare module 'react-markdown/lib/plugins/disallow-node' { + declare module.exports: any; +} + +declare module 'react-markdown/lib/plugins/naive-html' { + declare module.exports: any; +} + +declare module 'react-markdown/lib/react-markdown' { + declare module.exports: any; +} + +declare module 'react-markdown/lib/renderers' { + declare module.exports: any; +} + +declare module 'react-markdown/lib/uriTransformer' { + declare module.exports: any; +} + +declare module 'react-markdown/lib/wrap-table-rows' { + declare module.exports: any; +} + +declare module 'react-markdown/src/ast-to-react' { + declare module.exports: any; +} + +declare module 'react-markdown/src/get-definitions' { + declare module.exports: any; +} + +declare module 'react-markdown/src/plugins/disallow-node' { + declare module.exports: any; +} + +declare module 'react-markdown/src/plugins/naive-html' { + declare module.exports: any; +} + +declare module 'react-markdown/src/react-markdown' { + declare module.exports: any; +} + +declare module 'react-markdown/src/renderers' { + declare module.exports: any; +} + +declare module 'react-markdown/src/uriTransformer' { + declare module.exports: any; +} + +declare module 'react-markdown/src/wrap-table-rows' { + declare module.exports: any; +} + +declare module 'react-markdown/umd/react-markdown' { + declare module.exports: any; +} + +declare module 'react-markdown/webpack.config.demo' { + declare module.exports: any; +} + +declare module 'react-markdown/webpack.config' { + declare module.exports: any; +} + +// Filename aliases +declare module 'react-markdown/demo/dist/js/codemirror.js' { + declare module.exports: $Exports<'react-markdown/demo/dist/js/codemirror'>; +} +declare module 'react-markdown/demo/dist/js/demo.js' { + declare module.exports: $Exports<'react-markdown/demo/dist/js/demo'>; +} +declare module 'react-markdown/demo/src/code-block.js' { + declare module.exports: $Exports<'react-markdown/demo/src/code-block'>; +} +declare module 'react-markdown/demo/src/demo.js' { + declare module.exports: $Exports<'react-markdown/demo/src/demo'>; +} +declare module 'react-markdown/demo/src/editor.js' { + declare module.exports: $Exports<'react-markdown/demo/src/editor'>; +} +declare module 'react-markdown/demo/src/markdown-controls.js' { + declare module.exports: $Exports<'react-markdown/demo/src/markdown-controls'>; +} +declare module 'react-markdown/lib/ast-to-react.js' { + declare module.exports: $Exports<'react-markdown/lib/ast-to-react'>; +} +declare module 'react-markdown/lib/get-definitions.js' { + declare module.exports: $Exports<'react-markdown/lib/get-definitions'>; +} +declare module 'react-markdown/lib/plugins/disallow-node.js' { + declare module.exports: $Exports<'react-markdown/lib/plugins/disallow-node'>; +} +declare module 'react-markdown/lib/plugins/naive-html.js' { + declare module.exports: $Exports<'react-markdown/lib/plugins/naive-html'>; +} +declare module 'react-markdown/lib/react-markdown.js' { + declare module.exports: $Exports<'react-markdown/lib/react-markdown'>; +} +declare module 'react-markdown/lib/renderers.js' { + declare module.exports: $Exports<'react-markdown/lib/renderers'>; +} +declare module 'react-markdown/lib/uriTransformer.js' { + declare module.exports: $Exports<'react-markdown/lib/uriTransformer'>; +} +declare module 'react-markdown/lib/wrap-table-rows.js' { + declare module.exports: $Exports<'react-markdown/lib/wrap-table-rows'>; +} +declare module 'react-markdown/src/ast-to-react.js' { + declare module.exports: $Exports<'react-markdown/src/ast-to-react'>; +} +declare module 'react-markdown/src/get-definitions.js' { + declare module.exports: $Exports<'react-markdown/src/get-definitions'>; +} +declare module 'react-markdown/src/plugins/disallow-node.js' { + declare module.exports: $Exports<'react-markdown/src/plugins/disallow-node'>; +} +declare module 'react-markdown/src/plugins/naive-html.js' { + declare module.exports: $Exports<'react-markdown/src/plugins/naive-html'>; +} +declare module 'react-markdown/src/react-markdown.js' { + declare module.exports: $Exports<'react-markdown/src/react-markdown'>; +} +declare module 'react-markdown/src/renderers.js' { + declare module.exports: $Exports<'react-markdown/src/renderers'>; +} +declare module 'react-markdown/src/uriTransformer.js' { + declare module.exports: $Exports<'react-markdown/src/uriTransformer'>; +} +declare module 'react-markdown/src/wrap-table-rows.js' { + declare module.exports: $Exports<'react-markdown/src/wrap-table-rows'>; +} +declare module 'react-markdown/umd/react-markdown.js' { + declare module.exports: $Exports<'react-markdown/umd/react-markdown'>; +} +declare module 'react-markdown/webpack.config.demo.js' { + declare module.exports: $Exports<'react-markdown/webpack.config.demo'>; +} +declare module 'react-markdown/webpack.config.js' { + declare module.exports: $Exports<'react-markdown/webpack.config'>; +} diff --git a/flow-typed/npm/react-medium-image-zoom_vx.x.x.js b/flow-typed/npm/react-medium-image-zoom_vx.x.x.js new file mode 100644 index 00000000..189a726b --- /dev/null +++ b/flow-typed/npm/react-medium-image-zoom_vx.x.x.js @@ -0,0 +1,94 @@ +// flow-typed signature: bf2e56ab9890e98d605225fc3f665cb8 +// flow-typed version: <>/react-medium-image-zoom_v^3.0.10/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'react-medium-image-zoom' + * + * 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-medium-image-zoom' { + 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-medium-image-zoom/docs/app' { + declare module.exports: any; +} + +declare module 'react-medium-image-zoom/lib/defaults' { + declare module.exports: any; +} + +declare module 'react-medium-image-zoom/lib/EventsWrapper' { + declare module.exports: any; +} + +declare module 'react-medium-image-zoom/lib/helpers' { + declare module.exports: any; +} + +declare module 'react-medium-image-zoom/lib/ImageZoom' { + declare module.exports: any; +} + +declare module 'react-medium-image-zoom/lib/index' { + declare module.exports: any; +} + +declare module 'react-medium-image-zoom/lib/keyboardEvents' { + declare module.exports: any; +} + +declare module 'react-medium-image-zoom/lib/Overlay' { + declare module.exports: any; +} + +declare module 'react-medium-image-zoom/lib/Zoom' { + declare module.exports: any; +} + +// Filename aliases +declare module 'react-medium-image-zoom/docs/app.js' { + declare module.exports: $Exports<'react-medium-image-zoom/docs/app'>; +} +declare module 'react-medium-image-zoom/index' { + declare module.exports: $Exports<'react-medium-image-zoom'>; +} +declare module 'react-medium-image-zoom/index.js' { + declare module.exports: $Exports<'react-medium-image-zoom'>; +} +declare module 'react-medium-image-zoom/lib/defaults.js' { + declare module.exports: $Exports<'react-medium-image-zoom/lib/defaults'>; +} +declare module 'react-medium-image-zoom/lib/EventsWrapper.js' { + declare module.exports: $Exports<'react-medium-image-zoom/lib/EventsWrapper'>; +} +declare module 'react-medium-image-zoom/lib/helpers.js' { + declare module.exports: $Exports<'react-medium-image-zoom/lib/helpers'>; +} +declare module 'react-medium-image-zoom/lib/ImageZoom.js' { + declare module.exports: $Exports<'react-medium-image-zoom/lib/ImageZoom'>; +} +declare module 'react-medium-image-zoom/lib/index.js' { + declare module.exports: $Exports<'react-medium-image-zoom/lib/index'>; +} +declare module 'react-medium-image-zoom/lib/keyboardEvents.js' { + declare module.exports: $Exports<'react-medium-image-zoom/lib/keyboardEvents'>; +} +declare module 'react-medium-image-zoom/lib/Overlay.js' { + declare module.exports: $Exports<'react-medium-image-zoom/lib/Overlay'>; +} +declare module 'react-medium-image-zoom/lib/Zoom.js' { + declare module.exports: $Exports<'react-medium-image-zoom/lib/Zoom'>; +} diff --git a/flow-typed/npm/react-modal_v3.1.x.js b/flow-typed/npm/react-modal_v3.1.x.js new file mode 100644 index 00000000..7f9764a8 --- /dev/null +++ b/flow-typed/npm/react-modal_v3.1.x.js @@ -0,0 +1,52 @@ +// flow-typed signature: 919d09445f69c0a85f337d1cdb035dc3 +// flow-typed version: b63741deb2/react-modal_v3.1.x/flow_>=v0.54.1 + +declare module 'react-modal' { + declare type DefaultProps = { + isOpen?: boolean, + portalClassName?: string, + bodyOpenClassName?: string, + ariaHideApp?: boolean, + closeTimeoutMS?: number, + shouldFocusAfterRender?: boolean, + shouldCloseOnEsc?: boolean, + shouldCloseOnOverlayClick?: boolean, + shouldReturnFocusAfterClose?: boolean, + parentSelector?: () => HTMLElement, + }; + + declare type Props = DefaultProps & { + style?: { + content?: { + [key: string]: string | number + }, + overlay?: { + [key: string]: string | number + } + }, + className?: string | { + base: string, + afterOpen: string, + beforeClose: string + }, + overlayClassName?: string | { + base: string, + afterOpen: string, + beforeClose: string + }, + appElement?: HTMLElement | string | null, + onAfterOpen?: () => void, + onRequestClose?: () => void, + aria?: { + [key: string]: string + }, + role?: string, + contentLabel?: string + }; + + declare class Modal extends React$Component { + static setAppElement(element: HTMLElement | string | null): void; + } + + declare module.exports: typeof Modal; +} diff --git a/flow-typed/npm/react-portal_vx.x.x.js b/flow-typed/npm/react-portal_vx.x.x.js index 2090476d..2c6c79cc 100644 --- a/flow-typed/npm/react-portal_vx.x.x.js +++ b/flow-typed/npm/react-portal_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 0e2ea0e5e7a6c369f69d3c60881f6f90 -// flow-typed version: <>/react-portal_v^3.1.0/flow_v0.49.1 +// flow-typed signature: a718fc339b7287756fe1d6da5095dead +// flow-typed version: <>/react-portal_v^4.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,25 +22,46 @@ declare module 'react-portal' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'react-portal/build/examples_bundle' { +declare module 'react-portal/es/index' { declare module.exports: any; } -declare module 'react-portal/build/portal' { +declare module 'react-portal/es/Portal' { declare module.exports: any; } -declare module 'react-portal/lib/portal' { +declare module 'react-portal/es/PortalWithState' { + declare module.exports: any; +} + +declare module 'react-portal/lib/index' { + declare module.exports: any; +} + +declare module 'react-portal/lib/Portal' { + declare module.exports: any; +} + +declare module 'react-portal/lib/PortalWithState' { declare module.exports: any; } // Filename aliases -declare module 'react-portal/build/examples_bundle.js' { - declare module.exports: $Exports<'react-portal/build/examples_bundle'>; +declare module 'react-portal/es/index.js' { + declare module.exports: $Exports<'react-portal/es/index'>; } -declare module 'react-portal/build/portal.js' { - declare module.exports: $Exports<'react-portal/build/portal'>; +declare module 'react-portal/es/Portal.js' { + declare module.exports: $Exports<'react-portal/es/Portal'>; } -declare module 'react-portal/lib/portal.js' { - declare module.exports: $Exports<'react-portal/lib/portal'>; +declare module 'react-portal/es/PortalWithState.js' { + declare module.exports: $Exports<'react-portal/es/PortalWithState'>; +} +declare module 'react-portal/lib/index.js' { + declare module.exports: $Exports<'react-portal/lib/index'>; +} +declare module 'react-portal/lib/Portal.js' { + declare module.exports: $Exports<'react-portal/lib/Portal'>; +} +declare module 'react-portal/lib/PortalWithState.js' { + declare module.exports: $Exports<'react-portal/lib/PortalWithState'>; } diff --git a/flow-typed/npm/react-router-dom_v4.x.x.js b/flow-typed/npm/react-router-dom_v4.x.x.js index f112ec74..c573be56 100644 --- a/flow-typed/npm/react-router-dom_v4.x.x.js +++ b/flow-typed/npm/react-router-dom_v4.x.x.js @@ -1,47 +1,40 @@ -// flow-typed signature: 493d39fe9968f54f645635dbec3b2d9a -// flow-typed version: 02d9734356/react-router-dom_v4.x.x/flow_>=v0.38.x +// flow-typed signature: cf916fca23433d4bbcb7a75f2604407d +// flow-typed version: f821d89401/react-router-dom_v4.x.x/flow_>=v0.53.x -declare module 'react-router-dom' { - declare export class BrowserRouter extends React$Component { - props: { - basename?: string, - forceRefresh?: boolean, - getUserConfirmation?: GetUserConfirmation, - keyLength?: number, - children?: React$Element<*>, - } - } +declare module "react-router-dom" { + declare export class BrowserRouter extends React$Component<{ + basename?: string, + forceRefresh?: boolean, + getUserConfirmation?: GetUserConfirmation, + keyLength?: number, + children?: React$Node + }> {} - declare export class HashRouter extends React$Component { - props: { - basename?: string, - getUserConfirmation?: GetUserConfirmation, - hashType?: 'slash' | 'noslash' | 'hashbang', - children?: React$Element<*>, - } - } + declare export class HashRouter extends React$Component<{ + basename?: string, + getUserConfirmation?: GetUserConfirmation, + hashType?: "slash" | "noslash" | "hashbang", + children?: React$Node + }> {} - declare export class Link extends React$Component { - props: { - to: string | LocationShape, - replace?: boolean, - children?: React$Element<*>, - } - } + declare export class Link extends React$Component<{ + className?: string, + to: string | LocationShape, + replace?: boolean, + children?: React$Node + }> {} - declare export class NavLink extends React$Component { - props: { - to: string | LocationShape, - activeClassName?: string, - className?: string, - activeStyle?: Object, - style?: Object, - isActive?: (match: Match, location: Location) => boolean, - children?: React$Element<*>, - exact?: bool, - strict?: bool, - } - } + declare export class NavLink extends React$Component<{ + to: string | LocationShape, + activeClassName?: string, + className?: string, + activeStyle?: Object, + style?: Object, + isActive?: (match: Match, location: Location) => boolean, + children?: React$Node, + exact?: boolean, + strict?: boolean + }> {} // NOTE: Below are duplicated from react-router. If updating these, please // update the react-router and react-router-native types as well. @@ -50,120 +43,118 @@ declare module 'react-router-dom' { search: string, hash: string, state?: any, - key?: string, - } + key?: string + }; declare export type LocationShape = { pathname?: string, search?: string, hash?: string, - state?: any, - } + state?: any + }; - declare export type HistoryAction = 'PUSH' | 'REPLACE' | 'POP' + declare export type HistoryAction = "PUSH" | "REPLACE" | "POP"; declare export type RouterHistory = { length: number, location: Location, action: HistoryAction, - listen(callback: (location: Location, action: HistoryAction) => void): () => void, + listen( + callback: (location: Location, action: HistoryAction) => void + ): () => void, push(path: string | LocationShape, state?: any): void, replace(path: string | LocationShape, state?: any): void, go(n: number): void, goBack(): void, goForward(): void, - canGo?: (n: number) => bool, - block(callback: (location: Location, action: HistoryAction) => boolean): void, + canGo?: (n: number) => boolean, + block( + callback: (location: Location, action: HistoryAction) => boolean + ): void, // createMemoryHistory index?: number, - entries?: Array, - } + entries?: Array + }; declare export type Match = { params: { [key: string]: ?string }, isExact: boolean, path: string, - url: string, - } + url: string + }; - declare export type ContextRouter = { + declare export type ContextRouter = {| history: RouterHistory, location: Location, match: Match, - } + staticContext?: StaticRouterContext, +|}; - declare export type GetUserConfirmation = - (message: string, callback: (confirmed: boolean) => void) => void + declare export type GetUserConfirmation = ( + message: string, + callback: (confirmed: boolean) => void + ) => void; declare type StaticRouterContext = { - url?: string, - } + url?: string + }; - declare export class StaticRouter extends React$Component { - props: { - basename?: string, - location?: string | Location, - context: StaticRouterContext, - children?: React$Element<*>, - } - } + declare export class StaticRouter extends React$Component<{ + basename?: string, + location?: string | Location, + context: StaticRouterContext, + children?: React$Node + }> {} - declare export class MemoryRouter extends React$Component { - props: { - initialEntries?: Array, - initialIndex?: number, - getUserConfirmation?: GetUserConfirmation, - keyLength?: number, - children?: React$Element<*>, - } - } + declare export class MemoryRouter extends React$Component<{ + initialEntries?: Array, + initialIndex?: number, + getUserConfirmation?: GetUserConfirmation, + keyLength?: number, + children?: React$Node + }> {} - declare export class Router extends React$Component { - props: { - history: RouterHistory, - children?: React$Element<*>, - } - } + declare export class Router extends React$Component<{ + history: RouterHistory, + children?: React$Node + }> {} - declare export class Prompt extends React$Component { - props: { - message: string | (location: Location) => string | true, - when?: boolean, - } - } + declare export class Prompt extends React$Component<{ + message: string | ((location: Location) => string | boolean), + when?: boolean + }> {} - declare export class Redirect extends React$Component { - props: { - to: string | LocationShape, - push?: boolean, - } - } + declare export class Redirect extends React$Component<{ + to: string | LocationShape, + push?: boolean + }> {} - declare export class Route extends React$Component { - props: { - component?: ReactClass<*>, - render?: (router: ContextRouter) => React$Element<*>, - children?: (router: ContextRouter) => React$Element<*>, - path?: string, - exact?: bool, - strict?: bool, - } - } + declare export class Route extends React$Component<{ + component?: React$ComponentType<*>, + render?: (router: ContextRouter) => React$Node, + children?: React$ComponentType | React$Node, + path?: string, + exact?: boolean, + strict?: boolean + }> {} - declare export class Switch extends React$Component { - props: { - children?: Array>, - } - } + declare export class Switch extends React$Component<{ + children?: React$Node + }> {} - declare type FunctionComponent

= (props: P) => ?React$Element; - declare type ClassComponent = Class>; - declare export function withRouter(Component: ClassComponent | FunctionComponent

): ClassComponent, S>; + declare export function withRouter

( + Component: React$ComponentType<{| ...ContextRouter, ...P |}> + ): React$ComponentType

; declare type MatchPathOptions = { - path: string, + path?: string, exact?: boolean, - strict?: boolean, - } - declare export function matchPath(pathname: string, options: MatchPathOptions): null | Match + sensitive?: boolean, + strict?: boolean + }; + + declare export function matchPath( + pathname: string, + options?: MatchPathOptions | string + ): null | Match; } diff --git a/flow-typed/npm/react-test-renderer_v16.x.x.js b/flow-typed/npm/react-test-renderer_v16.x.x.js new file mode 100644 index 00000000..1f9a271c --- /dev/null +++ b/flow-typed/npm/react-test-renderer_v16.x.x.js @@ -0,0 +1,62 @@ +// flow-typed signature: 2d946f2ec4aba5210b19d053c411a59d +// flow-typed version: 95b3e05165/react-test-renderer_v16.x.x/flow_>=v0.47.x + +// Type definitions for react-test-renderer 16.x.x +// Ported from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-test-renderer + +type ReactTestRendererJSON = { + type: string, + props: { [propName: string]: any }, + children: null | ReactTestRendererJSON[] +}; + +type ReactTestRendererTree = ReactTestRendererJSON & { + nodeType: "component" | "host", + instance: any, + rendered: null | ReactTestRendererTree +}; + +type ReactTestInstance = { + instance: any, + type: string, + props: { [propName: string]: any }, + parent: null | ReactTestInstance, + children: Array, + + find(predicate: (node: ReactTestInstance) => boolean): ReactTestInstance, + findByType(type: React$ElementType): ReactTestInstance, + findByProps(props: { [propName: string]: any }): ReactTestInstance, + + findAll( + predicate: (node: ReactTestInstance) => boolean, + options?: { deep: boolean } + ): ReactTestInstance[], + findAllByType( + type: React$ElementType, + options?: { deep: boolean } + ): ReactTestInstance[], + findAllByProps( + props: { [propName: string]: any }, + options?: { deep: boolean } + ): ReactTestInstance[] +}; + +type ReactTestRenderer = { + toJSON(): null | ReactTestRendererJSON, + toTree(): null | ReactTestRendererTree, + unmount(nextElement?: React$Element): void, + update(nextElement: React$Element): void, + getInstance(): null | ReactTestInstance, + root: ReactTestInstance +}; + +type TestRendererOptions = { + createNodeMock(element: React$Element): any +}; + +declare module "react-test-renderer" { + declare function create( + nextElement: React$Element, + options?: TestRendererOptions + ): ReactTestRenderer; +} diff --git a/flow-typed/npm/react-waypoint_vx.x.x.js b/flow-typed/npm/react-waypoint_vx.x.x.js new file mode 100644 index 00000000..bb94b35e --- /dev/null +++ b/flow-typed/npm/react-waypoint_vx.x.x.js @@ -0,0 +1,46 @@ +// flow-typed signature: 1adeedf3c744400ee4ebf005944b65ae +// flow-typed version: <>/react-waypoint_v^7.3.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'react-waypoint' + * + * 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-waypoint' { + 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-waypoint/cjs/index' { + declare module.exports: any; +} + +declare module 'react-waypoint/rollup.config' { + declare module.exports: any; +} + +declare module 'react-waypoint/webpack.config.performance-test' { + declare module.exports: any; +} + +// Filename aliases +declare module 'react-waypoint/cjs/index.js' { + declare module.exports: $Exports<'react-waypoint/cjs/index'>; +} +declare module 'react-waypoint/rollup.config.js' { + declare module.exports: $Exports<'react-waypoint/rollup.config'>; +} +declare module 'react-waypoint/webpack.config.performance-test.js' { + declare module.exports: $Exports<'react-waypoint/webpack.config.performance-test'>; +} diff --git a/flow-typed/npm/redis-lock_vx.x.x.js b/flow-typed/npm/redis-lock_vx.x.x.js index 4ec9095e..00865293 100644 --- a/flow-typed/npm/redis-lock_vx.x.x.js +++ b/flow-typed/npm/redis-lock_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f4cfd873f1415c53d00d2f04b8434ab0 -// flow-typed version: <>/redis-lock_v^0.1.0/flow_v0.49.1 +// flow-typed signature: 189e4b922f086cb6e0f8f7ff74e13e05 +// flow-typed version: <>/redis-lock_v^0.1.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/redis_v2.x.x.js b/flow-typed/npm/redis_v2.x.x.js new file mode 100644 index 00000000..869d6c59 --- /dev/null +++ b/flow-typed/npm/redis_v2.x.x.js @@ -0,0 +1,317 @@ +// flow-typed signature: e8c17d9b50ca24293a9bd00a8aa54f9e +// flow-typed version: a80cb215a2/redis_v2.x.x/flow_>=v0.34.x + +/* This module definition is by no means complete. A lot of methods of the RedisClient class are missing */ + +declare type $npm$redis$SetCallbackAllOk = (error: ?Error, result: 'OK') => void + +declare type $npm$redis$SetCallback = (error: ?Error, result: ?'OK') => void + +declare type $npm$redis$SetStandard = ( + key: string, + value: string, + callback?: $npm$redis$SetCallbackAllOk +) => void + +declare type $npm$redis$SetWithCondition = ( + key: string, + value: string, + condition: 'NX' | 'XX', + callback?: $npm$redis$SetCallbackAllOk +) => void + +declare type $npm$redis$SetWithExpire = ( + key: string, + value: string, + expire: 'EX' | 'PX', + time: number, + callback?: $npm$redis$SetCallbackAllOk +) => void + +declare type $npm$redis$SetWithExpireAndConditionBefore = ( + key: string, + value: string, + condition: 'NX' | 'XX', + expire: 'EX' | 'PX', + time: number, + callback?: $npm$redis$SetCallback // When using XX or NX the result may be null +) => void + +declare type $npm$redis$SetWithExpireAndConditionAfter = ( + key: string, + value: string, + expire: 'EX' | 'PX', + time: number, + condition: 'NX' | 'XX', + callback?: $npm$redis$SetCallback // When using XX or NX the result may be null +) => void + +declare type $npm$redis$SetF = $npm$redis$SetStandard + & $npm$redis$SetWithExpire + & $npm$redis$SetWithCondition + & $npm$redis$SetWithExpireAndConditionBefore + & $npm$redis$SetWithExpireAndConditionAfter + +declare type $npm$redis$DelCallback = (error: ?Error, numRemoved: number) => void + +declare type $npm$redis$DelWithArrayKeys = ( + keys: Array, + callback?: $npm$redis$DelCallback +) => void + +declare type $npm$redis$DelWithRestKeys = ( + ...keys: Array +) => void + +declare type $npm$redis$DelWithRestKeys1 = ( + key: string, + callback: $npm$redis$DelCallback +) => void + +declare type $npm$redis$DelWithRestKeys2 = ( + key1: string, + key2: string, + callback: $npm$redis$DelCallback +) => void + +declare type $npm$redis$DelWithRestKeys3 = ( + key1: string, + key2: string, + key3: string, + callback: $npm$redis$DelCallback +) => void + +declare type $npm$redis$DelWithRestKeys4 = ( + key1: string, + key2: string, + key3: string, + key4: string, + callback: $npm$redis$DelCallback +) => void + +declare type $npm$redis$DelWithRestKeys5 = ( + key1: string, + key2: string, + key3: string, + key4: string, + key5: string, + callback: $npm$redis$DelCallback +) => void + +declare type $npm$redis$DelF = $npm$redis$DelWithArrayKeys + & $npm$redis$DelWithRestKeys + & $npm$redis$DelWithRestKeys1 + & $npm$redis$DelWithRestKeys2 + & $npm$redis$DelWithRestKeys3 + & $npm$redis$DelWithRestKeys4 + & $npm$redis$DelWithRestKeys5 + +declare module "redis" { + declare class RedisClient extends events$EventEmitter mixins RedisClientPromisified { + hmset: ( + key: string, + map: {[key: string]: string}, + callback?: (error: ?Error) => void + ) => void; + rpush: ( + key: string, + value: string, + callback?: (error: ?Error) => void + ) => void; + lpush: ( + key: string, + value: string, + callback?: (error: ?Error, newLength: number) => void + ) => void; + lrem: ( + topic: string, + count: number, + value: string, + callback?: (error: ?Error, entries: number) => void + ) => void; + lrange: ( + topic: string, + cursor: number, + cursor2: number, + callback: (error: ?Error, entries: Array) => void + ) => void; + llen: ( + key: string, + callback: (error: ?Error, length: number) => void + ) => void; + hset: ( + topic: string, + key: string, + value: string, + callback?: (error: ?Error, result: (0 | 1)) => void + ) => void; + hget: ( + topic: string, + key: string, + value: string, + callback: (error: ?Error, result: ?string) => void + ) => void; + hgetall: ( + topic: string, + callback: (error: ?Error, result: {[key: string]: string}) => void + ) => void; + hdel: ( + topic: string, + key: string, + callback?: (error: ?Error, numRemoved: number) => void + ) => void; + get: ( + key: string, + callback: (error: ?Error, value: ?string) => void + ) => void; + set: $npm$redis$SetF; + setex: ( + key: string, + timeout: number, + value: string, + callback?: (error: ?Error, result: 'OK') => void + ) => void; + ttl: ( + key: string, + callback: (error: ?Error, ttl: number) => void + ) => void; + del: $npm$redis$DelF; + mget: ( + keys: Array, + callback: (error: ?Error, values: Array) => void + ) => void; + mset: ( + keysAndValues: Array, + callback?: (error: ?Error, result: 'OK') => void + ) => void; + rpoplpush: ( + source: string, + destination: string, + callback?: (error: ?Error, result: string) => void + ) => void; + flushall: ( + callback?: (error: ?Error, result: 'OK') => void + ) => void; + publish: ( + topic: string, + value: any, + callback?: (error: ?Error, numReceivers: number) => void + ) => void; + subscribe: (topic: string) => void; + unsubscribe: (topic: string) => void; + psubscribe: (pattern: string) => void; + punsubscribe: (pattern: string) => void; + duplicate: () => RedisClient; + end: (flush: boolean) => void; + quit: () => void; + keys: ( + pattern: string, + callback?: (error: ?Error, keys: string[]) => void + ) => void; + expire: ( + key: string, + timeout: number, + callback?: (error: ?Error, timeoutWasSet: number) => void + ) => void; + } + + declare class RedisClientPromisified extends RedisClient { + hmsetAsync: ( + key: string, + map: {[key: string]: string}, + callback: (?Error) => void + ) => Promise; + rpushAsync: ( + key: string, + value: string, + callback: (?Error) => void + ) => Promise; + lpushAsync: (key: string, value: any) => Promise; + lremAsync: ( + topic: string, + cursor: number, + value: string + ) => Promise> | Promise; + lrangeAsync: ( + topic: string, + cursor: number, + cursor2: number + ) => Promise>; + mgetAsync: ( + keys: Array + ) => Promise>; + msetAsync: ( + keysAndValues: Array, + ) => Promise; + hsetAsync: (topic: string, key: string, value: string) => Promise; + hgetAsync: (topic: string, key: string) => Promise | Promise; + hgetallAsync: ( + topic: string, + ) => Promise<{[key: string]: string}> | Promise; + hdelAsync: (topic: string, key: string) => Promise; + getAsync: (key: string) => Promise; + setAsync: (key: string, value: any) => Promise; + delAsync: (...keys: Array) => Promise; + rpoplpushAsync: ( + source: string, + destination: string + ) => Promise | Promise; + publishAsync: (topic: string, value: any) => Promise; + subscribeAsync: (topic: string) => Promise; + unsubscribeAsync: (topic: string) => Promise; + psubscribeAsync: (pattern: string) => Promise; + punsubscribeAsync: (pattern: string) => Promise; + duplicateAsync: () => Promise; + endAsync: (flush: boolean) => Promise; + quitAsync: () => Promise; + keysAsync: (pattern: string) => Promise; + expireAsync: (key: string, timeout: number) => Promise; + setexAsync: (key: string, timeout: number, value: string) => Promise; + } + + declare type CreateOptions = { + host?: string, + port?: number, + path?: string, + url?: string, + parser?: "javascript" | "hiredis", + string_numbers?: boolean, + return_buffers?: boolean, + detect_buffers?: boolean, + socket_keepalive?: boolean, + no_ready_check?: boolean, + enable_offline_queue?: boolean, + retry_max_delay?: ?number, + connect_timeout?: number, + max_attempts?: number, + retry_unfulfilled_commands?: boolean, + password?: string, + db?: number, + family?: "IPv4" | "IPv6", + disable_resubscribing?: boolean, + rename_commands?: { [name: string]: string }, + tls?: Object, + prefix?: string, + retry_strategy?: (options: { + attempt: number, + total_retry_time: number, + error: Error, + times_connected: number + }) => any + }; + + declare type CreateClient = (( + port: number, + host?: string, + options?: CreateOptions + ) => RedisClient) & + ((port: number, options?: CreateOptions) => RedisClient) & + ((socketOrUrl: string, options?: CreateOptions) => RedisClient) & + ((options?: CreateOptions) => RedisClient); + + declare module.exports: { + RedisClient: typeof RedisClient, + RedisClientPromisified: typeof RedisClientPromisified, + createClient: CreateClient + }; +} diff --git a/flow-typed/npm/redis_vx.x.x.js b/flow-typed/npm/redis_vx.x.x.js deleted file mode 100644 index 43c9e547..00000000 --- a/flow-typed/npm/redis_vx.x.x.js +++ /dev/null @@ -1,94 +0,0 @@ -// flow-typed signature: 849627385e3d26a9aa753345ebf634c1 -// flow-typed version: <>/redis_v^2.6.2/flow_v0.49.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'redis' - * - * 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 'redis' { - 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 'redis/lib/command' { - declare module.exports: any; -} - -declare module 'redis/lib/commands' { - declare module.exports: any; -} - -declare module 'redis/lib/createClient' { - declare module.exports: any; -} - -declare module 'redis/lib/customErrors' { - declare module.exports: any; -} - -declare module 'redis/lib/debug' { - declare module.exports: any; -} - -declare module 'redis/lib/extendedApi' { - declare module.exports: any; -} - -declare module 'redis/lib/individualCommands' { - declare module.exports: any; -} - -declare module 'redis/lib/multi' { - declare module.exports: any; -} - -declare module 'redis/lib/utils' { - declare module.exports: any; -} - -// Filename aliases -declare module 'redis/index' { - declare module.exports: $Exports<'redis'>; -} -declare module 'redis/index.js' { - declare module.exports: $Exports<'redis'>; -} -declare module 'redis/lib/command.js' { - declare module.exports: $Exports<'redis/lib/command'>; -} -declare module 'redis/lib/commands.js' { - declare module.exports: $Exports<'redis/lib/commands'>; -} -declare module 'redis/lib/createClient.js' { - declare module.exports: $Exports<'redis/lib/createClient'>; -} -declare module 'redis/lib/customErrors.js' { - declare module.exports: $Exports<'redis/lib/customErrors'>; -} -declare module 'redis/lib/debug.js' { - declare module.exports: $Exports<'redis/lib/debug'>; -} -declare module 'redis/lib/extendedApi.js' { - declare module.exports: $Exports<'redis/lib/extendedApi'>; -} -declare module 'redis/lib/individualCommands.js' { - declare module.exports: $Exports<'redis/lib/individualCommands'>; -} -declare module 'redis/lib/multi.js' { - declare module.exports: $Exports<'redis/lib/multi'>; -} -declare module 'redis/lib/utils.js' { - declare module.exports: $Exports<'redis/lib/utils'>; -} diff --git a/flow-typed/npm/rich-markdown-editor_vx.x.x.js b/flow-typed/npm/rich-markdown-editor_vx.x.x.js new file mode 100644 index 00000000..db3a8425 --- /dev/null +++ b/flow-typed/npm/rich-markdown-editor_vx.x.x.js @@ -0,0 +1,543 @@ +// flow-typed signature: 550e8486051eb406c3e315910d591be9 +// flow-typed version: <>/rich-markdown-editor_v^0.2.2/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'rich-markdown-editor' + * + * 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 'rich-markdown-editor' { + 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 'rich-markdown-editor/lib/animations' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/changes' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/BlockInsert' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/ClickablePadding' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Code' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Contents' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/CopyButton' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/CopyToClipboard' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Flex' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Heading' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/HorizontalRule' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/BackIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/BlockQuoteIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/BoldIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/BulletedListIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/CheckboxIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/CloseIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/CodeIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/CollapsedIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/CollectionIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/DocumentIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/EditIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/GoToIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/Heading1Icon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/Heading2Icon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/HomeIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/HorizontalRuleIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/Icon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/ImageIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/index' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/ItalicIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/LinkIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/MenuIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/MoreIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/NextIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/OpenIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/OrderedListIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/PlusIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/SearchIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/SettingsIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/StrikethroughIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/TableIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/TodoListIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Icon/TrashIcon' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Image' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/InlineCode' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Link' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/ListItem' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Paragraph' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Placeholder' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/TodoItem' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/TodoList' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Toolbar/BlockToolbar' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Toolbar/DocumentResult' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Toolbar/FormattingToolbar' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Toolbar/index' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Toolbar/LinkSearchResult' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Toolbar/LinkToolbar' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/components/Toolbar/ToolbarButton' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/constants' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/index' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/lib/getDataTransferFiles' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/lib/headingToSlug' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/lib/isModKey' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/marks' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/nodes' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/plugins' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/plugins/EditList' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/plugins/KeyboardShortcuts' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/plugins/MarkdownShortcuts' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/schema' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/serializer' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/theme' { + declare module.exports: any; +} + +declare module 'rich-markdown-editor/lib/types' { + declare module.exports: any; +} + +// Filename aliases +declare module 'rich-markdown-editor/lib/animations.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/animations'>; +} +declare module 'rich-markdown-editor/lib/changes.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/changes'>; +} +declare module 'rich-markdown-editor/lib/components/BlockInsert.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/BlockInsert'>; +} +declare module 'rich-markdown-editor/lib/components/ClickablePadding.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/ClickablePadding'>; +} +declare module 'rich-markdown-editor/lib/components/Code.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Code'>; +} +declare module 'rich-markdown-editor/lib/components/Contents.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Contents'>; +} +declare module 'rich-markdown-editor/lib/components/CopyButton.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/CopyButton'>; +} +declare module 'rich-markdown-editor/lib/components/CopyToClipboard.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/CopyToClipboard'>; +} +declare module 'rich-markdown-editor/lib/components/Flex.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Flex'>; +} +declare module 'rich-markdown-editor/lib/components/Heading.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Heading'>; +} +declare module 'rich-markdown-editor/lib/components/HorizontalRule.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/HorizontalRule'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/BackIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/BackIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/BlockQuoteIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/BlockQuoteIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/BoldIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/BoldIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/BulletedListIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/BulletedListIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/CheckboxIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/CheckboxIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/CloseIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/CloseIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/CodeIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/CodeIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/CollapsedIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/CollapsedIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/CollectionIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/CollectionIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/DocumentIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/DocumentIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/EditIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/EditIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/GoToIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/GoToIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/Heading1Icon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/Heading1Icon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/Heading2Icon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/Heading2Icon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/HomeIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/HomeIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/HorizontalRuleIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/HorizontalRuleIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/Icon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/Icon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/ImageIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/ImageIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/index.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/index'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/ItalicIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/ItalicIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/LinkIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/LinkIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/MenuIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/MenuIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/MoreIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/MoreIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/NextIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/NextIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/OpenIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/OpenIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/OrderedListIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/OrderedListIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/PlusIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/PlusIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/SearchIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/SearchIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/SettingsIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/SettingsIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/StrikethroughIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/StrikethroughIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/TableIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/TableIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/TodoListIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/TodoListIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Icon/TrashIcon.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Icon/TrashIcon'>; +} +declare module 'rich-markdown-editor/lib/components/Image.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Image'>; +} +declare module 'rich-markdown-editor/lib/components/InlineCode.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/InlineCode'>; +} +declare module 'rich-markdown-editor/lib/components/Link.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Link'>; +} +declare module 'rich-markdown-editor/lib/components/ListItem.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/ListItem'>; +} +declare module 'rich-markdown-editor/lib/components/Paragraph.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Paragraph'>; +} +declare module 'rich-markdown-editor/lib/components/Placeholder.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Placeholder'>; +} +declare module 'rich-markdown-editor/lib/components/TodoItem.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/TodoItem'>; +} +declare module 'rich-markdown-editor/lib/components/TodoList.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/TodoList'>; +} +declare module 'rich-markdown-editor/lib/components/Toolbar/BlockToolbar.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Toolbar/BlockToolbar'>; +} +declare module 'rich-markdown-editor/lib/components/Toolbar/DocumentResult.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Toolbar/DocumentResult'>; +} +declare module 'rich-markdown-editor/lib/components/Toolbar/FormattingToolbar.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Toolbar/FormattingToolbar'>; +} +declare module 'rich-markdown-editor/lib/components/Toolbar/index.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Toolbar/index'>; +} +declare module 'rich-markdown-editor/lib/components/Toolbar/LinkSearchResult.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Toolbar/LinkSearchResult'>; +} +declare module 'rich-markdown-editor/lib/components/Toolbar/LinkToolbar.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Toolbar/LinkToolbar'>; +} +declare module 'rich-markdown-editor/lib/components/Toolbar/ToolbarButton.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/components/Toolbar/ToolbarButton'>; +} +declare module 'rich-markdown-editor/lib/constants.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/constants'>; +} +declare module 'rich-markdown-editor/lib/index.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/index'>; +} +declare module 'rich-markdown-editor/lib/lib/getDataTransferFiles.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/lib/getDataTransferFiles'>; +} +declare module 'rich-markdown-editor/lib/lib/headingToSlug.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/lib/headingToSlug'>; +} +declare module 'rich-markdown-editor/lib/lib/isModKey.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/lib/isModKey'>; +} +declare module 'rich-markdown-editor/lib/marks.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/marks'>; +} +declare module 'rich-markdown-editor/lib/nodes.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/nodes'>; +} +declare module 'rich-markdown-editor/lib/plugins.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/plugins'>; +} +declare module 'rich-markdown-editor/lib/plugins/EditList.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/plugins/EditList'>; +} +declare module 'rich-markdown-editor/lib/plugins/KeyboardShortcuts.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/plugins/KeyboardShortcuts'>; +} +declare module 'rich-markdown-editor/lib/plugins/MarkdownShortcuts.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/plugins/MarkdownShortcuts'>; +} +declare module 'rich-markdown-editor/lib/schema.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/schema'>; +} +declare module 'rich-markdown-editor/lib/serializer.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/serializer'>; +} +declare module 'rich-markdown-editor/lib/theme.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/theme'>; +} +declare module 'rich-markdown-editor/lib/types.js' { + declare module.exports: $Exports<'rich-markdown-editor/lib/types'>; +} diff --git a/flow-typed/npm/rimraf_v2.x.x.js b/flow-typed/npm/rimraf_v2.x.x.js new file mode 100644 index 00000000..13b85249 --- /dev/null +++ b/flow-typed/npm/rimraf_v2.x.x.js @@ -0,0 +1,18 @@ +// flow-typed signature: 1dff23447d5e18f5ac2b05aaec7cfb74 +// flow-typed version: a453e98ea2/rimraf_v2.x.x/flow_>=v0.25.0 + +declare module 'rimraf' { + declare type Options = { + maxBusyTries?: number, + emfileWait?: number, + glob?: boolean, + disableGlob?: boolean + }; + + declare type Callback = (err: ?Error, path: ?string) => void; + + declare module.exports: { + (f: string, opts?: Options | Callback, callback?: Callback): void; + sync(path: string, opts?: Options): void; + }; +} diff --git a/flow-typed/npm/safestart_vx.x.x.js b/flow-typed/npm/safestart_vx.x.x.js index d6db7b92..9214a378 100644 --- a/flow-typed/npm/safestart_vx.x.x.js +++ b/flow-typed/npm/safestart_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5b6ece64f471017b2f670f28e1dfeb64 -// flow-typed version: <>/safestart_v1.1.0/flow_v0.49.1 +// flow-typed signature: 113e63a01aeee0162a23f106e6a1ca05 +// flow-typed version: <>/safestart_v1.1.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/sequelize-cli_vx.x.x.js b/flow-typed/npm/sequelize-cli_vx.x.x.js index cb3eb896..51fea080 100644 --- a/flow-typed/npm/sequelize-cli_vx.x.x.js +++ b/flow-typed/npm/sequelize-cli_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 08ce58984aaf2b29873c24e4256de371 -// flow-typed version: <>/sequelize-cli_v2.4.0/flow_v0.49.1 +// flow-typed signature: cbd86b8cacc4b9ff2994005fa4a1a3e5 +// flow-typed version: <>/sequelize-cli_v^2.7.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -142,10 +142,22 @@ declare module 'sequelize-cli/test/db/migrate/old_schema.test' { declare module.exports: any; } +declare module 'sequelize-cli/test/db/migrate/schema/add_timestamps.test' { + declare module.exports: any; +} + +declare module 'sequelize-cli/test/db/migrate/status.test' { + declare module.exports: any; +} + declare module 'sequelize-cli/test/db/migrate/undo.test' { declare module.exports: any; } +declare module 'sequelize-cli/test/db/migrate/undo/all_to.test' { + declare module.exports: any; +} + declare module 'sequelize-cli/test/db/migrate/undo/all.test' { declare module.exports: any; } @@ -258,6 +270,10 @@ declare module 'sequelize-cli/test/support/assets/migrations/20130909185621-dele declare module.exports: any; } +declare module 'sequelize-cli/test/support/assets/migrations/20170526153000-createPost' { + declare module.exports: any; +} + declare module 'sequelize-cli/test/support/assets/migrations/invalid/20141208213500-createPerson' { declare module.exports: any; } @@ -397,9 +413,18 @@ declare module 'sequelize-cli/test/db/migrate.test.js' { declare module 'sequelize-cli/test/db/migrate/old_schema.test.js' { declare module.exports: $Exports<'sequelize-cli/test/db/migrate/old_schema.test'>; } +declare module 'sequelize-cli/test/db/migrate/schema/add_timestamps.test.js' { + declare module.exports: $Exports<'sequelize-cli/test/db/migrate/schema/add_timestamps.test'>; +} +declare module 'sequelize-cli/test/db/migrate/status.test.js' { + declare module.exports: $Exports<'sequelize-cli/test/db/migrate/status.test'>; +} declare module 'sequelize-cli/test/db/migrate/undo.test.js' { declare module.exports: $Exports<'sequelize-cli/test/db/migrate/undo.test'>; } +declare module 'sequelize-cli/test/db/migrate/undo/all_to.test.js' { + declare module.exports: $Exports<'sequelize-cli/test/db/migrate/undo/all_to.test'>; +} declare module 'sequelize-cli/test/db/migrate/undo/all.test.js' { declare module.exports: $Exports<'sequelize-cli/test/db/migrate/undo/all.test'>; } @@ -484,6 +509,9 @@ declare module 'sequelize-cli/test/support/assets/migrations/20130909181148-rena declare module 'sequelize-cli/test/support/assets/migrations/20130909185621-deleteTriggerUpdateUpdatedAt.js' { declare module.exports: $Exports<'sequelize-cli/test/support/assets/migrations/20130909185621-deleteTriggerUpdateUpdatedAt'>; } +declare module 'sequelize-cli/test/support/assets/migrations/20170526153000-createPost.js' { + declare module.exports: $Exports<'sequelize-cli/test/support/assets/migrations/20170526153000-createPost'>; +} declare module 'sequelize-cli/test/support/assets/migrations/invalid/20141208213500-createPerson.js' { declare module.exports: $Exports<'sequelize-cli/test/support/assets/migrations/invalid/20141208213500-createPerson'>; } diff --git a/flow-typed/npm/sequelize-encrypted_vx.x.x.js b/flow-typed/npm/sequelize-encrypted_vx.x.x.js index 30a6ebd7..d07d7230 100644 --- a/flow-typed/npm/sequelize-encrypted_vx.x.x.js +++ b/flow-typed/npm/sequelize-encrypted_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: fe96fbf510960e3d4e5d6372c42c71fd -// flow-typed version: <>/sequelize-encrypted_v0.1.0/flow_v0.49.1 +// flow-typed signature: 1513c99e6d890a10654bbf5775d77239 +// flow-typed version: <>/sequelize-encrypted_v0.1.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/sequelize_v4.x.x.js b/flow-typed/npm/sequelize_v4.x.x.js new file mode 100644 index 00000000..5eafb540 --- /dev/null +++ b/flow-typed/npm/sequelize_v4.x.x.js @@ -0,0 +1,7419 @@ +// flow-typed signature: 49e774d9ee879e091011a2dd99b67ebb +// flow-typed version: 1e384ef764/sequelize_v4.x.x/flow_>=v0.42.x + +// @flow + +declare module "sequelize" { + /** + * The options for the getAssociation mixin of the belongsTo association. + * @see BelongsToGetOne + */ + declare export type BelongsToGetOneOptions = { + /** + * Apply a scope on the related model, or remove its default scope by passing false. + */ + scope?: ?(string | boolean) + } + + + /** + * The getAssociation mixin applied to models with belongsTo. + * An example of usage is as follows + + ```js + + User.belongsTo(Role); + + interface UserInstance extends Model, UserAttrib { + getRole: BelongsToGetOne; + // setRole... + // createRole... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/ + * @see Model + */ + declare export type BelongsToGetOne> = { + /** + * Get the associated instance. + * @param options The options to use when getting the association. + */ + (options?: BelongsToGetOneOptions): Promise + } + + + /** + * The options for the setAssociation mixin of the belongsTo association. + * @see BelongsToSetOne + */ + declare export type BelongsToSetOneOptions = { + /** + * Skip saving this after setting the foreign key if false. + */ + save?: boolean + } + + + /** + * The setAssociation mixin applied to models with belongsTo. + * An example of usage is as follows: + + ```js + + User.belongsTo(Role); + + interface UserInstance extends Model, UserAttributes { + // getRole... + setRole: BelongsToSetOne; + // createRole... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/ + * @see Model + */ + declare export type BelongsToSetOne, TInstancePrimaryKey> = { + /** + * Set the associated instance. + * @param newAssociation An instance or the primary key of an instance to associate with this. Pass null or undefined to remove the association. + * @param options the options passed to `this.save`. + */ + (newAssociation?: TInstance | TInstancePrimaryKey, options?: BelongsToSetOneOptions & InstanceSaveOptions): Promise + } + + /** + * The options for the createAssociation mixin of the belongsTo association. + * @see BelongsToCreateOne + */ + declare export type BelongsToCreateOneOptions = {} + + + /** + * The createAssociation mixin applied to models with belongsTo. + * An example of usage is as follows: + + ```js + + User.belongsTo(Role); + + interface UserInstance extends Model, UserAttributes { + // getRole... + // setRole... + createRole: BelongsToCreateOne; + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/ + * @see Model + */ + declare export type BelongsToCreateOne = { + /** + * Create a new instance of the associated model and associate it with this. + * @param values The values used to create the association. + * @param options The options passed to `target.create` and `setAssociation`. + */ + (values?: $Shape, options?: BelongsToCreateOneOptions & CreateOptions & BelongsToSetOneOptions): Promise + } + + + /** + * The options for the getAssociation mixin of the hasOne association. + * @see HasOneGetOne + */ + declare export type HasOneGetOneOptions = { + /** + * Apply a scope on the related model, or remove its default scope by passing false. + */ + scope?: ?(string | boolean) + } + + + /** + * The getAssociation mixin applied to models with hasOne. + * An example of usage is as follows: + + ```js + + User.hasOne(Role); + + interface UserInstance extends Model, UserAttrib { + getRole: HasOneGetOne; + // setRole... + // createRole... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/ + * @see Model + */ + declare export type HasOneGetOne> = { + /** + * Get the associated instance. + * @param options The options to use when getting the association. + */ + (options?: HasOneGetOneOptions): Promise + } + + + /** + * The options for the setAssociation mixin of the hasOne association. + * @see HasOneSetOne + */ + declare export type HasOneSetOneOptions = { + /** + * Skip saving this after setting the foreign key if false. + */ + save?: boolean + } + + + /** + * The setAssociation mixin applied to models with hasOne. + * An example of usage is as follows: + + ```js + + User.hasOne(Role); + + interface UserInstance extends Model, UserAttributes { + // getRole... + setRole: HasOneSetOne; + // createRole... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/ + * @see Model + */ + declare export type HasOneSetOne, TInstancePrimaryKey> = { + /** + * Set the associated instance. + * @param newAssociation An instance or the primary key of an instance to associate with this. Pass null or undefined to remove the association. + * @param options The options passed to `getAssocation` and `target.save`. + */ + (newAssociation?: TInstance | TInstancePrimaryKey, options?: HasOneSetOneOptions & HasOneGetOneOptions & InstanceSaveOptions): Promise + } + + + /** + * The options for the createAssociation mixin of the hasOne association. + * @see HasOneCreateOne + */ + declare export type HasOneCreateOneOptions = {} + + + /** + * The createAssociation mixin applied to models with hasOne. + * An example of usage is as follows: + + ```js + + User.hasOne(Role); + + interface UserInstance extends Model, UserAttributes { + // getRole... + // setRole... + createRole: HasOneCreateOne; + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/ + * @see Model + */ + declare export type HasOneCreateOne = { + /** + * Create a new instance of the associated model and associate it with this. + * @param values The values used to create the association. + * @param options The options passed to `target.create` and `setAssociation`. + */ + (values?: $Shape, options?: HasOneCreateOneOptions & HasOneSetOneOptions & CreateOptions): Promise + } + + + /** + * The options for the getAssociations mixin of the hasMany association. + * @see HasManyGetMany + */ + declare export type HasManyGetManyOptions = { + /** + * An optional where clause to limit the associated models. + */ + where?: WhereOptions, + + /** + * Apply a scope on the related model, or remove its default scope by passing false. + */ + scope?: ?(string | boolean) + } + + + /** + * The getAssociations mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + getRoles: HasManyGetMany; + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyGetMany> = { + /** + * Get everything currently associated with this, using an optional where clause. + * @param options The options to use when getting the associations. + */ + (options?: HasManyGetManyOptions): Promise + } + + + /** + * The options for the setAssociations mixin of the hasMany association. + * @see HasManySetMany + */ + declare export type HasManySetManyOptions = { + /** + * Run validation for the join model. + */ + validate?: boolean + } + + + /** + * The setAssociations mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + setRoles: HasManySetMany; + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManySetMany, TInstancePrimaryKey> = { + /** + * Set the associated models by passing an array of instances or their primary keys. + * Everything that it not in the passed array will be un-associated. + * @param newAssociations An array of instances or primary key of instances to associate with this. Pass null or undefined to remove all associations. + * @param options The options passed to `target.findAll` and `update`. + */ + (newAssociations?: Array, options?: HasManySetManyOptions & AnyFindOptions & InstanceUpdateOptions): Promise + } + + + /** + * The options for the addAssociations mixin of the hasMany association. + * @see HasManyAddMany + */ + declare export type HasManyAddManyOptions = { + /** + * Run validation for the join model. + */ + validate?: boolean + } + + + /** + * The addAssociations mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + addRoles: HasManyAddMany; + // addRole... + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyAddMany, TInstancePrimaryKey> ={ + /** + * Associate several instances with this. + * @param newAssociations An array of instances or primary key of instances to associate with this. + * @param options The options passed to `target.update`. + */ + (newAssociations?: Array, options?: HasManyAddManyOptions & InstanceUpdateOptions): Promise + } + + + /** + * The options for the addAssociation mixin of the hasMany association. + * @see HasManyAddOne + */ + declare export type HasManyAddOneOptions = { + /** + * Run validation for the join model. + */ + validate?: boolean + } + + + /** + * The addAssociation mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + addRole: HasManyAddOne; + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyAddOne, TInstancePrimaryKey> = { + /** + * Associate an instance with this. + * @param newAssociation An instance or the primary key of an instance to associate with this. + * @param options The options passed to `target.update`. + */ + (newAssociation?: TInstance | TInstancePrimaryKey, options?: HasManyAddOneOptions & InstanceUpdateOptions): Promise + } + + + /** + * The options for the createAssociation mixin of the hasMany association. + * @see HasManyCreateOne + */ + declare export type HasManyCreateOneOptions = {} + + + /** + * The createAssociation mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + createRole: HasManyCreateOne; + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyCreateOne> = { + /** + * Create a new instance of the associated model and associate it with this. + * @param values The values used to create the association. + * @param options The options to use when creating the association. + */ + (values?: $Shape, options?: HasManyCreateOneOptions & CreateOptions): Promise + } + + + /** + * The options for the removeAssociation mixin of the hasMany association. + * @see HasManyRemoveOne + */ + declare export type HasManyRemoveOneOptions = {} + + + /** + * The removeAssociation mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + removeRole: HasManyRemoveOne; + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyRemoveOne, TInstancePrimaryKey> = { + /** + * Un-associate the instance. + * @param oldAssociated The instance or the primary key of the instance to un-associate. + * @param options The options passed to `target.update`. + */ + (oldAssociated?: TInstance | TInstancePrimaryKey, options?: HasManyRemoveOneOptions & InstanceUpdateOptions): Promise + } + + + /** + * The options for the removeAssociations mixin of the hasMany association. + * @see HasManyRemoveMany + */ + declare export type HasManyRemoveManyOptions = {} + + + /** + * The removeAssociations mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + removeRoles: HasManyRemoveMany; + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyRemoveMany, TInstancePrimaryKey> = { + /** + * Un-associate several instances. + * @param oldAssociated An array of instances or primary key of instances to un-associate. + * @param options The options passed to `target.update`. + */ + (oldAssociateds?: Array, options?: HasManyRemoveManyOptions & InstanceUpdateOptions): Promise + } + + + /** + * The options for the hasAssociation mixin of the hasMany association. + * @see HasManyHasOne + */ + declare export type HasManyHasOneOptions = {} + + + /** + * The hasAssociation mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles... + hasRole: HasManyHasOne; + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyHasOne, TInstancePrimaryKey> = { + /** + * Check if an instance is associated with this. + * @param target The instance or the primary key of the instance to check. + * @param options The options passed to `getAssociations`. + */ + (target: TInstance | TInstancePrimaryKey, options?: HasManyHasOneOptions & HasManyGetManyOptions): Promise + } + + + /** + * The options for the hasAssociations mixin of the hasMany association. + * @see HasManyHasMany + */ + declare export type HasManyHasManyOptions = {} + + + /** + * The removeAssociations mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles + // hasRole... + hasRoles: HasManyHasMany; + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyHasMany, TInstancePrimaryKey> = { + /** + * Check if all instances are associated with this. + * @param targets An array of instances or primary key of instances to check. + * @param options The options passed to `getAssociations`. + */ + (targets: Array, options?: HasManyHasManyOptions & HasManyGetManyOptions): Promise + } + + + /** + * The options for the countAssociations mixin of the hasMany association. + * @see HasManyCount + */ + declare export type HasManyCountOptions = { + /** + * An optional where clause to limit the associated models. + */ + where?: WhereOptions, + + /** + * Apply a scope on the related model, or remove its default scope by passing false. + */ + scope?: ?(string | boolean) + } + + + /** + * The countAssociations mixin applied to models with hasMany. + * An example of usage is as follows: + + ```js + + User.hasMany(Role); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + countRoles: HasManyCount; + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/ + * @see Model + */ + declare export type HasManyCount = { + /** + * Count everything currently associated with this, using an optional where clause. + * @param options The options to use when counting the associations. + */ + (options?: HasManyCountOptions): Promise + } + + + /** + * The options for the getAssociations mixin of the belongsToMany association. + * @see BelongsToManyGetMany + */ + declare export type BelongsToManyGetManyOptions = { + /** + * An optional where clause to limit the associated models. + */ + where?: WhereOptions, + + /** + * Apply a scope on the related model, or remove its default scope by passing false. + */ + scope?: ?(string | boolean) + } + + + /** + * The getAssociations mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + getRoles: BelongsToManyGetMany; + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyGetMany> = { + /** + * Get everything currently associated with this, using an optional where clause. + * @param options The options to use when getting the associations. + */ + (options?: BelongsToManyGetManyOptions): Promise + } + + + /** + * The options for the setAssociations mixin of the belongsToMany association. + * @see BelongsToManySetMany + */ + declare export type BelongsToManySetManyOptions = { + /** + * Run validation for the join model. + */ + validate?: boolean + } + + + /** + * The setAssociations mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + setRoles: BelongsToManySetMany; + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManySetMany, TInstancePrimaryKey, TJoinTableAttributes> = { + /** + * Set the associated models by passing an array of instances or their primary keys. + * Everything that it not in the passed array will be un-associated. + * @param newAssociations An array of instances or primary key of instances to associate with this. Pass null or undefined to remove all associations. + * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. + */ + (newAssociations?: Array, options?: BelongsToManySetManyOptions & + AnyFindOptions & + BulkCreateOptions & + InstanceUpdateOptions & + InstanceDestroyOptions & + { + through?: TJoinTableAttributes + }): Promise + } + + + /** + * The options for the addAssociations mixin of the belongsToMany association. + * @see BelongsToManyAddMany + */ + declare export type BelongsToManyAddManyOptions = { + /** + * Run validation for the join model. + */ + validate?: boolean + } + + + /** + * The addAssociations mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + addRoles: BelongsToManyAddMany; + // addRole... + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyAddMany, TInstancePrimaryKey, TJoinTableAttributes> = { + /** + * Associate several instances with this. + * @param newAssociations An array of instances or primary key of instances to associate with this. + * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. + */ + (newAssociations?: Array, options?: BelongsToManyAddManyOptions & + AnyFindOptions & + BulkCreateOptions & + InstanceUpdateOptions & + InstanceDestroyOptions & + { + through?: TJoinTableAttributes + }): Promise + } + + + /** + * The options for the addAssociation mixin of the belongsToMany association. + * @see BelongsToManyAddOne + */ + declare export type BelongsToManyAddOneOptions = { + /** + * Run validation for the join model. + */ + validate?: boolean + } + + + /** + * The addAssociation mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + addRole: BelongsToManyAddOne; + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyAddOne, TInstancePrimaryKey, TJoinTableAttributes> = { + /** + * Associate an instance with this. + * @param newAssociation An instance or the primary key of an instance to associate with this. + * @param options The options passed to `through.findAll`, `bulkCreate`, `update` and `destroy`. Can also hold additional attributes for the join table. + */ + (newAssociation?: TInstance | TInstancePrimaryKey, options?: BelongsToManyAddOneOptions & + AnyFindOptions & + BulkCreateOptions & + InstanceUpdateOptions & + InstanceDestroyOptions & + { + through?: TJoinTableAttributes + }): Promise + } + + + /** + * The options for the createAssociation mixin of the belongsToMany association. + * @see BelongsToManyCreateOne + */ + declare export type BelongsToManyCreateOneOptions = {} + + + /** + * The createAssociation mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + createRole: BelongsToManyCreateOne; + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyCreateOne, TJoinTableAttributes> = { + /** + * Create a new instance of the associated model and associate it with this. + * @param values The values used to create the association. + * @param options Options passed to `create` and `add`. Can also hold additional attributes for the join table. + */ + (values?: $Shape, options?: BelongsToManyCreateOneOptions & CreateOptions & { + through?: TJoinTableAttributes + }): Promise + } + + + /** + * The options for the removeAssociation mixin of the belongsToMany association. + * @see BelongsToManyRemoveOne + */ + declare export type BelongsToManyRemoveOneOptions = {} + + + /** + * The removeAssociation mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + removeRole: BelongsToManyRemoveOne; + // removeRoles... + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyRemoveOne, TInstancePrimaryKey> = { + /** + * Un-associate the instance. + * @param oldAssociated The instance or the primary key of the instance to un-associate. + * @param options The options passed to `through.destroy`. + */ + (oldAssociated?: TInstance | TInstancePrimaryKey, options?: BelongsToManyRemoveOneOptions & InstanceDestroyOptions): Promise + } + + + /** + * The options for the removeAssociations mixin of the belongsToMany association. + * @see BelongsToManyRemoveMany + */ + declare export type BelongsToManyRemoveManyOptions = {} + + + /** + * The removeAssociations mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + removeRoles: BelongsToManyRemoveMany; + // hasRole... + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyRemoveMany, TInstancePrimaryKey> = { + /** + * Un-associate several instances. + * @param oldAssociated An array of instances or primary key of instances to un-associate. + * @param options The options passed to `through.destroy`. + */ + (oldAssociateds?: Array, options?: BelongsToManyRemoveManyOptions & InstanceDestroyOptions): Promise + } + + + /** + * The options for the hasAssociation mixin of the belongsToMany association. + * @see BelongsToManyHasOne + */ + declare export type BelongsToManyHasOneOptions = {} + + + /** + * The hasAssociation mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles... + hasRole: BelongsToManyHasOne; + // hasRoles... + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyHasOne, TInstancePrimaryKey> = { + /** + * Check if an instance is associated with this. + * @param target The instance or the primary key of the instance to check. + * @param options The options passed to `getAssociations`. + */ + (target: TInstance | TInstancePrimaryKey, options?: BelongsToManyHasOneOptions & BelongsToManyGetManyOptions): Promise + } + + + /** + * The options for the hasAssociations mixin of the belongsToMany association. + * @see BelongsToManyHasMany + */ + declare export type BelongsToManyHasManyOptions = {} + + + /** + * The removeAssociations mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles + // hasRole... + hasRoles: BelongsToManyHasMany; + // countRoles... + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyHasMany, TInstancePrimaryKey> = { + /** + * Check if all instances are associated with this. + * @param targets An array of instances or primary key of instances to check. + * @param options The options passed to `getAssociations`. + */ + (targets: Array, options?: BelongsToManyHasManyOptions & BelongsToManyGetManyOptions): Promise + } + + + /** + * The options for the countAssociations mixin of the belongsToMany association. + * @see BelongsToManyCount + */ + declare export type BelongsToManyCountOptions = { + /** + * An optional where clause to limit the associated models. + */ + where?: WhereOptions, + + /** + * Apply a scope on the related model, or remove its default scope by passing false. + */ + scope?: ?(string | boolean) + } + + + /** + * The countAssociations mixin applied to models with belongsToMany. + * An example of usage is as follows: + + ```js + + User.belongsToMany(Role, { through: UserRole }); + + interface UserInstance extends Model, UserAttributes { + // getRoles... + // setRoles... + // addRoles... + // addRole... + // createRole... + // removeRole... + // removeRoles... + // hasRole... + // hasRoles... + countRoles: BelongsToManyCount; + } + ``` + * @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/ + * @see Model + */ + declare export type BelongsToManyCount = { + /** + * Count everything currently associated with this, using an optional where clause. + * @param options The options to use when counting the associations. + */ + (options?: BelongsToManyCountOptions): Promise + } + + + /** + * Foreign Key Options + * @see AssociationOptions + */ + declare export type AssociationForeignKeyOptions = ColumnOptions & { + /** + * Attribute name for the relation + */ + name?: string + } + + + + /** + * Options provided when associating models + * @see Association class + */ + declare export type AssociationOptions = { + /** + * Set to true to run before-/afterDestroy hooks when an associated model is deleted because of a cascade. + * For example if `User.hasOne(Profile, {onDelete: 'cascade', hooks:true})`, the before-/afterDestroy hooks + for profile will be called when a user is deleted. Otherwise the profile will be deleted without invoking + any hooks. + + Defaults to false + */ + hooks?: boolean, + + /** + * The alias of this model, in singular form. See also the `name` option passed to `sequelize.define`. If + * you create multiple associations between the same tables, you should provide an alias to be able to + distinguish between them. If you provide an alias when creating the assocition, you should provide the + same alias when eager loading and when getting assocated models. Defaults to the singularized name of + target + */ + as?: string | { + singular: string, + plural: string + }, + + /** + * The name of the foreign key in the target table or an object representing the type definition for the + * foreign column (see `Sequelize.define` for syntax). When using an object, you can add a `name` property + to set the name of the column. Defaults to the name of source + primary key of source + */ + foreignKey?: string | AssociationForeignKeyOptions, + + /** + * What happens when delete occurs. + * + Cascade if this is a n:m, and set null if it is a 1:m + + Defaults to 'SET_NULL' or 'CASCADE' + */ + onDelete?: string, + + /** + * What happens when update occurs + * + Defaults to 'CASCADE' + */ + onUpdate?: string, + + /** + * Should on update and on delete constraints be enabled on the foreign key. + */ + constraints?: boolean, + foreignKeyConstraint?: boolean + } + + + /** + * Options for Association Scope + * @see AssociationOptionsManyToMany + */ + declare export type AssociationScope = { + [scopeName: string]: any + } + + + /** + * Options provided for many-to-many relationships + * @see AssociationOptionsHasMany + * @see AssociationOptionsBelongsToMany + */ + declare export type AssociationOptionsManyToMany = AssociationOptions & { + /** + * A key/value set that will be used for association create and find defaults on the target. + * (sqlite not supported for N:M) + */ + scope?: ?AssociationScope + } + + + + /** + * Options provided when associating models with hasOne relationship + * @see Association class hasOne method + */ + declare export type AssociationOptionsHasOne = AssociationOptions & { + /** + * A string or a data type to represent the identifier in the table + */ + keyType?: DataTypeAbstract + } + + + + /** + * Options provided when associating models with belongsTo relationship + * @see Association class belongsTo method + */ + declare export type AssociationOptionsBelongsTo = AssociationOptions & { + /** + * The name of the field to use as the key for the association in the target table. Defaults to the primary + * key of the target table + */ + targetKey?: string, + + /** + * A string or a data type to represent the identifier in the table + */ + keyType?: DataTypeAbstract + } + + + + /** + * Options provided when associating models with hasMany relationship + * @see Association class hasMany method + */ + declare export type AssociationOptionsHasMany = AssociationOptionsManyToMany & { + /** + * A string or a data type to represent the identifier in the table + */ + keyType?: DataTypeAbstract + } + + + + /** + * Options provided when associating models with belongsToMany relationship + * @see Association class belongsToMany method + */ + declare export type AssociationOptionsBelongsToMany> = AssociationOptionsManyToMany & { + /** + * The name of the table that is used to join source and target in n:m associations. Can also be a + * sequelize + model if you want to define the junction table yourself and add extra attributes to it. + + In 3.4.1 version of Sequelize, hasMany's use of through gives an error, and on the other hand through + option for belongsToMany has been made required. + * @see https://github.com/sequelize/sequelize/blob/v3.4.1/lib/associations/has-many.js + * @see https://github.com/sequelize/sequelize/blob/v3.4.1/lib/associations/belongs-to-many.js + */ + through: Class | string | ThroughOptions, + + /** + * The name of the foreign key in the join table (representing the target model) or an object representing + * the type definition for the other column (see `Sequelize.define` for syntax). When using an object, you + can add a `name` property to set the name of the colum. Defaults to the name of target + primary key of + target + */ + otherKey?: string | AssociationForeignKeyOptions, + + /** + * Should the join model have timestamps + */ + timestamps?: boolean + } + + + + /** + * Used for a association table in n:m associations. + * @see AssociationOptionsBelongsToMany + */ + declare export type ThroughOptions> = { + /** + * The model used to join both sides of the N:M association. + */ + model: Class, + + /** + * A key/value set that will be used for association create and find defaults on the through model. + * (Remember to add the attributes to the through model) + */ + scope?: ?AssociationScope, + + /** + * If true a unique key will be generated from the foreign keys used (might want to turn this off and create + * specific unique keys when using scopes) + + Defaults to true + */ + unique?: boolean + } + + declare type AssociationType = 'HasMany' | 'BelongsTo' | 'HasOne' | 'BelongsToMany' + + declare export type Attribute = { + /** + * A string or a data type + */ + type: DataTypeAbstract, + + allowNull?: boolean, + + values?: Array, + + /** + * If true, the column will get a unique constraint. If a string is provided, the column will be part of a + * composite unique index. If multiple columns have the same string, they will be part of the same unique + index + */ + unique?: boolean | string | { + name: string, + msg: string + }, + + /** + * Primary key flag + */ + primaryKey?: boolean, + + /** + * Is this field an auto increment field + */ + autoIncrement?: boolean, + + /** + * Comment for the database + */ + comment?: string, + + /** + * An object with reference configurations + */ + references?: string | Model | DefineAttributeColumnReferencesOptions, + + Model: Model, + _autoGenerated?: true, + fieldName: string, + field: string, + } + + declare export class Association, Target: Model> { + constructor(source: Class, target: Class, options?: AssociationOptions): this; + static BelongsTo: typeof BelongsTo; + static HasOne: typeof HasOne; + static BelongsToMany: typeof BelongsToMany; + static HasMany: typeof HasMany; + source: Class; + target: Class; + sequelize: Sequelize; + options: AssociationOptions; + scope: ?AssociationScope; + isSingleAssociation: boolean; + isMultiAssociation: boolean; + isSelfAssociation: boolean; + as: string | { + singular: string, + plural: string + }; + associationType: $Subtype; + } + + declare type ArrayOrElement = T | Array; + + declare class BelongsTo, TargetAttributes: Object, TargetInitAttributes: Object, Target: Model> extends Association { + associationType: 'BelongsTo'; + foreignKey: string; + foreignKeyField: string; + foreignKeyAttribute: Attribute; + identifier: string; + targetKey: string; + targetKeyField: string; + targetKeyAttribute: string; + targetIdentifier: string; + targetKeyIsPrimary: boolean; + identifierField: string; + get(instance: Source, options?: FindOptions): Promise; + get(instances: Array, options?: FindOptions): Promise<{[key: PrimaryKey]: Target}>; + set(sourceInstance: Source, targetInstance: PrimaryKey | Target, options?: InstanceSaveOptions): Promise; + create(sourceInstance: Source, values: TargetInitAttributes, options?: CreateOptions): Promise; + } + + declare class HasOne, TargetAttributes: Object, TargetInitAttributes: Object, Target: Model> extends Association { + associationType: 'HasOne'; + foreignKey: string; + foreignKeyField: string; + foreignKeyAttribute: Attribute; + identifier: string; + sourceKey: string; + sourceKeyField: string; + sourceKeyAttribute: string; + sourceKeyIsPrimary: boolean; + sourceIdentifier: string; + identifierField: string; + get(instance: Source, options?: FindOptions): Promise; + get(instances: Array, options?: FindOptions): Promise<{[key: PrimaryKey]: Target}>; + set(sourceInstance: Source, targetInstance: PrimaryKey | Target, options?: InstanceSaveOptions): Promise; + create(sourceInstance: Source, values: TargetInitAttributes, options?: CreateOptions): Promise; + } + + declare class HasMany, TargetAttributes: Object, TargetInitAttributes: Object, Target: Model> extends Association { + associationType: 'HasMany'; + foreignKey: string; + foreignKeyField: string; + foreignKeyAttribute: Attribute; + sourceKey: string; + sourceKeyField: string; + sourceKeyAttribute: string; + identifierField: string; + get(instance: Source, options?: FindOptions): Promise>; + get(instances: Array, options?: FindOptions): Promise<{[key: PrimaryKey]: Target}>; + count(instance: Source, options?: FindOptions): Promise; + has(sourceInstance: Source, targetInstances: ArrayOrElement, options?: FindOptions): Promise; + set(sourceInstance: Source, targetInstances: ArrayOrElement, options?: FindOptions & UpdateRelatedOptions): Promise; + add(sourceInstance: Source, targetInstances: ArrayOrElement, options?: UpdateRelatedOptions): Promise; + remove(sourceInstance: Source, targetInstances: ArrayOrElement, options?: UpdateRelatedOptions): Promise; + create(sourceInstance: Source, values: TargetInitAttributes, options?: CreateOptions): Promise; + } + + declare class BelongsToMany< + SourceAttributes: Object, + SourceInitAttributes: Object, + Source: Model, + TargetAttributes: Object, + TargetInitAttributes: Object, + Target: Model, + ThroughAttributes: Object, + Through: Model + > extends Association { + associationType: 'BelongsToMany'; + foreignKey: string; + foreignKeyField: string; + foreignKeyAttribute: Attribute; + otherKey: string; + otherKeyField: string; + otherKeyAttribute: string; + identifierField: string; + foreignIdentifierField?: string; + paired?: BelongsToMany; + through: ThroughOptions; + throughModel: Class; + get(instance: Source, options?: FindOptions): Promise>; + count(instance: Source, options?: FindOptions): Promise; + has(sourceInstance: Source, targetInstances: ArrayOrElement, options?: FindOptions): Promise; + set(sourceInstance: Source, targetInstances: ArrayOrElement, options?: FindOptions & UpdateRelatedOptions & DestroyOptions): Promise>; + add(sourceInstance: Source, targetInstances: ArrayOrElement, options?: FindOptions & UpdateRelatedOptions): Promise>; + remove(sourceInstance: Source, targetInstances: ArrayOrElement, options?: DestroyOptions): Promise; + create(sourceInstance: Source, values: TargetInitAttributes, options?: CreateOptions): Promise; + } + + /** + * Abstract DataType interface. Use this if you want to create an interface that has a value any of the + * DataTypes that Sequelize supports. + */ + declare export type DataTypeAbstract = { + /** + * Although this is not needed for the definitions itself, we want to make sure that DataTypeAbstract is not + * something than can be evaluated to an empty object. + */ + dialectTypes: string, + toSql(): string, + } + + declare type DataTypeAbstractString = { + /** + * A variable length string. Default length 255 + */ + (options?: { + length: number + }): T, + (length: number): T, + + /** + * Property BINARY for the type + */ + BINARY: T + } & DataTypeAbstract + + + declare type DataTypeString = {} & DataTypeAbstractString + + + declare type DataTypeChar = {} & DataTypeAbstractString + + + declare type DataTypeText = DataTypeAbstract & { + /** + * Length of the text field. + * + Available lengths: `tiny`, `medium`, `long` + */ + (options?: { + length: string + }): DataTypeText, + (length: string): DataTypeText + } + + + declare type DataTypeAbstractNumber = DataTypeAbstract & { + UNSIGNED: T, + ZEROFILL: T + } + + + declare type DataTypeNumber = DataTypeAbstractNumber & {} + + + declare type DataTypeInteger = DataTypeAbstractNumber & { + /** + * Length of the number field. + */ + (options?: { + length: number + }): DataTypeInteger, + (length: number): DataTypeInteger + } + + + declare type DataTypeBigInt = DataTypeAbstractNumber & { + /** + * Length of the number field. + */ + (options?: { + length: number + }): DataTypeBigInt, + (length: number): DataTypeBigInt + } + + + declare type DataTypeFloat = DataTypeAbstractNumber & { + /** + * Length of the number field and decimals of the float + */ + (options?: { + length: number, + decimals?: number + }): DataTypeFloat, + (length: number, decimals?: number): DataTypeFloat + } + + + declare type DataTypeReal = DataTypeAbstractNumber & { + /** + * Length of the number field and decimals of the real + */ + (options?: { + length: number, + decimals?: number + }): DataTypeReal, + (length: number, decimals?: number): DataTypeReal + } + + + declare type DataTypeDouble = DataTypeAbstractNumber & { + /** + * Length of the number field and decimals of the real + */ + (options?: { + length: number, + decimals?: number + }): DataTypeDouble, + (length: number, decimals?: number): DataTypeDouble + } + + + declare type DataTypeDecimal = DataTypeAbstractNumber & { + /** + * Precision and scale for the decimal number + */ + (options?: { + precision: number, + scale?: number + }): DataTypeDecimal, + (precision: number, scale?: number): DataTypeDecimal + } + + + declare type DataTypeBoolean = DataTypeAbstract & {} + + + declare type DataTypeTime = DataTypeAbstract & {} + + + declare type DataTypeDate = DataTypeAbstract & { + /** + * Length of decimal places of time + */ + (options?: { + length?: number + }): DataTypeDate, + (length?: number): DataTypeDate + } + + + declare type DataTypeDateOnly = DataTypeAbstract & {} + + + declare type DataTypeHStore = DataTypeAbstract & {} + + + declare type DataTypeJSONType = DataTypeAbstract & {} + + + declare type DataTypeJSONB = DataTypeAbstract & {} + + + declare type DataTypeNow = DataTypeAbstract & {} + + + declare type DataTypeBlob = DataTypeAbstract & { + /** + * Length of the blob field. + * + Available lengths: `tiny`, `medium`, `long` + */ + (options?: { + length: string + }): DataTypeBlob, + (length: string): DataTypeBlob + } + + + declare type DataTypeRange = DataTypeAbstract & { + /** + * Range field for Postgre + * + Accepts subtype any of the ranges + */ + (options?: { + subtype: DataTypeAbstract + }): DataTypeRange, + (subtype: DataTypeAbstract): DataTypeRange + } + + + declare type DataTypeUUID = DataTypeAbstract & {} + + + declare type DataTypeUUIDv1 = DataTypeAbstract & {} + + + declare type DataTypeUUIDv4 = DataTypeAbstract & {} + + declare class DataTypeVirtualClass { + constructor(subtype: DataTypeAbstract, requireAttributes?: Array): DataTypeVirtual; + } + + declare type DataTypeVirtual = DataTypeAbstract & typeof DataTypeVirtualClass & { + (subtype: DataTypeAbstract, requireAttributes?: Array): DataTypeVirtual; + } + + declare type DataTypeEnum = DataTypeAbstract & { + /** + * Enum field + * + Accepts values + */ + (options?: { + values: string | string[] + }): DataTypeEnum, + (values: string | string[]): DataTypeEnum, + (...args: string[]): DataTypeEnum + } + + + declare type DataTypeArray = DataTypeAbstract & { + /** + * Array field for Postgre + * + Accepts type any of the DataTypes + */ + (options: { + type: DataTypeAbstract + }): DataTypeArray, + (type: DataTypeAbstract): DataTypeArray + } + + + declare type DataTypeGeometry = DataTypeAbstract & { + /** + * Geometry field for Postgres + */ + (type: string, srid?: number): DataTypeGeometry + } + + + + /** + * A convenience class holding commonly used data types. The datatypes are used when definining a new model + * using + `Sequelize.define`, like this: + + ```js + sequelize.define('model', { + column: DataTypes.INTEGER + }) + ``` + When defining a model you can just as easily pass a string as type, but often using the types defined here + is + beneficial. For example, using `DataTypes.BLOB`, mean that that column will be returned as an instance of + `Buffer` when being fetched by sequelize. + + Some data types have special properties that can be accessed in order to change the data type. + For example, to get an unsigned integer with zerofill you can do `DataTypes.INTEGER.UNSIGNED.ZEROFILL`. + The order you access the properties in do not matter, so `DataTypes.INTEGER.ZEROFILL.UNSIGNED` is fine as + well. The available properties are listed under each data type. + + To provide a length for the data type, you can invoke it like a function: `INTEGER(2)` + + Three of the values provided here (`NOW`, `UUIDV1` and `UUIDV4`) are special default values, that should not + be used to define types. Instead they are used as shorthands for defining default values. For example, to + get a uuid field with a default value generated following v1 of the UUID standard: + + ```js + sequelize.define('model', { + uuid: { + type: DataTypes.UUID, + defaultValue: DataTypes.UUIDV1, + primaryKey: true + } + }) + ``` + */ + declare export type DataTypes = { + ABSTRACT: DataTypeAbstract, + STRING: DataTypeString, + CHAR: DataTypeChar, + TEXT: DataTypeText, + NUMBER: DataTypeNumber, + INTEGER: DataTypeInteger, + BIGINT: DataTypeBigInt, + FLOAT: DataTypeFloat, + TIME: DataTypeTime, + DATE: DataTypeDate, + DATEONLY: DataTypeDateOnly, + BOOLEAN: DataTypeBoolean, + NOW: DataTypeNow, + BLOB: DataTypeBlob, + DECIMAL: DataTypeDecimal, + NUMERIC: DataTypeDecimal, + UUID: DataTypeUUID, + UUIDV1: DataTypeUUIDv1, + UUIDV4: DataTypeUUIDv4, + HSTORE: DataTypeHStore, + JSON: DataTypeJSONType, + JSONB: DataTypeJSONB, + VIRTUAL: DataTypeVirtual, + ARRAY: DataTypeArray, + NONE: DataTypeVirtual, + ENUM: DataTypeEnum, + RANGE: DataTypeRange, + REAL: DataTypeReal, + DOUBLE: DataTypeDouble, + GEOMETRY: DataTypeGeometry, + } + + + /** + * Abstract Deferrable interface. Use this if you want to create an interface that has a value any of the + * Deferrables that Sequelize supports. + */ + declare export type DeferrableAbstract = { + /** + * Although this is not needed for the definitions itself, we want to make sure that DeferrableAbstract is + * not something than can be evaluated to an empty object. + */ + toString(): string, + toSql(): string + } + + declare export type DeferrableInitiallyDeferred = { + /** + * A property that will defer constraints checks to the end of transactions. + */ + (): DeferrableInitiallyDeferred + } & DeferrableAbstract + + + declare export type DeferrableInitiallyImmediate = { + /** + * A property that will trigger the constraint checks immediately + */ + (): DeferrableInitiallyImmediate + } & DeferrableAbstract + + + declare export type DeferrableNot = { + /** + * A property that will set the constraints to not deferred. This is the default in PostgreSQL and it make + * it impossible to dynamically defer the constraints within a transaction. + */ + (): DeferrableNot + } & DeferrableAbstract + + + declare export type DeferrableSetDeferred = { + /** + * A property that will trigger an additional query at the beginning of a + * transaction which sets the constraints to deferred. + * @param constraints An array of constraint names. Will defer all constraints by default. + */ + (constraints: string[]): DeferrableSetDeferred + } & DeferrableAbstract + + + declare export type DeferrableSetImmediate = { + /** + * A property that will trigger an additional query at the beginning of a + * transaction which sets the constraints to immediately. + * @param constraints An array of constraint names. Will defer all constraints by default. + */ + (constraints: string[]): DeferrableSetImmediate + } & DeferrableAbstract + + + + /** + * A collection of properties related to deferrable constraints. It can be used to + * make foreign key constraints deferrable and to set the constaints within a + transaction. This is only supported in PostgreSQL. + + The foreign keys can be configured like this. It will create a foreign key + that will check the constraints immediately when the data was inserted. + + ```js + sequelize.define('Model', { + foreign_id: { + type: Sequelize.INTEGER, + references: { + model: OtherModel, + key: 'id', + deferrable: Sequelize.Deferrable.INITIALLY_IMMEDIATE + } + } + }); + ``` + + The constraints can be configured in a transaction like this. It will + trigger a query once the transaction has been started and set the constraints + to be checked at the very end of the transaction. + + ```js + sequelize.transaction({ + deferrable: Sequelize.Deferrable.SET_DEFERRED + }); + ``` + */ + declare export type Deferrable = { + INITIALLY_DEFERRED: DeferrableInitiallyDeferred, + INITIALLY_IMMEDIATE: DeferrableInitiallyImmediate, + NOT: DeferrableNot, + SET_DEFERRED: DeferrableSetDeferred, + SET_IMMEDIATE: DeferrableSetImmediate + } + + + /** + * The Base Error all Sequelize Errors inherit from. + */ + declare export class BaseError extends Error { + + } + + declare export class ValidationError extends BaseError { + /** + * Validation Error. Thrown when the sequelize validation has failed. The error contains an `errors` + * property, which is an array with 1 or more ValidationErrorItems, one for each validation that failed. + * @param message Error message + * @param errors Array of ValidationErrorItem objects describing the validation errors + */ + constructor( + message: string, + errors?: ValidationErrorItem[]): ValidationError, + + /** + * Gets all validation error items for the path / field specified. + * @param path The path to be checked for error items + */ + get(path: string): ValidationErrorItem[], + + /** + * Array of ValidationErrorItem objects describing the validation errors + */ + errors: ValidationErrorItem[] + } + + + declare export class ValidationErrorItem extends BaseError { + /** + * Validation Error Item + * Instances of this class are included in the `ValidationError.errors` property. + * @param message An error message + * @param type The type of the validation error + * @param path The field that triggered the validation error + * @param value The value that generated the error + */ + constructor( + message: string, + type: string, + path: string, + value: string): ValidationErrorItem, + + /** + * An error message + */ + message: string, + + /** + * The type of the validation error + */ + type: string, + + /** + * The field that triggered the validation error + */ + path: string, + + /** + * The value that generated the error + */ + value: string + } + + + declare export class DatabaseError extends BaseError { + /** + * A base class for all database related errors. + */ + constructor(parent: Error): DatabaseError + } + + + declare export class TimeoutError extends DatabaseError { + /** + * Thrown when a database query times out because of a deadlock + */ + constructor(parent: Error): TimeoutError + } + + + declare export class UniqueConstraintError extends ValidationError { + /** + * Thrown when a unique constraint is violated in the database + */ + constructor( + options: { + parent?: Error, + message?: string, + errors?: Object + }): UniqueConstraintError + } + + + declare export class ForeignKeyConstraintError extends DatabaseError { + /** + * Thrown when a foreign key constraint is violated in the database + */ + construtor( + options: { + parent?: Error, + message?: string, + index?: string, + fields?: string[], + table?: string + }): ForeignKeyConstraintError + } + + + declare export class ExclusionConstraintError extends DatabaseError { + /** + * Thrown when an exclusion constraint is violated in the database + */ + construtor( + options: { + parent?: Error, + message?: string, + constraint?: string, + fields?: string[], + table?: string + }): ExclusionConstraintError + } + + + declare export class ConnectionError extends BaseError { + /** + * A base class for all connection related errors. + */ + construtor(parent: Error): ConnectionError + } + + + declare export class ConnectionRefusedError extends ConnectionError { + /** + * Thrown when a connection to a database is refused + */ + construtor(parent: Error): ConnectionRefusedError + } + + + declare export class AccessDeniedError extends ConnectionError{ + /** + * Thrown when a connection to a database is refused due to insufficient privileges + */ + construtor(parent: Error): AccessDeniedError + } + + + declare export class HostNotFoundError extends ConnectionError { + /** + * Thrown when a connection to a database has a hostname that was not found + */ + construtor(parent: Error): HostNotFoundError + } + + + declare export class HostNotReachableError extends ConnectionError { + /** + * Thrown when a connection to a database has a hostname that was not reachable + */ + construtor(parent: Error): HostNotReachableError + } + + + declare export class InvalidConnectionError extends ConnectionError { + /** + * Thrown when a connection to a database has invalid values for any of the connection parameters + */ + construtor(parent: Error): InvalidConnectionError + } + + + declare export class ConnectionTimedOutError extends ConnectionError { + /** + * Thrown when a connection to a database times out + */ + construtor(parent: Error): ConnectionTimedOutError + } + + + declare export class EmptyResultError extends BaseError { + /** + * Thrown when a record was not found, Usually used with rejectOnEmpty mode (see message for details) + */ + construtor(parent: Error): EmptyResultError + } + + /** + * Options for Sequelize.define. We mostly duplicate the Hooks here, since there is no way to combine the two + * interfaces. + + beforeValidate, afterValidate, beforeBulkCreate, beforeBulkDestroy, beforeBulkUpdate, beforeCreate, + beforeDestroy, beforeUpdate, afterCreate, afterDestroy, afterUpdate, afterBulkCreate, afterBulkDestroy and + afterBulkUpdate. + */ + declare export type HooksDefineOptions> = { + beforeValidate?: AsyncFn2, + validationFailed?: AsyncFn3, + afterValidate?: AsyncFn2, + beforeCreate?: AsyncFn2, + afterCreate?: AsyncFn2, + beforeDestroy?: AsyncFn2, + beforeDelete?: AsyncFn2, + afterDestroy?: AsyncFn2, + afterDelete?: AsyncFn2, + beforeUpdate?: AsyncFn2, + afterUpdate?: AsyncFn2, + beforeBulkCreate?: AsyncFn2, + afterBulkCreate?: AsyncFn2, + beforeBulkDestroy?: AsyncFn1, + beforeBulkDelete?: AsyncFn1, + afterBulkDestroy?: AsyncFn1, + afterBulkDelete?: AsyncFn1, + beforeBulkUpdate?: AsyncFn1, + afterBulkUpdate?: AsyncFn1, + beforeFind?: AsyncFn1, + beforeFindAfterExpandIncludeAll?: AsyncFn1, + beforeFindAfterOptions?: AsyncFn1, + afterFind?: AsyncFn2, + } + + + /** + * Options used for Instance.increment method + */ + declare export type InstanceIncrementDecrementOptions = { + /** + * The number to increment by + * Defaults to 1 + */ + by?: number, + + /** + * If true, the updatedAt timestamp will not be updated. + */ + silent?: boolean, + + /** + * A function that gets executed while running the query to log the sql. + */ + logging?: boolean | Function, + + /** + * Transaction to run query under + */ + transaction?: Transaction, + + /** + * An optional parameter to specify the schema search_path (Postgres only) + */ + searchPath?: string, + } + + + /** + * Options used for Instance.restore method + */ + declare export type InstanceRestoreOptions = { + /** + * A function that gets executed while running the query to log the sql. + */ + logging?: boolean | Function, + + /** + * Transaction to run query under + */ + transaction?: Transaction + } + + + /** + * Options used for Instance.destroy method + */ + declare export type InstanceDestroyOptions = { + /** + * If set to true, paranoid models will actually be deleted + */ + force?: boolean, + + /** + * A function that gets executed while running the query to log the sql. + */ + logging?: boolean | Function, + + /** + * Transaction to run the query in + */ + transaction?: Transaction + } + + + /** + * Options used for Instance.update method + */ + declare export type InstanceUpdateOptions = { + /** + * A hash of attributes to describe your search. See above for examples. + */ + where?: WhereOptions, + } & InstanceSaveOptions & InstanceSetOptions + + + + /** + * Options used for Instance.set method + */ + declare export type InstanceSetOptions = { + /** + * If set to true, field and virtual setters will be ignored + */ + raw?: boolean, + + /** + * Clear all previously set data values + */ + reset?: boolean + } + + + /** + * Options used for Instance.save method + */ + declare export type InstanceSaveOptions = { + /** + * If true, the updatedAt timestamp will not be updated. + * + Defaults to false + */ + silent?: boolean + } & FieldsOptions & LoggingOptions & ReturningOptions & SearchPathOptions + + declare export type LoggingOptions = { + /** + * A function that gets executed while running the query to log the sql. + */ + logging?: boolean | Function, + + /** + * Print query execution time in milliseconds when logging SQL. + */ + benchmark?: boolean + } + + declare export type SearchPathOptions = { + /** + * Transaction to run query under + */ + transaction?: Transaction, + + /** + * An optional parameter to specify the schema search_path (Postgres only) + */ + searchPath?: string + } + + declare export type ReturningOptions = { + /** + * Append RETURNING to get back auto generated values (Postgres only) + */ + returning?: boolean + } + + declare export type FieldsOptions = { + /** + * Run validations before the row is inserted + */ + validate?: boolean, + + /** + * The fields to insert / update. Defaults to all fields + */ + fields?: $Keys[] + } + + + /** + * Options to pass to Model on drop + */ + declare export type DropOptions = { + /** + * Also drop all objects depending on this table, such as views. Only works in postgres + */ + cascade?: boolean + } & LoggingOptions + + + + /** + * Schema Options provided for applying a schema to a model + */ + declare export type SchemaOptions = { + /** + * The character(s) that separates the schema name from the table name + */ + schemaDelimeter?: string + } & LoggingOptions + + + + /** + * GetTableName Options + */ + declare export type GetTableNameOptions = {} & LoggingOptions + + + + /** + * AddScope Options for Model.addScope + */ + declare export type AddScopeOptions = { + /** + * If a scope of the same name already exists, should it be overwritten? + */ + override: boolean + } + + + /** + * Scope Options for Model.scope + */ + declare export type ScopeOptions = { + /** + * The scope(s) to apply. Scopes can either be passed as consecutive arguments, or as an array of arguments. + * To apply simple scopes and scope functions with no arguments, pass them as strings. For scope function, + pass an object, with a `method` property. The value can either be a string, if the method does not take + any arguments, or an array, where the first element is the name of the method, and consecutive elements + are arguments to that method. Pass null to remove all scopes, including the default. + */ + method: string | any[], + } + + /** + * The type accepted by every `where` option + * + * The `Array` is to support string with replacements, like `['id > ?', 25]` + */ + declare export type WhereOptions = WhereAttributeHash | AndOperator | OrOperator | where | fn | Array; + + /** + * Example: `$any: [2,3]` becomes `ANY ARRAY[2, 3]::INTEGER` + * + * _PG only_ + */ + declare export type AnyOperator = { + $any: Array; + } + + /** Undocumented? */ + declare export type AllOperator = { + $all: Array; + } + + /** + * Operators that can be used in WhereOptions + * + * See http://docs.sequelizejs.com/en/v3/docs/querying/#operators + */ + declare export type WhereOperators = { + + /** + * Example: `$any: [2,3]` becomes `ANY ARRAY[2, 3]::INTEGER` + * + * _PG only_ + */ + $any?: Array; + + /** Example: `$gte: 6,` becomes `>= 6` */ + $gte?: number | string | Date; + + /** Example: `$lt: 10,` becomes `< 10` */ + $lt?: number | string | Date; + + /** Example: `$lte: 10,` becomes `<= 10` */ + $lte?: number | string | Date; + + /** Example: `$ne: 20,` becomes `!= 20` */ + $ne?: string | number | WhereOperators; + + /** Example: `$not: true,` becomes `IS NOT TRUE` */ + $not?: boolean | string | number | WhereOperators; + + /** Example: `$between: [6, 10],` becomes `BETWEEN 6 AND 10` */ + $between?: [number, number]; + + /** Example: `$in: [1, 2],` becomes `IN [1, 2]` */ + $in?: Array | literal; + + /** Example: `$notIn: [1, 2],` becomes `NOT IN [1, 2]` */ + $notIn?: Array | literal; + + /** + * Examples: + * - `$like: '%hat',` becomes `LIKE '%hat'` + * - `$like: { $any: ['cat', 'hat']}` becomes `LIKE ANY ARRAY['cat', 'hat']` + */ + $like?: string | AnyOperator | AllOperator; + + /** + * Examples: + * - `$notLike: '%hat'` becomes `NOT LIKE '%hat'` + * - `$notLike: { $any: ['cat', 'hat']}` becomes `NOT LIKE ANY ARRAY['cat', 'hat']` + */ + $notLike?: string | AnyOperator | AllOperator; + + /** + * case insensitive PG only + * + * Examples: + * - `$iLike: '%hat'` becomes `ILIKE '%hat'` + * - `$iLike: { $any: ['cat', 'hat']}` becomes `ILIKE ANY ARRAY['cat', 'hat']` + */ + $ilike?: string | AnyOperator | AllOperator; + + /** + * case insensitive PG only + * + * Examples: + * - `$iLike: '%hat'` becomes `ILIKE '%hat'` + * - `$iLike: { $any: ['cat', 'hat']}` becomes `ILIKE ANY ARRAY['cat', 'hat']` + */ + $iLike?: string | AnyOperator | AllOperator; + + /** + * PG array overlap operator + * + * Example: `$overlap: [1, 2]` becomes `&& [1, 2]` + */ + $overlap?: [number, number]; + + /** + * PG array contains operator + * + * Example: `$contains: [1, 2]` becomes `@> [1, 2]` + */ + $contains?: any[]; + + /** + * PG array contained by operator + * + * Example: `$contained: [1, 2]` becomes `<@ [1, 2]` + */ + $contained?: any[]; + + /** Example: `$gt: 6,` becomes `> 6` */ + $gt?: number | string | Date; + + /** + * PG only + * + * Examples: + * - `$notILike: '%hat'` becomes `NOT ILIKE '%hat'` + * - `$notLike: ['cat', 'hat']` becomes `LIKE ANY ARRAY['cat', 'hat']` + */ + $notILike?: string | AnyOperator | AllOperator; + + /** Example: `$notBetween: [11, 15],` becomes `NOT BETWEEN 11 AND 15` */ + $notBetween?: [number, number]; + } | {[op: Symbol]: any} + + /** Example: `$or: [{a: 5}, {a: 6}]` becomes `(a = 5 OR a = 6)` */ + declare export type OrOperator = { + [$or: Symbol | '$or']: WhereOperators | WhereAttributeHash | Array | Array | WhereOperators | WhereAttributeHash | where | AndOperator>; + } + + /** Example: `$and: {a: 5}` becomes `AND (a = 5)` */ + declare export type AndOperator = { + [$and: Symbol | '$and']: WhereOperators | WhereAttributeHash | Array | Array | WhereOperators | WhereAttributeHash | where | OrOperator>; + } + + /** + * Where Geometry Options + */ + declare export type WhereGeometryOptions = { + type: string; + coordinates: Array | number>; + } + + /** + * Used for the right hand side of WhereAttributeHash. + * WhereAttributeHash is in there for JSON columns. + */ + declare export type WhereValue = + string // literal value + | number // literal value + | boolean // literal value + | null + | WhereOperators + | WhereAttributeHash // for JSON columns + | col // reference another column + | OrOperator + | AndOperator + | WhereGeometryOptions + | Array; // implicit $or + + /** + * A hash of attributes to describe your search. + */ + declare export type WhereAttributeHash = { + /** + * Possible key values: + * - A simple attribute name + * - A nested key for JSON columns + * + * { + * "meta.audio.length": { + * $gt: 20 + * } + * } + */ + [field: string]: WhereValue; + } + + /** + * Through options for Include Options + */ + declare export type IncludeThroughOptions = { + /** + * Filter on the join model for belongsToMany relations + */ + where?: WhereOptions, + + /** + * A list of attributes to select from the join model for belongsToMany relations + */ + attributes?: string[] + } + + /** + * Complex include options + */ + declare export type IncludeOptions> = { + /** + * The model you want to eagerly load + */ + model?: Class, + + /** + * The alias of the relation, in case the model you want to eagerly load is aliassed. For `hasOne` / + * `belongsTo`, this should be the singular name, and for `hasMany`, it should be the plural + */ + as?: string, + + /** + * The association you want to eagerly load. (This can be used instead of providing a model/as pair) + */ + association?: Association, + + /** + * Where clauses to apply to the child models. Note that this converts the eager load to an inner join, + * unless you explicitly set `required: false` + */ + where?: WhereOptions, + + /** + * A list of attributes to select from the child model + */ + attributes?: FindOptionsAttributesArray | { + include?: FindOptionsAttributesArray, + exclude?: Array<$Keys> + }, + + /** + * If true, converts to an inner join, which means that the parent model will only be loaded if it has any + * matching children. True if `include.where` is set, false otherwise. + */ + required?: boolean, + + /** + * Through Options + */ + through?: IncludeThroughOptions, + + /** + * Load further nested related models + */ + include?: Array> | IncludeOptions>, + + /** + * If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will + * be returned. Only applies if `options.paranoid` is true for the model. + */ + paranoid?: boolean, + all?: boolean | string + } + + + /** + * Shortcut for types used in FindOptions.attributes + */ + declare export type FindOptionsAttributesArray = Array< + $Keys | + literal | + [fn, string] | + [cast, string] | + [literal, string] | + [$Keys, string] | + fn | + cast + >; + + + /** + * Options that are passed to any model creating a SELECT query + * + A hash of options to describe the scope of the search + */ + declare export type FindOptions= { + /** + * A hash of attributes to describe your search. See above for examples. + */ + where?: WhereOptions, + + /** + * A list of the attributes that you want to select. To rename an attribute, you can pass an array, with + * two elements - the first is the name of the attribute in the DB (or some kind of expression such as + `Sequelize.literal`, `Sequelize.fn` and so on), and the second is the name you want the attribute to + have in the returned instance + */ + attributes?: FindOptionsAttributesArray | { + include?: FindOptionsAttributesArray, + exclude?: Array<$Keys> + }, + + /** + * If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will + * be returned. Only applies if `options.paranoid` is true for the model. + */ + paranoid?: boolean, + + /** + * A list of associations to eagerly load using a left join. Supported is either + * `{ include: [ Model1, Model2, ...]}` or `{ include: [{ model: Model1, as: 'Alias' }]}`. + If your association are set up with an `as` (eg. `X.hasMany(Y, { as: 'Z }`, you need to specify Z in + the as attribute when eager loading Y). + */ + include?: Array> | IncludeOptions>, + + /** + * Specifies an ordering. If a string is provided, it will be escaped. Using an array, you can provide + * several columns / functions to order by. Each element can be further wrapped in a two-element array. The + first element is the column / function to order by, the second is the direction. For example: + `order: [['name', 'DESC']]`. In this way the column will be escaped, but the direction will not. + */ + order?: + string | + col | + literal | + Array< + string | + col | + literal | + Class> | + {model: Class>, as?: string} | + Array< + string | + number | + Class> | + {model: Class>, as?: string} + > + >, + + /** + * Limit the results + */ + limit?: number, + + /** + * Skip the results; + */ + offset?: number, + + /** + * Lock the selected rows. Possible options are transaction.LOCK.UPDATE and transaction.LOCK.SHARE. + * Postgres also supports transaction.LOCK.KEY_SHARE, transaction.LOCK.NO_KEY_UPDATE and specific model + locks with joins. See [transaction.LOCK for an example](transaction#lock) + */ + lock?: TransactionLockLevel | { + level: TransactionLockLevel, + of: Class> + }, + + /** + * Return raw result. See sequelize.query for more information. + */ + raw?: boolean, + + /** + * having ?!? + */ + having?: WhereOptions, + + /** + * Group by. It is not mentioned in sequelize's JSDoc, but mentioned in docs. + * https://github.com/sequelize/sequelize/blob/master/docs/docs/models-usage.md#user-content-manipulating-the-dataset-with-limit-offset-order-and-group + */ + group?: string | string[] | Object, + + /** + * Apply DISTINCT(col) for FindAndCount(all) + */ + distinct?: boolean, + + /** + * Prevents a subquery on the main table when using include + */ + subQuery?: boolean, + + /** + * Throw EmptyResultError if a record is not found + */ + rejectOnEmpty?: boolean + } & LoggingOptions & SearchPathOptions + + + declare export type AnyFindOptions = FindOptions; + + + /** + * Options for Model.count method + */ + declare export type CountOptions = { + /** + * A hash of search attributes. + */ + where?: WhereOptions, + + /** + * Include options. See `find` for details + */ + include?: Array>| IncludeOptions>, + + /** + * Apply COUNT(DISTINCT(col)) + */ + distinct?: boolean, + + /** + * Used in conjustion with `group` + */ + attributes?: Array, + + /** + * For creating complex counts. Will return multiple rows as needed. + * + TODO: Check? + */ + group?: Object | Array, + } & LoggingOptions & SearchPathOptions + + + + /** + * Options for Model.build method + */ + declare export type BuildOptions = { + /** + * If set to true, values will ignore field and virtual setters. + */ + raw?: boolean, + + /** + * Is this record new + */ + isNewRecord?: boolean, + + /** + * an array of include options - Used to build prefetched/included model instances. See `set` + * + TODO: See set + */ + include?: Array> | IncludeOptions> + } & ReturningOptions + + + + /** + * Options for Model.create method + */ + declare export type CreateOptions = { + /** + * On Duplicate + */ + onDuplicate?: string + } & BuildOptions & InstanceSaveOptions + + + + /** + * Options for Model.findOrInitialize method + */ + declare export type FindOrInitializeOptions= { + /** + * Default values to use if building a new instance + */ + defaults?: $Shape + } & FindOptions + + + + /** + * Options for Model.findOrInitialize method + */ + declare export type FindCreateFindOptions= { + /** + * Default values to use if building a new instance + */ + defaults?: $Shape + } & FindOptions + + + + /** + * Options for Model.upsert method + * + */ + declare export type UpsertOptions = {} & FieldsOptions & LoggingOptions & SearchPathOptions + + + + /** + * Options for Model.bulkCreate method + */ + declare export type BulkCreateOptions = { + /** + * Run before / after bulk create hooks? + */ + hooks?: boolean, + + /** + * Run before / after create hooks for each individual Instance? BulkCreate hooks will still be run if + * options.hooks is true. + */ + individualHooks?: boolean, + + /** + * Ignore duplicate values for primary keys? (not supported by postgres) + * + Defaults to false + */ + ignoreDuplicates?: boolean, + + /** + * Fields to update if row key already exists (on duplicate key update)? (only supported by mysql & + * mariadb). By default, all fields are updated. + */ + updateOnDuplicate?: string[] + } & FieldsOptions & LoggingOptions & SearchPathOptions & ReturningOptions + + + + /** + * The options passed to Model.destroy in addition to truncate + */ + declare export type TruncateOptions = { + /** + * Only used in conjuction with TRUNCATE. Truncates all tables that have foreign-key references to the + * named table, or to any tables added to the group due to CASCADE. + + Defaults to false; + */ + cascade?: boolean, + + /** + * Delete instead of setting deletedAt to current timestamp (only applicable if paranoid is enabled) + * + Defaults to false; + */ + force?: boolean + } & LoggingOptions & SearchPathOptions + + + + /** + * Options used for Model.destroy + */ + declare export type DestroyOptions = { + /** + * Filter the destroy + */ + where?: WhereOptions, + + /** + * Run before / after bulk destroy hooks? + */ + hooks?: boolean, + + /** + * If set to true, destroy will SELECT all records matching the where parameter and will execute before / + * after destroy hooks on each row + */ + individualHooks?: boolean, + + /** + * How many rows to delete + */ + limit?: number, + + /** + * Delete instead of setting deletedAt to current timestamp (only applicable if `paranoid` is enabled) + */ + force?: boolean, + + /** + * If set to true, dialects that support it will use TRUNCATE instead of DELETE FROM. If a table is + * truncated the where and limit options are ignored + */ + truncate?: boolean + } & TruncateOptions + + declare type AsyncFn1 = (a: A, callback: (error?: Error) => any) => ?Promise + declare type AsyncFn2 = ((a: A, b: B, callback: (error?: Error) => any) => ?Promise) + declare type AsyncFn3 = ((a: A, b: B, c: C, callback: (error?: Error) => any) => ?Promise) + + /** + * Options for Model.restore + */ + declare export type RestoreOptions = { + /** + * Filter the restore + */ + where?: WhereOptions, + + /** + * Run before / after bulk restore hooks? + */ + hooks?: boolean, + + /** + * If set to true, restore will find all records within the where parameter and will execute before / after + * bulkRestore hooks on each row + */ + individualHooks?: boolean, + + /** + * How many rows to undelete + */ + limit?: number, + + /** + * Transaction to run query under + */ + transaction?: Transaction + } & LoggingOptions + + /** + * Options used for HasMany.update, BelongsToMany.update + */ + declare export type UpdateRelatedOptions = { + /** + * Options to describe the scope of the search. + */ + where?: WhereOptions, + + /** + * Run before / after bulk update hooks? + * + Defaults to true + */ + hooks?: boolean, + + /** + * Whether or not to update the side effects of any virtual setters. + * + Defaults to true + */ + sideEffects?: boolean, + + /** + * Run before / after update hooks?. If true, this will execute a SELECT followed by individual UPDATEs. + * A select is needed, because the row data needs to be passed to the hooks + + Defaults to false + */ + individualHooks?: boolean, + + /** + * How many rows to update (only for mysql and mariadb) + */ + limit?: number, + + /** + * Transaction to run query under + */ + transaction?: Transaction, + + /** + * If true, the updatedAt timestamp will not be updated. + */ + silent?: boolean + } & FieldsOptions & LoggingOptions & ReturningOptions + + + /** + * Options used for Model.update + */ + declare export type UpdateOptions = { + /** + * Options to describe the scope of the search. + */ + where: WhereOptions, + + /** + * Run before / after bulk update hooks? + * + Defaults to true + */ + hooks?: boolean, + + /** + * Whether or not to update the side effects of any virtual setters. + * + Defaults to true + */ + sideEffects?: boolean, + + /** + * Run before / after update hooks?. If true, this will execute a SELECT followed by individual UPDATEs. + * A select is needed, because the row data needs to be passed to the hooks + + Defaults to false + */ + individualHooks?: boolean, + + /** + * How many rows to update (only for mysql and mariadb) + */ + limit?: number, + + /** + * Transaction to run query under + */ + transaction?: Transaction, + + /** + * If true, the updatedAt timestamp will not be updated. + */ + silent?: boolean + } & FieldsOptions & LoggingOptions & ReturningOptions + + + + /** + * Options used for Model.aggregate + */ + declare export type AggregateOptions = { + /** + * A hash of search attributes. + */ + where?: WhereOptions, + + /** + * The type of the result. If `field` is a field in this Model, the default will be the type of that field, + * otherwise defaults to float. + */ + dataType?: DataTypeAbstract | string, + + /** + * Applies DISTINCT to the field being aggregated over + */ + distinct?: boolean, + + /** + * The transaction that the query should be executed under + */ + transaction?: Transaction, + + /** + * When `true`, the first returned value of `aggregateFunction` is cast to `dataType` and returned. + * If additional attributes are specified, along with `group` clauses, set `plain` to `false` to return all values of all returned rows. + Defaults to `true` + */ + plain?: boolean + } & LoggingOptions + + + + /** + * A Model represents a table in the database. Sometimes you might also see it referred to as model, or simply + * as factory. This class should _not_ be instantiated directly, it is created using `sequelize.define`, and + already created models can be loaded using `sequelize.import` + */ + declare export class Model { + static init(attributes: DefineAttributes, options: DefineOptions): this, + + /** + * The options this model was initialized with + */ + static options: ResolvedDefineOptions, + + /** + * Remove attribute from model definition + * @param attribute + */ + static removeAttribute(attribute: string): void, + + /** + * Sync this Model to the DB, that is create the table. Upon success, the callback will be called with the + * model instance (this) + */ + static sync(options?: SyncOptions): Promise, + + /** + * Drop the table represented by this Model + * @param options + */ + static drop(options?: DropOptions): Promise, + + /** + * Apply a schema to this model. For postgres, this will actually place the schema in front of the table + * name + - `"schema"."tableName"`, while the schema will be prepended to the table name for mysql and + sqlite - `'schema.tablename'`. + * @param schema The name of the schema + * @param options + */ + static schema(schema: string, options?: SchemaOptions): Class, + + /** + * Get the tablename of the model, taking schema into account. The method will return The name as a string + * if the model has no schema, or an object with `tableName`, `schema` and `delimiter` properties. + * @param options The hash of options from any query. You can use one model to access tables with matching + schemas by overriding `getTableName` and using custom key/values to alter the name of the table. + (eg. + subscribers_1, subscribers_2) + * @param options .logging=false A function that gets executed while running the query to log the sql. + */ + static getTableName(options?: GetTableNameOptions): string | Object, + + /** + * Add a new scope to the model. This is especially useful for adding scopes with includes, when the model you want to include is not available at the time this model is defined. + * + By default this will throw an error if a scope with that name already exists. Pass `override: true` in the options object to silence this error. + * @param The name of the scope. Use `defaultScope` to override the default scope + * @param + * @param * + * @param .override=false] + */ + static addScope( + name: string, + scope: AnyFindOptions | Function, + options?: AddScopeOptions): void, + + /** + * Apply a scope created in `define` to the model. First let's look at how to create scopes: + * ```js + var Model = sequelize.define('model', attributes, { + defaultScope: { + where: { + username: 'dan' + }, + limit: 12 + }, + scopes: { + isALie: { + where: { + stuff: 'cake' + } + }, + complexFunction: function(email, accessLevel) { + return { + where: { + email: { + $like: email + }, + accesss_level { + $gte: accessLevel + } + } + } + } + } + }) + ``` + Now, since you defined a default scope, every time you do Model.find, the default scope is appended to + your query. Here's a couple of examples: + ```js + Model.findAll() // WHERE username = 'dan' + Model.findAll({ where: { age: { gt: 12 } } }) // WHERE age>12 AND username = 'dan' + ``` + + To invoke scope functions you can do: + ```js + Model.scope({ method: ['complexFunction' 'dan@sequelize.com', 42]}).findAll() + // WHERE email like 'dan@sequelize.com%' AND access_level>= 42 + ``` + * @return Model A reference to the model, with the scope(s) applied. Calling scope again on the returned + model will clear the previous scope. + */ + static scope( + options?: string | ScopeOptions | Array): Class, + + /** + * Search for multiple instances. + * + __Simple search using AND and =__ + ```js + Model.findAll({ + where: { + attr1: 42, + attr2: 'cake' + } + }) + ``` + ```sql + WHERE attr1 = 42 AND attr2 = 'cake' + ``` + + __Using greater than, less than etc.__ + ```js + + Model.findAll({ + where: { + attr1: { + gt: 50 + }, + attr2: { + lte: 45 + }, + attr3: { + in: [1,2,3] + }, + attr4: { + ne: 5 + } + } + }) + ``` + ```sql + WHERE attr1>50 AND attr2 <= 45 AND attr3 IN (1,2,3) AND attr4 != 5 + ``` + Possible options are: `$ne, $in, $not, $notIn, $gte, $gt, $lte, $lt, $like, $ilike/$iLike, $notLike, + $notILike, '..'/$between, '!..'/$notBetween, '&&'/$overlap, '@>'/$contains, '<@'/$contained` + + __Queries using OR__ + ```js + Model.findAll({ + where: Sequelize.and( + { name: 'a project' }, + Sequelize.or( + { id: [1,2,3] }, + { id: { gt: 10 } } + ) + ) + }) + ``` + ```sql + WHERE name = 'a project' AND (id` IN (1,2,3) OR id>10) + ``` + + The success listener is called with an array of instances if the query succeeds. + * @see {Sequelize#query} + */ + static findAll( + options?: FindOptions): Promise, + static all( + optionz?: FindOptions): Promise, + + /** + * Search for a single instance by its primary key. This applies LIMIT 1, so the listener will + * always be called with a single instance. + */ + static findById( + identifier?: number | string, + options?: FindOptions): Promise, + static findByPrimary( + identifier?: number | string, + options?: FindOptions): Promise, + + /** + * Search for a single instance. This applies LIMIT 1, so the listener will always be called with a single + * instance. + */ + static findOne( + options?: FindOptions): Promise, + static find( + options?: FindOptions): Promise, + + /** + * Run an aggregation method on the specified field + * @param field The field to aggregate over. Can be a field name or * + * @param aggregateFunction The function to use for aggregation, e.g. sum, max etc. + * @param options Query options. See sequelize.query for full options + * @return Returns the aggregate result cast to `options.dataType`, unless `options.plain` is false, in + which case the complete data result is returned. + */ + static aggregate( + field: string, + aggregateFunction: string, + options?: AggregateOptions): Promise, + + /** + * Count the number of records matching the provided where clause. + * + If you provide an `include` option, the number of matching associations will be counted instead. + */ + static count(options?: CountOptions): Promise, + + /** + * Find all the rows matching your query, within a specified offset / limit, and get the total number of + * rows matching your query. This is very usefull for paging + + ```js + Model.findAndCountAll({ + where: ..., + limit: 12, + offset: 12 + }).then(function (result) { + ... + }) + ``` + In the above example, `result.rows` will contain rows 13 through 24, while `result.count` will return + the + total number of rows that matched your query. + + When you add includes, only those which are required (either because they have a where clause, or + because + `required` is explicitly set to true on the include) will be added to the count part. + + Suppose you want to find all users who have a profile attached: + ```js + User.findAndCountAll({ + include: [ + { model: Profile, required: true} + ], + limit 3 + }); + ``` + Because the include for `Profile` has `required` set it will result in an inner join, and only the users + who have a profile will be counted. If we remove `required` from the include, both users with and + without + profiles will be counted + */ + static findAndCount( + options?: FindOptions): Promise<{ + rows: this[], + count: number + }>, + static findAndCountAll( + options?: FindOptions): Promise<{ + rows: this[], + count: number + }>, + + /** + * Find the maximum value of field + */ + static max(field: string, options?: AggregateOptions): Promise, + + /** + * Find the minimum value of field + */ + static min(field: string, options?: AggregateOptions): Promise, + + /** + * Find the sum of field + */ + static sum(field: string, options?: AggregateOptions): Promise, + + /** + * Builds a new model instance. Values is an object of key value pairs, must be defined but can be empty. + */ + static build(record?: TInitAttributes, options?: BuildOptions): this, + + /** + * Undocumented bulkBuild + */ + static bulkBuild(records: TInitAttributes[], options?: BuildOptions): this[], + + /** + * Builds a new model instance and calls save on it. + */ + static create(values?: TInitAttributes, options?: CreateOptions): Promise, + + /** + * Find a row that matches the query, or build (but don't save) the row if none is found. + * The successfull result of the promise will be (instance, initialized) - Make sure to use .spread() + */ + static findOrInitialize( + options: FindOrInitializeOptions): Promise<[this, boolean]>, + static findOrBuild( + options: FindOrInitializeOptions): Promise<[this, boolean]>, + + /** + * Find a row that matches the query, or build and save the row if none is found + * The successful result of the promise will be (instance, created) - Make sure to use .spread() + + If no transaction is passed in the `options` object, a new transaction will be created internally, to + prevent the race condition where a matching row is created by another connection after the find but + before the insert call. However, it is not always possible to handle this case in SQLite, specifically + if one transaction inserts and another tries to select before the first one has comitted. In this case, + an instance of sequelize.TimeoutError will be thrown instead. If a transaction is created, a savepoint + will be created instead, and any unique constraint violation will be handled internally. + */ + static findOrCreate( + options: FindOrInitializeOptions): Promise<[this, boolean]>, + + /** + * A more performant findOrCreate that will not work under a transaction (at least not in postgres) + * Will execute a find call, if empty then attempt to create, if unique constraint then attempt to find again + */ + static findCreateFind( + options: FindCreateFindOptions): Promise<[this, boolean]>, + + /** + * Insert or update a single row. An update will be executed if a row which matches the supplied values on + * either the primary key or a unique key is found. Note that the unique index must be defined in your + sequelize model and not just in the table. Otherwise you may experience a unique constraint violation, + because sequelize fails to identify the row that should be updated. + + *Implementation details:* + + * MySQL - Implemented as a single query `INSERT values ON DUPLICATE KEY UPDATE values` + * PostgreSQL - Implemented as a temporary function with exception handling: INSERT EXCEPTION WHEN + unique_constraint UPDATE + * SQLite - Implemented as two queries `INSERT; UPDATE`. This means that the update is executed + regardless + of whether the row already existed or not + + *Note* that SQLite returns undefined for created, no matter if the row was created or updated. This is + because SQLite always runs INSERT OR IGNORE + UPDATE, in a single query, so there is no way to know + whether the row was inserted or not. + */ + static upsert(values: TInitAttributes, options?: UpsertOptions): Promise, + static insertOrUpdate(values: TInitAttributes, options?: UpsertOptions): Promise, + + /** + * Create and insert multiple instances in bulk. + * + The success handler is passed an array of instances, but please notice that these may not completely + represent the state of the rows in the DB. This is because MySQL and SQLite do not make it easy to + obtain + back automatically generated IDs and other default values in a way that can be mapped to multiple + records. To obtain Instances for the newly created values, you will need to query for them again. + * @param records List of objects (key/value pairs) to create instances from + */ + static bulkCreate( + records: TInitAttributes[], + options?: BulkCreateOptions): Promise, + + /** + * Truncate all instances of the model. This is a convenient method for Model.destroy({ truncate: true }). + */ + static truncate(options?: TruncateOptions): Promise, + + /** + * Delete multiple instances, or set their deletedAt timestamp to the current time if `paranoid` is enabled. + * @return Promise The number of destroyed rows + */ + static destroy(options?: DestroyOptions): Promise, + + /** + * Restore multiple instances if `paranoid` is enabled. + */ + static restore(options?: RestoreOptions): Promise, + + /** + * Update multiple instances that match the where options. The promise returns an array with one or two + * elements. The first element is always the number of affected rows, while the second element is the actual + affected rows (only supported in postgres with `options.returning` true.) + */ + static update( + values: $Shape, + options: UpdateOptions): Promise<[number, this[]]>, + + /** + * Run a describe query on the table. The result will be return to the listener as a hash of attributes and + * their types. + */ + static describe(): Promise, + + /** + * Unscope the model + */ + static unscoped(): Class, + + /** + * Add a hook to the model + * @param hookType + * @param name Provide a name for the hook function. It can be used to remove the hook later or to order + hooks based on some sort of priority system in the future. + * @param fn The hook function + * @alias hook + */ + static addHook(hookType: string, name: string, fn: Function): Class, + static addHook(hookType: string, fn: Function): Class, + static hook(hookType: string, name: string, fn: Function): Class, + static hook(hookType: string, fn: Function): Class, + + /** + * Remove hook from the model + * @param hookType + * @param name + */ + static removeHook(hookType: string, name: string): Class, + + /** + * Check whether the model has any hooks of this type + * @param hookType + * @alias hasHooks + */ + static hasHook(hookType: string): boolean, + static hasHooks(hookType: string): boolean, + + /** + * A hook that is run before validation + * @param name + * @param fn A callback function that is called with instance, options + */ + static beforeValidate( + name: string, + fn: AsyncFn2): void, + static beforeValidate(fn: AsyncFn2): void, + + /** + * A hook that is run after validation + * @param name + * @param fn A callback function that is called with instance, options + */ + static afterValidate( + name: string, + fn: AsyncFn2): void, + static afterValidate(fn: AsyncFn2): void, + + /** + * A hook that is run after validation + * @param name + * @param fn A callback function that is called with instance, options + */ + static validationFailed( + name: string, + fn: AsyncFn3): void, + static validationFailed(fn: AsyncFn3): void, + + /** + * A hook that is run before creating a single instance + * @param name + * @param fn A callback function that is called with attributes, options + */ + static beforeCreate( + name: string, + fn: AsyncFn2): void, + static beforeCreate(fn: AsyncFn2): void, + + /** + * A hook that is run after creating a single instance + * @param name + * @param fn A callback function that is called with attributes, options + */ + static afterCreate( + name: string, + fn: AsyncFn2): void, + static afterCreate(fn: AsyncFn2): void, + + /** + * A hook that is run before destroying a single instance + * @param name + * @param fn A callback function that is called with instance, options + * @alias beforeDelete + */ + static beforeDestroy( + name: string, + fn: AsyncFn2): void, + static beforeDestroy(fn: AsyncFn2): void, + static beforeDelete( + name: string, + fn: AsyncFn2): void, + static beforeDelete(fn: AsyncFn2): void, + + /** + * A hook that is run after destroying a single instance + * @param name + * @param fn A callback function that is called with instance, options + * @alias afterDelete + */ + static afterDestroy( + name: string, + fn: AsyncFn2): void, + static afterDestroy(fn: AsyncFn2): void, + static afterDelete( + name: string, + fn: AsyncFn2): void, + static afterDelete(fn: AsyncFn2): void, + + /** + * A hook that is run before updating a single instance + * @param name + * @param fn A callback function that is called with instance, options + */ + static beforeUpdate( + name: string, + fn: AsyncFn2): void, + static beforeUpdate(fn: AsyncFn2): void, + + /** + * A hook that is run after updating a single instance + * @param name + * @param fn A callback function that is called with instance, options + */ + static afterUpdate( + name: string, + fn: AsyncFn2): void, + static afterUpdate(fn: AsyncFn2): void, + + /** + * A hook that is run before creating instances in bulk + * @param name + * @param fn A callback function that is called with instances, options + */ + static beforeBulkCreate( + name: string, + fn: AsyncFn2): void, + static beforeBulkCreate(fn: AsyncFn2): void, + + /** + * A hook that is run after creating instances in bulk + * @param name + * @param fn A callback function that is called with instances, options + * @name afterBulkCreate + */ + static afterBulkCreate( + name: string, + fn: AsyncFn2): void, + static afterBulkCreate(fn: AsyncFn2): void, + + /** + * A hook that is run before destroying instances in bulk + * @param name + * @param fn A callback function that is called with options + * @alias beforeBulkDelete + */ + static beforeBulkDestroy(name: string, fn: AsyncFn1): void, + static beforeBulkDestroy(fn: AsyncFn1): void, + static beforeBulkDelete(name: string, fn: AsyncFn1): void, + static beforeBulkDelete(fn: AsyncFn1): void, + + /* A hook that is run after destroying instances in bulk + * @param name + * @param fn A callback function that is called with options + * @alias afterBulkDelete + */ + static afterBulkDestroy(name: string, fn: AsyncFn1): void, + static afterBulkDestroy(fn: AsyncFn1): void, + static afterBulkDelete(name: string, fn: AsyncFn1): void, + static afterBulkDelete(fn: AsyncFn1): void, + + /** + * A hook that is run after updating instances in bulk + * @param name + * @param fn A callback function that is called with options + */ + static beforeBulkUpdate(name: string, fn: AsyncFn1): void, + static beforeBulkUpdate(fn: AsyncFn1): void, + + /** + * A hook that is run after updating instances in bulk + * @param name + * @param fn A callback function that is called with options + */ + static afterBulkUpdate(name: string, fn: AsyncFn1): void, + static afterBulkUpdate(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query + * @param name + * @param fn A callback function that is called with options + */ + static beforeFind(name: string, fn: AsyncFn1): void, + static beforeFind(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query, after any { include: {all: ...} } options are expanded + * @param name + * @param fn A callback function that is called with options + */ + static beforeFindAfterExpandIncludeAll(name: string, fn: AsyncFn1): void, + static beforeFindAfterExpandIncludeAll(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query, after all option parsing is complete + * @param name + * @param fn A callback function that is called with options + */ + static beforeFindAfterOptions(name: string, fn: AsyncFn1): void, + static beforeFindAfterOptions(fn: AsyncFn1): void, + + /** + * A hook that is run after a find (select) query + * @param name + * @param fn A callback function that is called with instance(s), options + */ + static afterFind( + name: string, + AsyncFn2): void, + static afterFind( + AsyncFn2): void, + + /** + * A hook that is run before a define call + * @param name + * @param fn A callback function that is called with attributes, options + */ + static beforeDefine( + name: string, + fn: AsyncFn2): void, + static beforeDefine(fn: AsyncFn2): void, + + /** + * A hook that is run after a define call + * @param name + * @param fn A callback function that is called with factory + */ + static afterDefine(name: string, fn: AsyncFn1>): void, + static afterDefine(fn: AsyncFn1>): void, + + /** + * A hook that is run before Sequelize() call + * @param name + * @param fn A callback function that is called with config, options + */ + static beforeInit(name: string, fn: AsyncFn2): void, + static beforeInit(fn: AsyncFn2): void, + + /** + * A hook that is run after Sequelize() call + * @param name + * @param fn A callback function that is called with sequelize + */ + static afterInit(name: string, fn: AsyncFn1): void, + static afterInit(fn: AsyncFn1): void, + + /** + * A hook that is run before Model.sync call + * @param name + * @param fn A callback function that is called with options passed to Model.sync + */ + static beforeSync(name: string, fn: AsyncFn1): void, + static beforeSync(fn: AsyncFn1): void, + + /** + * A hook that is run after Model.sync call + * @param name + * @param fn A callback function that is called with options passed to Model.sync + */ + static afterSync(name: string, fn: AsyncFn1): void, + static afterSync(fn: AsyncFn1): void, + + /** + * A hook that is run before sequelize.sync call + * @param name + * @param fn A callback function that is called with options passed to sequelize.sync + */ + static beforeBulkSync(name: string, fn: AsyncFn1): void, + static beforeBulkSync(fn: AsyncFn1): void, + + /** + * A hook that is run after sequelize.sync call + * @param name + * @param fn A callback function that is called with options passed to sequelize.sync + */ + static afterBulkSync(name: string, fn: AsyncFn1): void, + static afterBulkSync(fn: AsyncFn1): void, + + /** + * Creates an association between this (the source) and the provided target. The foreign key is added + * on the target. + + Example: `User.hasOne(Profile)`. This will add userId to the profile table. + * @param target The model that will be associated with hasOne relationship + * @param options Options for the association + */ + static hasOne>( + target: Class, + options?: AssociationOptionsHasOne): HasOne, + + /** + * Creates an association between this (the source) and the provided target. The foreign key is added on the + * source. + + Example: `Profile.belongsTo(User)`. This will add userId to the profile table. + * @param target The model that will be associated with hasOne relationship + * @param options Options for the association + */ + static belongsTo>( + target: Class, + options?: AssociationOptionsBelongsTo): BelongsTo, + + /** + * Create an association that is either 1:m or n:m. + * + ```js + // Create a 1:m association between user and project + User.hasMany(Project) + ``` + ```js + // Create a n:m association between user and project + User.hasMany(Project) + Project.hasMany(User) + ``` + By default, the name of the join table will be source+target, so in this case projectsusers. This can be + overridden by providing either a string or a Model as `through` in the options. If you use a through + model with custom attributes, these attributes can be set when adding / setting new associations in two + ways. Consider users and projects from before with a join table that stores whether the project has been + started yet: + ```js + var UserProjects = sequelize.define('userprojects', { + started: Sequelize.BOOLEAN + }) + User.hasMany(Project, { through: UserProjects }) + Project.hasMany(User, { through: UserProjects }) + ``` + ```js + jan.addProject(homework, { started: false }) // The homework project is not started yet + jan.setProjects([makedinner, doshopping], { started: true}) // Both shopping and dinner have been + started + ``` + + If you want to set several target instances, but with different attributes you have to set the + attributes on the instance, using a property with the name of the through model: + + ```js + p1.userprojects { + started: true + } + user.setProjects([p1, p2], {started: false}) // The default value is false, but p1 overrides that. + ``` + + Similarily, when fetching through a join table with custom attributes, these attributes will be + available as an object with the name of the through model. + ```js + user.getProjects().then(function (projects) { + var p1 = projects[0] + p1.userprojects.started // Is this project started yet? + }) + ``` + * @param target The model that will be associated with hasOne relationship + * @param options Options for the association + */ + static hasMany>( + target: Class, + options?: AssociationOptionsHasMany): HasMany, + + /** + * Create an N:M association with a join table + * + ```js + User.belongsToMany(Project) + Project.belongsToMany(User) + ``` + By default, the name of the join table will be source+target, so in this case projectsusers. This can be + overridden by providing either a string or a Model as `through` in the options. + + If you use a through model with custom attributes, these attributes can be set when adding / setting new + associations in two ways. Consider users and projects from before with a join table that stores whether + the project has been started yet: + ```js + var UserProjects = sequelize.define('userprojects', { + started: Sequelize.BOOLEAN + }) + User.belongsToMany(Project, { through: UserProjects }) + Project.belongsToMany(User, { through: UserProjects }) + ``` + ```js + jan.addProject(homework, { started: false }) // The homework project is not started yet + jan.setProjects([makedinner, doshopping], { started: true}) // Both shopping and dinner has been started + ``` + + If you want to set several target instances, but with different attributes you have to set the + attributes on the instance, using a property with the name of the through model: + + ```js + p1.userprojects { + started: true + } + user.setProjects([p1, p2], {started: false}) // The default value is false, but p1 overrides that. + ``` + + Similarily, when fetching through a join table with custom attributes, these attributes will be + available as an object with the name of the through model. + ```js + user.getProjects().then(function (projects) { + var p1 = projects[0] + p1.userprojects.started // Is this project started yet? + }) + ``` + * @param target The model that will be associated with hasOne relationship + * @param options Options for the association + */ + static belongsToMany< + TargetAttributes: Object, + TargetInitAttributes: Object, + Target: Model, + ThroughAttributes: Object, + Through: Model + >( + target: Class, + options: AssociationOptionsBelongsToMany + ): BelongsToMany< + TAttributes, TInitAttributes, this, + TargetAttributes, TargetInitAttributes, Target, + ThroughAttributes, Through + >, + + static getAssociations>(model: Class): Array>; + static getAssociationForAlias>(model: Class, alias: ?string): ?Association; + + static associations: {[name: string]: Association}, + static tableName: string, + static rawAttributes: {[name: string]: Attribute}, + static tableAttributes: {[name: string]: Attribute}, + static attributes: {[name: string]: Attribute}, + static primaryKeys: {[name: string]: Attribute}, + static primaryKeyAttributes: Array, + static primaryKeyAttribute: ?string, + static primaryKeyField?: string, + static uniqueKeys: {[idxName: string | false]: { + name: string | false, + column: string | false, + msg: ?string, + fields: Array, + }}, + static fieldRawAttributesMap: {[name: string]: string}, + static fieldAttributesMap: {[name: string]: string}, + + Model: Class, + + sequelize: Sequelize, + + /** + * Returns true if this instance has not yet been persisted to the database + */ + isNewRecord: boolean, + + /** + * Get an object representing the query for this instance, use with `options.where` + */ + where(): Object, + + /** + * Get the value of the underlying data value + */ + getDataValue(key: $Keys): any, + + /** + * Update the underlying data value + */ + setDataValue(key: $Keys, value: any): void, + + /** + * If no key is given, returns all values of the instance, also invoking virtual getters. + * + If key is given and a field or virtual getter is present for the key it will call that getter - else it + will return the value for key. + * @param options .plain If set to true, included instances will be returned as plain objects + */ + get(options: {plain: true, raw?: boolean, clone?: boolean}): TPlainAttributes, + get(key: $Keys, options?: {plain?: boolean, clone?: boolean, raw?: boolean}): any, + get(options?: {plain?: boolean, clone?: boolean, raw?: boolean}): TAttributes, + + /** + * Set is used to update values on the instance (the sequelize representation of the instance that is, + * remember that nothing will be persisted before you actually call `save`). In its most basic form `set` + will update a value stored in the underlying `dataValues` object. However, if a custom setter function + is defined for the key, that function will be called instead. To bypass the setter, you can pass `raw: + true` in the options object. + + If set is called with an object, it will loop over the object, and call set recursively for each key, + value pair. If you set raw to true, the underlying dataValues will either be set directly to the object + passed, or used to extend dataValues, if dataValues already contain values. + + When set is called, the previous value of the field is stored and sets a changed flag(see `changed`). + + Set can also be used to build instances for associations, if you have values for those. + When using set with associations you need to make sure the property key matches the alias of the + association while also making sure that the proper include options have been set (from .build() or + .find()) + + If called with a dot.seperated key on a JSON/JSONB attribute it will set the value nested and flag the + entire object as changed. + * @param options .raw If set to true, field and virtual setters will be ignored + * @param options .reset Clear all previously set data values + */ + set(key: $Keys, value: any, options?: InstanceSetOptions): this, + set(keys: $Shape, options?: InstanceSetOptions): this, + setAttributes(key: $Keys, value: any, options?: InstanceSetOptions): this, + setAttributes(keys: $Shape, options?: InstanceSetOptions): this, + + /** + * If changed is called with a string it will return a boolean indicating whether the value of that key in + * `dataValues` is different from the value in `_previousDataValues`. + + If changed is called without an argument, it will return an array of keys that have changed. + + If changed is called without an argument and no keys have changed, it will return `false`. + */ + changed(key: $Keys): boolean, + changed(): boolean | string[], + + /** + * Returns the previous value for key from `_previousDataValues`. + */ + previous(key: $Keys): any, + + /** + * Validate this instance, and if the validation passes, persist it to the database. + * + On success, the callback will be called with this instance. On validation error, the callback will be + called with an instance of `Sequelize.ValidationError`. This error will have a property for each of the + fields for which validation failed, with the error message for that field. + */ + save(options?: InstanceSaveOptions): Promise, + + /** + * Refresh the current instance in-place, i.e. update the object with current data from the DB and return + * the same object. This is different from doing a `find(Instance.id)`, because that would create and + return a new instance. With this method, all references to the Instance are updated with the new data + and no new objects are created. + */ + reload(options?: AnyFindOptions): Promise, + + /** + * Validate the attribute of this instance according to validation rules set in the model definition. + * + Emits null if and only if validation successful; otherwise an Error instance containing + { field name : [error msgs] } entries. + * @param options .skip An array of strings. All properties that are in this array will not be validated + */ + validate(options?: { + skip?: $Keys[] + }): Promise, + + /** + * This is the same as calling `set` and then calling `save`. + */ + update( + key: $Keys, + value: any, + options?: InstanceUpdateOptions): Promise, + update(keys: $Shape, options?: InstanceUpdateOptions): Promise, + updateAttributes( + key: $Keys, + value: any, + options?: InstanceUpdateOptions): Promise, + updateAttributes(keys: $Shape, options?: InstanceUpdateOptions): Promise, + + /** + * Destroy the row corresponding to this instance. Depending on your setting for paranoid, the row will + * either be completely deleted, or have its deletedAt timestamp set to the current time. + */ + destroy(options?: InstanceDestroyOptions): Promise, + + /** + * Restore the row corresponding to this instance. Only available for paranoid models. + */ + restore(options?: InstanceRestoreOptions): Promise, + + /** + * Increment the value of one or more columns. This is done in the database, which means it does not use + * the values currently stored on the Instance. The increment is done using a + ```sql + SET column = column + X + ``` + query. To get the correct value after an increment into the Instance you should do a reload. + + ```js + instance.increment('number') // increment number by 1 + instance.increment(['number', 'count'], { by: 2 }) // increment number and count by 2 + instance.increment({ answer: 42, tries: 1}, { by: 2 }) // increment answer by 42, and tries by 1. + // `by` is ignored, since each column has its own + // value + ``` + * @param fields If a string is provided, that column is incremented by the value of `by` given in options. + If an array is provided, the same is true for each column. + If and object is provided, each column is incremented by the value given. + */ + increment( + fields: $Keys | $Keys[] | {[key: $Keys]: number}, + options?: InstanceIncrementDecrementOptions): Promise, + + /** + * Decrement the value of one or more columns. This is done in the database, which means it does not use + * the values currently stored on the Instance. The decrement is done using a + ```sql + SET column = column - X + ``` + query. To get the correct value after an decrement into the Instance you should do a reload. + + ```js + instance.decrement('number') // decrement number by 1 + instance.decrement(['number', 'count'], { by: 2 }) // decrement number and count by 2 + instance.decrement({ answer: 42, tries: 1}, { by: 2 }) // decrement answer by 42, and tries by 1. + // `by` is ignored, since each column has its own + // value + ``` + * @param fields If a string is provided, that column is decremented by the value of `by` given in options. + If an array is provided, the same is true for each column. + If and object is provided, each column is decremented by the value given + */ + decrement( + fields: $Keys | $Keys[] | {[key: $Keys]: number}, + options?: InstanceIncrementDecrementOptions): Promise, + + /** + * Check whether all values of this and `other` Instance are the same + */ + equals(other: Model): boolean, + + /** + * Check if this is equal to one of `others` by calling equals + */ + equalsOneOf(others: Model[]): boolean, + + /** + * Convert the instance to a JSON representation. Proxies to calling `get` with no keys. This means get all + * values gotten from the DB, and apply all custom getters. + */ + toJSON(): TPlainAttributes, + } + + + + /** + * Most of the methods accept options and use only the logger property of the options. That's why the most used + * interface type for options in a method is separated here as another interface. + */ + declare export type QueryInterfaceOptions = { + /** + * A function that gets executed while running the query to log the sql. + */ + logging?: boolean | Function + } + + declare export type AddUniqueConstraintOptions = { + type: 'unique', + name?: string + } + + declare export type AddDefaultConstraintOptions = { + type: 'default', + name?: string, + defaultValue?: any + } + + declare export type AddCheckConstraintOptions = { + type: 'check', + name?: string, + where?: WhereOptions + } + + declare export type AddPrimaryKeyConstraintOptions = { + type: 'primary key', + name?: string + } + + declare export type AddForeignKeyConstraintOptions = { + type: 'foreign key', + name?: string, + references?: { + table: string, + field: string + }, + onDelete: string, + onUpdate: string + } + + declare export type AddConstraintOptions = + AddUniqueConstraintOptions | + AddDefaultConstraintOptions | + AddCheckConstraintOptions | + AddPrimaryKeyConstraintOptions | + AddForeignKeyConstraintOptions; + + + /** + * The interface that Sequelize uses to talk to all databases. + * + This interface is available through sequelize.QueryInterface. It should not be commonly used, but it's + referenced anyway, so it can be used. + */ + declare export interface QueryInterface { + /** + * Returns the dialect-specific sql generator. + * + We don't have a definition for the QueryGenerator, because I doubt it is commonly in use separately. + */ + QueryGenerator: any, + + /** + * Returns the current sequelize instance. + */ + sequelize: Sequelize, + + /** + * Queries the schema (table list). + * @param schema The schema to query. Applies only to Postgres. + */ + createSchema(schema?: string, options?: QueryInterfaceOptions): Promise, + + /** + * Drops the specified schema (table). + * @param schema The schema to query. Applies only to Postgres. + */ + dropSchema(schema?: string, options?: QueryInterfaceOptions): Promise, + + /** + * Drops all tables. + */ + dropAllSchemas(options?: QueryInterfaceOptions): Promise, + + /** + * Queries all table names in the database. + * @param options + */ + showAllSchemas(options?: QueryOptions): Promise, + + /** + * Return database version + */ + databaseVersion(options?: QueryInterfaceOptions): Promise, + + /** + * Creates a table with specified attributes. + * @param tableName Name of table to create + * @param attributes Hash of attributes, key is attribute name, value is data type + * @param options Query options. + */ + createTable( + tableName: string | { + schema?: string, + tableName?: string + }, + attributes: DefineAttributes, + options?: QueryOptions): Promise, + + /** + * Drops the specified table. + * @param tableName Table name. + * @param options Query options, particularly "force". + */ + dropTable(tableName: string, options?: QueryOptions): Promise, + + /** + * Drops all tables. + * @param options + */ + dropAllTables(options?: QueryOptions): Promise, + + /** + * Drops all defined enums + * @param options + */ + dropAllEnums(options?: QueryOptions): Promise, + + /** + * Renames a table + */ + renameTable( + before: string, + after: string, + options?: QueryInterfaceOptions): Promise, + + /** + * Returns all tables + */ + showAllTables(options?: QueryOptions): Promise, + + /** + * Describe a table + */ + describeTable( + tableName: string | { + schema?: string, + tableName?: string + }, + options?: string | { + schema?: string, + schemaDelimeter?: string, + logging?: boolean | Function + }): Promise, + + /** + * Adds a new column to a table + */ + addColumn( + table: string, + key: string, + attribute: DefineAttributeColumnOptions | DataTypeAbstract, + options?: QueryInterfaceOptions): Promise, + + /** + * Removes a column from a table + */ + removeColumn( + table: string, + attribute: string, + options?: QueryInterfaceOptions): Promise, + + /** + * Changes a column + */ + changeColumn( + tableName: string | { + schema?: string, + tableName?: string + }, + attributeName: string, + dataTypeOrOptions?: string | DataTypeAbstract | DefineAttributeColumnOptions, + options?: QueryInterfaceOptions): Promise, + + /** + * Renames a column + */ + renameColumn( + tableName: string | { + schema?: string, + tableName?: string + }, + attrNameBefore: string, + attrNameAfter: string, + options?: QueryInterfaceOptions): Promise, + + /** + * Adds a new index to a table + */ + addIndex( + tableName: string | Object, + options?: { + fields: Array, + unique?: boolean, + using?: string, + type?: IndexType, + name?: string, + where?: WhereOptions, + } + ): Promise, + + /** + * Shows the index of a table + */ + showIndex(tableName: string | Object, options?: QueryOptions): Promise, + + /** + * Put a name to an index + */ + nameIndexes(indexes: string[], rawTablename: string): Promise, + + /** + * Returns all foreign key constraints of a table + */ + getForeignKeysForTables(tableNames: string, options?: QueryInterfaceOptions): Promise, + + /** + * Removes an index of a table + */ + removeIndex( + tableName: string, + indexNameOrAttributes: string[] | string, + options?: QueryInterfaceOptions): Promise, + + /** + * Adds constraints to a table + */ + addConstraint( + tableName: string, + attributes: string[], + options?: AddConstraintOptions | QueryInterfaceOptions): Promise, + + /** + * Removes constraints from a table + */ + removeConstraint( + tableName: string, + constraintName: string, + options?: QueryInterfaceOptions): Promise, + + /** + * Inserts a new record + */ + insert( + instance: Model, + tableName: string, + values: Object, + options?: QueryOptions): Promise, + + /** + * Inserts or Updates a record in the database + */ + upsert( + tableName: string, + values: Object, + updateValues: Object, + model: Class>, + options?: QueryOptions): Promise, + + /** + * Inserts multiple records at once + */ + bulkInsert( + tableName: string, + records: Object[], + options?: QueryOptions, + attributes?: string[] | string): Promise, + + /** + * Updates a row + */ + update( + instance: Model, + tableName: string, + values: Object, + identifier: Object, + options?: QueryOptions): Promise, + + /** + * Updates multiple rows at once + */ + bulkUpdate( + tableName: string, + values: Object, + identifier: Object, + options?: QueryOptions, + attributes?: string[] | string): Promise, + + /** + * Deletes a row + */ + delete( + instance: Model, + tableName: string, + identifier: Object, + options?: QueryOptions): Promise, + + /** + * Deletes multiple rows at once + */ + bulkDelete( + tableName: string, + identifier: Object, + options?: QueryOptions, + model?: Class>): Promise, + + /** + * Returns selected rows + */ + select( + model: Class>, + tableName: string, + options?: QueryOptions): Promise, + + /** + * Increments a row value + */ + increment( + instance: Model, + tableName: string, + values: Object, + identifier: Object, + options?: QueryOptions): Promise, + + /** + * Selects raw without parsing the string into an object + */ + rawSelect( + tableName: string, + options: QueryOptions, + attributeSelector: string | string[], + model?: Class>): Promise, + + /** + * Postgres only. Creates a trigger on specified table to call the specified function with supplied + * parameters. + */ + createTrigger( + tableName: string, + triggerName: string, + timingType: string, + fireOnArray: any[], + functionName: string, + functionParams: any[], + optionsArray: string[], + options?: QueryInterfaceOptions): Promise, + + /** + * Postgres only. Drops the specified trigger. + */ + dropTrigger( + tableName: string, + triggerName: string, + options?: QueryInterfaceOptions): Promise, + + /** + * Postgres only. Renames a trigger + */ + renameTrigger( + tableName: string, + oldTriggerName: string, + newTriggerName: string, + options?: QueryInterfaceOptions): Promise, + + /** + * Postgres only. Create a function + */ + createFunction( + functionName: string, + params: any[], + returnType: string, + language: string, + body: string, + options?: QueryOptions): Promise, + + /** + * Postgres only. Drops a function + */ + dropFunction( + functionName: string, + params: any[], + options?: QueryInterfaceOptions): Promise, + + /** + * Postgres only. Rename a function + */ + renameFunction( + oldFunctionName: string, + params: any[], + newFunctionName: string, + options?: QueryInterfaceOptions): Promise, + + /** + * Escape an identifier (e.g. a table or attribute name). If force is true, the identifier will be quoted + * even if the `quoteIdentifiers` option is false. + */ + quoteIdentifier(identifier: string, force: boolean): string, + + /** + * Escape a table name + */ + quoteTable(identifier: string): string, + + /** + * Split an identifier into .-separated tokens and quote each part. If force is true, the identifier will be + * quoted even if the `quoteIdentifiers` option is false. + */ + quoteIdentifiers(identifiers: string, force: boolean): string, + + /** + * Escape a value (e.g. a string, number or date) + */ + escape(value?: string | number | Date): string, + + /** + * Set option for autocommit of a transaction + */ + setAutocommit( + transaction: Transaction, + value: boolean, + options?: QueryOptions): Promise, + + /** + * Set the isolation level of a transaction + */ + setIsolationLevel( + transaction: Transaction, + value: string, + options?: QueryOptions): Promise, + + /** + * Begin a new transaction + */ + startTransaction( + transaction: Transaction, + options?: QueryOptions): Promise, + + /** + * Defer constraints + */ + deferConstraints( + transaction: Transaction, + options?: QueryOptions): Promise, + + /** + * Commit an already started transaction + */ + commitTransaction( + transaction: Transaction, + options?: QueryOptions): Promise, + + /** + * Rollback ( revert ) a transaction that has'nt been commited + */ + rollbackTransaction( + transaction: Transaction, + options?: QueryOptions): Promise + } + + declare export type QueryTypes = { + SELECT: string, + INSERT: string, + UPDATE: string, + BULKUPDATE: string, + BULKDELETE: string, + DELETE: string, + UPSERT: string, + VERSION: string, + SHOWTABLES: string, + SHOWINDEXES: string, + DESCRIBE: string, + RAW: string, + FOREIGNKEYS: string + } + + + /** + * General column options + * @see Define + * @see AssociationForeignKeyOptions + */ + declare export type ColumnOptions = { + /** + * If false, the column will have a NOT NULL constraint, and a not null validation will be run before an + * instance is saved. + */ + allowNull?: boolean, + + /** + * If set, sequelize will map the attribute name to a different name in the database + */ + field?: string, + + /** + * A literal default value, a JavaScript function, or an SQL function (see `sequelize.fn`) + */ + defaultValue?: any + } + + + /** + * References options for the column's attributes + * @see AttributeColumnOptions + */ + declare export type DefineAttributeColumnReferencesOptions = { + /** + * If this column references another table, provide it here as a Model, or a string + */ + model: string | Class>, + + /** + * The column of the foreign table that this column references + */ + key?: string, + + /** + * When to check for the foreign key constraing + * + PostgreSQL only + */ + deferrable?: DeferrableInitiallyDeferred | + DeferrableInitiallyImmediate | + DeferrableNot | + DeferrableSetDeferred | + DeferrableSetImmediate + } + + + /** + * Column options for the model schema attributes + * @see Attributes + */ + declare export type DefineAttributeColumnOptions = { + /** + * A string or a data type + */ + type: string | DataTypeAbstract, + + /** + * If true, the column will get a unique constraint. If a string is provided, the column will be part of a + * composite unique index. If multiple columns have the same string, they will be part of the same unique + index + */ + unique?: boolean | string | { + name: string, + msg: string + }, + + /** + * Primary key flag + */ + primaryKey?: boolean, + + /** + * Is this field an auto increment field + */ + autoIncrement?: boolean, + + /** + * Comment for the database + */ + comment?: string, + + /** + * An object with reference configurations + */ + references?: string | Model | DefineAttributeColumnReferencesOptions, + + /** + * What should happen when the referenced key is updated. One of CASCADE, RESTRICT, SET DEFAULT, SET NULL or + * NO ACTION + */ + onUpdate?: string, + + /** + * What should happen when the referenced key is deleted. One of CASCADE, RESTRICT, SET DEFAULT, SET NULL or + * NO ACTION + */ + onDelete?: string, + + /** + * Provide a custom getter for this column. Use `this.getDataValue(String)` to manipulate the underlying + * values. + */ + get?: () => any, + + /** + * Provide a custom setter for this column. Use `this.setDataValue(String, Value)` to manipulate the + * underlying values. + */ + set?: (val: any) => void, + + /** + * An object of validations to execute for this column every time the model is saved. Can be either the + * name of a validation provided by validator.js, a validation function provided by extending validator.js + (see the + `DAOValidator` property for more details), or a custom validation function. Custom validation functions + are called with the value of the field, and can possibly take a second callback argument, to signal that + they are asynchronous. If the validator is sync, it should throw in the case of a failed validation, it + it is async, the callback should be called with the error text. + */ + validate?: DefineValidateOptions, + + /** + * Usage in object notation + * + ```js + sequelize.define('model', { + states: { + type: Sequelize.ENUM, + values: ['active', 'pending', 'deleted'] + } + }) + ``` + */ + values?: string[] + } & ColumnOptions + + + + /** + * Interface for Attributes provided for a column + * @see Sequelize.define + */ + declare export type DefineAttributes = { + [name: string]: string | DataTypeAbstract | DefineAttributeColumnOptions + } + + + /** + * Interface for query options + * @see Options + */ + declare export type QueryOptions = { + /** + * If true, sequelize will not try to format the results of the query, or build an instance of a model from + * the result + */ + raw?: boolean, + + /** + * The type of query you are executing. The query type affects how results are formatted before they are + * passed back. The type is a string, but `Sequelize.QueryTypes` is provided as convenience shortcuts. + */ + type?: string, + + /** + * If true, transforms objects with `.` separated property names into nested objects using + * [dottie.js](https://github.com/mickhansen/dottie.js). For example { 'user.username': 'john' } becomes + { user: { username: 'john' }}. When `nest` is true, the query type is assumed to be `'SELECT'`, + unless otherwise specified + + Defaults to false + */ + nest?: boolean, + + /** + * Sets the query type to `SELECT` and return a single row + */ + plain?: boolean, + + /** + * Either an object of named parameter replacements in the format `:param` or an array of unnamed + * replacements to replace `?` in your SQL. + */ + replacements?: Object | Array, + + /** + * Either an object of named bind parameter in the format `$param` or an array of unnamed + * bind parameter to replace `$1`, `$2`, ... in your SQL. + */ + bind?: Object | Array, + + /** + * Force the query to use the write pool, regardless of the query type. + * + Defaults to false + */ + useMaster?: boolean, + + /** + * A function that gets executed while running the query to log the sql. + */ + logging?: boolean | Function, + + /** + * A sequelize instance used to build the return instance + */ + instance?: Model, + + /** + * A sequelize model used to build the returned model instances (used to be called callee) + */ + model?: Class>, + + /** + * Set of flags that control when a query is automatically retried. + */ + retry?: RetryOptions, + + /** + * If false do not prepend the query with the search_path (Postgres only) + */ + supportsSearchPath?: boolean, + + /** + * Map returned fields to model's fields if `options.model` or `options.instance` is present. + * Mapping will occur before building the model instance. + */ + mapToModel?: boolean, + fieldMap?: { + [key: string]: string + } + } & SearchPathOptions & ReturningOptions + + + + /** + * Model validations, allow you to specify format/content/inheritance validations for each attribute of the + * model. + + Validations are automatically run on create, update and save. You can also call validate() to manually + validate an instance. + + The validations are implemented by validator.js. + */ + declare export type DefineValidateOptions = { + /** + * is: ["^[a-z]+$",'i'] // will only allow letters + * is: /^[a-z]+$/i // same as the previous example using real RegExp + */ + is?: string | Array| RegExp | { + msg: string, + args: string | Array| RegExp + }, + + /** + * not: ["[a-z]",'i'] // will not allow letters + */ + not?: string | Array| RegExp | { + msg: string, + args: string | Array| RegExp + }, + + /** + * checks for email format (foo@bar.com) + */ + isEmail?: boolean | { + msg: string + }, + + /** + * checks for url format (http://foo.com) + */ + isUrl?: boolean | { + msg: string + }, + + /** + * checks for IPv4 (129.89.23.1) or IPv6 format + */ + isIP?: boolean | { + msg: string + }, + + /** + * checks for IPv4 (129.89.23.1) + */ + isIPv4?: boolean | { + msg: string + }, + + /** + * checks for IPv6 format + */ + isIPv6?: boolean | { + msg: string + }, + + /** + * will only allow letters + */ + isAlpha?: boolean | { + msg: string + }, + + /** + * will only allow alphanumeric characters, so "_abc" will fail + */ + isAlphanumeric?: boolean | { + msg: string + }, + + /** + * will only allow numbers + */ + isNumeric?: boolean | { + msg: string + }, + + /** + * checks for valid integers + */ + isInt?: boolean | { + msg: string + }, + + /** + * checks for valid floating point numbers + */ + isFloat?: boolean | { + msg: string + }, + + /** + * checks for any numbers + */ + isDecimal?: boolean | { + msg: string + }, + + /** + * checks for lowercase + */ + isLowercase?: boolean | { + msg: string + }, + + /** + * checks for uppercase + */ + isUppercase?: boolean | { + msg: string + }, + + /** + * won't allow null + */ + notNull?: boolean | { + msg: string + }, + + /** + * only allows null + */ + isNull?: boolean | { + msg: string + }, + + /** + * don't allow empty strings + */ + notEmpty?: boolean | { + msg: string + }, + + /** + * only allow a specific value + */ + equals?: string | { + msg: string + }, + + /** + * force specific substrings + */ + contains?: string | { + msg: string + }, + + /** + * check the value is not one of these + */ + notIn?: string[][] | { + msg: string, + args: string[][] + }, + + /** + * check the value is one of these + */ + isIn?: string[][] | { + msg: string, + args: string[][] + }, + + /** + * don't allow specific substrings + */ + notContains?: string[] | string | { + msg: string, + args: string[] | string + }, + + /** + * only allow values with length between 2 and 10 + */ + len?: [number, number] | { + msg: string, + args: [number, number] + }, + + /** + * only allow uuids + */ + isUUID?: 3 | + 4 | + 5 | + 'all' | + { + msg: string, + args: number + }, + + /** + * only allow date strings + */ + isDate?: boolean | { + msg: string, + args: boolean + }, + + /** + * only allow date strings after a specific date + */ + isAfter?: string | { + msg: string, + args: string + }, + + /** + * only allow date strings before a specific date + */ + isBefore?: string | { + msg: string, + args: string + }, + + /** + * only allow values + */ + max?: number | { + msg: string, + args: number + }, + + /** + * only allow values>= 23 + */ + min?: number | { + msg: string, + args: number + }, + + /** + * only allow arrays + */ + isArray?: boolean | { + msg: string, + args: boolean + }, + + /** + * check for valid credit card numbers + */ + isCreditCard?: boolean | { + msg: string, + args: boolean + }, [name: string]: any + } + + declare export type IndexType = 'UNIQUE' | 'FULLTEXT' | 'SPATIAL' + + declare export type DefineIndexOptions = { + /** + * The index type + */ + indicesType?: IndexType, + + /** + * The name of the index. Default is __ + */ + indexName?: string, + + /** + * For FULLTEXT columns set your parser + */ + parser?: string, + + /** + * Set a type for the index, e.g. BTREE. See the documentation of the used dialect + */ + indexType?: string, + + /** + * A function that receives the sql query, e.g. console.log + */ + logging?: Function, + + /** + * A hash of attributes to limit your index(Filtered Indexes - MSSQL & PostgreSQL only) + */ + where?: WhereOptions + } + + declare export type IndexMethod = 'BTREE' | 'HASH' | 'GIST' | 'GIN' + + /** + * Interface for indexes property in DefineOptions + * @see DefineOptions + */ + declare export type DefineIndexesOptions = { + /** + * The name of the index. Defaults to model name + _ + fields concatenated + */ + name?: string, + + /** + * Index type. Only used by mysql. One of `UNIQUE`, `FULLTEXT` and `SPATIAL` + */ + index?: IndexType, + + /** + * The method to create the index by (`USING` statement in SQL). BTREE and HASH are supported by mysql and + * postgres, and postgres additionally supports GIST and GIN. + */ + method?: IndexMethod, + + /** + * Should the index by unique? Can also be triggered by setting type to `UNIQUE` + * + Defaults to false + */ + unique?: boolean, + + /** + * PostgreSQL will build the index without taking any write locks. Postgres only + * + Defaults to false + */ + concurrently?: boolean, + + /** + * An array of the fields to index. Each field can either be a string containing the name of the field, + * a sequelize object (e.g `sequelize.fn`), or an object with the following attributes: `attribute` + (field name), `length` (create a prefix index of length chars), `order` (the direction the column + should be sorted in), `collate` (the collation (sort order) for the column) + */ + fields?: Array, + + /** + * Method the index should use, for example 'gin' index. + */ + using?: string, + + /** + * Operator that should be used by gin index, see Built-in GIN Operator Classes + */ + operator?: string, + + /** + * Condition for partioal index + */ + where?: WhereOptions + } + + + /** + * Interface for name property in DefineOptions + * @see DefineOptions + */ + declare export type DefineNameOptions = { + /** + * Singular model name + */ + singular?: string, + + /** + * Plural model name + */ + plural?: string + } + + + /** + * Interface for getterMethods in DefineOptions + * @see DefineOptions + */ + declare export type DefineGetterMethodsOptions = { + [name: string]: () => any + } + + + /** + * Interface for setterMethods in DefineOptions + * @see DefineOptions + */ + declare export type DefineSetterMethodsOptions = { + [name: string]: (val: any) => void + } + + + /** + * Interface for Define Scope Options + * @see DefineOptions + */ + declare export type DefineScopeOptions = { + [scopeName: string]: AnyFindOptions | Function + } + + + /** + * Options for model definition + * @see Sequelize.define + */ + declare export type DefineOptions> = { + /** + * Define the default search scope to use for this model. Scopes have the same form as the options passed to + * find / findAll. + */ + defaultScope?: AnyFindOptions, + + /** + * More scopes, defined in the same way as defaultScope above. See `Model.scope` for more information about + * how scopes are defined, and what you can do with them + */ + scopes?: DefineScopeOptions, + + /** + * Don't persits null values. This means that all columns with null values will not be saved. + */ + omitNull?: boolean, + + /** + * Adds createdAt and updatedAt timestamps to the model. Default true. + */ + timestamps?: boolean, + + /** + * Calling destroy will not delete the model, but instead set a deletedAt timestamp if this is true. Needs + * timestamps=true to work. Default false. + */ + paranoid?: boolean, + + /** + * Converts all camelCased columns to underscored if true. Default false. + */ + underscored?: boolean, + + /** + * Converts camelCased model names to underscored tablenames if true. Default false. + */ + underscoredAll?: boolean, + + /** + * Indicates if the model's table has a trigger associated with it. Default false. + */ + hasTrigger?: boolean, + + /** + * If freezeTableName is true, sequelize will not try to alter the DAO name to get the table name. + * Otherwise, the dao name will be pluralized. Default false. + */ + freezeTableName?: boolean, + + /** + * An object with two attributes, `singular` and `plural`, which are used when this model is associated to + * others. + */ + name?: DefineNameOptions, + + /** + * Indexes for the provided database table + */ + indexes?: DefineIndexesOptions[], + + /** + * Override the name of the createdAt column if a string is provided, or disable it if false. Timestamps + * must be true. Not affected by underscored setting. + */ + createdAt?: string | boolean, + + /** + * Override the name of the deletedAt column if a string is provided, or disable it if false. Timestamps + * must be true. Not affected by underscored setting. + */ + deletedAt?: string | boolean, + + /** + * Override the name of the updatedAt column if a string is provided, or disable it if false. Timestamps + * must be true. Not affected by underscored setting. + */ + updatedAt?: string | boolean, + + /** + * Defaults to pluralized model name, unless freezeTableName is true, in which case it uses model name + * verbatim + */ + tableName?: string, + + /** + * Provide getter functions that work like those defined per column. If you provide a getter method with + * the + same name as a column, it will be used to access the value of that column. If you provide a name that + does not match a column, this function will act as a virtual getter, that can fetch multiple other + values + */ + getterMethods?: DefineGetterMethodsOptions, + + /** + * Provide setter functions that work like those defined per column. If you provide a setter method with + * the + same name as a column, it will be used to update the value of that column. If you provide a name that + does not match a column, this function will act as a virtual setter, that can act on and set other + values, but will not be persisted + */ + setterMethods?: DefineSetterMethodsOptions, + + /** + * Provide functions that are added to each instance (DAO). If you override methods provided by sequelize, + * you can access the original method using `this.constructor.super_.prototype`, e.g. + `this.constructor.super_.prototype.toJSON.apply(this, arguments)` + */ + instanceMethods?: Object, + + /** + * Provide functions that are added to the model (Model). If you override methods provided by sequelize, + * you can access the original method using `this.constructor.prototype`, e.g. + `this.constructor.prototype.find.apply(this, arguments)` + */ + classMethods?: Object, + schema?: string, + + /** + * You can also change the database engine, e.g. to MyISAM. InnoDB is the default. + */ + engine?: string, + charset?: string, + + /** + * Finaly you can specify a comment for the table in MySQL and PG + */ + comment?: string, + collate?: string, + + /** + * Set the initial AUTO_INCREMENT value for the table in MySQL. + */ + initialAutoIncrement?: string, + + /** + * An object of hook function that are called before and after certain lifecycle events. + * The possible hooks are: beforeValidate, afterValidate, beforeBulkCreate, beforeBulkDestroy, + beforeBulkUpdate, beforeCreate, beforeDestroy, beforeUpdate, afterCreate, afterDestroy, afterUpdate, + afterBulkCreate, afterBulkDestory and afterBulkUpdate. See Hooks for more information about hook + functions and their signatures. Each property can either be a function, or an array of functions. + */ + hooks?: HooksDefineOptions, + + /** + * An object of model wide validations. Validations have access to all model values via `this`. If the + * validator function takes an argument, it is asumed to be async, and is called with a callback that + accepts an optional error. + */ + validate?: DefineValidateOptions, + + /** + * Enable optimistic locking. When enabled, sequelize will add a version count attribute + * to the model and throw an OptimisticLockingError error when stale instances are saved. + Set to true or a string with the attribute name you want to use to enable. + */ + version?: boolean | string + } + + /** + * @see Model.options + */ + declare export type ResolvedDefineOptions> = { + /** + * Define the default search scope to use for this model. Scopes have the same form as the options passed to + * find / findAll. + */ + defaultScope: AnyFindOptions, + + /** + * More scopes, defined in the same way as defaultScope above. See `Model.scope` for more information about + * how scopes are defined, and what you can do with them + */ + scopes: DefineScopeOptions, + + /** + * Don't persits null values. This means that all columns with null values will not be saved. + */ + omitNull: boolean, + + /** + * Adds createdAt and updatedAt timestamps to the model. Default true. + */ + timestamps: boolean, + + /** + * Calling destroy will not delete the model, but instead set a deletedAt timestamp if this is true. Needs + * timestamps=true to work. Default false. + */ + paranoid: boolean, + + /** + * Converts all camelCased columns to underscored if true. Default false. + */ + underscored: boolean, + + /** + * Converts camelCased model names to underscored tablenames if true. Default false. + */ + underscoredAll: boolean, + + /** + * Indicates if the model's table has a trigger associated with it. Default false. + */ + hasTrigger?: boolean, + + /** + * If freezeTableName is true, sequelize will not try to alter the DAO name to get the table name. + * Otherwise, the dao name will be pluralized. Default false. + */ + freezeTableName: boolean, + + /** + * An object with two attributes, `singular` and `plural`, which are used when this model is associated to + * others. + */ + name: { + singular: string, + plural: string, + }, + + /** + * Indexes for the provided database table + */ + indexes: DefineIndexesOptions[], + + /** + * Override the name of the createdAt column if a string is provided, or disable it if false. Timestamps + * must be true. Not affected by underscored setting. + */ + createdAt?: string | boolean, + + /** + * Override the name of the deletedAt column if a string is provided, or disable it if false. Timestamps + * must be true. Not affected by underscored setting. + */ + deletedAt?: string | boolean, + + /** + * Override the name of the updatedAt column if a string is provided, or disable it if false. Timestamps + * must be true. Not affected by underscored setting. + */ + updatedAt?: string | boolean, + + /** + * Defaults to pluralized model name, unless freezeTableName is true, in which case it uses model name + * verbatim + */ + tableName?: string, + + /** + * Provide getter functions that work like those defined per column. If you provide a getter method with + * the + same name as a column, it will be used to access the value of that column. If you provide a name that + does not match a column, this function will act as a virtual getter, that can fetch multiple other + values + */ + getterMethods?: DefineGetterMethodsOptions, + + /** + * Provide setter functions that work like those defined per column. If you provide a setter method with + * the + same name as a column, it will be used to update the value of that column. If you provide a name that + does not match a column, this function will act as a virtual setter, that can act on and set other + values, but will not be persisted + */ + setterMethods?: DefineSetterMethodsOptions, + + /** + * Provide functions that are added to each instance (DAO). If you override methods provided by sequelize, + * you can access the original method using `this.constructor.super_.prototype`, e.g. + `this.constructor.super_.prototype.toJSON.apply(this, arguments)` + */ + instanceMethods?: Object, + + /** + * Provide functions that are added to the model (Model). If you override methods provided by sequelize, + * you can access the original method using `this.constructor.prototype`, e.g. + `this.constructor.prototype.find.apply(this, arguments)` + */ + classMethods?: Object, + schema: ?string, + schemaDelimeter: string, + + /** + * You can also change the database engine, e.g. to MyISAM. InnoDB is the default. + */ + engine?: string, + charset?: string, + + /** + * Finaly you can specify a comment for the table in MySQL and PG + */ + comment?: string, + collate?: string, + + /** + * Set the initial AUTO_INCREMENT value for the table in MySQL. + */ + initialAutoIncrement?: string, + + /** + * An object of hook function that are called before and after certain lifecycle events. + * The possible hooks are: beforeValidate, afterValidate, beforeBulkCreate, beforeBulkDestroy, + beforeBulkUpdate, beforeCreate, beforeDestroy, beforeUpdate, afterCreate, afterDestroy, afterUpdate, + afterBulkCreate, afterBulkDestory and afterBulkUpdate. See Hooks for more information about hook + functions and their signatures. Each property can either be a function, or an array of functions. + */ + hooks: HooksDefineOptions, + + /** + * An object of model wide validations. Validations have access to all model values via `this`. If the + * validator function takes an argument, it is asumed to be async, and is called with a callback that + accepts an optional error. + */ + validate: DefineValidateOptions, + + /** + * Enable optimistic locking. When enabled, sequelize will add a version count attribute + * to the model and throw an OptimisticLockingError error when stale instances are saved. + Set to true or a string with the attribute name you want to use to enable. + */ + version?: boolean | string, + + sequelize: Sequelize, + } + + + /** + * Sync Options + * @see Sequelize.sync + */ + declare export type SyncOptions = { + /** + * If force is true, each DAO will do DROP TABLE IF EXISTS ..., before it tries to create its own table + */ + force?: boolean, + + /** + * Match a regex against the database name before syncing, a safety check for cases where force: true is + * used in tests but not live code + */ + match?: RegExp, + + /** + * A function that logs sql queries, or false for no logging + */ + logging?: Function | boolean, + + /** + * The schema that the tables should be created in. This can be overriden for each table in sequelize.define + */ + schema?: string, + + /** + * Alters tables to fit models. Not recommended for production use. Deletes data in columns + * that were removed or had their type changed in the model. + */ + alter?: boolean, + + /** + * If hooks is true then beforeSync, afterSync, beforBulkSync, afterBulkSync hooks will be called + */ + hooks?: boolean, + + /** + * An optional parameter to specify the schema search_path (Postgres only) + */ + searchPath?: string + } + + declare export type SetOptions = {} + + + /** + * Connection Pool options + * @see Options + */ + declare export type PoolOptions = { + /** + * Maximum connections of the pool + */ + max?: number, + + /** + * Minimum connections of the pool + */ + min?: number, + + /** + * The maximum time, in milliseconds, that a connection can be idle before being released. + */ + idle?: number, + + /** + * The maximum time, in milliseconds, that pool will try to get connection before throwing error + */ + acquire?: number, + + /** + * A function that validates a connection. Called with client. The default function checks that client is an + * object, and that its state is not disconnected. + */ + validate?: (client?: any) => boolean, + evict?: number + } + + + /** + * Interface for replication Options in the sequelize constructor + * @see Options + */ + declare export type ReplicationOptions = { + read?: { + host?: string, + port?: string | number, + username?: string, + password?: string, + database?: string + }, + write?: { + host?: string, + port?: string | number, + username?: string, + password?: string, + database?: string + } + } + + + /** + * Interface for retry Options in the sequelize constructor and QueryOptions + * @see Options, QueryOptions + */ + declare export type RetryOptions = { + /** + * Only retry a query if the error matches one of these strings. + */ + match?: string[], + + /** + * How many times a failing query is automatically retried. Set to 0 to disable retrying on SQL_BUSY error. + */ + max?: number + } + + + /** + * Operator symbols to be used when querying data + */ + declare export type Operators = { + eq: Symbol, + ne: Symbol, + gte: Symbol, + gt: Symbol, + lte: Symbol, + lt: Symbol, + not: Symbol, + is: Symbol, + in: Symbol, + notIn: Symbol, + like: Symbol, + notLike: Symbol, + iLike: Symbol, + notILike: Symbol, + regexp: Symbol, + notRegexp: Symbol, + iRegexp: Symbol, + notIRegexp: Symbol, + between: Symbol, + notBetween: Symbol, + overlap: Symbol, + contains: Symbol, + contained: Symbol, + adjacent: Symbol, + strictLeft: Symbol, + strictRight: Symbol, + noExtendRight: Symbol, + noExtendLeft: Symbol, + and: Symbol, + or: Symbol, + any: Symbol, + all: Symbol, + values: Symbol, + col: Symbol, + placeholder: Symbol, + join: Symbol, + raw: Symbol, + Aliases: { + '$eq': Symbol, + '$ne': Symbol, + '$gte': Symbol, + '$gt': Symbol, + '$lte': Symbol, + '$lt': Symbol, + '$not': Symbol, + '$in': Symbol, + '$notIn': Symbol, + '$is': Symbol, + '$like': Symbol, + '$notLike': Symbol, + '$iLike': Symbol, + '$notILike': Symbol, + '$regexp': Symbol, + '$notRegexp': Symbol, + '$iRegexp': Symbol, + '$notIRegexp': Symbol, + '$between': Symbol, + '$notBetween': Symbol, + '$overlap': Symbol, + '$contains': Symbol, + '$contained': Symbol, + '$adjacent': Symbol, + '$strictLeft': Symbol, + '$strictRight': Symbol, + '$noExtendRight': Symbol, + '$noExtendLeft': Symbol, + '$and': Symbol, + '$or': Symbol, + '$any': Symbol, + '$all': Symbol, + '$values': Symbol, + '$col': Symbol, + '$raw': Symbol, + }, + LegacyAliases: { + ne: Symbol, + not: Symbol, + in: Symbol, + notIn: Symbol, + gte: Symbol, + gt: Symbol, + lte: Symbol, + lt: Symbol, + like: Symbol, + ilike: Symbol, + '$ilike': Symbol, + nlike: Symbol, + '$notlike': Symbol, + notilike: Symbol, + '..': Symbol, + between: Symbol, + '!..': Symbol, + notbetween: Symbol, + nbetween: Symbol, + overlap: Symbol, + '&&': Symbol, + '@>': Symbol, + '<@': Symbol, + '$eq': Symbol, + '$ne': Symbol, + '$gte': Symbol, + '$gt': Symbol, + '$lte': Symbol, + '$lt': Symbol, + '$not': Symbol, + '$in': Symbol, + '$notIn': Symbol, + '$is': Symbol, + '$like': Symbol, + '$notLike': Symbol, + '$iLike': Symbol, + '$notILike': Symbol, + '$regexp': Symbol, + '$notRegexp': Symbol, + '$iRegexp': Symbol, + '$notIRegexp': Symbol, + '$between': Symbol, + '$notBetween': Symbol, + '$overlap': Symbol, + '$contains': Symbol, + '$contained': Symbol, + '$adjacent': Symbol, + '$strictLeft': Symbol, + '$strictRight': Symbol, + '$noExtendRight': Symbol, + '$noExtendLeft': Symbol, + '$and': Symbol, + '$or': Symbol, + '$any': Symbol, + '$all': Symbol, + '$values': Symbol, + '$col': Symbol, + '$raw': Symbol, + } + } + + declare export type OperatorsAliases = { + [key: string]: Symbol, + } + + + /** + * Options for the constructor of Sequelize main class + */ + declare export type Options = { + /** + * The dialect of the database you are connecting to. One of mysql, postgres, sqlite, mariadb and mssql. + * + Defaults to 'mysql' + */ + dialect?: string, + + /** + * If specified, load the dialect library from this path. For example, if you want to use pg.js instead of + * pg when connecting to a pg database, you should specify 'pg.js' here + */ + dialectModulePath?: string, + + /** + * An object of additional options, which are passed directly to the connection library + */ + dialectOptions?: Object, + + /** + * Only used by sqlite. + * + Defaults to ':memory:' + */ + storage?: string, + + /** + * The host of the relational database. + * + Defaults to 'localhost' + */ + host?: string, + + /** + * The port of the relational database. + */ + port?: number, + + /** + * The protocol of the relational database. + * + Defaults to 'tcp' + */ + protocol?: string, + + /** + * The username which is used to authenticate against the database. + */ + username?: string, + + /** + * The password which is used to authenticate against the database. + */ + password?: string, + + /** + * The name of the database + */ + database?: string, + + /** + * Default options for model definitions. See sequelize.define for options + */ + define?: DefineOptions, + + /** + * Default options for sequelize.query + */ + query?: QueryOptions, + + /** + * Default options for sequelize.set + */ + set?: SetOptions, + + /** + * Default options for sequelize.sync + */ + sync?: SyncOptions, + + /** + * The timezone used when converting a date from the database into a JavaScript date. The timezone is also + * used to SET TIMEZONE when connecting to the server, to ensure that the result of NOW, CURRENT_TIMESTAMP + and other time related functions have in the right timezone. For best cross platform performance use the + format + +/-HH:MM. Will also accept string versions of timezones used by moment.js (e.g. 'America/Los_Angeles'); + this is useful to capture daylight savings time changes. + + Defaults to '+00:00' + */ + timezone?: string, + + /** + * A function that gets executed everytime Sequelize would log something. + * + Defaults to console.log + */ + logging?: boolean | Function, + + /** + * A flag that defines if null values should be passed to SQL queries or not. + * + Defaults to false + */ + omitNull?: boolean, + + /** + * A flag that defines if native library shall be used or not. Currently only has an effect for postgres + * + Defaults to false + */ + native?: boolean, + + /** + * Use read / write replication. To enable replication, pass an object, with two properties, read and write. + * Write should be an object (a single server for handling writes), and read an array of object (several + servers to handle reads). Each read/write server can have the following properties: `host`, `port`, + `username`, `password`, `database` + + Defaults to false + */ + replication?: ReplicationOptions, + + /** + * Set of flags that control when a query is automatically retried. + */ + retry?: RetryOptions, + + /** + * Run built in type validators on insert and update, + * e.g. validate that arguments passed to integer fields are integer-like. + + Defaults to false + */ + typeValidation?: boolean, + + /** + * Connection pool options + */ + pool?: PoolOptions, + + /** + * Set to `false` to make table names and attributes case-insensitive on Postgres and skip double quoting of + * them. + + Defaults to true + */ + quoteIdentifiers?: boolean, + + /** + * Set the default transaction isolation level. See `Sequelize.Transaction.ISOLATION_LEVELS` for possible + * options. + + Defaults to 'REPEATABLE_READ' + */ + isolationLevel?: TransactionIsolationLevel, + + /** + * Set the default transaction type. See `Sequelize.Transaction.TYPES` for possible + * options. + + Defaults to 'DEFERRED' + */ + transactionType?: TransactionType, + + /** + * Print query execution time in milliseconds when logging SQL. + * + Defaults to false + */ + benchmark?: boolean, + + /** + * String based operator alias, default value is true which will enable all operators alias. + * Pass object to limit set of aliased operators or false to disable completely. + */ + operatorsAliases?: boolean | OperatorsAliases + } + + declare export type QueryOptionsTransactionRequired = { + transaction: Transaction, + } + + declare export type ModelsHashInterface = { + [name: string]: Class> + } + + + /** + * This is the main class, the entry point to sequelize. To use it, you just need to + * import sequelize: + + ```js + var Sequelize = require('sequelize'); + ``` + + In addition to sequelize, the connection library for the dialect you want to use + should also be installed in your project. You don't need to import it however, as + sequelize will take care of that. + */ + declare export default class Sequelize { + constructor(database: string, username?: ?string, password?: ?string, options?: Options): Sequelize; + constructor(database: string, options?: Options): Sequelize; + constructor(options: Options): Sequelize; + + /** + * A modified version of bluebird promises, that allows listening for sql events + */ + static Promise: typeof Promise, + Promise: typeof Promise, + + /** + * Available query types for use with `sequelize.query` + */ + static QueryTypes: QueryTypes, + QueryTypes: QueryTypes, + + /** + * Exposes the validator.js object, so you can extend it with custom validation functions. + * The validator is exposed both on the instance, and on the constructor. + */ + static Validator: Validator, + Validator: Validator, + + /** + * A Model represents a table in the database. Sometimes you might also see it referred to as model, or + * simply as factory. This class should not be instantiated directly, it is created using sequelize.define, + and already created models can be loaded using sequelize.import + */ + static Model: typeof Model, + Model: typeof Model, + + /** + * A reference to the sequelize transaction class. Use this to access isolationLevels when creating a + * transaction + */ + static Transaction: typeof Transaction, + Transaction: typeof Transaction, + + /** + * A reference to the deferrable collection. Use this to access the different deferrable options. + */ + static Deferrable: Deferrable, + Deferrable: Deferrable, + + /** + * A reference to the sequelize instance class. + */ + static Op: Operators, + Op: Operators, + + /** + * Creates a object representing a database function. This can be used in search queries, both in where and + * order parts, and as default values in column definitions. If you want to refer to columns in your + function, you should use `sequelize.col`, so that the columns are properly interpreted as columns and + not a strings. + + Convert a user's username to upper case + ```js + instance.updateAttributes({ + username: self.sequelize.fn('upper', self.sequelize.col('username')) + }) + ``` + * @param fn The function you want to call + * @param args All further arguments will be passed as arguments to the function + */ + static fn(fn: string, ...args: any[]): fn, + fn(fn: string, ...args: any[]): fn, + + /** + * Creates a object representing a column in the DB. This is often useful in conjunction with + * `sequelize.fn`, since raw string arguments to fn will be escaped. + * @param col The name of the column + */ + static col(col: string): col, + col(col: string): col, + + /** + * Creates a object representing a call to the cast function. + * @param val The value to cast + * @param type The type to cast it to + */ + static cast(val: any, type: string): cast, + cast(val: any, type: string): cast, + + /** + * Creates a object representing a literal, i.e. something that will not be escaped. + * @param val + */ + static literal(val: any): literal, + literal(val: any): literal, + static asIs(val: any): literal, + asIs(val: any): literal, + + /** + * An AND query + * @param args Each argument will be joined by AND + */ + static and(...args: Array): AndOperator, + and(...args: Array): AndOperator, + + /** + * An OR query + * @param args Each argument will be joined by OR + */ + static or(...args: Array): OrOperator, + or(...args: Array): OrOperator, + + /** + * Creates an object representing nested where conditions for postgres's json data-type. + * @param conditionsOrPath A hash containing strings/numbers or other nested hash, a string using dot + notation or a string using postgres json syntax. + * @param value An optional value to compare against. Produces a string of the form " = + ''". + */ + static json( + conditionsOrPath: string | Object, + value?: string | number | boolean): json, + json( + conditionsOrPath: string | Object, + value?: string | number | boolean): json, + + /** + * A way of specifying attr = condition. + * + The attr can either be an object taken from `Model.rawAttributes` (for example `Model.rawAttributes.id` + or + `Model.rawAttributes.name`). The attribute should be defined in your model definition. The attribute can + also be an object from one of the sequelize utility functions (`sequelize.fn`, `sequelize.col` etc.) + + For string attributes, use the regular `{ where: { attr: something }}` syntax. If you don't want your + string to be escaped, use `sequelize.literal`. + * @param attr The attribute, which can be either an attribute object from `Model.rawAttributes` or a + sequelize object, for example an instance of `sequelize.fn`. For simple string attributes, use the + POJO syntax + * @param comparator Comparator + * @param logic The condition. Can be both a simply type, or a further condition (`.or`, `.and`, `.literal` + etc.) + */ + static where(attr: Object, comparator: string, logic: string | Object): where, + where(attr: Object, comparator: string, logic: string | Object): where, + static where(attr: Object, logic: string | Object): where, + where(attr: Object, logic: string | Object): where, + static condition(attr: Object, comparator: string, logic: string | Object): where, + condition(attr: Object, comparator: string, logic: string | Object): where, + static condition(attr: Object, logic: string | Object): where, + condition(attr: Object, logic: string | Object): where, + + static Error: typeof BaseError, + static ValidationError: typeof ValidationError, + static ValidationErrorItem: typeof ValidationErrorItem, + static DatabaseError: typeof DatabaseError, + static TimeoutError: typeof TimeoutError, + static UniqueConstraintError: typeof UniqueConstraintError, + static ExclusionConstraintError: typeof ExclusionConstraintError, + static ForeignKeyConstraintError: typeof ForeignKeyConstraintError, + static ConnectionError: typeof ConnectionError, + static ConnectionRefusedError: typeof ConnectionRefusedError, + static AccessDeniedError: typeof AccessDeniedError, + static HostNotFoundError: typeof HostNotFoundError, + static HostNotReachableError: typeof HostNotReachableError, + static InvalidConnectionError: typeof InvalidConnectionError, + static ConnectionTimedOutError: typeof ConnectionTimedOutError, + static EmptyResultError: typeof EmptyResultError, + + Error: typeof BaseError, + ValidationError: typeof ValidationError, + ValidationErrorItem: typeof ValidationErrorItem, + DatabaseError: typeof DatabaseError, + TimeoutError: typeof TimeoutError, + UniqueConstraintError: typeof UniqueConstraintError, + ExclusionConstraintError: typeof ExclusionConstraintError, + ForeignKeyConstraintError: typeof ForeignKeyConstraintError, + ConnectionError: typeof ConnectionError, + ConnectionRefusedError: typeof ConnectionRefusedError, + AccessDeniedError: typeof AccessDeniedError, + HostNotFoundError: typeof HostNotFoundError, + HostNotReachableError: typeof HostNotReachableError, + InvalidConnectionError: typeof InvalidConnectionError, + ConnectionTimedOutError: typeof ConnectionTimedOutError, + EmptyResultError: typeof EmptyResultError, + + static ABSTRACT: DataTypeAbstract, + static STRING: DataTypeString, + static CHAR: DataTypeChar, + static TEXT: DataTypeText, + static NUMBER: DataTypeNumber, + static INTEGER: DataTypeInteger, + static BIGINT: DataTypeBigInt, + static FLOAT: DataTypeFloat, + static TIME: DataTypeTime, + static DATE: DataTypeDate, + static DATEONLY: DataTypeDateOnly, + static BOOLEAN: DataTypeBoolean, + static NOW: DataTypeNow, + static BLOB: DataTypeBlob, + static DECIMAL: DataTypeDecimal, + static NUMERIC: DataTypeDecimal, + static UUID: DataTypeUUID, + static UUIDV1: DataTypeUUIDv1, + static UUIDV4: DataTypeUUIDv4, + static HSTORE: DataTypeHStore, + static JSON: DataTypeJSONType, + static JSONB: DataTypeJSONB, + static VIRTUAL: DataTypeVirtual, + static ARRAY: DataTypeArray, + static NONE: DataTypeVirtual, + static ENUM: DataTypeEnum, + static RANGE: DataTypeRange, + static REAL: DataTypeReal, + static DOUBLE: DataTypeDouble, + static GEOMETRY: DataTypeGeometry, + + /** + * Add a hook to the model + * @param hookType + * @param name Provide a name for the hook function. It can be used to remove the hook later or to order + hooks based on some sort of priority system in the future. + * @param fn The hook function + * @alias hook + */ + static addHook(hookType: string, name: string, fn: Function): this, + static addHook(hookType: string, fn: Function): this, + static hook(hookType: string, name: string, fn: Function): this, + static hook(hookType: string, fn: Function): this, + + /** + * Remove hook from the model + * @param hookType + * @param name + */ + static removeHook(hookType: string, name: string): this, + + /** + * Check whether the model has any hooks of this type + * @param hookType + * @alias hasHooks + */ + static hasHook(hookType: string): boolean, + static hasHooks(hookType: string): boolean, + + /** + * A hook that is run before validation + * @param name + * @param fn A callback function that is called with instance, options + */ + static beforeValidate( + name: string, + fn: AsyncFn2, Object>): void, + static beforeValidate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after validation + * @param name + * @param fn A callback function that is called with instance, options + */ + static afterValidate( + name: string, + fn: AsyncFn2, Object>): void, + static afterValidate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after validation + * @param name + * @param fn A callback function that is called with instance, options + */ + static validationFailed( + name: string, + fn: AsyncFn3, Object, ValidationError>): void, + static validationFailed(fn: AsyncFn3, Object, ValidationError>): void, + + /** + * A hook that is run before creating a single instance + * @param name + * @param fn A callback function that is called with attributes, options + */ + static beforeCreate( + name: string, + fn: AsyncFn2, Object>): void, + static beforeCreate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after creating a single instance + * @param name + * @param fn A callback function that is called with attributes, options + */ + static afterCreate( + name: string, + fn: AsyncFn2, Object>): void, + static afterCreate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run before destroying a single instance + * @param name + * @param fn A callback function that is called with instance, options + * @alias beforeDelete + */ + static beforeDestroy( + name: string, + fn: AsyncFn2, Object>): void, + static beforeDestroy(fn: AsyncFn2, Object>): void, + static beforeDelete( + name: string, + fn: AsyncFn2, Object>): void, + static beforeDelete(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after destroying a single instance + * @param name + * @param fn A callback function that is called with instance, options + * @alias afterDelete + */ + static afterDestroy( + name: string, + fn: AsyncFn2, Object>): void, + static afterDestroy(fn: AsyncFn2, Object>): void, + static afterDelete( + name: string, + fn: AsyncFn2, Object>): void, + static afterDelete(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run before updating a single instance + * @param name + * @param fn A callback function that is called with instance, options + */ + static beforeUpdate( + name: string, + fn: AsyncFn2, Object>): void, + static beforeUpdate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after updating a single instance + * @param name + * @param fn A callback function that is called with instance, options + */ + static afterUpdate( + name: string, + fn: AsyncFn2, Object>): void, + static afterUpdate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run before creating instances in bulk + * @param name + * @param fn A callback function that is called with instances, options + */ + static beforeBulkCreate( + name: string, + fn: AsyncFn2[], Object>): void, + static beforeBulkCreate(fn: AsyncFn2[], Object>): void, + + /** + * A hook that is run after creating instances in bulk + * @param name + * @param fn A callback function that is called with instances, options + * @name afterBulkCreate + */ + static afterBulkCreate( + name: string, + fn: AsyncFn2[], Object>): void, + static afterBulkCreate(fn: AsyncFn2[], Object>): void, + + /** + * A hook that is run before destroying instances in bulk + * @param name + * @param fn A callback function that is called with options + * @alias beforeBulkDelete + */ + static beforeBulkDestroy(name: string, fn: AsyncFn1): void, + static beforeBulkDestroy(fn: AsyncFn1): void, + static beforeBulkDelete(name: string, fn: AsyncFn1): void, + static beforeBulkDelete(fn: AsyncFn1): void, + + /** + * A hook that is run after destroying instances in bulk + * @param name + * @param fn A callback function that is called with options + * @alias afterBulkDelete + */ + static afterBulkDestroy(name: string, fn: AsyncFn1): void, + static afterBulkDestroy(fn: AsyncFn1): void, + static afterBulkDelete(name: string, fn: AsyncFn1): void, + static afterBulkDelete(fn: AsyncFn1): void, + + /** + * A hook that is run after updating instances in bulk + * @param name + * @param fn A callback function that is called with options + */ + static beforeBulkUpdate(name: string, fn: AsyncFn1): void, + static beforeBulkUpdate(fn: AsyncFn1): void, + + /** + * A hook that is run after updating instances in bulk + * @param name + * @param fn A callback function that is called with options + */ + static afterBulkUpdate(name: string, fn: AsyncFn1): void, + static afterBulkUpdate(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query + * @param name + * @param fn A callback function that is called with options + */ + static beforeFind(name: string, fn: AsyncFn1): void, + static beforeFind(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query, after any { include: {all: ...} } options are expanded + * @param name + * @param fn A callback function that is called with options + */ + static beforeFindAfterExpandIncludeAll(name: string, fn: AsyncFn1): void, + static beforeFindAfterExpandIncludeAll(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query, after all option parsing is complete + * @param name + * @param fn A callback function that is called with options + */ + static beforeFindAfterOptions(name: string, fn: AsyncFn1): void, + static beforeFindAfterOptions(fn: AsyncFn1): void, + + /** + * A hook that is run after a find (select) query + * @param name + * @param fn A callback function that is called with instance(s), options + */ + static afterFind( + name: string, + AsyncFn2 | Model[], Object>): void, + static afterFind( + AsyncFn2 | Model[], Object>): void, + + /** + * A hook that is run before a define call + * @param name + * @param fn A callback function that is called with attributes, options + */ + static beforeDefine( + name: string, + fn: AsyncFn2): void, + static beforeDefine(fn: AsyncFn2): void, + + /** + * A hook that is run after a define call + * @param name + * @param fn A callback function that is called with factory + */ + static afterDefine(name: string, fn: AsyncFn1, any>>): void, + static afterDefine(fn: AsyncFn1, any>>): void, + + /** + * A hook that is run before Sequelize() call + * @param name + * @param fn A callback function that is called with config, options + */ + static beforeInit(name: string, fn: AsyncFn2): void, + static beforeInit(fn: AsyncFn2): void, + + /** + * A hook that is run after Sequelize() call + * @param name + * @param fn A callback function that is called with sequelize + */ + static afterInit(name: string, fn: AsyncFn1): void, + static afterInit(fn: AsyncFn1): void, + + /** + * A hook that is run before Model.sync call + * @param name + * @param fn A callback function that is called with options passed to Model.sync + */ + static beforeSync(name: string, fn: AsyncFn1): void, + static beforeSync(fn: AsyncFn1): void, + + /** + * A hook that is run after Model.sync call + * @param name + * @param fn A callback function that is called with options passed to Model.sync + */ + static afterSync(name: string, fn: AsyncFn1): void, + static afterSync(fn: AsyncFn1): void, + + /** + * A hook that is run before sequelize.sync call + * @param name + * @param fn A callback function that is called with options passed to sequelize.sync + */ + static beforeBulkSync(name: string, fn: AsyncFn1): void, + static beforeBulkSync(fn: AsyncFn1): void, + + /** + * A hook that is run after sequelize.sync call + * @param name + * @param fn A callback function that is called with options passed to sequelize.sync + */ + static afterBulkSync(name: string, fn: AsyncFn1): void, + static afterBulkSync(fn: AsyncFn1): void, + + /** + * Add a hook to the model + * @param hookType + * @param name Provide a name for the hook function. It can be used to remove the hook later or to order + hooks based on some sort of priority system in the future. + * @param fn The hook function + * @alias hook + */ + addHook(hookType: string, name: string, fn: Function): this, + addHook(hookType: string, fn: Function): this, + hook(hookType: string, name: string, fn: Function): this, + hook(hookType: string, fn: Function): this, + + /** + * Remove hook from the model + * @param hookType + * @param name + */ + removeHook(hookType: string, name: string): this, + + /** + * Check whether the model has any hooks of this type + * @param hookType + * @alias hasHooks + */ + hasHook(hookType: string): boolean, + hasHooks(hookType: string): boolean, + + /** + * A hook that is run before validation + * @param name + * @param fn A callback function that is called with instance, options + */ + beforeValidate( + name: string, + fn: AsyncFn2, Object>): void, + beforeValidate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after validation + * @param name + * @param fn A callback function that is called with instance, options + */ + afterValidate( + name: string, + fn: AsyncFn2, Object>): void, + afterValidate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after validation + * @param name + * @param fn A callback function that is called with instance, options + */ + validationFailed( + name: string, + fn: AsyncFn3, Object, ValidationError>): void, + validationFailed(fn: AsyncFn3, Object, ValidationError>): void, + + /** + * A hook that is run before creating a single instance + * @param name + * @param fn A callback function that is called with attributes, options + */ + beforeCreate( + name: string, + fn: AsyncFn2, Object>): void, + beforeCreate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after creating a single instance + * @param name + * @param fn A callback function that is called with attributes, options + */ + afterCreate( + name: string, + fn: AsyncFn2, Object>): void, + afterCreate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run before destroying a single instance + * @param name + * @param fn A callback function that is called with instance, options + * @alias beforeDelete + */ + beforeDestroy( + name: string, + fn: AsyncFn2, Object>): void, + beforeDestroy(fn: AsyncFn2, Object>): void, + beforeDelete( + name: string, + fn: AsyncFn2, Object>): void, + beforeDelete(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after destroying a single instance + * @param name + * @param fn A callback function that is called with instance, options + * @alias afterDelete + */ + afterDestroy( + name: string, + fn: AsyncFn2, Object>): void, + afterDestroy(fn: AsyncFn2, Object>): void, + afterDelete( + name: string, + fn: AsyncFn2, Object>): void, + afterDelete(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run before updating a single instance + * @param name + * @param fn A callback function that is called with instance, options + */ + beforeUpdate( + name: string, + fn: AsyncFn2, Object>): void, + beforeUpdate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run after updating a single instance + * @param name + * @param fn A callback function that is called with instance, options + */ + afterUpdate( + name: string, + fn: AsyncFn2, Object>): void, + afterUpdate(fn: AsyncFn2, Object>): void, + + /** + * A hook that is run before creating instances in bulk + * @param name + * @param fn A callback function that is called with instances, options + */ + beforeBulkCreate( + name: string, + fn: AsyncFn2[], Object>): void, + beforeBulkCreate(fn: AsyncFn2[], Object>): void, + + /** + * A hook that is run after creating instances in bulk + * @param name + * @param fn A callback function that is called with instances, options + * @name afterBulkCreate + */ + afterBulkCreate( + name: string, + fn: AsyncFn2[], Object>): void, + afterBulkCreate(fn: AsyncFn2[], Object>): void, + + /** + * A hook that is run before destroying instances in bulk + * @param name + * @param fn A callback function that is called with options + * @alias beforeBulkDelete + */ + beforeBulkDestroy(name: string, fn: AsyncFn1): void, + beforeBulkDestroy(fn: AsyncFn1): void, + beforeBulkDelete(name: string, fn: AsyncFn1): void, + beforeBulkDelete(fn: AsyncFn1): void, + + /** + * A hook that is run after destroying instances in bulk + * @param name + * @param fn A callback function that is called with options + * @alias afterBulkDelete + */ + afterBulkDestroy(name: string, fn: AsyncFn1): void, + afterBulkDestroy(fn: AsyncFn1): void, + afterBulkDelete(name: string, fn: AsyncFn1): void, + afterBulkDelete(fn: AsyncFn1): void, + + /** + * A hook that is run after updating instances in bulk + * @param name + * @param fn A callback function that is called with options + */ + beforeBulkUpdate(name: string, fn: AsyncFn1): void, + beforeBulkUpdate(fn: AsyncFn1): void, + + /** + * A hook that is run after updating instances in bulk + * @param name + * @param fn A callback function that is called with options + */ + afterBulkUpdate(name: string, fn: AsyncFn1): void, + afterBulkUpdate(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query + * @param name + * @param fn A callback function that is called with options + */ + beforeFind(name: string, fn: AsyncFn1): void, + beforeFind(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query, after any { include: {all: ...} } options are expanded + * @param name + * @param fn A callback function that is called with options + */ + beforeFindAfterExpandIncludeAll(name: string, fn: AsyncFn1): void, + beforeFindAfterExpandIncludeAll(fn: AsyncFn1): void, + + /** + * A hook that is run before a find (select) query, after all option parsing is complete + * @param name + * @param fn A callback function that is called with options + */ + beforeFindAfterOptions(name: string, fn: AsyncFn1): void, + beforeFindAfterOptions(fn: AsyncFn1): void, + + /** + * A hook that is run after a find (select) query + * @param name + * @param fn A callback function that is called with instance(s), options + */ + afterFind( + name: string, + AsyncFn2 | Model[], Object>): void, + afterFind( + AsyncFn2 | Model[], Object>): void, + + /** + * A hook that is run before a define call + * @param name + * @param fn A callback function that is called with attributes, options + */ + beforeDefine( + name: string, + fn: AsyncFn2): void, + beforeDefine(fn: AsyncFn2): void, + + /** + * A hook that is run after a define call + * @param name + * @param fn A callback function that is called with factory + */ + afterDefine(name: string, fn: AsyncFn1, any>>): void, + afterDefine(fn: AsyncFn1, any>>): void, + + /** + * A hook that is run before Sequelize() call + * @param name + * @param fn A callback function that is called with config, options + */ + beforeInit(name: string, fn: AsyncFn2): void, + beforeInit(fn: AsyncFn2): void, + + /** + * A hook that is run after Sequelize() call + * @param name + * @param fn A callback function that is called with sequelize + */ + afterInit(name: string, fn: AsyncFn1): void, + afterInit(fn: AsyncFn1): void, + + /** + * A hook that is run before Model.sync call + * @param name + * @param fn A callback function that is called with options passed to Model.sync + */ + beforeSync(name: string, fn: AsyncFn1): void, + beforeSync(fn: AsyncFn1): void, + + /** + * A hook that is run after Model.sync call + * @param name + * @param fn A callback function that is called with options passed to Model.sync + */ + afterSync(name: string, fn: AsyncFn1): void, + afterSync(fn: AsyncFn1): void, + + /** + * A hook that is run before sequelize.sync call + * @param name + * @param fn A callback function that is called with options passed to sequelize.sync + */ + beforeBulkSync(name: string, fn: AsyncFn1): void, + beforeBulkSync(fn: AsyncFn1): void, + + /** + * A hook that is run after sequelize.sync call + * @param name + * @param fn A callback function that is called with options passed to sequelize.sync + */ + afterBulkSync(name: string, fn: AsyncFn1): void, + afterBulkSync(fn: AsyncFn1): void, + + /** + * Defined models. + */ + models: ModelsHashInterface, + + /** + * Defined options. + */ + options: Options, + + /** + * Returns the specified dialect. + */ + getDialect(): string, + + /** + * Returns an instance of QueryInterface. + */ + getQueryInterface(): QueryInterface, + + /** + * Define a new model, representing a table in the DB. + * + The table columns are define by the hash that is given as the second argument. Each attribute of the + hash + represents a column. A short table definition might look like this: + + ```js + sequelize.define('modelName', { + columnA: { + type: Sequelize.BOOLEAN, + validate: { + is: ["[a-z]",'i'], // will only allow letters + max: 23, // only allow values <= 23 + isIn: { + args: [['en', 'zh']], + msg: "Must be English or Chinese" + } + }, + field: 'column_a' + // Other attributes here + }, + columnB: Sequelize.STRING, + columnC: 'MY VERY OWN COLUMN TYPE' + }) + + sequelize.models.modelName // The model will now be available in models under the name given to define + ``` + + As shown above, column definitions can be either strings, a reference to one of the datatypes that are + predefined on the Sequelize constructor, or an object that allows you to specify both the type of the + column, and other attributes such as default values, foreign key constraints and custom setters and + getters. + + For a list of possible data types, see + http://docs.sequelizejs.com/en/latest/docs/models-definition/#data-types + + For more about getters and setters, see + http://docs.sequelizejs.com/en/latest/docs/models-definition/#getters-setters + + For more about instance and class methods, see + http://docs.sequelizejs.com/en/latest/docs/models-definition/#expansion-of-models + + For more about validation, see + http://docs.sequelizejs.com/en/latest/docs/models-definition/#validations + * @param modelName The name of the model. The model will be stored in `sequelize.models` under this name + * @param attributes An object, where each attribute is a column of the table. Each column can be either a + DataType, a string or a type-description object, with the properties described below: + * @param options These options are merged with the default define options provided to the Sequelize + constructor + */ + define>( + modelName: string, + attributes: DefineAttributes, + options?: DefineOptions): Class, + + /** + * Fetch a Model which is already defined + * @param modelName The name of a model defined with Sequelize.define + */ + model>>(modelName: string): ModelClass, + + /** + * Checks whether a model with the given name is defined + * @param modelName The name of a model defined with Sequelize.define + */ + isDefined(modelName: string): boolean, + + /** + * Imports a model defined in another file + * + Imported models are cached, so multiple calls to import with the same path will not load the file + multiple times + + See https://github.com/sequelize/sequelize/blob/master/examples/using-multiple-model-files/Task.js for a + short example of how to define your models in separate files so that they can be imported by + sequelize.import + * @param path The path to the file that holds the model you want to import. If the part is relative, it + will be resolved relatively to the calling file + * @param defineFunction An optional function that provides model definitions. Useful if you do not + want to use the module root as the define function + */ + import>>( + path: string, + defineFunction?: ( + sequelize: Sequelize, + dataTypes: DataTypes) => ModelClass): ModelClass, + + /** + * Execute a query on the DB, with the posibility to bypass all the sequelize goodness. + * + By default, the function will return two arguments: an array of results, and a metadata object, + containing number of affected rows etc. Use `.spread` to access the results. + + If you are running a type of query where you don't need the metadata, for example a `SELECT` query, you + can pass in a query type to make sequelize format the results: + + ```js + sequelize.query('SELECT...').spread(function (results, metadata) { + // Raw query - use spread + }); + + sequelize.query('SELECT...', { type: sequelize.QueryTypes.SELECT }).then(function (results) { + // SELECT query - use then + }) + ``` + * @param sql + * @param options Query options + */ + query( + sql: string | { + query: string, + values: any[] + }, + options?: QueryOptions): Promise, + + /** + * Execute a query which would set an environment or user variable. The variables are set per connection, + * so this function needs a transaction. + + Only works for MySQL. + * @param variables Object with multiple variables. + * @param options Query options. + */ + set( + variables: Object, + options: QueryOptionsTransactionRequired): Promise, + + /** + * Escape value. + * @param value Value that needs to be escaped + */ + escape(value: string): string, + + /** + * Create a new database schema. + * + Note,that this is a schema in the + [postgres sense of the word](http://www.postgresql.org/docs/9.1/static/ddl-schemas.html), + not a database table. In mysql and sqlite, this command will do nothing. + * @param schema Name of the schema + * @param options Options supplied + * @param options .logging A function that logs sql queries, or false for no logging + */ + createSchema(schema: string, options: { + logging?: boolean | Function + }): Promise, + + /** + * Show all defined schemas + * + Note,that this is a schema in the + [postgres sense of the word](http://www.postgresql.org/docs/9.1/static/ddl-schemas.html), + not a database table. In mysql and sqlite, this will show all tables. + * @param options Options supplied + * @param options .logging A function that logs sql queries, or false for no logging + */ + showAllSchemas(options: { + logging?: boolean | Function + }): Promise, + + /** + * Drop a single schema + * + Note,that this is a schema in the + [postgres sense of the word](http://www.postgresql.org/docs/9.1/static/ddl-schemas.html), + not a database table. In mysql and sqlite, this drop a table matching the schema name + * @param schema Name of the schema + * @param options Options supplied + * @param options .logging A function that logs sql queries, or false for no logging + */ + dropSchema(schema: string, options: { + logging?: boolean | Function + }): Promise, + + /** + * Drop all schemas + * + Note,that this is a schema in the + [postgres sense of the word](http://www.postgresql.org/docs/9.1/static/ddl-schemas.html), + not a database table. In mysql and sqlite, this is the equivalent of drop all tables. + * @param options Options supplied + * @param options .logging A function that logs sql queries, or false for no logging + */ + dropAllSchemas(options: { + logging?: boolean | Function + }): Promise, + + /** + * Sync all defined models to the DB. + * @param options Sync Options + */ + sync(options?: SyncOptions): Promise, + + /** + * Truncate all tables defined through the sequelize models. This is done + * by calling Model.truncate() on each model. + * @param The options passed to Model.destroy in addition to truncate + * @param .transaction] + * @param .logging] A function that logs sql queries, or false for no logging + */ + truncate(options?: DestroyOptions): Promise, + + /** + * Drop all tables defined through this sequelize instance. This is done by calling Model.drop on each model + * @see {Model#drop} for options + * @param options The options passed to each call to Model.drop + */ + drop(options?: DropOptions): Promise, + + /** + * Test the connection by trying to authenticate + * @param options Query Options for authentication + */ + authenticate(options?: QueryOptions): Promise, + validate(options?: QueryOptions): Promise, + + /** + * Start a transaction. When using transactions, you should pass the transaction in the options argument + * in order for the query to happen under that transaction + + ```js + sequelize.transaction().then(function (t) { + return User.find(..., { transaction: t}).then(function (user) { + return user.updateAttributes(..., { transaction: t}); + }) + .then(t.commit.bind(t)) + .catch(t.rollback.bind(t)); + }) + ``` + + A syntax for automatically committing or rolling back based on the promise chain resolution is also + supported: + + ```js + sequelize.transaction(function (t) { // Note that we use a callback rather than a promise.then() + return User.find(..., { transaction: t}).then(function (user) { + return user.updateAttributes(..., { transaction: t}); + }); + }).then(function () { + // Commited + }).catch(function (err) { + // Rolled back + console.error(err); + }); + ``` + + If you have [CLS](https://github.com/othiym23/node-continuation-local-storage) enabled, the transaction + will automatically be passed to any query that runs witin the callback. To enable CLS, add it do your + project, create a namespace and set it on the sequelize constructor: + + ```js + var cls = require('continuation-local-storage'), + ns = cls.createNamespace('....'); + var Sequelize = require('sequelize'); + Sequelize.cls = ns; + ``` + Note, that CLS is enabled for all sequelize instances, and all instances will share the same namespace + * @param options Transaction Options + * @param autoCallback Callback for the transaction + */ + transaction>(autoCallback: Fn): Promise, + transaction>( + options: TransactionOptions, + autoCallback: Fn): Promise, + transaction(options?: TransactionOptions): Promise, + + /** + * Close all connections used by this sequelize instance, and free all references so the instance can be + * garbage collected. + + Normally this is done on process exit, so you only need to call this method if you are creating multiple + instances, and want to garbage collect some of them. + */ + close(): Promise, + + /** + * Returns the database version + */ + databaseVersion(): Promise, + } + + + + /** + * Validator Interface + */ + declare export type Validator = { + notEmpty(str: string): boolean, + len(str: string, min: number, max: number): boolean, + isUrl(str: string): boolean, + isIPv6(str: string): boolean, + isIPv4(str: string): boolean, + notIn(str: string, values: string[]): boolean, + regex(str: string, pattern: string, modifiers: string): boolean, + notRegex(str: string, pattern: string, modifiers: string): boolean, + isDecimal(str: string): boolean, + min(str: string, val: number): boolean, + max(str: string, val: number): boolean, + not(str: string, pattern: string, modifiers: string): boolean, + contains(str: string, element: string[]): boolean, + notContains(str: string, element: string[]): boolean, + is(str: string, pattern: string, modifiers: string): boolean + } + + + /** + * The transaction object is used to identify a running transaction. It is created by calling + * `Sequelize.transaction()`. + + To run a query under a transaction, you should pass the transaction in the options object. + */ + declare export class Transaction { + /** + * Commit the transaction + */ + commit(): Promise, + + /** + * Rollback (abort) the transaction + */ + rollback(): Promise, + + /** + * Isolations levels can be set per-transaction by passing `options.isolationLevel` to + * `sequelize.transaction`. Default to `REPEATABLE_READ` but you can override the default isolation level + by passing + `options.isolationLevel` in `new Sequelize`. + + The possible isolations levels to use when starting a transaction: + + ```js + { + READ_UNCOMMITTED: "READ_UNCOMMITTED", + READ_COMMITTED: "READ_COMMITTED", + REPEATABLE_READ: "REPEATABLE_READ", + SERIALIZABLE: "SERIALIZABLE" + } + ``` + + Pass in the desired level as the first argument: + + ```js + return sequelize.transaction({ + isolationLevel: Sequelize.Transaction.SERIALIZABLE + }, function (t) { + + // your transactions + + }).then(function(result) { + // transaction has been committed. Do something after the commit if required. + }).catch(function(err) { + // do something with the err. + }); + ``` + * @see ISOLATION_LEVELS + */ + static ISOLATION_LEVELS: TransactionIsolationLevels, + ISOLATION_LEVELS: TransactionIsolationLevels, + + /** + * Transaction type can be set per-transaction by passing `options.type` to + * `sequelize.transaction`. Default to `DEFERRED` but you can override the default isolation level + by passing `options.transactionType` in `new Sequelize`. + + The transaction types to use when starting a transaction: + + ```js + { + DEFERRED: "DEFERRED", + IMMEDIATE: "IMMEDIATE", + EXCLUSIVE: "EXCLUSIVE" + } + ``` + + Pass in the transaction type the first argument: + + ```js + return sequelize.transaction({ + type: Sequelize.Transaction.EXCLUSIVE + }, function (t) { + + // your transactions + + }).then(function(result) { + // transaction has been committed. Do something after the commit if required. + }).catch(function(err) { + // do something with the err. + }); + ``` + * @see Sequelize.Transaction.TYPES + */ + static TYPES: TransactionTypes, + TYPES: TransactionTypes, + + /** + * Possible options for row locking. Used in conjuction with `find` calls: + * + ```js + t1 // is a transaction + t1.LOCK.UPDATE, + t1.LOCK.SHARE, + t1.LOCK.KEY_SHARE, // Postgres 9.3+ only + t1.LOCK.NO_KEY_UPDATE // Postgres 9.3+ only + ``` + + Usage: + ```js + t1 // is a transaction + Model.findAll({ + where: ..., + transaction: t1, + lock: t1.LOCK... + }); + ``` + + Postgres also supports specific locks while eager loading by using OF: + ```js + UserModel.findAll({ + where: ..., + include: [TaskModel, ...], + transaction: t1, + lock: { + level: t1.LOCK..., + of: UserModel + } + }); + ``` + UserModel will be locked but TaskModel won't! + */ + static LOCK: TransactionLock, + LOCK: TransactionLock, + } + + declare export type TransactionIsolationLevelReadUncommitted = 'READ_UNCOMMITTED'; + + declare export type TransactionIsolationLevelReadCommitted = 'READ_COMMITTED'; + + declare export type TransactionIsolationLevelRepeatableRead = 'REPEATABLE_READ'; + + declare export type TransactionIsolationLevelSerializable = 'SERIALIZABLE'; + + declare export type TransactionIsolationLevel = TransactionIsolationLevelReadUncommitted | TransactionIsolationLevelReadCommitted | TransactionIsolationLevelRepeatableRead | TransactionIsolationLevelSerializable; + + + /** + * Isolations levels can be set per-transaction by passing `options.isolationLevel` to `sequelize.transaction`. + * Default to `REPEATABLE_READ` but you can override the default isolation level by passing + `options.isolationLevel` in `new Sequelize`. + */ + declare export type TransactionIsolationLevels = { + READ_UNCOMMITTED: TransactionIsolationLevelReadUncommitted, + READ_COMMITTED: TransactionIsolationLevelReadCommitted, + REPEATABLE_READ: TransactionIsolationLevelRepeatableRead, + SERIALIZABLE: TransactionIsolationLevelSerializable + } + + declare export type TransactionTypeDeferred = 'DEFERRED'; + + declare export type TransactionTypeImmediate = 'IMMEDIATE'; + + declare export type TransactionTypeExclusive = 'EXCLUSIVE'; + + declare export type TransactionType = TransactionTypeDeferred | TransactionTypeImmediate | TransactionTypeExclusive; + + + /** + * Transaction type can be set per-transaction by passing `options.type` to `sequelize.transaction`. + * Default to `DEFERRED` but you can override the default isolation level by passing + `options.transactionType` in `new Sequelize`. + */ + declare export type TransactionTypes = { + DEFERRED: TransactionTypeDeferred, + IMMEDIATE: TransactionTypeImmediate, + EXCLUSIVE: TransactionTypeExclusive + } + + declare export type TransactionLockLevelUpdate = 'UPDATE'; + + declare export type TransactionLockLevelShare = 'SHARE'; + + declare export type TransactionLockLevelKeyShare = 'KEY_SHARE'; + + declare export type TransactionLockLevelNoKeyUpdate = 'NO_KEY_UPDATE'; + + declare export type TransactionLockLevel = + TransactionLockLevelUpdate | + TransactionLockLevelShare | + TransactionLockLevelKeyShare | + TransactionLockLevelNoKeyUpdate; + + /** + * Possible options for row locking. Used in conjuction with `find` calls: + */ + declare export type TransactionLock = { + UPDATE: TransactionLockLevelUpdate, + SHARE: TransactionLockLevelShare, + KEY_SHARE: TransactionLockLevelKeyShare, + NO_KEY_UPDATE: TransactionLockLevelNoKeyUpdate + } + + + /** + * Options provided when the transaction is created + * @see sequelize.transaction() + */ + declare export type TransactionOptions = { + autocommit?: boolean, + + /** + * See `Sequelize.Transaction.ISOLATION_LEVELS` for possible options + */ + isolationLevel?: TransactionIsolationLevel, + + /** + * See `Sequelize.Transaction.TYPES` for possible options + */ + type?: TransactionType, + + /** + * A function that gets executed while running the query to log the sql. + */ + logging?: Function + } + + declare type TransactionAutoCallback = (t:Transaction) => Promise | T + + declare export interface fn { + fn: string, + args: any[] + } + + declare export interface col { + col: string + } + + declare export interface cast { + val: any, + type: string + } + + declare export interface literal { + val: any + } + + declare export interface json { + conditions?: Object, + path?: string, + value?: string | number | boolean + } + + declare export interface where { + attribute: Object, + comparator?: string, + logic: string | Object + } +} + diff --git a/flow-typed/npm/sequelize_vx.x.x.js b/flow-typed/npm/sequelize_vx.x.x.js deleted file mode 100644 index b00bd22d..00000000 --- a/flow-typed/npm/sequelize_vx.x.x.js +++ /dev/null @@ -1,465 +0,0 @@ -// flow-typed signature: 7c0fc5993310ac2892be5f92674f6b5c -// flow-typed version: <>/sequelize_v3.24.1/flow_v0.49.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'sequelize' - * - * 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 'sequelize' { - 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 'sequelize/lib/associations/base' { - declare module.exports: any; -} - -declare module 'sequelize/lib/associations/belongs-to-many' { - declare module.exports: any; -} - -declare module 'sequelize/lib/associations/belongs-to' { - declare module.exports: any; -} - -declare module 'sequelize/lib/associations/has-many' { - declare module.exports: any; -} - -declare module 'sequelize/lib/associations/has-one' { - declare module.exports: any; -} - -declare module 'sequelize/lib/associations/helpers' { - declare module.exports: any; -} - -declare module 'sequelize/lib/associations/index' { - declare module.exports: any; -} - -declare module 'sequelize/lib/associations/mixin' { - declare module.exports: any; -} - -declare module 'sequelize/lib/data-types' { - declare module.exports: any; -} - -declare module 'sequelize/lib/deferrable' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/abstract/connection-manager' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/abstract/index' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/abstract/query-generator' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/abstract/query' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mariadb/index' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mssql/connection-manager' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mssql/data-types' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mssql/index' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mssql/query-generator' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mssql/query-interface' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mssql/query' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mssql/resource-lock' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mysql/connection-manager' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mysql/data-types' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mysql/index' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mysql/query-generator' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mysql/query-interface' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/mysql/query' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/parserStore' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/postgres/connection-manager' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/postgres/data-types' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/postgres/hstore' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/postgres/index' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/postgres/query-generator' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/postgres/query' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/postgres/range' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/sqlite/connection-manager' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/sqlite/data-types' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/sqlite/index' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/sqlite/query-generator' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/sqlite/query-interface' { - declare module.exports: any; -} - -declare module 'sequelize/lib/dialects/sqlite/query' { - declare module.exports: any; -} - -declare module 'sequelize/lib/errors' { - declare module.exports: any; -} - -declare module 'sequelize/lib/hooks' { - declare module.exports: any; -} - -declare module 'sequelize/lib/instance-validator' { - declare module.exports: any; -} - -declare module 'sequelize/lib/instance' { - declare module.exports: any; -} - -declare module 'sequelize/lib/model-manager' { - declare module.exports: any; -} - -declare module 'sequelize/lib/model' { - declare module.exports: any; -} - -declare module 'sequelize/lib/model/attribute' { - declare module.exports: any; -} - -declare module 'sequelize/lib/plugins/counter-cache' { - declare module.exports: any; -} - -declare module 'sequelize/lib/promise' { - declare module.exports: any; -} - -declare module 'sequelize/lib/query-interface' { - declare module.exports: any; -} - -declare module 'sequelize/lib/query-types' { - declare module.exports: any; -} - -declare module 'sequelize/lib/sequelize' { - declare module.exports: any; -} - -declare module 'sequelize/lib/sql-string' { - declare module.exports: any; -} - -declare module 'sequelize/lib/transaction' { - declare module.exports: any; -} - -declare module 'sequelize/lib/utils' { - declare module.exports: any; -} - -declare module 'sequelize/lib/utils/parameter-validator' { - declare module.exports: any; -} - -declare module 'sequelize/lib/utils/validator-extras' { - declare module.exports: any; -} - -declare module 'sequelize/sscce_template' { - declare module.exports: any; -} - -declare module 'sequelize/sscce' { - declare module.exports: any; -} - -declare module 'sequelize/test-app' { - declare module.exports: any; -} - -// Filename aliases -declare module 'sequelize/index' { - declare module.exports: $Exports<'sequelize'>; -} -declare module 'sequelize/index.js' { - declare module.exports: $Exports<'sequelize'>; -} -declare module 'sequelize/lib/associations/base.js' { - declare module.exports: $Exports<'sequelize/lib/associations/base'>; -} -declare module 'sequelize/lib/associations/belongs-to-many.js' { - declare module.exports: $Exports<'sequelize/lib/associations/belongs-to-many'>; -} -declare module 'sequelize/lib/associations/belongs-to.js' { - declare module.exports: $Exports<'sequelize/lib/associations/belongs-to'>; -} -declare module 'sequelize/lib/associations/has-many.js' { - declare module.exports: $Exports<'sequelize/lib/associations/has-many'>; -} -declare module 'sequelize/lib/associations/has-one.js' { - declare module.exports: $Exports<'sequelize/lib/associations/has-one'>; -} -declare module 'sequelize/lib/associations/helpers.js' { - declare module.exports: $Exports<'sequelize/lib/associations/helpers'>; -} -declare module 'sequelize/lib/associations/index.js' { - declare module.exports: $Exports<'sequelize/lib/associations/index'>; -} -declare module 'sequelize/lib/associations/mixin.js' { - declare module.exports: $Exports<'sequelize/lib/associations/mixin'>; -} -declare module 'sequelize/lib/data-types.js' { - declare module.exports: $Exports<'sequelize/lib/data-types'>; -} -declare module 'sequelize/lib/deferrable.js' { - declare module.exports: $Exports<'sequelize/lib/deferrable'>; -} -declare module 'sequelize/lib/dialects/abstract/connection-manager.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/abstract/connection-manager'>; -} -declare module 'sequelize/lib/dialects/abstract/index.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/abstract/index'>; -} -declare module 'sequelize/lib/dialects/abstract/query-generator.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/abstract/query-generator'>; -} -declare module 'sequelize/lib/dialects/abstract/query.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/abstract/query'>; -} -declare module 'sequelize/lib/dialects/mariadb/index.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mariadb/index'>; -} -declare module 'sequelize/lib/dialects/mssql/connection-manager.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mssql/connection-manager'>; -} -declare module 'sequelize/lib/dialects/mssql/data-types.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mssql/data-types'>; -} -declare module 'sequelize/lib/dialects/mssql/index.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mssql/index'>; -} -declare module 'sequelize/lib/dialects/mssql/query-generator.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mssql/query-generator'>; -} -declare module 'sequelize/lib/dialects/mssql/query-interface.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mssql/query-interface'>; -} -declare module 'sequelize/lib/dialects/mssql/query.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mssql/query'>; -} -declare module 'sequelize/lib/dialects/mssql/resource-lock.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mssql/resource-lock'>; -} -declare module 'sequelize/lib/dialects/mysql/connection-manager.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mysql/connection-manager'>; -} -declare module 'sequelize/lib/dialects/mysql/data-types.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mysql/data-types'>; -} -declare module 'sequelize/lib/dialects/mysql/index.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mysql/index'>; -} -declare module 'sequelize/lib/dialects/mysql/query-generator.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mysql/query-generator'>; -} -declare module 'sequelize/lib/dialects/mysql/query-interface.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mysql/query-interface'>; -} -declare module 'sequelize/lib/dialects/mysql/query.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/mysql/query'>; -} -declare module 'sequelize/lib/dialects/parserStore.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/parserStore'>; -} -declare module 'sequelize/lib/dialects/postgres/connection-manager.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/postgres/connection-manager'>; -} -declare module 'sequelize/lib/dialects/postgres/data-types.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/postgres/data-types'>; -} -declare module 'sequelize/lib/dialects/postgres/hstore.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/postgres/hstore'>; -} -declare module 'sequelize/lib/dialects/postgres/index.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/postgres/index'>; -} -declare module 'sequelize/lib/dialects/postgres/query-generator.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/postgres/query-generator'>; -} -declare module 'sequelize/lib/dialects/postgres/query.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/postgres/query'>; -} -declare module 'sequelize/lib/dialects/postgres/range.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/postgres/range'>; -} -declare module 'sequelize/lib/dialects/sqlite/connection-manager.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/sqlite/connection-manager'>; -} -declare module 'sequelize/lib/dialects/sqlite/data-types.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/sqlite/data-types'>; -} -declare module 'sequelize/lib/dialects/sqlite/index.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/sqlite/index'>; -} -declare module 'sequelize/lib/dialects/sqlite/query-generator.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/sqlite/query-generator'>; -} -declare module 'sequelize/lib/dialects/sqlite/query-interface.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/sqlite/query-interface'>; -} -declare module 'sequelize/lib/dialects/sqlite/query.js' { - declare module.exports: $Exports<'sequelize/lib/dialects/sqlite/query'>; -} -declare module 'sequelize/lib/errors.js' { - declare module.exports: $Exports<'sequelize/lib/errors'>; -} -declare module 'sequelize/lib/hooks.js' { - declare module.exports: $Exports<'sequelize/lib/hooks'>; -} -declare module 'sequelize/lib/instance-validator.js' { - declare module.exports: $Exports<'sequelize/lib/instance-validator'>; -} -declare module 'sequelize/lib/instance.js' { - declare module.exports: $Exports<'sequelize/lib/instance'>; -} -declare module 'sequelize/lib/model-manager.js' { - declare module.exports: $Exports<'sequelize/lib/model-manager'>; -} -declare module 'sequelize/lib/model.js' { - declare module.exports: $Exports<'sequelize/lib/model'>; -} -declare module 'sequelize/lib/model/attribute.js' { - declare module.exports: $Exports<'sequelize/lib/model/attribute'>; -} -declare module 'sequelize/lib/plugins/counter-cache.js' { - declare module.exports: $Exports<'sequelize/lib/plugins/counter-cache'>; -} -declare module 'sequelize/lib/promise.js' { - declare module.exports: $Exports<'sequelize/lib/promise'>; -} -declare module 'sequelize/lib/query-interface.js' { - declare module.exports: $Exports<'sequelize/lib/query-interface'>; -} -declare module 'sequelize/lib/query-types.js' { - declare module.exports: $Exports<'sequelize/lib/query-types'>; -} -declare module 'sequelize/lib/sequelize.js' { - declare module.exports: $Exports<'sequelize/lib/sequelize'>; -} -declare module 'sequelize/lib/sql-string.js' { - declare module.exports: $Exports<'sequelize/lib/sql-string'>; -} -declare module 'sequelize/lib/transaction.js' { - declare module.exports: $Exports<'sequelize/lib/transaction'>; -} -declare module 'sequelize/lib/utils.js' { - declare module.exports: $Exports<'sequelize/lib/utils'>; -} -declare module 'sequelize/lib/utils/parameter-validator.js' { - declare module.exports: $Exports<'sequelize/lib/utils/parameter-validator'>; -} -declare module 'sequelize/lib/utils/validator-extras.js' { - declare module.exports: $Exports<'sequelize/lib/utils/validator-extras'>; -} -declare module 'sequelize/sscce_template.js' { - declare module.exports: $Exports<'sequelize/sscce_template'>; -} -declare module 'sequelize/sscce.js' { - declare module.exports: $Exports<'sequelize/sscce'>; -} -declare module 'sequelize/test-app.js' { - declare module.exports: $Exports<'sequelize/test-app'>; -} diff --git a/flow-typed/npm/slate-collapse-on-escape_vx.x.x.js b/flow-typed/npm/slate-collapse-on-escape_vx.x.x.js index 44d4ef0a..a04cfb94 100644 --- a/flow-typed/npm/slate-collapse-on-escape_vx.x.x.js +++ b/flow-typed/npm/slate-collapse-on-escape_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ceb66cd19deeec2122aa0d724de47f9d -// flow-typed version: <>/slate-collapse-on-escape_v^0.2.1/flow_v0.49.1 +// flow-typed signature: fb8acb4981f8f021dade0e38b6631063 +// flow-typed version: <>/slate-collapse-on-escape_v^0.6.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,25 +22,25 @@ declare module 'slate-collapse-on-escape' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'slate-collapse-on-escape/dist/index' { +declare module 'slate-collapse-on-escape/dist/slate-collapse-on-escape' { declare module.exports: any; } -declare module 'slate-collapse-on-escape/example/build' { +declare module 'slate-collapse-on-escape/dist/slate-collapse-on-escape.min' { declare module.exports: any; } -declare module 'slate-collapse-on-escape/example/index' { +declare module 'slate-collapse-on-escape/lib/index' { declare module.exports: any; } // Filename aliases -declare module 'slate-collapse-on-escape/dist/index.js' { - declare module.exports: $Exports<'slate-collapse-on-escape/dist/index'>; +declare module 'slate-collapse-on-escape/dist/slate-collapse-on-escape.js' { + declare module.exports: $Exports<'slate-collapse-on-escape/dist/slate-collapse-on-escape'>; } -declare module 'slate-collapse-on-escape/example/build.js' { - declare module.exports: $Exports<'slate-collapse-on-escape/example/build'>; +declare module 'slate-collapse-on-escape/dist/slate-collapse-on-escape.min.js' { + declare module.exports: $Exports<'slate-collapse-on-escape/dist/slate-collapse-on-escape.min'>; } -declare module 'slate-collapse-on-escape/example/index.js' { - declare module.exports: $Exports<'slate-collapse-on-escape/example/index'>; +declare module 'slate-collapse-on-escape/lib/index.js' { + declare module.exports: $Exports<'slate-collapse-on-escape/lib/index'>; } diff --git a/flow-typed/npm/slate-edit-code_vx.x.x.js b/flow-typed/npm/slate-edit-code_vx.x.x.js index 1e378fbc..d6b2b5b2 100644 --- a/flow-typed/npm/slate-edit-code_vx.x.x.js +++ b/flow-typed/npm/slate-edit-code_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 0706f5ce510ce22cc1b5b25c805b18d8 -// flow-typed version: <>/slate-edit-code_v^0.10.2/flow_v0.49.1 +// flow-typed signature: 10bebc2e6b3bb07eca5614fd2b7f6e87 +// flow-typed version: <>/slate-edit-code_v^0.14.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,6 +22,42 @@ declare module 'slate-edit-code' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'slate-edit-code/dist/changes/dedentLines' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/changes/indentLines' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/changes/index' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/changes/toggleCodeBlock' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/changes/unwrapCodeBlock' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/changes/unwrapCodeBlockByKey' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/changes/wrapCodeBlock' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/changes/wrapCodeBlockByKey' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/core' { + declare module.exports: any; +} + declare module 'slate-edit-code/dist/deserializeCode' { declare module.exports: any; } @@ -38,6 +74,42 @@ declare module 'slate-edit-code/dist/getIndent' { declare module.exports: any; } +declare module 'slate-edit-code/dist/handlers/index' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/handlers/onBackspace' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/handlers/onEnter' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/handlers/onKeyDown' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/handlers/onModEnter' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/handlers/onPaste' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/handlers/onSelectAll' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/handlers/onShiftTab' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/handlers/onTab' { + declare module.exports: any; +} + declare module 'slate-edit-code/dist/index' { declare module.exports: any; } @@ -106,6 +178,42 @@ declare module 'slate-edit-code/dist/transforms/wrapCodeBlockByKey' { declare module.exports: any; } +declare module 'slate-edit-code/dist/utils/deserializeCode' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/utils/getCurrentCode' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/utils/getCurrentIndent' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/utils/getIndent' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/utils/index' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/utils/isInCodeBlock' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/validation/index' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/validation/schema' { + declare module.exports: any; +} + +declare module 'slate-edit-code/dist/validation/validateNode' { + declare module.exports: any; +} + declare module 'slate-edit-code/example/bundle' { declare module.exports: any; } @@ -114,115 +222,162 @@ declare module 'slate-edit-code/example/main' { declare module.exports: any; } +declare module 'slate-edit-code/example/value' { + declare module.exports: any; +} + declare module 'slate-edit-code/tests/all' { declare module.exports: any; } -declare module 'slate-edit-code/tests/backspace-empty-code/transform' { +declare module 'slate-edit-code/tests/backspace-empty-code/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/backspace-start/transform' { +declare module 'slate-edit-code/tests/backspace-start/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/enter-end-offset/transform' { +declare module 'slate-edit-code/tests/enter-end-offset/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/enter-mid-offset/transform' { +declare module 'slate-edit-code/tests/enter-mid-offset/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/enter-start-offset/transform' { +declare module 'slate-edit-code/tests/enter-start-offset/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/enter-with-indent/transform' { +declare module 'slate-edit-code/tests/enter-with-indent/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/isincodeblock-true/transform' { +declare module 'slate-edit-code/tests/isincodeblock-true/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/on-exit-block/transform' { +declare module 'slate-edit-code/tests/on-exit-block/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/paste-middle/transform' { +declare module 'slate-edit-code/tests/paste-middle/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/schema-no-marks/transform' { +declare module 'slate-edit-code/tests/schema-multiline-text/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/schema-no-orphan-line/transform' { +declare module 'slate-edit-code/tests/schema-no-marks/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/schema-only-text/transform' { +declare module 'slate-edit-code/tests/schema-no-orphan-line/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/select-all/transform' { +declare module 'slate-edit-code/tests/schema-only-text-2/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/shift-tab-middle-offset/transform' { +declare module 'slate-edit-code/tests/schema-only-text/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/shift-tab-multilines/transform' { +declare module 'slate-edit-code/tests/schema-single-text/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/tab-middle-offset/transform' { +declare module 'slate-edit-code/tests/select-all/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/tab-multilines/transform' { +declare module 'slate-edit-code/tests/shift-tab-middle-offset/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/tab-start-offset/transform' { +declare module 'slate-edit-code/tests/shift-tab-multilines/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/togglecodeblock-code/transform' { +declare module 'slate-edit-code/tests/simulate-key' { declare module.exports: any; } -declare module 'slate-edit-code/tests/togglecodeblock-normal/transform' { +declare module 'slate-edit-code/tests/tab-middle-offset/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/unwrapcodeblock-multi-lines/transform' { +declare module 'slate-edit-code/tests/tab-multilines/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/unwrapcodeblock-normal/transform' { +declare module 'slate-edit-code/tests/tab-start-offset/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/unwrapcodeblock-selection/transform' { +declare module 'slate-edit-code/tests/togglecodeblock-code/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/wrapcodeblock-normal/transform' { +declare module 'slate-edit-code/tests/togglecodeblock-normal/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/wrapcodeblock-selection/transform' { +declare module 'slate-edit-code/tests/unwrapcodeblock-multi-lines/change' { declare module.exports: any; } -declare module 'slate-edit-code/tests/wrapcodeblock-with-inline/transform' { +declare module 'slate-edit-code/tests/unwrapcodeblock-normal/change' { + declare module.exports: any; +} + +declare module 'slate-edit-code/tests/unwrapcodeblock-selection/change' { + declare module.exports: any; +} + +declare module 'slate-edit-code/tests/wrapcodeblock-normal/change' { + declare module.exports: any; +} + +declare module 'slate-edit-code/tests/wrapcodeblock-selection/change' { + declare module.exports: any; +} + +declare module 'slate-edit-code/tests/wrapcodeblock-with-inline/change' { declare module.exports: any; } // Filename aliases +declare module 'slate-edit-code/dist/changes/dedentLines.js' { + declare module.exports: $Exports<'slate-edit-code/dist/changes/dedentLines'>; +} +declare module 'slate-edit-code/dist/changes/indentLines.js' { + declare module.exports: $Exports<'slate-edit-code/dist/changes/indentLines'>; +} +declare module 'slate-edit-code/dist/changes/index.js' { + declare module.exports: $Exports<'slate-edit-code/dist/changes/index'>; +} +declare module 'slate-edit-code/dist/changes/toggleCodeBlock.js' { + declare module.exports: $Exports<'slate-edit-code/dist/changes/toggleCodeBlock'>; +} +declare module 'slate-edit-code/dist/changes/unwrapCodeBlock.js' { + declare module.exports: $Exports<'slate-edit-code/dist/changes/unwrapCodeBlock'>; +} +declare module 'slate-edit-code/dist/changes/unwrapCodeBlockByKey.js' { + declare module.exports: $Exports<'slate-edit-code/dist/changes/unwrapCodeBlockByKey'>; +} +declare module 'slate-edit-code/dist/changes/wrapCodeBlock.js' { + declare module.exports: $Exports<'slate-edit-code/dist/changes/wrapCodeBlock'>; +} +declare module 'slate-edit-code/dist/changes/wrapCodeBlockByKey.js' { + declare module.exports: $Exports<'slate-edit-code/dist/changes/wrapCodeBlockByKey'>; +} +declare module 'slate-edit-code/dist/core.js' { + declare module.exports: $Exports<'slate-edit-code/dist/core'>; +} declare module 'slate-edit-code/dist/deserializeCode.js' { declare module.exports: $Exports<'slate-edit-code/dist/deserializeCode'>; } @@ -235,6 +390,33 @@ declare module 'slate-edit-code/dist/getCurrentIndent.js' { declare module 'slate-edit-code/dist/getIndent.js' { declare module.exports: $Exports<'slate-edit-code/dist/getIndent'>; } +declare module 'slate-edit-code/dist/handlers/index.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/index'>; +} +declare module 'slate-edit-code/dist/handlers/onBackspace.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/onBackspace'>; +} +declare module 'slate-edit-code/dist/handlers/onEnter.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/onEnter'>; +} +declare module 'slate-edit-code/dist/handlers/onKeyDown.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/onKeyDown'>; +} +declare module 'slate-edit-code/dist/handlers/onModEnter.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/onModEnter'>; +} +declare module 'slate-edit-code/dist/handlers/onPaste.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/onPaste'>; +} +declare module 'slate-edit-code/dist/handlers/onSelectAll.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/onSelectAll'>; +} +declare module 'slate-edit-code/dist/handlers/onShiftTab.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/onShiftTab'>; +} +declare module 'slate-edit-code/dist/handlers/onTab.js' { + declare module.exports: $Exports<'slate-edit-code/dist/handlers/onTab'>; +} declare module 'slate-edit-code/dist/index.js' { declare module.exports: $Exports<'slate-edit-code/dist/index'>; } @@ -286,90 +468,132 @@ declare module 'slate-edit-code/dist/transforms/wrapCodeBlock.js' { declare module 'slate-edit-code/dist/transforms/wrapCodeBlockByKey.js' { declare module.exports: $Exports<'slate-edit-code/dist/transforms/wrapCodeBlockByKey'>; } +declare module 'slate-edit-code/dist/utils/deserializeCode.js' { + declare module.exports: $Exports<'slate-edit-code/dist/utils/deserializeCode'>; +} +declare module 'slate-edit-code/dist/utils/getCurrentCode.js' { + declare module.exports: $Exports<'slate-edit-code/dist/utils/getCurrentCode'>; +} +declare module 'slate-edit-code/dist/utils/getCurrentIndent.js' { + declare module.exports: $Exports<'slate-edit-code/dist/utils/getCurrentIndent'>; +} +declare module 'slate-edit-code/dist/utils/getIndent.js' { + declare module.exports: $Exports<'slate-edit-code/dist/utils/getIndent'>; +} +declare module 'slate-edit-code/dist/utils/index.js' { + declare module.exports: $Exports<'slate-edit-code/dist/utils/index'>; +} +declare module 'slate-edit-code/dist/utils/isInCodeBlock.js' { + declare module.exports: $Exports<'slate-edit-code/dist/utils/isInCodeBlock'>; +} +declare module 'slate-edit-code/dist/validation/index.js' { + declare module.exports: $Exports<'slate-edit-code/dist/validation/index'>; +} +declare module 'slate-edit-code/dist/validation/schema.js' { + declare module.exports: $Exports<'slate-edit-code/dist/validation/schema'>; +} +declare module 'slate-edit-code/dist/validation/validateNode.js' { + declare module.exports: $Exports<'slate-edit-code/dist/validation/validateNode'>; +} declare module 'slate-edit-code/example/bundle.js' { declare module.exports: $Exports<'slate-edit-code/example/bundle'>; } declare module 'slate-edit-code/example/main.js' { declare module.exports: $Exports<'slate-edit-code/example/main'>; } +declare module 'slate-edit-code/example/value.js' { + declare module.exports: $Exports<'slate-edit-code/example/value'>; +} declare module 'slate-edit-code/tests/all.js' { declare module.exports: $Exports<'slate-edit-code/tests/all'>; } -declare module 'slate-edit-code/tests/backspace-empty-code/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/backspace-empty-code/transform'>; +declare module 'slate-edit-code/tests/backspace-empty-code/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/backspace-empty-code/change'>; } -declare module 'slate-edit-code/tests/backspace-start/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/backspace-start/transform'>; +declare module 'slate-edit-code/tests/backspace-start/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/backspace-start/change'>; } -declare module 'slate-edit-code/tests/enter-end-offset/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/enter-end-offset/transform'>; +declare module 'slate-edit-code/tests/enter-end-offset/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/enter-end-offset/change'>; } -declare module 'slate-edit-code/tests/enter-mid-offset/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/enter-mid-offset/transform'>; +declare module 'slate-edit-code/tests/enter-mid-offset/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/enter-mid-offset/change'>; } -declare module 'slate-edit-code/tests/enter-start-offset/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/enter-start-offset/transform'>; +declare module 'slate-edit-code/tests/enter-start-offset/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/enter-start-offset/change'>; } -declare module 'slate-edit-code/tests/enter-with-indent/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/enter-with-indent/transform'>; +declare module 'slate-edit-code/tests/enter-with-indent/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/enter-with-indent/change'>; } -declare module 'slate-edit-code/tests/isincodeblock-true/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/isincodeblock-true/transform'>; +declare module 'slate-edit-code/tests/isincodeblock-true/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/isincodeblock-true/change'>; } -declare module 'slate-edit-code/tests/on-exit-block/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/on-exit-block/transform'>; +declare module 'slate-edit-code/tests/on-exit-block/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/on-exit-block/change'>; } -declare module 'slate-edit-code/tests/paste-middle/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/paste-middle/transform'>; +declare module 'slate-edit-code/tests/paste-middle/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/paste-middle/change'>; } -declare module 'slate-edit-code/tests/schema-no-marks/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/schema-no-marks/transform'>; +declare module 'slate-edit-code/tests/schema-multiline-text/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/schema-multiline-text/change'>; } -declare module 'slate-edit-code/tests/schema-no-orphan-line/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/schema-no-orphan-line/transform'>; +declare module 'slate-edit-code/tests/schema-no-marks/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/schema-no-marks/change'>; } -declare module 'slate-edit-code/tests/schema-only-text/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/schema-only-text/transform'>; +declare module 'slate-edit-code/tests/schema-no-orphan-line/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/schema-no-orphan-line/change'>; } -declare module 'slate-edit-code/tests/select-all/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/select-all/transform'>; +declare module 'slate-edit-code/tests/schema-only-text-2/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/schema-only-text-2/change'>; } -declare module 'slate-edit-code/tests/shift-tab-middle-offset/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/shift-tab-middle-offset/transform'>; +declare module 'slate-edit-code/tests/schema-only-text/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/schema-only-text/change'>; } -declare module 'slate-edit-code/tests/shift-tab-multilines/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/shift-tab-multilines/transform'>; +declare module 'slate-edit-code/tests/schema-single-text/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/schema-single-text/change'>; } -declare module 'slate-edit-code/tests/tab-middle-offset/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/tab-middle-offset/transform'>; +declare module 'slate-edit-code/tests/select-all/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/select-all/change'>; } -declare module 'slate-edit-code/tests/tab-multilines/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/tab-multilines/transform'>; +declare module 'slate-edit-code/tests/shift-tab-middle-offset/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/shift-tab-middle-offset/change'>; } -declare module 'slate-edit-code/tests/tab-start-offset/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/tab-start-offset/transform'>; +declare module 'slate-edit-code/tests/shift-tab-multilines/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/shift-tab-multilines/change'>; } -declare module 'slate-edit-code/tests/togglecodeblock-code/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/togglecodeblock-code/transform'>; +declare module 'slate-edit-code/tests/simulate-key.js' { + declare module.exports: $Exports<'slate-edit-code/tests/simulate-key'>; } -declare module 'slate-edit-code/tests/togglecodeblock-normal/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/togglecodeblock-normal/transform'>; +declare module 'slate-edit-code/tests/tab-middle-offset/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/tab-middle-offset/change'>; } -declare module 'slate-edit-code/tests/unwrapcodeblock-multi-lines/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/unwrapcodeblock-multi-lines/transform'>; +declare module 'slate-edit-code/tests/tab-multilines/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/tab-multilines/change'>; } -declare module 'slate-edit-code/tests/unwrapcodeblock-normal/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/unwrapcodeblock-normal/transform'>; +declare module 'slate-edit-code/tests/tab-start-offset/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/tab-start-offset/change'>; } -declare module 'slate-edit-code/tests/unwrapcodeblock-selection/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/unwrapcodeblock-selection/transform'>; +declare module 'slate-edit-code/tests/togglecodeblock-code/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/togglecodeblock-code/change'>; } -declare module 'slate-edit-code/tests/wrapcodeblock-normal/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/wrapcodeblock-normal/transform'>; +declare module 'slate-edit-code/tests/togglecodeblock-normal/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/togglecodeblock-normal/change'>; } -declare module 'slate-edit-code/tests/wrapcodeblock-selection/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/wrapcodeblock-selection/transform'>; +declare module 'slate-edit-code/tests/unwrapcodeblock-multi-lines/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/unwrapcodeblock-multi-lines/change'>; } -declare module 'slate-edit-code/tests/wrapcodeblock-with-inline/transform.js' { - declare module.exports: $Exports<'slate-edit-code/tests/wrapcodeblock-with-inline/transform'>; +declare module 'slate-edit-code/tests/unwrapcodeblock-normal/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/unwrapcodeblock-normal/change'>; +} +declare module 'slate-edit-code/tests/unwrapcodeblock-selection/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/unwrapcodeblock-selection/change'>; +} +declare module 'slate-edit-code/tests/wrapcodeblock-normal/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/wrapcodeblock-normal/change'>; +} +declare module 'slate-edit-code/tests/wrapcodeblock-selection/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/wrapcodeblock-selection/change'>; +} +declare module 'slate-edit-code/tests/wrapcodeblock-with-inline/change.js' { + declare module.exports: $Exports<'slate-edit-code/tests/wrapcodeblock-with-inline/change'>; } diff --git a/flow-typed/npm/slate-md-serializer_vx.x.x.js b/flow-typed/npm/slate-md-serializer_vx.x.x.js new file mode 100644 index 00000000..df3bfe93 --- /dev/null +++ b/flow-typed/npm/slate-md-serializer_vx.x.x.js @@ -0,0 +1,46 @@ +// flow-typed signature: e22a6c4c1a866149f81423ac17cc25b0 +// flow-typed version: <>/slate-md-serializer_v3.0.3/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'slate-md-serializer' + * + * 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 'slate-md-serializer' { + 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 'slate-md-serializer/lib/parser' { + declare module.exports: any; +} + +declare module 'slate-md-serializer/lib/renderer' { + declare module.exports: any; +} + +declare module 'slate-md-serializer/lib/urls' { + declare module.exports: any; +} + +// Filename aliases +declare module 'slate-md-serializer/lib/parser.js' { + declare module.exports: $Exports<'slate-md-serializer/lib/parser'>; +} +declare module 'slate-md-serializer/lib/renderer.js' { + declare module.exports: $Exports<'slate-md-serializer/lib/renderer'>; +} +declare module 'slate-md-serializer/lib/urls.js' { + declare module.exports: $Exports<'slate-md-serializer/lib/urls'>; +} diff --git a/flow-typed/npm/slate-paste-linkify_vx.x.x.js b/flow-typed/npm/slate-paste-linkify_vx.x.x.js index 7516a22d..a3bcdb1c 100644 --- a/flow-typed/npm/slate-paste-linkify_vx.x.x.js +++ b/flow-typed/npm/slate-paste-linkify_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b031b9a3456578f0043baf2ff0ca262a -// flow-typed version: <>/slate-paste-linkify_v^0.2.1/flow_v0.49.1 +// flow-typed signature: b7fa5ed1be9584d1ddeb578c01f150fb +// flow-typed version: <>/slate-paste-linkify_v^0.5.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,25 +22,25 @@ declare module 'slate-paste-linkify' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'slate-paste-linkify/dist/index' { +declare module 'slate-paste-linkify/dist/slate-paste-linkify' { declare module.exports: any; } -declare module 'slate-paste-linkify/example/build' { +declare module 'slate-paste-linkify/dist/slate-paste-linkify.min' { declare module.exports: any; } -declare module 'slate-paste-linkify/example/index' { +declare module 'slate-paste-linkify/lib/index' { declare module.exports: any; } // Filename aliases -declare module 'slate-paste-linkify/dist/index.js' { - declare module.exports: $Exports<'slate-paste-linkify/dist/index'>; +declare module 'slate-paste-linkify/dist/slate-paste-linkify.js' { + declare module.exports: $Exports<'slate-paste-linkify/dist/slate-paste-linkify'>; } -declare module 'slate-paste-linkify/example/build.js' { - declare module.exports: $Exports<'slate-paste-linkify/example/build'>; +declare module 'slate-paste-linkify/dist/slate-paste-linkify.min.js' { + declare module.exports: $Exports<'slate-paste-linkify/dist/slate-paste-linkify.min'>; } -declare module 'slate-paste-linkify/example/index.js' { - declare module.exports: $Exports<'slate-paste-linkify/example/index'>; +declare module 'slate-paste-linkify/lib/index.js' { + declare module.exports: $Exports<'slate-paste-linkify/lib/index'>; } diff --git a/flow-typed/npm/slate-plain-serializer_vx.x.x.js b/flow-typed/npm/slate-plain-serializer_vx.x.x.js new file mode 100644 index 00000000..8f258724 --- /dev/null +++ b/flow-typed/npm/slate-plain-serializer_vx.x.x.js @@ -0,0 +1,53 @@ +// flow-typed signature: 53d8f4be85173c4fe3a45c9b015c1643 +// flow-typed version: <>/slate-plain-serializer_v0.5.4/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'slate-plain-serializer' + * + * 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 'slate-plain-serializer' { + 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 'slate-plain-serializer/dist/slate-plain-serializer' { + declare module.exports: any; +} + +declare module 'slate-plain-serializer/dist/slate-plain-serializer.min' { + declare module.exports: any; +} + +declare module 'slate-plain-serializer/lib/slate-plain-serializer.es' { + declare module.exports: any; +} + +declare module 'slate-plain-serializer/lib/slate-plain-serializer' { + declare module.exports: any; +} + +// Filename aliases +declare module 'slate-plain-serializer/dist/slate-plain-serializer.js' { + declare module.exports: $Exports<'slate-plain-serializer/dist/slate-plain-serializer'>; +} +declare module 'slate-plain-serializer/dist/slate-plain-serializer.min.js' { + declare module.exports: $Exports<'slate-plain-serializer/dist/slate-plain-serializer.min'>; +} +declare module 'slate-plain-serializer/lib/slate-plain-serializer.es.js' { + declare module.exports: $Exports<'slate-plain-serializer/lib/slate-plain-serializer.es'>; +} +declare module 'slate-plain-serializer/lib/slate-plain-serializer.js' { + declare module.exports: $Exports<'slate-plain-serializer/lib/slate-plain-serializer'>; +} diff --git a/flow-typed/npm/slate-prism_vx.x.x.js b/flow-typed/npm/slate-prism_vx.x.x.js index 761494a0..e3621e4e 100644 --- a/flow-typed/npm/slate-prism_vx.x.x.js +++ b/flow-typed/npm/slate-prism_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6def5567e6fbbf6376427f9f62e32c89 -// flow-typed version: <>/slate-prism_v^0.2.2/flow_v0.49.1 +// flow-typed signature: 0c893165f0eaff8d04ce05629cdb5482 +// flow-typed version: <>/slate-prism_v^0.5.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -26,6 +26,14 @@ declare module 'slate-prism/dist/index' { declare module.exports: any; } +declare module 'slate-prism/dist/options' { + declare module.exports: any; +} + +declare module 'slate-prism/dist/TOKEN_MARK' { + declare module.exports: any; +} + declare module 'slate-prism/example/bundle' { declare module.exports: any; } @@ -34,20 +42,47 @@ declare module 'slate-prism/example/main' { declare module.exports: any; } +declare module 'slate-prism/example/value' { + declare module.exports: any; +} + declare module 'slate-prism/lib/index' { declare module.exports: any; } +declare module 'slate-prism/lib/options' { + declare module.exports: any; +} + +declare module 'slate-prism/lib/TOKEN_MARK' { + declare module.exports: any; +} + // Filename aliases declare module 'slate-prism/dist/index.js' { declare module.exports: $Exports<'slate-prism/dist/index'>; } +declare module 'slate-prism/dist/options.js' { + declare module.exports: $Exports<'slate-prism/dist/options'>; +} +declare module 'slate-prism/dist/TOKEN_MARK.js' { + declare module.exports: $Exports<'slate-prism/dist/TOKEN_MARK'>; +} declare module 'slate-prism/example/bundle.js' { declare module.exports: $Exports<'slate-prism/example/bundle'>; } declare module 'slate-prism/example/main.js' { declare module.exports: $Exports<'slate-prism/example/main'>; } +declare module 'slate-prism/example/value.js' { + declare module.exports: $Exports<'slate-prism/example/value'>; +} declare module 'slate-prism/lib/index.js' { declare module.exports: $Exports<'slate-prism/lib/index'>; } +declare module 'slate-prism/lib/options.js' { + declare module.exports: $Exports<'slate-prism/lib/options'>; +} +declare module 'slate-prism/lib/TOKEN_MARK.js' { + declare module.exports: $Exports<'slate-prism/lib/TOKEN_MARK'>; +} diff --git a/flow-typed/npm/slate-react_vx.x.x.js b/flow-typed/npm/slate-react_vx.x.x.js new file mode 100644 index 00000000..56b5fbb5 --- /dev/null +++ b/flow-typed/npm/slate-react_vx.x.x.js @@ -0,0 +1,53 @@ +// flow-typed signature: de15916bf0f775d67e74afc87e297d01 +// flow-typed version: <>/slate-react_v^0.12.3/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'slate-react' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'slate-react' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'slate-react/dist/slate-react' { + declare module.exports: any; +} + +declare module 'slate-react/dist/slate-react.min' { + declare module.exports: any; +} + +declare module 'slate-react/lib/slate-react.es' { + declare module.exports: any; +} + +declare module 'slate-react/lib/slate-react' { + declare module.exports: any; +} + +// Filename aliases +declare module 'slate-react/dist/slate-react.js' { + declare module.exports: $Exports<'slate-react/dist/slate-react'>; +} +declare module 'slate-react/dist/slate-react.min.js' { + declare module.exports: $Exports<'slate-react/dist/slate-react.min'>; +} +declare module 'slate-react/lib/slate-react.es.js' { + declare module.exports: $Exports<'slate-react/lib/slate-react.es'>; +} +declare module 'slate-react/lib/slate-react.js' { + declare module.exports: $Exports<'slate-react/lib/slate-react'>; +} diff --git a/flow-typed/npm/slate-trailing-block_vx.x.x.js b/flow-typed/npm/slate-trailing-block_vx.x.x.js index ee1488bd..d27cfef4 100644 --- a/flow-typed/npm/slate-trailing-block_vx.x.x.js +++ b/flow-typed/npm/slate-trailing-block_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b58916e9ea401eeb6881930de26d33c2 -// flow-typed version: <>/slate-trailing-block_v^0.2.4/flow_v0.49.1 +// flow-typed signature: 8f61874faf7ff2706ad3ad031096ae72 +// flow-typed version: <>/slate-trailing-block_v^0.5.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -34,15 +34,19 @@ declare module 'slate-trailing-block/tests/all' { declare module.exports: any; } -declare module 'slate-trailing-block/tests/ensure-trailing-multi/transform' { +declare module 'slate-trailing-block/tests/ensure-trailing-multi/change' { declare module.exports: any; } -declare module 'slate-trailing-block/tests/ensure-trailing-other/transform' { +declare module 'slate-trailing-block/tests/ensure-trailing-other/change' { declare module.exports: any; } -declare module 'slate-trailing-block/tests/ensure-trailing/transform' { +declare module 'slate-trailing-block/tests/ensure-trailing/change' { + declare module.exports: any; +} + +declare module 'slate-trailing-block/tests/just-the-trailing-block/change' { declare module.exports: any; } @@ -56,12 +60,15 @@ declare module 'slate-trailing-block/dist/index.js' { declare module 'slate-trailing-block/tests/all.js' { declare module.exports: $Exports<'slate-trailing-block/tests/all'>; } -declare module 'slate-trailing-block/tests/ensure-trailing-multi/transform.js' { - declare module.exports: $Exports<'slate-trailing-block/tests/ensure-trailing-multi/transform'>; +declare module 'slate-trailing-block/tests/ensure-trailing-multi/change.js' { + declare module.exports: $Exports<'slate-trailing-block/tests/ensure-trailing-multi/change'>; } -declare module 'slate-trailing-block/tests/ensure-trailing-other/transform.js' { - declare module.exports: $Exports<'slate-trailing-block/tests/ensure-trailing-other/transform'>; +declare module 'slate-trailing-block/tests/ensure-trailing-other/change.js' { + declare module.exports: $Exports<'slate-trailing-block/tests/ensure-trailing-other/change'>; } -declare module 'slate-trailing-block/tests/ensure-trailing/transform.js' { - declare module.exports: $Exports<'slate-trailing-block/tests/ensure-trailing/transform'>; +declare module 'slate-trailing-block/tests/ensure-trailing/change.js' { + declare module.exports: $Exports<'slate-trailing-block/tests/ensure-trailing/change'>; +} +declare module 'slate-trailing-block/tests/just-the-trailing-block/change.js' { + declare module.exports: $Exports<'slate-trailing-block/tests/just-the-trailing-block/change'>; } diff --git a/flow-typed/npm/slate_vx.x.x.js b/flow-typed/npm/slate_vx.x.x.js index bbe35d55..67513df0 100644 --- a/flow-typed/npm/slate_vx.x.x.js +++ b/flow-typed/npm/slate_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 462c8fd9fd26ef9c7991235d50a8a88d -// flow-typed version: <>/slate_v^0.19.30/flow_v0.49.1 +// flow-typed signature: 3342867a1417391927859a9c905d5366 +// flow-typed version: <>/slate_v^0.32.5/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -30,231 +30,11 @@ declare module 'slate/dist/slate.min' { declare module.exports: any; } -declare module 'slate/lib/components/content' { +declare module 'slate/lib/slate.es' { declare module.exports: any; } -declare module 'slate/lib/components/editor' { - declare module.exports: any; -} - -declare module 'slate/lib/components/leaf' { - declare module.exports: any; -} - -declare module 'slate/lib/components/node' { - declare module.exports: any; -} - -declare module 'slate/lib/components/placeholder' { - declare module.exports: any; -} - -declare module 'slate/lib/components/void' { - declare module.exports: any; -} - -declare module 'slate/lib/constants/environment' { - declare module.exports: any; -} - -declare module 'slate/lib/constants/is-dev' { - declare module.exports: any; -} - -declare module 'slate/lib/constants/types' { - declare module.exports: any; -} - -declare module 'slate/lib/index' { - declare module.exports: any; -} - -declare module 'slate/lib/models/block' { - declare module.exports: any; -} - -declare module 'slate/lib/models/character' { - declare module.exports: any; -} - -declare module 'slate/lib/models/data' { - declare module.exports: any; -} - -declare module 'slate/lib/models/document' { - declare module.exports: any; -} - -declare module 'slate/lib/models/inline' { - declare module.exports: any; -} - -declare module 'slate/lib/models/mark' { - declare module.exports: any; -} - -declare module 'slate/lib/models/node' { - declare module.exports: any; -} - -declare module 'slate/lib/models/range' { - declare module.exports: any; -} - -declare module 'slate/lib/models/schema' { - declare module.exports: any; -} - -declare module 'slate/lib/models/selection' { - declare module.exports: any; -} - -declare module 'slate/lib/models/stack' { - declare module.exports: any; -} - -declare module 'slate/lib/models/state' { - declare module.exports: any; -} - -declare module 'slate/lib/models/text' { - declare module.exports: any; -} - -declare module 'slate/lib/models/transform' { - declare module.exports: any; -} - -declare module 'slate/lib/plugins/core' { - declare module.exports: any; -} - -declare module 'slate/lib/schemas/core' { - declare module.exports: any; -} - -declare module 'slate/lib/serializers/base-64' { - declare module.exports: any; -} - -declare module 'slate/lib/serializers/html' { - declare module.exports: any; -} - -declare module 'slate/lib/serializers/plain' { - declare module.exports: any; -} - -declare module 'slate/lib/serializers/raw' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/apply-operation' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/at-current-range' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/at-range' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/by-key' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/call' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/index' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/normalize' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/on-history' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/on-selection' { - declare module.exports: any; -} - -declare module 'slate/lib/transforms/operations' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/extend-selection' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/find-closest-node' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/find-deepest-node' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/find-dom-node' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/generate-key' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/get-point' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/get-transfer-data' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/is-in-range' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/is-react-component' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/memoize' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/noop' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/normalize-node-and-offset' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/normalize' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/offset-key' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/scroll-to-selection' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/string' { - declare module.exports: any; -} - -declare module 'slate/lib/utils/warn' { +declare module 'slate/lib/slate' { declare module.exports: any; } @@ -265,174 +45,9 @@ declare module 'slate/dist/slate.js' { declare module 'slate/dist/slate.min.js' { declare module.exports: $Exports<'slate/dist/slate.min'>; } -declare module 'slate/lib/components/content.js' { - declare module.exports: $Exports<'slate/lib/components/content'>; +declare module 'slate/lib/slate.es.js' { + declare module.exports: $Exports<'slate/lib/slate.es'>; } -declare module 'slate/lib/components/editor.js' { - declare module.exports: $Exports<'slate/lib/components/editor'>; -} -declare module 'slate/lib/components/leaf.js' { - declare module.exports: $Exports<'slate/lib/components/leaf'>; -} -declare module 'slate/lib/components/node.js' { - declare module.exports: $Exports<'slate/lib/components/node'>; -} -declare module 'slate/lib/components/placeholder.js' { - declare module.exports: $Exports<'slate/lib/components/placeholder'>; -} -declare module 'slate/lib/components/void.js' { - declare module.exports: $Exports<'slate/lib/components/void'>; -} -declare module 'slate/lib/constants/environment.js' { - declare module.exports: $Exports<'slate/lib/constants/environment'>; -} -declare module 'slate/lib/constants/is-dev.js' { - declare module.exports: $Exports<'slate/lib/constants/is-dev'>; -} -declare module 'slate/lib/constants/types.js' { - declare module.exports: $Exports<'slate/lib/constants/types'>; -} -declare module 'slate/lib/index.js' { - declare module.exports: $Exports<'slate/lib/index'>; -} -declare module 'slate/lib/models/block.js' { - declare module.exports: $Exports<'slate/lib/models/block'>; -} -declare module 'slate/lib/models/character.js' { - declare module.exports: $Exports<'slate/lib/models/character'>; -} -declare module 'slate/lib/models/data.js' { - declare module.exports: $Exports<'slate/lib/models/data'>; -} -declare module 'slate/lib/models/document.js' { - declare module.exports: $Exports<'slate/lib/models/document'>; -} -declare module 'slate/lib/models/inline.js' { - declare module.exports: $Exports<'slate/lib/models/inline'>; -} -declare module 'slate/lib/models/mark.js' { - declare module.exports: $Exports<'slate/lib/models/mark'>; -} -declare module 'slate/lib/models/node.js' { - declare module.exports: $Exports<'slate/lib/models/node'>; -} -declare module 'slate/lib/models/range.js' { - declare module.exports: $Exports<'slate/lib/models/range'>; -} -declare module 'slate/lib/models/schema.js' { - declare module.exports: $Exports<'slate/lib/models/schema'>; -} -declare module 'slate/lib/models/selection.js' { - declare module.exports: $Exports<'slate/lib/models/selection'>; -} -declare module 'slate/lib/models/stack.js' { - declare module.exports: $Exports<'slate/lib/models/stack'>; -} -declare module 'slate/lib/models/state.js' { - declare module.exports: $Exports<'slate/lib/models/state'>; -} -declare module 'slate/lib/models/text.js' { - declare module.exports: $Exports<'slate/lib/models/text'>; -} -declare module 'slate/lib/models/transform.js' { - declare module.exports: $Exports<'slate/lib/models/transform'>; -} -declare module 'slate/lib/plugins/core.js' { - declare module.exports: $Exports<'slate/lib/plugins/core'>; -} -declare module 'slate/lib/schemas/core.js' { - declare module.exports: $Exports<'slate/lib/schemas/core'>; -} -declare module 'slate/lib/serializers/base-64.js' { - declare module.exports: $Exports<'slate/lib/serializers/base-64'>; -} -declare module 'slate/lib/serializers/html.js' { - declare module.exports: $Exports<'slate/lib/serializers/html'>; -} -declare module 'slate/lib/serializers/plain.js' { - declare module.exports: $Exports<'slate/lib/serializers/plain'>; -} -declare module 'slate/lib/serializers/raw.js' { - declare module.exports: $Exports<'slate/lib/serializers/raw'>; -} -declare module 'slate/lib/transforms/apply-operation.js' { - declare module.exports: $Exports<'slate/lib/transforms/apply-operation'>; -} -declare module 'slate/lib/transforms/at-current-range.js' { - declare module.exports: $Exports<'slate/lib/transforms/at-current-range'>; -} -declare module 'slate/lib/transforms/at-range.js' { - declare module.exports: $Exports<'slate/lib/transforms/at-range'>; -} -declare module 'slate/lib/transforms/by-key.js' { - declare module.exports: $Exports<'slate/lib/transforms/by-key'>; -} -declare module 'slate/lib/transforms/call.js' { - declare module.exports: $Exports<'slate/lib/transforms/call'>; -} -declare module 'slate/lib/transforms/index.js' { - declare module.exports: $Exports<'slate/lib/transforms/index'>; -} -declare module 'slate/lib/transforms/normalize.js' { - declare module.exports: $Exports<'slate/lib/transforms/normalize'>; -} -declare module 'slate/lib/transforms/on-history.js' { - declare module.exports: $Exports<'slate/lib/transforms/on-history'>; -} -declare module 'slate/lib/transforms/on-selection.js' { - declare module.exports: $Exports<'slate/lib/transforms/on-selection'>; -} -declare module 'slate/lib/transforms/operations.js' { - declare module.exports: $Exports<'slate/lib/transforms/operations'>; -} -declare module 'slate/lib/utils/extend-selection.js' { - declare module.exports: $Exports<'slate/lib/utils/extend-selection'>; -} -declare module 'slate/lib/utils/find-closest-node.js' { - declare module.exports: $Exports<'slate/lib/utils/find-closest-node'>; -} -declare module 'slate/lib/utils/find-deepest-node.js' { - declare module.exports: $Exports<'slate/lib/utils/find-deepest-node'>; -} -declare module 'slate/lib/utils/find-dom-node.js' { - declare module.exports: $Exports<'slate/lib/utils/find-dom-node'>; -} -declare module 'slate/lib/utils/generate-key.js' { - declare module.exports: $Exports<'slate/lib/utils/generate-key'>; -} -declare module 'slate/lib/utils/get-point.js' { - declare module.exports: $Exports<'slate/lib/utils/get-point'>; -} -declare module 'slate/lib/utils/get-transfer-data.js' { - declare module.exports: $Exports<'slate/lib/utils/get-transfer-data'>; -} -declare module 'slate/lib/utils/is-in-range.js' { - declare module.exports: $Exports<'slate/lib/utils/is-in-range'>; -} -declare module 'slate/lib/utils/is-react-component.js' { - declare module.exports: $Exports<'slate/lib/utils/is-react-component'>; -} -declare module 'slate/lib/utils/memoize.js' { - declare module.exports: $Exports<'slate/lib/utils/memoize'>; -} -declare module 'slate/lib/utils/noop.js' { - declare module.exports: $Exports<'slate/lib/utils/noop'>; -} -declare module 'slate/lib/utils/normalize-node-and-offset.js' { - declare module.exports: $Exports<'slate/lib/utils/normalize-node-and-offset'>; -} -declare module 'slate/lib/utils/normalize.js' { - declare module.exports: $Exports<'slate/lib/utils/normalize'>; -} -declare module 'slate/lib/utils/offset-key.js' { - declare module.exports: $Exports<'slate/lib/utils/offset-key'>; -} -declare module 'slate/lib/utils/scroll-to-selection.js' { - declare module.exports: $Exports<'slate/lib/utils/scroll-to-selection'>; -} -declare module 'slate/lib/utils/string.js' { - declare module.exports: $Exports<'slate/lib/utils/string'>; -} -declare module 'slate/lib/utils/warn.js' { - declare module.exports: $Exports<'slate/lib/utils/warn'>; +declare module 'slate/lib/slate.js' { + declare module.exports: $Exports<'slate/lib/slate'>; } diff --git a/flow-typed/npm/slug_v0.9.x.js b/flow-typed/npm/slug_v0.9.x.js index 8c444624..52ad3914 100644 --- a/flow-typed/npm/slug_v0.9.x.js +++ b/flow-typed/npm/slug_v0.9.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: aa2cc901101dc881d88fa9b82d248a4e -// flow-typed version: dbef68335c/slug_v0.9.x/flow_>=v0.28.x +// flow-typed signature: c499686d8ed4b3da5bd13133389c6088 +// flow-typed version: b43dff3e0e/slug_v0.9.x/flow_>=v0.25.x type SlugMode = 'rfc3986' | 'pretty' diff --git a/flow-typed/npm/string-hash_vx.x.x.js b/flow-typed/npm/string-hash_vx.x.x.js index 67ea7fbd..ec6b82da 100644 --- a/flow-typed/npm/string-hash_vx.x.x.js +++ b/flow-typed/npm/string-hash_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1fcc132c9f186b8c3963f2e2e9f2a62a -// flow-typed version: <>/string-hash_v^1.1.0/flow_v0.49.1 +// flow-typed signature: 9aa47dd7456fdb2a00b695f4b5c9dc9d +// flow-typed version: <>/string-hash_v^1.1.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/string-replace-to-array_vx.x.x.js b/flow-typed/npm/string-replace-to-array_vx.x.x.js new file mode 100644 index 00000000..73a50bdd --- /dev/null +++ b/flow-typed/npm/string-replace-to-array_vx.x.x.js @@ -0,0 +1,39 @@ +// flow-typed signature: 7fac54342239dcdbbd3dfd6b2ec22e0e +// flow-typed version: <>/string-replace-to-array_v^1.0.3/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'string-replace-to-array' + * + * 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 'string-replace-to-array' { + 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 'string-replace-to-array/string-replace-to-array' { + declare module.exports: any; +} + +declare module 'string-replace-to-array/test' { + declare module.exports: any; +} + +// Filename aliases +declare module 'string-replace-to-array/string-replace-to-array.js' { + declare module.exports: $Exports<'string-replace-to-array/string-replace-to-array'>; +} +declare module 'string-replace-to-array/test.js' { + declare module.exports: $Exports<'string-replace-to-array/test'>; +} diff --git a/flow-typed/npm/style-loader_vx.x.x.js b/flow-typed/npm/style-loader_vx.x.x.js index a91dce78..cac35dcb 100644 --- a/flow-typed/npm/style-loader_vx.x.x.js +++ b/flow-typed/npm/style-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 16e17b8704ad96c9ffa7dfd78ffa7771 -// flow-typed version: <>/style-loader_v0.13.0/flow_v0.49.1 +// flow-typed signature: a5372d37af08e7a44036c033c0e88534 +// flow-typed version: <>/style-loader_v^0.18.2/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -22,11 +22,15 @@ declare module 'style-loader' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'style-loader/addStyles' { +declare module 'style-loader/lib/addStyles' { declare module.exports: any; } -declare module 'style-loader/addStyleUrl' { +declare module 'style-loader/lib/addStyleUrl' { + declare module.exports: any; +} + +declare module 'style-loader/lib/urls' { declare module.exports: any; } @@ -39,18 +43,21 @@ declare module 'style-loader/useable' { } // Filename aliases -declare module 'style-loader/addStyles.js' { - declare module.exports: $Exports<'style-loader/addStyles'>; -} -declare module 'style-loader/addStyleUrl.js' { - declare module.exports: $Exports<'style-loader/addStyleUrl'>; -} declare module 'style-loader/index' { declare module.exports: $Exports<'style-loader'>; } declare module 'style-loader/index.js' { declare module.exports: $Exports<'style-loader'>; } +declare module 'style-loader/lib/addStyles.js' { + declare module.exports: $Exports<'style-loader/lib/addStyles'>; +} +declare module 'style-loader/lib/addStyleUrl.js' { + declare module.exports: $Exports<'style-loader/lib/addStyleUrl'>; +} +declare module 'style-loader/lib/urls.js' { + declare module.exports: $Exports<'style-loader/lib/urls'>; +} declare module 'style-loader/url.js' { declare module.exports: $Exports<'style-loader/url'>; } diff --git a/flow-typed/npm/styled-components-breakpoint_vx.x.x.js b/flow-typed/npm/styled-components-breakpoint_vx.x.x.js new file mode 100644 index 00000000..b393fc76 --- /dev/null +++ b/flow-typed/npm/styled-components-breakpoint_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 8717a51487fa9b130bec2099080c49df +// flow-typed version: <>/styled-components-breakpoint_v^1.0.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'styled-components-breakpoint' + * + * 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 'styled-components-breakpoint' { + 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 'styled-components-breakpoint/dist/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'styled-components-breakpoint/dist/index.js' { + declare module.exports: $Exports<'styled-components-breakpoint/dist/index'>; +} diff --git a/flow-typed/npm/styled-components-grid_vx.x.x.js b/flow-typed/npm/styled-components-grid_vx.x.x.js new file mode 100644 index 00000000..67cf5e5c --- /dev/null +++ b/flow-typed/npm/styled-components-grid_vx.x.x.js @@ -0,0 +1,144 @@ +// flow-typed signature: d7c6f4d4223c61be85becba99f8e5712 +// flow-typed version: <>/styled-components-grid_v^1.0.0-preview.15/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'styled-components-grid' + * + * 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 'styled-components-grid' { + 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 'styled-components-grid/dist/cjs/components/Grid' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/cjs/components/GridUnit' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/cjs/components/index' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/cjs/index' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/cjs/mixins/grid' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/cjs/mixins/gridUnit' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/cjs/mixins/index' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/es/components/Grid' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/es/components/GridUnit' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/es/components/index' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/es/index' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/es/mixins/grid' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/es/mixins/gridUnit' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/es/mixins/index' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/example/index' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/styled-components-grid' { + declare module.exports: any; +} + +declare module 'styled-components-grid/dist/styled-components-grid.min' { + declare module.exports: any; +} + +// Filename aliases +declare module 'styled-components-grid/dist/cjs/components/Grid.js' { + declare module.exports: $Exports<'styled-components-grid/dist/cjs/components/Grid'>; +} +declare module 'styled-components-grid/dist/cjs/components/GridUnit.js' { + declare module.exports: $Exports<'styled-components-grid/dist/cjs/components/GridUnit'>; +} +declare module 'styled-components-grid/dist/cjs/components/index.js' { + declare module.exports: $Exports<'styled-components-grid/dist/cjs/components/index'>; +} +declare module 'styled-components-grid/dist/cjs/index.js' { + declare module.exports: $Exports<'styled-components-grid/dist/cjs/index'>; +} +declare module 'styled-components-grid/dist/cjs/mixins/grid.js' { + declare module.exports: $Exports<'styled-components-grid/dist/cjs/mixins/grid'>; +} +declare module 'styled-components-grid/dist/cjs/mixins/gridUnit.js' { + declare module.exports: $Exports<'styled-components-grid/dist/cjs/mixins/gridUnit'>; +} +declare module 'styled-components-grid/dist/cjs/mixins/index.js' { + declare module.exports: $Exports<'styled-components-grid/dist/cjs/mixins/index'>; +} +declare module 'styled-components-grid/dist/es/components/Grid.js' { + declare module.exports: $Exports<'styled-components-grid/dist/es/components/Grid'>; +} +declare module 'styled-components-grid/dist/es/components/GridUnit.js' { + declare module.exports: $Exports<'styled-components-grid/dist/es/components/GridUnit'>; +} +declare module 'styled-components-grid/dist/es/components/index.js' { + declare module.exports: $Exports<'styled-components-grid/dist/es/components/index'>; +} +declare module 'styled-components-grid/dist/es/index.js' { + declare module.exports: $Exports<'styled-components-grid/dist/es/index'>; +} +declare module 'styled-components-grid/dist/es/mixins/grid.js' { + declare module.exports: $Exports<'styled-components-grid/dist/es/mixins/grid'>; +} +declare module 'styled-components-grid/dist/es/mixins/gridUnit.js' { + declare module.exports: $Exports<'styled-components-grid/dist/es/mixins/gridUnit'>; +} +declare module 'styled-components-grid/dist/es/mixins/index.js' { + declare module.exports: $Exports<'styled-components-grid/dist/es/mixins/index'>; +} +declare module 'styled-components-grid/dist/example/index.js' { + declare module.exports: $Exports<'styled-components-grid/dist/example/index'>; +} +declare module 'styled-components-grid/dist/styled-components-grid.js' { + declare module.exports: $Exports<'styled-components-grid/dist/styled-components-grid'>; +} +declare module 'styled-components-grid/dist/styled-components-grid.min.js' { + declare module.exports: $Exports<'styled-components-grid/dist/styled-components-grid.min'>; +} diff --git a/flow-typed/npm/styled-components_v2.x.x.js b/flow-typed/npm/styled-components_v2.x.x.js deleted file mode 100644 index 15ca6b34..00000000 --- a/flow-typed/npm/styled-components_v2.x.x.js +++ /dev/null @@ -1,264 +0,0 @@ -// flow-typed signature: 13dd8d47f3937f64fe9cd3ec4aa79e55 -// flow-typed version: d04eb04853/styled-components_v2.x.x/flow_>=v0.25.x - -// @flow - -type $npm$styledComponents$Interpolation = ((executionContext: Object) => string) | string | number; -type $npm$styledComponents$NameGenerator = (hash: number) => string - -type $npm$styledComponents$StyledComponent = ( - strings: Array, - ...interpolations: Array<$npm$styledComponents$Interpolation> -) => ReactClass<*>; - - -type $npm$styledComponents$Theme = {[key: string]: mixed}; -type $npm$styledComponents$ThemeProviderProps = { - theme: $npm$styledComponents$Theme | ((outerTheme: $npm$styledComponents$Theme) => void) -}; -type $npm$styledComponents$Component = - | ReactClass<*> - | (props: *) => React$Element<*>; - -class Npm$StyledComponents$ThemeProvider extends React$Component { - props: $npm$styledComponents$ThemeProviderProps; -} - -type $npm$styledComponents$StyleSheetManagerProps = { - sheet: mixed -} - -class Npm$StyledComponents$StyleSheetManager extends React$Component { - props: $npm$styledComponents$StyleSheetManagerProps; -} - -class Npm$StyledComponents$ServerStyleSheet { - instance: StyleSheet - collectStyles: (children: any) => React$Element<*> - getStyleTags: () => string - getStyleElement: () => React$Element<*> -} - -declare module 'styled-components' { - declare type Interpolation = $npm$styledComponents$Interpolation; - declare type NameGenerator = $npm$styledComponents$NameGenerator; - - declare type StyledComponent = $npm$styledComponents$StyledComponent; - - declare type Theme = $npm$styledComponents$Theme; - declare type ThemeProviderProps = $npm$styledComponents$ThemeProviderProps; - declare type Component = $npm$styledComponents$Component; - - declare module.exports: { - injectGlobal: (strings: Array, ...interpolations: Array) => void, - css: (strings: Array, ...interpolations: Array) => Array, - keyframes: (strings: Array, ...interpolations: Array) => string, - withTheme: (component: Component) => ReactClass<*>, - ServerStyleSheet: typeof Npm$StyledComponents$ServerStyleSheet, - StyleSheetManager: typeof Npm$StyledComponents$StyleSheetManager, - ThemeProvider: typeof Npm$StyledComponents$ThemeProvider, - (baseComponent: Component): StyledComponent, - a: StyledComponent, - abbr: StyledComponent, - address: StyledComponent, - area: StyledComponent, - article: StyledComponent, - aside: StyledComponent, - audio: StyledComponent, - b: StyledComponent, - base: StyledComponent, - bdi: StyledComponent, - bdo: StyledComponent, - big: StyledComponent, - blockquote: StyledComponent, - body: StyledComponent, - br: StyledComponent, - button: StyledComponent, - canvas: StyledComponent, - caption: StyledComponent, - cite: StyledComponent, - code: StyledComponent, - col: StyledComponent, - colgroup: StyledComponent, - data: StyledComponent, - datalist: StyledComponent, - dd: StyledComponent, - del: StyledComponent, - details: StyledComponent, - dfn: StyledComponent, - dialog: StyledComponent, - div: StyledComponent, - dl: StyledComponent, - dt: StyledComponent, - em: StyledComponent, - embed: StyledComponent, - fieldset: StyledComponent, - figcaption: StyledComponent, - figure: StyledComponent, - footer: StyledComponent, - form: StyledComponent, - h1: StyledComponent, - h2: StyledComponent, - h3: StyledComponent, - h4: StyledComponent, - h5: StyledComponent, - h6: StyledComponent, - head: StyledComponent, - header: StyledComponent, - hgroup: StyledComponent, - hr: StyledComponent, - html: StyledComponent, - i: StyledComponent, - iframe: StyledComponent, - img: StyledComponent, - input: StyledComponent, - ins: StyledComponent, - kbd: StyledComponent, - keygen: StyledComponent, - label: StyledComponent, - legend: StyledComponent, - li: StyledComponent, - link: StyledComponent, - main: StyledComponent, - map: StyledComponent, - mark: StyledComponent, - menu: StyledComponent, - menuitem: StyledComponent, - meta: StyledComponent, - meter: StyledComponent, - nav: StyledComponent, - noscript: StyledComponent, - object: StyledComponent, - ol: StyledComponent, - optgroup: StyledComponent, - option: StyledComponent, - output: StyledComponent, - p: StyledComponent, - param: StyledComponent, - picture: StyledComponent, - pre: StyledComponent, - progress: StyledComponent, - q: StyledComponent, - rp: StyledComponent, - rt: StyledComponent, - ruby: StyledComponent, - s: StyledComponent, - samp: StyledComponent, - script: StyledComponent, - section: StyledComponent, - select: StyledComponent, - small: StyledComponent, - source: StyledComponent, - span: StyledComponent, - strong: StyledComponent, - style: StyledComponent, - sub: StyledComponent, - summary: StyledComponent, - sup: StyledComponent, - table: StyledComponent, - tbody: StyledComponent, - td: StyledComponent, - textarea: StyledComponent, - tfoot: StyledComponent, - th: StyledComponent, - thead: StyledComponent, - time: StyledComponent, - title: StyledComponent, - tr: StyledComponent, - track: StyledComponent, - u: StyledComponent, - ul: StyledComponent, - var: StyledComponent, - video: StyledComponent, - wbr: StyledComponent, - - // SVG - circle: StyledComponent, - clipPath: StyledComponent, - defs: StyledComponent, - ellipse: StyledComponent, - g: StyledComponent, - image: StyledComponent, - line: StyledComponent, - linearGradient: StyledComponent, - mask: StyledComponent, - path: StyledComponent, - pattern: StyledComponent, - polygon: StyledComponent, - polyline: StyledComponent, - radialGradient: StyledComponent, - rect: StyledComponent, - stop: StyledComponent, - svg: StyledComponent, - text: StyledComponent, - tspan: StyledComponent, - }; -} - -declare module 'styled-components/native' { - declare type Interpolation = $npm$styledComponents$Interpolation; - declare type NameGenerator = $npm$styledComponents$NameGenerator; - - declare type StyledComponent = $npm$styledComponents$StyledComponent; - - declare type Theme = $npm$styledComponents$Theme; - declare type ThemeProviderProps = $npm$styledComponents$ThemeProviderProps; - declare type Component = $npm$styledComponents$Component; - - declare module.exports: { - css: (strings: Array, ...interpolations: Array) => Array, - withTheme: (component: Component) => ReactClass<*>, - keyframes: (strings: Array, ...interpolations: Array) => string, - ThemeProvider: typeof Npm$StyledComponents$ThemeProvider, - - (baseComponent: Component): StyledComponent, - - ActivityIndicator: StyledComponent, - ActivityIndicatorIOS: StyledComponent, - ART: StyledComponent, - Button: StyledComponent, - DatePickerIOS: StyledComponent, - DrawerLayoutAndroid: StyledComponent, - FlatList: StyledComponent, - Image: StyledComponent, - ImageEditor: StyledComponent, - ImageStore: StyledComponent, - KeyboardAvoidingView: StyledComponent, - ListView: StyledComponent, - MapView: StyledComponent, - Modal: StyledComponent, - Navigator: StyledComponent, - NavigatorIOS: StyledComponent, - Picker: StyledComponent, - PickerIOS: StyledComponent, - ProgressBarAndroid: StyledComponent, - ProgressViewIOS: StyledComponent, - RecyclerViewBackedScrollView: StyledComponent, - RefreshControl: StyledComponent, - ScrollView: StyledComponent, - SectionList: StyledComponent, - SegmentedControlIOS: StyledComponent, - Slider: StyledComponent, - SliderIOS: StyledComponent, - SnapshotViewIOS: StyledComponent, - StatusBar: StyledComponent, - SwipeableListView: StyledComponent, - Switch: StyledComponent, - SwitchAndroid: StyledComponent, - SwitchIOS: StyledComponent, - TabBarIOS: StyledComponent, - Text: StyledComponent, - TextInput: StyledComponent, - ToastAndroid: StyledComponent, - ToolbarAndroid: StyledComponent, - Touchable: StyledComponent, - TouchableHighlight: StyledComponent, - TouchableNativeFeedback: StyledComponent, - TouchableOpacity: StyledComponent, - TouchableWithoutFeedback: StyledComponent, - View: StyledComponent, - ViewPagerAndroid: StyledComponent, - VirtualizedList: StyledComponent, - WebView: StyledComponent, - }; -} diff --git a/flow-typed/npm/styled-components_v3.x.x.js b/flow-typed/npm/styled-components_v3.x.x.js new file mode 100644 index 00000000..072914a3 --- /dev/null +++ b/flow-typed/npm/styled-components_v3.x.x.js @@ -0,0 +1,393 @@ +// flow-typed signature: ce09cfddc81b167b0a751ef4cd182f77 +// flow-typed version: 76d655b490/styled-components_v3.x.x/flow_>=v0.57.x + +// @flow + +type $npm$styledComponents$Interpolation = ((executionContext: C) => string) | string | number; +type $npm$styledComponents$NameGenerator = (hash: number) => string; + +type $npm$styledComponents$TaggedTemplateLiteral = {| (Array, $npm$styledComponents$Interpolation): R |}; + +// ---- FUNCTIONAL COMPONENT DEFINITIONS ---- +type $npm$styledComponents$ReactComponentFunctional = + & { defaultProps: DefaultProps } + & $npm$styledComponents$ReactComponentFunctionalUndefinedDefaultProps + +type $npm$styledComponents$ReactComponentFunctionalUndefinedDefaultProps = + React$StatelessFunctionalComponent + +// ---- CLASS COMPONENT DEFINITIONS ---- +class $npm$styledComponents$ReactComponent extends React$Component { + static defaultProps: DefaultProps +} +type $npm$styledComponents$ReactComponentClass = Class<$npm$styledComponents$ReactComponent> +type $npm$styledComponents$ReactComponentClassUndefinedDefaultProps = Class> + +// ---- COMPONENT FUNCTIONS INPUT (UNION) & OUTPUT (INTERSECTION) ---- +type $npm$styledComponents$ReactComponentUnion = + $npm$styledComponents$ReactComponentUnionWithDefaultProps + +type $npm$styledComponents$ReactComponentUnionWithDefaultProps = + | $npm$styledComponents$ReactComponentFunctional + | $npm$styledComponents$ReactComponentFunctionalUndefinedDefaultProps + | $npm$styledComponents$ReactComponentClass + | $npm$styledComponents$ReactComponentClassUndefinedDefaultProps + +type $npm$styledComponents$ReactComponentIntersection = + & $npm$styledComponents$ReactComponentFunctional + & $npm$styledComponents$ReactComponentClass; + +// ---- WITHCOMPONENT ---- +type $npm$styledComponents$ReactComponentStyledWithComponent = < + Props, DefaultProps, + Input: + | ComponentList + | $npm$styledComponents$ReactComponentStyled + | $npm$styledComponents$ReactComponentUnionWithDefaultProps +>(Input) => $npm$styledComponents$ReactComponentStyled + +// ---- STATIC PROPERTIES ---- +type $npm$styledComponents$ReactComponentStyledStaticProps = {| + attrs: (AdditionalProps) => $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteral, + extend: $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteral, +|} + +type $npm$styledComponents$ReactComponentStyledStaticPropsWithComponent = {| + withComponent: $npm$styledComponents$ReactComponentStyledWithComponent, + attrs: (AdditionalProps) => $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent, + extend: $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent, +|} + +// ---- STYLED FUNCTION ---- +// Error: styled(CustomComponent).withComponent('a') +// Ok: styled('div').withComponent('a') +type $npm$styledComponents$Call = + & (ComponentListKeys => $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent<{}, ComponentListKeys>) + & (($npm$styledComponents$ReactComponentUnion) => $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteral) + +// ---- STYLED COMPONENT ---- +type $npm$styledComponents$ReactComponentStyled = + & $npm$styledComponents$ReactComponentStyledStaticPropsWithComponent + & $npm$styledComponents$ReactComponentIntersection + +// ---- TAGGED TEMPLATE LITERAL ---- +type $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteral = + & $npm$styledComponents$ReactComponentStyledStaticProps + & $npm$styledComponents$TaggedTemplateLiteral<$npm$styledComponents$ReactComponentStyled> + +type $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent = + & $npm$styledComponents$ReactComponentStyledStaticPropsWithComponent + & $npm$styledComponents$TaggedTemplateLiteral<$npm$styledComponents$ReactComponentStyled> + +// ---- WITHTHEME ---- +type $npm$styledComponents$WithThemeReactComponentClass = < + InputProps: { theme: $npm$styledComponents$Theme }, + InputDefaultProps: {}, + OutputProps: $Diff, + OutputDefaultProps: InputDefaultProps & { theme: $npm$styledComponents$Theme }, +>($npm$styledComponents$ReactComponentClass) => $npm$styledComponents$ReactComponentClass + +type $npm$styledComponents$WithThemeReactComponentClassUndefinedDefaultProps = < + InputProps: { theme: $npm$styledComponents$Theme }, + OutputProps: $Diff, +>($npm$styledComponents$ReactComponentClassUndefinedDefaultProps) => $npm$styledComponents$ReactComponentClass + +type $npm$styledComponents$WithThemeReactComponentFunctional = < + InputProps: { theme: $npm$styledComponents$Theme }, + InputDefaultProps: {}, + OutputProps: $Diff, + OutputDefaultProps: InputDefaultProps & { theme: $npm$styledComponents$Theme }, +>($npm$styledComponents$ReactComponentFunctional) => $npm$styledComponents$ReactComponentFunctional + +type $npm$styledComponents$WithThemeReactComponentFunctionalUndefinedDefaultProps = < + InputProps: { theme: $npm$styledComponents$Theme }, + OutputProps: $Diff +>($npm$styledComponents$ReactComponentFunctionalUndefinedDefaultProps) => $npm$styledComponents$ReactComponentFunctional + +type $npm$styledComponents$WithTheme = + & $npm$styledComponents$WithThemeReactComponentClass + & $npm$styledComponents$WithThemeReactComponentClassUndefinedDefaultProps + & $npm$styledComponents$WithThemeReactComponentFunctional + & $npm$styledComponents$WithThemeReactComponentFunctionalUndefinedDefaultProps + +// ---- MISC ---- +type $npm$styledComponents$Theme = {[key: string]: mixed}; +type $npm$styledComponents$ThemeProviderProps = { + theme: $npm$styledComponents$Theme | ((outerTheme: $npm$styledComponents$Theme) => void) +}; + +class Npm$StyledComponents$ThemeProvider extends React$Component<$npm$styledComponents$ThemeProviderProps> {} + +class Npm$StyledComponents$StyleSheetManager extends React$Component<{ sheet: mixed }> {} + +class Npm$StyledComponents$ServerStyleSheet { + instance: StyleSheet + collectStyles: (children: any) => React$Node + getStyleTags: () => string + getStyleElement: () => React$Node + interleaveWithNodeStream: (readableStream: stream$Readable) => stream$Readable +} + +type $npm$styledComponents$StyledComponentsComponentListKeys = + $Subtype<$Keys<$npm$styledComponents$StyledComponentsComponentList>> + +type $npm$styledComponents$StyledComponentsComponentListValue = + $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent<{}, $npm$styledComponents$StyledComponentsComponentListKeys> + +// ---- COMPONENT LIST ---- +type $npm$styledComponents$StyledComponentsComponentList = {| + a: $npm$styledComponents$StyledComponentsComponentListValue, + abbr: $npm$styledComponents$StyledComponentsComponentListValue, + address: $npm$styledComponents$StyledComponentsComponentListValue, + area: $npm$styledComponents$StyledComponentsComponentListValue, + article: $npm$styledComponents$StyledComponentsComponentListValue, + aside: $npm$styledComponents$StyledComponentsComponentListValue, + audio: $npm$styledComponents$StyledComponentsComponentListValue, + b: $npm$styledComponents$StyledComponentsComponentListValue, + base: $npm$styledComponents$StyledComponentsComponentListValue, + bdi: $npm$styledComponents$StyledComponentsComponentListValue, + bdo: $npm$styledComponents$StyledComponentsComponentListValue, + big: $npm$styledComponents$StyledComponentsComponentListValue, + blockquote: $npm$styledComponents$StyledComponentsComponentListValue, + body: $npm$styledComponents$StyledComponentsComponentListValue, + br: $npm$styledComponents$StyledComponentsComponentListValue, + button: $npm$styledComponents$StyledComponentsComponentListValue, + canvas: $npm$styledComponents$StyledComponentsComponentListValue, + caption: $npm$styledComponents$StyledComponentsComponentListValue, + cite: $npm$styledComponents$StyledComponentsComponentListValue, + code: $npm$styledComponents$StyledComponentsComponentListValue, + col: $npm$styledComponents$StyledComponentsComponentListValue, + colgroup: $npm$styledComponents$StyledComponentsComponentListValue, + data: $npm$styledComponents$StyledComponentsComponentListValue, + datalist: $npm$styledComponents$StyledComponentsComponentListValue, + dd: $npm$styledComponents$StyledComponentsComponentListValue, + del: $npm$styledComponents$StyledComponentsComponentListValue, + details: $npm$styledComponents$StyledComponentsComponentListValue, + dfn: $npm$styledComponents$StyledComponentsComponentListValue, + dialog: $npm$styledComponents$StyledComponentsComponentListValue, + div: $npm$styledComponents$StyledComponentsComponentListValue, + dl: $npm$styledComponents$StyledComponentsComponentListValue, + dt: $npm$styledComponents$StyledComponentsComponentListValue, + em: $npm$styledComponents$StyledComponentsComponentListValue, + embed: $npm$styledComponents$StyledComponentsComponentListValue, + fieldset: $npm$styledComponents$StyledComponentsComponentListValue, + figcaption: $npm$styledComponents$StyledComponentsComponentListValue, + figure: $npm$styledComponents$StyledComponentsComponentListValue, + footer: $npm$styledComponents$StyledComponentsComponentListValue, + form: $npm$styledComponents$StyledComponentsComponentListValue, + h1: $npm$styledComponents$StyledComponentsComponentListValue, + h2: $npm$styledComponents$StyledComponentsComponentListValue, + h3: $npm$styledComponents$StyledComponentsComponentListValue, + h4: $npm$styledComponents$StyledComponentsComponentListValue, + h5: $npm$styledComponents$StyledComponentsComponentListValue, + h6: $npm$styledComponents$StyledComponentsComponentListValue, + head: $npm$styledComponents$StyledComponentsComponentListValue, + header: $npm$styledComponents$StyledComponentsComponentListValue, + hgroup: $npm$styledComponents$StyledComponentsComponentListValue, + hr: $npm$styledComponents$StyledComponentsComponentListValue, + html: $npm$styledComponents$StyledComponentsComponentListValue, + i: $npm$styledComponents$StyledComponentsComponentListValue, + iframe: $npm$styledComponents$StyledComponentsComponentListValue, + img: $npm$styledComponents$StyledComponentsComponentListValue, + input: $npm$styledComponents$StyledComponentsComponentListValue, + ins: $npm$styledComponents$StyledComponentsComponentListValue, + kbd: $npm$styledComponents$StyledComponentsComponentListValue, + keygen: $npm$styledComponents$StyledComponentsComponentListValue, + label: $npm$styledComponents$StyledComponentsComponentListValue, + legend: $npm$styledComponents$StyledComponentsComponentListValue, + li: $npm$styledComponents$StyledComponentsComponentListValue, + link: $npm$styledComponents$StyledComponentsComponentListValue, + main: $npm$styledComponents$StyledComponentsComponentListValue, + map: $npm$styledComponents$StyledComponentsComponentListValue, + mark: $npm$styledComponents$StyledComponentsComponentListValue, + menu: $npm$styledComponents$StyledComponentsComponentListValue, + menuitem: $npm$styledComponents$StyledComponentsComponentListValue, + meta: $npm$styledComponents$StyledComponentsComponentListValue, + meter: $npm$styledComponents$StyledComponentsComponentListValue, + nav: $npm$styledComponents$StyledComponentsComponentListValue, + noscript: $npm$styledComponents$StyledComponentsComponentListValue, + object: $npm$styledComponents$StyledComponentsComponentListValue, + ol: $npm$styledComponents$StyledComponentsComponentListValue, + optgroup: $npm$styledComponents$StyledComponentsComponentListValue, + option: $npm$styledComponents$StyledComponentsComponentListValue, + output: $npm$styledComponents$StyledComponentsComponentListValue, + p: $npm$styledComponents$StyledComponentsComponentListValue, + param: $npm$styledComponents$StyledComponentsComponentListValue, + picture: $npm$styledComponents$StyledComponentsComponentListValue, + pre: $npm$styledComponents$StyledComponentsComponentListValue, + progress: $npm$styledComponents$StyledComponentsComponentListValue, + q: $npm$styledComponents$StyledComponentsComponentListValue, + rp: $npm$styledComponents$StyledComponentsComponentListValue, + rt: $npm$styledComponents$StyledComponentsComponentListValue, + ruby: $npm$styledComponents$StyledComponentsComponentListValue, + s: $npm$styledComponents$StyledComponentsComponentListValue, + samp: $npm$styledComponents$StyledComponentsComponentListValue, + script: $npm$styledComponents$StyledComponentsComponentListValue, + section: $npm$styledComponents$StyledComponentsComponentListValue, + select: $npm$styledComponents$StyledComponentsComponentListValue, + small: $npm$styledComponents$StyledComponentsComponentListValue, + source: $npm$styledComponents$StyledComponentsComponentListValue, + span: $npm$styledComponents$StyledComponentsComponentListValue, + strong: $npm$styledComponents$StyledComponentsComponentListValue, + style: $npm$styledComponents$StyledComponentsComponentListValue, + sub: $npm$styledComponents$StyledComponentsComponentListValue, + summary: $npm$styledComponents$StyledComponentsComponentListValue, + sup: $npm$styledComponents$StyledComponentsComponentListValue, + table: $npm$styledComponents$StyledComponentsComponentListValue, + tbody: $npm$styledComponents$StyledComponentsComponentListValue, + td: $npm$styledComponents$StyledComponentsComponentListValue, + textarea: $npm$styledComponents$StyledComponentsComponentListValue, + tfoot: $npm$styledComponents$StyledComponentsComponentListValue, + th: $npm$styledComponents$StyledComponentsComponentListValue, + thead: $npm$styledComponents$StyledComponentsComponentListValue, + time: $npm$styledComponents$StyledComponentsComponentListValue, + title: $npm$styledComponents$StyledComponentsComponentListValue, + tr: $npm$styledComponents$StyledComponentsComponentListValue, + track: $npm$styledComponents$StyledComponentsComponentListValue, + u: $npm$styledComponents$StyledComponentsComponentListValue, + ul: $npm$styledComponents$StyledComponentsComponentListValue, + var: $npm$styledComponents$StyledComponentsComponentListValue, + video: $npm$styledComponents$StyledComponentsComponentListValue, + wbr: $npm$styledComponents$StyledComponentsComponentListValue, + + // SVG + circle: $npm$styledComponents$StyledComponentsComponentListValue, + clipPath: $npm$styledComponents$StyledComponentsComponentListValue, + defs: $npm$styledComponents$StyledComponentsComponentListValue, + ellipse: $npm$styledComponents$StyledComponentsComponentListValue, + g: $npm$styledComponents$StyledComponentsComponentListValue, + image: $npm$styledComponents$StyledComponentsComponentListValue, + line: $npm$styledComponents$StyledComponentsComponentListValue, + linearGradient: $npm$styledComponents$StyledComponentsComponentListValue, + mask: $npm$styledComponents$StyledComponentsComponentListValue, + path: $npm$styledComponents$StyledComponentsComponentListValue, + pattern: $npm$styledComponents$StyledComponentsComponentListValue, + polygon: $npm$styledComponents$StyledComponentsComponentListValue, + polyline: $npm$styledComponents$StyledComponentsComponentListValue, + radialGradient: $npm$styledComponents$StyledComponentsComponentListValue, + rect: $npm$styledComponents$StyledComponentsComponentListValue, + stop: $npm$styledComponents$StyledComponentsComponentListValue, + svg: $npm$styledComponents$StyledComponentsComponentListValue, + text: $npm$styledComponents$StyledComponentsComponentListValue, + tspan: $npm$styledComponents$StyledComponentsComponentListValue, +|} + +type $npm$styledComponents$StyledComponentsNativeComponentListKeys = + $Subtype<$Keys<$npm$styledComponents$StyledComponentsNativeComponentList>> + +type $npm$styledComponents$StyledComponentsNativeComponentListValue = + $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent<{}, $npm$styledComponents$StyledComponentsNativeComponentListKeys> + +type $npm$styledComponents$StyledComponentsNativeComponentList = {| + ActivityIndicator: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ActivityIndicatorIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ART: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Button: $npm$styledComponents$StyledComponentsNativeComponentListValue, + DatePickerIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + DrawerLayoutAndroid: $npm$styledComponents$StyledComponentsNativeComponentListValue, + FlatList: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Image: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ImageEditor: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ImageStore: $npm$styledComponents$StyledComponentsNativeComponentListValue, + KeyboardAvoidingView: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ListView: $npm$styledComponents$StyledComponentsNativeComponentListValue, + MapView: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Modal: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Navigator: $npm$styledComponents$StyledComponentsNativeComponentListValue, + NavigatorIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Picker: $npm$styledComponents$StyledComponentsNativeComponentListValue, + PickerIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ProgressBarAndroid: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ProgressViewIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + RecyclerViewBackedScrollView: $npm$styledComponents$StyledComponentsNativeComponentListValue, + RefreshControl: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ScrollView: $npm$styledComponents$StyledComponentsNativeComponentListValue, + SectionList: $npm$styledComponents$StyledComponentsNativeComponentListValue, + SegmentedControlIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Slider: $npm$styledComponents$StyledComponentsNativeComponentListValue, + SliderIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + SnapshotViewIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + StatusBar: $npm$styledComponents$StyledComponentsNativeComponentListValue, + SwipeableListView: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Switch: $npm$styledComponents$StyledComponentsNativeComponentListValue, + SwitchAndroid: $npm$styledComponents$StyledComponentsNativeComponentListValue, + SwitchIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + TabBarIOS: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Text: $npm$styledComponents$StyledComponentsNativeComponentListValue, + TextInput: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ToastAndroid: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ToolbarAndroid: $npm$styledComponents$StyledComponentsNativeComponentListValue, + Touchable: $npm$styledComponents$StyledComponentsNativeComponentListValue, + TouchableHighlight: $npm$styledComponents$StyledComponentsNativeComponentListValue, + TouchableNativeFeedback: $npm$styledComponents$StyledComponentsNativeComponentListValue, + TouchableOpacity: $npm$styledComponents$StyledComponentsNativeComponentListValue, + TouchableWithoutFeedback: $npm$styledComponents$StyledComponentsNativeComponentListValue, + View: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ViewPagerAndroid: $npm$styledComponents$StyledComponentsNativeComponentListValue, + VirtualizedList: $npm$styledComponents$StyledComponentsNativeComponentListValue, + WebView: $npm$styledComponents$StyledComponentsNativeComponentListValue, +|} + +declare module 'styled-components' { + declare type Interpolation = $npm$styledComponents$Interpolation; + declare type NameGenerator = $npm$styledComponents$NameGenerator; + declare type Theme = $npm$styledComponents$Theme; + declare type ThemeProviderProps = $npm$styledComponents$ThemeProviderProps; + declare type TaggedTemplateLiteral = $npm$styledComponents$TaggedTemplateLiteral; + declare type ComponentListKeys = $npm$styledComponents$StyledComponentsComponentListKeys; + + declare type ReactComponentFunctional = $npm$styledComponents$ReactComponentFunctional; + declare type ReactComponentFunctionalUndefinedDefaultProps = $npm$styledComponents$ReactComponentFunctionalUndefinedDefaultProps; + declare type ReactComponentClass = $npm$styledComponents$ReactComponentClass; + declare type ReactComponentClassUndefinedDefaultProps = $npm$styledComponents$ReactComponentClassUndefinedDefaultProps; + declare type ReactComponentUnion = $npm$styledComponents$ReactComponentUnion; + declare type ReactComponentIntersection = $npm$styledComponents$ReactComponentIntersection; + declare type ReactComponentStyledStaticProps = $npm$styledComponents$ReactComponentStyledStaticPropsWithComponent; + declare type ReactComponentStyled = $npm$styledComponents$ReactComponentStyled; + declare type ReactComponentStyledTaggedTemplateLiteral = $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent; + + declare module.exports: { + $call: $npm$styledComponents$Call, + + injectGlobal: TaggedTemplateLiteral, + css: TaggedTemplateLiteral>, + keyframes: TaggedTemplateLiteral, + withTheme: $npm$styledComponents$WithTheme, + ServerStyleSheet: typeof Npm$StyledComponents$ServerStyleSheet, + StyleSheetManager: typeof Npm$StyledComponents$StyleSheetManager, + ThemeProvider: typeof Npm$StyledComponents$ThemeProvider, + + ...$npm$styledComponents$StyledComponentsComponentList, + ...$npm$styledComponents$StyledComponentsNativeComponentList, + }; +} + +declare module 'styled-components/native' { + declare type Interpolation = $npm$styledComponents$Interpolation; + declare type NameGenerator = $npm$styledComponents$NameGenerator; + declare type Theme = $npm$styledComponents$Theme; + declare type ThemeProviderProps = $npm$styledComponents$ThemeProviderProps; + declare type TaggedTemplateLiteral = $npm$styledComponents$TaggedTemplateLiteral; + declare type NativeComponentListKeys = $npm$styledComponents$StyledComponentsNativeComponentListKeys; + + declare type ReactComponentFunctional = $npm$styledComponents$ReactComponentFunctional; + declare type ReactComponentFunctionalUndefinedDefaultProps = $npm$styledComponents$ReactComponentFunctionalUndefinedDefaultProps; + declare type ReactComponentClass = $npm$styledComponents$ReactComponentClass; + declare type ReactComponentClassUndefinedDefaultProps = $npm$styledComponents$ReactComponentClassUndefinedDefaultProps; + declare type ReactComponentUnion = $npm$styledComponents$ReactComponentUnion; + declare type ReactComponentIntersection = $npm$styledComponents$ReactComponentIntersection; + declare type ReactComponentStyledStaticProps = $npm$styledComponents$ReactComponentStyledStaticPropsWithComponent; + declare type ReactComponentStyled = $npm$styledComponents$ReactComponentStyled; + declare type ReactComponentStyledTaggedTemplateLiteral = $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent; + + declare module.exports: { + $call: $npm$styledComponents$Call, + + css: TaggedTemplateLiteral>, + keyframes: TaggedTemplateLiteral, + withTheme: $npm$styledComponents$WithTheme, + ThemeProvider: typeof Npm$StyledComponents$ThemeProvider, + + ...$npm$styledComponents$StyledComponentsNativeComponentList, + }; +} diff --git a/flow-typed/npm/styled-normalize_vx.x.x.js b/flow-typed/npm/styled-normalize_vx.x.x.js new file mode 100644 index 00000000..7193cb0c --- /dev/null +++ b/flow-typed/npm/styled-normalize_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 363df9bda6a4fdad1abf4cef8300e285 +// flow-typed version: <>/styled-normalize_v^2.2.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'styled-normalize' + * + * 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 'styled-normalize' { + 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 'styled-normalize/dist/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'styled-normalize/dist/index.js' { + declare module.exports: $Exports<'styled-normalize/dist/index'>; +} diff --git a/flow-typed/npm/url-loader_vx.x.x.js b/flow-typed/npm/url-loader_vx.x.x.js index f6f29763..3bf6af47 100644 --- a/flow-typed/npm/url-loader_vx.x.x.js +++ b/flow-typed/npm/url-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 59ec30816f78bfddca41be13ed665c29 -// flow-typed version: <>/url-loader_v0.5.7/flow_v0.49.1 +// flow-typed signature: 6c39fe45cf77f5d447f45b5abf75d8ca +// flow-typed version: <>/url-loader_v^0.6.2/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/uuid_v2.x.x.js b/flow-typed/npm/uuid_v2.x.x.js index 7ea5638d..56b9dbd2 100644 --- a/flow-typed/npm/uuid_v2.x.x.js +++ b/flow-typed/npm/uuid_v2.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: fc8302ad15d259d398addf96a9488e10 -// flow-typed version: 27f92307d3/uuid_v2.x.x/flow_>=v0.33.x +// flow-typed signature: 7af6723fc9db45a9ff15454c1ca56557 +// flow-typed version: b43dff3e0e/uuid_v2.x.x/flow_>=v0.32.x declare module 'uuid' { declare function v1(options?: {| diff --git a/flow-typed/npm/validator_vx.x.x.js b/flow-typed/npm/validator_vx.x.x.js index 273c7146..7e6a0e80 100644 --- a/flow-typed/npm/validator_vx.x.x.js +++ b/flow-typed/npm/validator_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f4bfd140b17d53068ea2d2fcc5d74efd -// flow-typed version: <>/validator_v5.2.0/flow_v0.49.1 +// flow-typed signature: af8d19cdb2cf53118095cb557500d4b6 +// flow-typed version: <>/validator_v5.2.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/webpack-manifest-plugin_vx.x.x.js b/flow-typed/npm/webpack-manifest-plugin_vx.x.x.js new file mode 100644 index 00000000..75989b7d --- /dev/null +++ b/flow-typed/npm/webpack-manifest-plugin_vx.x.x.js @@ -0,0 +1,38 @@ +// flow-typed signature: 4763d2093535bf04c5192eb2b996e2fb +// flow-typed version: <>/webpack-manifest-plugin_v^1.3.2/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'webpack-manifest-plugin' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'webpack-manifest-plugin' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'webpack-manifest-plugin/lib/plugin' { + declare module.exports: any; +} + +// Filename aliases +declare module 'webpack-manifest-plugin/index' { + declare module.exports: $Exports<'webpack-manifest-plugin'>; +} +declare module 'webpack-manifest-plugin/index.js' { + declare module.exports: $Exports<'webpack-manifest-plugin'>; +} +declare module 'webpack-manifest-plugin/lib/plugin.js' { + declare module.exports: $Exports<'webpack-manifest-plugin/lib/plugin'>; +} diff --git a/flow-typed/npm/webpack_vx.x.x.js b/flow-typed/npm/webpack_vx.x.x.js index 191369da..44b514c1 100644 --- a/flow-typed/npm/webpack_vx.x.x.js +++ b/flow-typed/npm/webpack_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9505ab975f0f3b7d08cdb0e40ae63807 -// flow-typed version: <>/webpack_v1.13.2/flow_v0.49.1 +// flow-typed signature: 3a06dd2c6a4f0b4230a9c83604a621d7 +// flow-typed version: <>/webpack_v3.10.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -26,6 +26,10 @@ declare module 'webpack/bin/config-optimist' { declare module.exports: any; } +declare module 'webpack/bin/config-yargs' { + declare module.exports: any; +} + declare module 'webpack/bin/convert-argv' { declare module.exports: any; } @@ -42,11 +46,19 @@ declare module 'webpack/buildin/amd-options' { declare module.exports: any; } +declare module 'webpack/buildin/global' { + declare module.exports: any; +} + +declare module 'webpack/buildin/harmony-module' { + declare module.exports: any; +} + declare module 'webpack/buildin/module' { declare module.exports: any; } -declare module 'webpack/buildin/return-require' { +declare module 'webpack/buildin/system' { declare module.exports: any; } @@ -54,10 +66,18 @@ declare module 'webpack/hot/dev-server' { declare module.exports: any; } +declare module 'webpack/hot/emitter' { + declare module.exports: any; +} + declare module 'webpack/hot/log-apply-result' { declare module.exports: any; } +declare module 'webpack/hot/log' { + declare module.exports: any; +} + declare module 'webpack/hot/only-dev-server' { declare module.exports: any; } @@ -70,10 +90,6 @@ declare module 'webpack/hot/signal' { declare module.exports: any; } -declare module 'webpack/lib/AbstractPlugin' { - declare module.exports: any; -} - declare module 'webpack/lib/AmdMainTemplatePlugin' { declare module.exports: any; } @@ -82,11 +98,11 @@ declare module 'webpack/lib/APIPlugin' { declare module.exports: any; } -declare module 'webpack/lib/ArrayMap' { +declare module 'webpack/lib/AsyncDependenciesBlock' { declare module.exports: any; } -declare module 'webpack/lib/AsyncDependenciesBlock' { +declare module 'webpack/lib/AsyncDependencyToInitialChunkWarning' { declare module.exports: any; } @@ -122,6 +138,10 @@ declare module 'webpack/lib/ChunkTemplate' { declare module.exports: any; } +declare module 'webpack/lib/compareLocations' { + declare module.exports: any; +} + declare module 'webpack/lib/CompatibilityPlugin' { declare module.exports: any; } @@ -134,11 +154,11 @@ declare module 'webpack/lib/Compiler' { declare module.exports: any; } -declare module 'webpack/lib/ConcatSource' { +declare module 'webpack/lib/ConstPlugin' { declare module.exports: any; } -declare module 'webpack/lib/ConstPlugin' { +declare module 'webpack/lib/ContextExclusionPlugin' { declare module.exports: any; } @@ -154,10 +174,6 @@ declare module 'webpack/lib/ContextReplacementPlugin' { declare module.exports: any; } -declare module 'webpack/lib/CriticalDependenciesWarning' { - declare module.exports: any; -} - declare module 'webpack/lib/DefinePlugin' { declare module.exports: any; } @@ -250,6 +266,14 @@ declare module 'webpack/lib/dependencies/ContextElementDependency' { declare module.exports: any; } +declare module 'webpack/lib/dependencies/CriticalDependencyWarning' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/DelegatedExportsDependency' { + declare module.exports: any; +} + declare module 'webpack/lib/dependencies/DelegatedSourceDependency' { declare module.exports: any; } @@ -266,19 +290,103 @@ declare module 'webpack/lib/dependencies/getFunctionExpression' { declare module.exports: any; } -declare module 'webpack/lib/dependencies/LabeledExportsDependency' { +declare module 'webpack/lib/dependencies/HarmonyAcceptDependency' { declare module.exports: any; } -declare module 'webpack/lib/dependencies/LabeledModuleDependency' { +declare module 'webpack/lib/dependencies/HarmonyAcceptImportDependency' { declare module.exports: any; } -declare module 'webpack/lib/dependencies/LabeledModuleDependencyParserPlugin' { +declare module 'webpack/lib/dependencies/HarmonyCompatibilityDependency' { declare module.exports: any; } -declare module 'webpack/lib/dependencies/LabeledModulesPlugin' { +declare module 'webpack/lib/dependencies/HarmonyDetectionParserPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyExportDependencyParserPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyExportExpressionDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyExportHeaderDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyExportSpecifierDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyImportDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyImportDependencyParserPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyImportSpecifierDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyModulesHelpers' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/HarmonyModulesPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportContextDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportDependenciesBlock' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportEagerContextDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportEagerDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportLazyContextDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportLazyOnceContextDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportParserPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportWeakContextDependency' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/ImportWeakDependency' { declare module.exports: any; } @@ -330,10 +438,6 @@ declare module 'webpack/lib/dependencies/NullDependency' { declare module.exports: any; } -declare module 'webpack/lib/dependencies/NullDependencyTemplate' { - declare module.exports: any; -} - declare module 'webpack/lib/dependencies/PrefetchDependency' { declare module.exports: any; } @@ -406,7 +510,11 @@ declare module 'webpack/lib/dependencies/SingleEntryDependency' { declare module.exports: any; } -declare module 'webpack/lib/dependencies/TemplateArgumentDependency' { +declare module 'webpack/lib/dependencies/SystemPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/dependencies/UnsupportedDependency' { declare module.exports: any; } @@ -446,6 +554,10 @@ declare module 'webpack/lib/DllReferencePlugin' { declare module.exports: any; } +declare module 'webpack/lib/DynamicEntryPlugin' { + declare module.exports: any; +} + declare module 'webpack/lib/EntryModuleNotFoundError' { declare module.exports: any; } @@ -454,10 +566,18 @@ declare module 'webpack/lib/EntryOptionPlugin' { declare module.exports: any; } +declare module 'webpack/lib/Entrypoint' { + declare module.exports: any; +} + declare module 'webpack/lib/EnvironmentPlugin' { declare module.exports: any; } +declare module 'webpack/lib/ErrorHelpers' { + declare module.exports: any; +} + declare module 'webpack/lib/EvalDevToolModulePlugin' { declare module.exports: any; } @@ -474,6 +594,10 @@ declare module 'webpack/lib/EvalSourceMapDevToolPlugin' { declare module.exports: any; } +declare module 'webpack/lib/ExportPropertyMainTemplatePlugin' { + declare module.exports: any; +} + declare module 'webpack/lib/ExtendedAPIPlugin' { declare module.exports: any; } @@ -490,6 +614,22 @@ declare module 'webpack/lib/ExternalsPlugin' { declare module.exports: any; } +declare module 'webpack/lib/FlagDependencyExportsPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/FlagDependencyUsagePlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/FlagInitialModulesAsUsedPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/formatLocation' { + declare module.exports: any; +} + declare module 'webpack/lib/FunctionModulePlugin' { declare module.exports: any; } @@ -498,6 +638,10 @@ declare module 'webpack/lib/FunctionModuleTemplatePlugin' { declare module.exports: any; } +declare module 'webpack/lib/HashedModuleIdsPlugin' { + declare module.exports: any; +} + declare module 'webpack/lib/HotModuleReplacement.runtime' { declare module.exports: any; } @@ -546,6 +690,10 @@ declare module 'webpack/lib/LibraryTemplatePlugin' { declare module.exports: any; } +declare module 'webpack/lib/LoaderOptionsPlugin' { + declare module.exports: any; +} + declare module 'webpack/lib/LoaderTargetPlugin' { declare module.exports: any; } @@ -562,6 +710,22 @@ declare module 'webpack/lib/Module' { declare module.exports: any; } +declare module 'webpack/lib/ModuleBuildError' { + declare module.exports: any; +} + +declare module 'webpack/lib/ModuleDependencyError' { + declare module.exports: any; +} + +declare module 'webpack/lib/ModuleDependencyWarning' { + declare module.exports: any; +} + +declare module 'webpack/lib/ModuleError' { + declare module.exports: any; +} + declare module 'webpack/lib/ModuleFilenameHelpers' { declare module.exports: any; } @@ -574,10 +738,6 @@ declare module 'webpack/lib/ModuleParseError' { declare module.exports: any; } -declare module 'webpack/lib/ModuleParserHelpers' { - declare module.exports: any; -} - declare module 'webpack/lib/ModuleReason' { declare module.exports: any; } @@ -586,6 +746,10 @@ declare module 'webpack/lib/ModuleTemplate' { declare module.exports: any; } +declare module 'webpack/lib/ModuleWarning' { + declare module.exports: any; +} + declare module 'webpack/lib/MovedToPluginWarningPlugin' { declare module.exports: any; } @@ -606,6 +770,18 @@ declare module 'webpack/lib/MultiModuleFactory' { declare module.exports: any; } +declare module 'webpack/lib/MultiStats' { + declare module.exports: any; +} + +declare module 'webpack/lib/MultiWatching' { + declare module.exports: any; +} + +declare module 'webpack/lib/NamedChunksPlugin' { + declare module.exports: any; +} + declare module 'webpack/lib/NamedModulesPlugin' { declare module.exports: any; } @@ -658,11 +834,11 @@ declare module 'webpack/lib/node/NodeWatchFileSystem' { declare module.exports: any; } -declare module 'webpack/lib/node/OldNodeWatchFileSystem' { +declare module 'webpack/lib/NodeStuffPlugin' { declare module.exports: any; } -declare module 'webpack/lib/NodeStuffPlugin' { +declare module 'webpack/lib/NoEmitOnErrorsPlugin' { declare module.exports: any; } @@ -686,11 +862,15 @@ declare module 'webpack/lib/NullFactory' { declare module.exports: any; } -declare module 'webpack/lib/OldWatchingPlugin' { +declare module 'webpack/lib/optimize/AggressiveMergingPlugin' { declare module.exports: any; } -declare module 'webpack/lib/optimize/AggressiveMergingPlugin' { +declare module 'webpack/lib/optimize/AggressiveSplittingPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/optimize/ChunkModuleIdRangePlugin' { declare module.exports: any; } @@ -698,10 +878,18 @@ declare module 'webpack/lib/optimize/CommonsChunkPlugin' { declare module.exports: any; } +declare module 'webpack/lib/optimize/ConcatenatedModule' { + declare module.exports: any; +} + declare module 'webpack/lib/optimize/DedupePlugin' { declare module.exports: any; } +declare module 'webpack/lib/optimize/EnsureChunkConditionsPlugin' { + declare module.exports: any; +} + declare module 'webpack/lib/optimize/FlagIncludedChunksPlugin' { declare module.exports: any; } @@ -718,7 +906,7 @@ declare module 'webpack/lib/optimize/MinChunkSizePlugin' { declare module.exports: any; } -declare module 'webpack/lib/optimize/OccurenceOrderPlugin' { +declare module 'webpack/lib/optimize/ModuleConcatenationPlugin' { declare module.exports: any; } @@ -742,7 +930,7 @@ declare module 'webpack/lib/OptionsApply' { declare module.exports: any; } -declare module 'webpack/lib/OriginalSource' { +declare module 'webpack/lib/OptionsDefaulter' { declare module.exports: any; } @@ -750,10 +938,34 @@ declare module 'webpack/lib/Parser' { declare module.exports: any; } +declare module 'webpack/lib/ParserHelpers' { + declare module.exports: any; +} + +declare module 'webpack/lib/performance/AssetsOverSizeLimitWarning' { + declare module.exports: any; +} + +declare module 'webpack/lib/performance/EntrypointsOverSizeLimitWarning' { + declare module.exports: any; +} + +declare module 'webpack/lib/performance/NoAsyncChunksWarning' { + declare module.exports: any; +} + +declare module 'webpack/lib/performance/SizeLimitsPlugin' { + declare module.exports: any; +} + declare module 'webpack/lib/PrefetchPlugin' { declare module.exports: any; } +declare module 'webpack/lib/prepareOptions' { + declare module.exports: any; +} + declare module 'webpack/lib/ProgressPlugin' { declare module.exports: any; } @@ -766,10 +978,6 @@ declare module 'webpack/lib/RawModule' { declare module.exports: any; } -declare module 'webpack/lib/RawSource' { - declare module.exports: any; -} - declare module 'webpack/lib/RecordIdsPlugin' { declare module.exports: any; } @@ -786,7 +994,7 @@ declare module 'webpack/lib/RequireJsStuffPlugin' { declare module.exports: any; } -declare module 'webpack/lib/ResolverPlugin' { +declare module 'webpack/lib/RuleSet' { declare module.exports: any; } @@ -798,7 +1006,7 @@ declare module 'webpack/lib/SingleEntryPlugin' { declare module.exports: any; } -declare module 'webpack/lib/Source' { +declare module 'webpack/lib/SizeFormatHelpers' { declare module.exports: any; } @@ -810,10 +1018,6 @@ declare module 'webpack/lib/SourceMapDevToolPlugin' { declare module.exports: any; } -declare module 'webpack/lib/SourceMapSource' { - declare module.exports: any; -} - declare module 'webpack/lib/Stats' { declare module.exports: any; } @@ -834,6 +1038,30 @@ declare module 'webpack/lib/UnsupportedFeatureWarning' { declare module.exports: any; } +declare module 'webpack/lib/UseStrictPlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/util/identifier' { + declare module.exports: any; +} + +declare module 'webpack/lib/util/Queue' { + declare module.exports: any; +} + +declare module 'webpack/lib/util/Semaphore' { + declare module.exports: any; +} + +declare module 'webpack/lib/util/SortableSet' { + declare module.exports: any; +} + +declare module 'webpack/lib/validateSchema' { + declare module.exports: any; +} + declare module 'webpack/lib/WarnCaseSensitiveModulesPlugin' { declare module.exports: any; } @@ -854,6 +1082,10 @@ declare module 'webpack/lib/webpack.web' { declare module.exports: any; } +declare module 'webpack/lib/WebpackError' { + declare module.exports: any; +} + declare module 'webpack/lib/WebpackOptionsApply' { declare module.exports: any; } @@ -862,10 +1094,22 @@ declare module 'webpack/lib/WebpackOptionsDefaulter' { declare module.exports: any; } +declare module 'webpack/lib/WebpackOptionsValidationError' { + declare module.exports: any; +} + declare module 'webpack/lib/webworker/WebWorkerChunkTemplatePlugin' { declare module.exports: any; } +declare module 'webpack/lib/webworker/WebWorkerHotUpdateChunkTemplatePlugin' { + declare module.exports: any; +} + +declare module 'webpack/lib/webworker/WebWorkerMainTemplate.runtime' { + declare module.exports: any; +} + declare module 'webpack/lib/webworker/WebWorkerMainTemplatePlugin' { declare module.exports: any; } @@ -874,6 +1118,10 @@ declare module 'webpack/lib/webworker/WebWorkerTemplatePlugin' { declare module.exports: any; } +declare module 'webpack/schemas/ajv.absolutePath' { + declare module.exports: any; +} + declare module 'webpack/web_modules/node-libs-browser' { declare module.exports: any; } @@ -882,6 +1130,9 @@ declare module 'webpack/web_modules/node-libs-browser' { declare module 'webpack/bin/config-optimist.js' { declare module.exports: $Exports<'webpack/bin/config-optimist'>; } +declare module 'webpack/bin/config-yargs.js' { + declare module.exports: $Exports<'webpack/bin/config-yargs'>; +} declare module 'webpack/bin/convert-argv.js' { declare module.exports: $Exports<'webpack/bin/convert-argv'>; } @@ -894,18 +1145,30 @@ declare module 'webpack/buildin/amd-define.js' { declare module 'webpack/buildin/amd-options.js' { declare module.exports: $Exports<'webpack/buildin/amd-options'>; } +declare module 'webpack/buildin/global.js' { + declare module.exports: $Exports<'webpack/buildin/global'>; +} +declare module 'webpack/buildin/harmony-module.js' { + declare module.exports: $Exports<'webpack/buildin/harmony-module'>; +} declare module 'webpack/buildin/module.js' { declare module.exports: $Exports<'webpack/buildin/module'>; } -declare module 'webpack/buildin/return-require.js' { - declare module.exports: $Exports<'webpack/buildin/return-require'>; +declare module 'webpack/buildin/system.js' { + declare module.exports: $Exports<'webpack/buildin/system'>; } declare module 'webpack/hot/dev-server.js' { declare module.exports: $Exports<'webpack/hot/dev-server'>; } +declare module 'webpack/hot/emitter.js' { + declare module.exports: $Exports<'webpack/hot/emitter'>; +} declare module 'webpack/hot/log-apply-result.js' { declare module.exports: $Exports<'webpack/hot/log-apply-result'>; } +declare module 'webpack/hot/log.js' { + declare module.exports: $Exports<'webpack/hot/log'>; +} declare module 'webpack/hot/only-dev-server.js' { declare module.exports: $Exports<'webpack/hot/only-dev-server'>; } @@ -915,21 +1178,18 @@ declare module 'webpack/hot/poll.js' { declare module 'webpack/hot/signal.js' { declare module.exports: $Exports<'webpack/hot/signal'>; } -declare module 'webpack/lib/AbstractPlugin.js' { - declare module.exports: $Exports<'webpack/lib/AbstractPlugin'>; -} declare module 'webpack/lib/AmdMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/AmdMainTemplatePlugin'>; } declare module 'webpack/lib/APIPlugin.js' { declare module.exports: $Exports<'webpack/lib/APIPlugin'>; } -declare module 'webpack/lib/ArrayMap.js' { - declare module.exports: $Exports<'webpack/lib/ArrayMap'>; -} declare module 'webpack/lib/AsyncDependenciesBlock.js' { declare module.exports: $Exports<'webpack/lib/AsyncDependenciesBlock'>; } +declare module 'webpack/lib/AsyncDependencyToInitialChunkWarning.js' { + declare module.exports: $Exports<'webpack/lib/AsyncDependencyToInitialChunkWarning'>; +} declare module 'webpack/lib/AutomaticPrefetchPlugin.js' { declare module.exports: $Exports<'webpack/lib/AutomaticPrefetchPlugin'>; } @@ -954,6 +1214,9 @@ declare module 'webpack/lib/ChunkRenderError.js' { declare module 'webpack/lib/ChunkTemplate.js' { declare module.exports: $Exports<'webpack/lib/ChunkTemplate'>; } +declare module 'webpack/lib/compareLocations.js' { + declare module.exports: $Exports<'webpack/lib/compareLocations'>; +} declare module 'webpack/lib/CompatibilityPlugin.js' { declare module.exports: $Exports<'webpack/lib/CompatibilityPlugin'>; } @@ -963,12 +1226,12 @@ declare module 'webpack/lib/Compilation.js' { declare module 'webpack/lib/Compiler.js' { declare module.exports: $Exports<'webpack/lib/Compiler'>; } -declare module 'webpack/lib/ConcatSource.js' { - declare module.exports: $Exports<'webpack/lib/ConcatSource'>; -} declare module 'webpack/lib/ConstPlugin.js' { declare module.exports: $Exports<'webpack/lib/ConstPlugin'>; } +declare module 'webpack/lib/ContextExclusionPlugin.js' { + declare module.exports: $Exports<'webpack/lib/ContextExclusionPlugin'>; +} declare module 'webpack/lib/ContextModule.js' { declare module.exports: $Exports<'webpack/lib/ContextModule'>; } @@ -978,9 +1241,6 @@ declare module 'webpack/lib/ContextModuleFactory.js' { declare module 'webpack/lib/ContextReplacementPlugin.js' { declare module.exports: $Exports<'webpack/lib/ContextReplacementPlugin'>; } -declare module 'webpack/lib/CriticalDependenciesWarning.js' { - declare module.exports: $Exports<'webpack/lib/CriticalDependenciesWarning'>; -} declare module 'webpack/lib/DefinePlugin.js' { declare module.exports: $Exports<'webpack/lib/DefinePlugin'>; } @@ -1050,6 +1310,12 @@ declare module 'webpack/lib/dependencies/ContextDependencyTemplateAsRequireCall. declare module 'webpack/lib/dependencies/ContextElementDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ContextElementDependency'>; } +declare module 'webpack/lib/dependencies/CriticalDependencyWarning.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/CriticalDependencyWarning'>; +} +declare module 'webpack/lib/dependencies/DelegatedExportsDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/DelegatedExportsDependency'>; +} declare module 'webpack/lib/dependencies/DelegatedSourceDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/DelegatedSourceDependency'>; } @@ -1062,17 +1328,80 @@ declare module 'webpack/lib/dependencies/DllEntryDependency.js' { declare module 'webpack/lib/dependencies/getFunctionExpression.js' { declare module.exports: $Exports<'webpack/lib/dependencies/getFunctionExpression'>; } -declare module 'webpack/lib/dependencies/LabeledExportsDependency.js' { - declare module.exports: $Exports<'webpack/lib/dependencies/LabeledExportsDependency'>; +declare module 'webpack/lib/dependencies/HarmonyAcceptDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyAcceptDependency'>; } -declare module 'webpack/lib/dependencies/LabeledModuleDependency.js' { - declare module.exports: $Exports<'webpack/lib/dependencies/LabeledModuleDependency'>; +declare module 'webpack/lib/dependencies/HarmonyAcceptImportDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyAcceptImportDependency'>; } -declare module 'webpack/lib/dependencies/LabeledModuleDependencyParserPlugin.js' { - declare module.exports: $Exports<'webpack/lib/dependencies/LabeledModuleDependencyParserPlugin'>; +declare module 'webpack/lib/dependencies/HarmonyCompatibilityDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyCompatibilityDependency'>; } -declare module 'webpack/lib/dependencies/LabeledModulesPlugin.js' { - declare module.exports: $Exports<'webpack/lib/dependencies/LabeledModulesPlugin'>; +declare module 'webpack/lib/dependencies/HarmonyDetectionParserPlugin.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyDetectionParserPlugin'>; +} +declare module 'webpack/lib/dependencies/HarmonyExportDependencyParserPlugin.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportDependencyParserPlugin'>; +} +declare module 'webpack/lib/dependencies/HarmonyExportExpressionDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportExpressionDependency'>; +} +declare module 'webpack/lib/dependencies/HarmonyExportHeaderDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportHeaderDependency'>; +} +declare module 'webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency'>; +} +declare module 'webpack/lib/dependencies/HarmonyExportSpecifierDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportSpecifierDependency'>; +} +declare module 'webpack/lib/dependencies/HarmonyImportDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyImportDependency'>; +} +declare module 'webpack/lib/dependencies/HarmonyImportDependencyParserPlugin.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyImportDependencyParserPlugin'>; +} +declare module 'webpack/lib/dependencies/HarmonyImportSpecifierDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyImportSpecifierDependency'>; +} +declare module 'webpack/lib/dependencies/HarmonyModulesHelpers.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyModulesHelpers'>; +} +declare module 'webpack/lib/dependencies/HarmonyModulesPlugin.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyModulesPlugin'>; +} +declare module 'webpack/lib/dependencies/ImportContextDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportContextDependency'>; +} +declare module 'webpack/lib/dependencies/ImportDependenciesBlock.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportDependenciesBlock'>; +} +declare module 'webpack/lib/dependencies/ImportDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportDependency'>; +} +declare module 'webpack/lib/dependencies/ImportEagerContextDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportEagerContextDependency'>; +} +declare module 'webpack/lib/dependencies/ImportEagerDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportEagerDependency'>; +} +declare module 'webpack/lib/dependencies/ImportLazyContextDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportLazyContextDependency'>; +} +declare module 'webpack/lib/dependencies/ImportLazyOnceContextDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportLazyOnceContextDependency'>; +} +declare module 'webpack/lib/dependencies/ImportParserPlugin.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportParserPlugin'>; +} +declare module 'webpack/lib/dependencies/ImportPlugin.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportPlugin'>; +} +declare module 'webpack/lib/dependencies/ImportWeakContextDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportWeakContextDependency'>; +} +declare module 'webpack/lib/dependencies/ImportWeakDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/ImportWeakDependency'>; } declare module 'webpack/lib/dependencies/LoaderDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/LoaderDependency'>; @@ -1110,9 +1439,6 @@ declare module 'webpack/lib/dependencies/MultiEntryDependency.js' { declare module 'webpack/lib/dependencies/NullDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/NullDependency'>; } -declare module 'webpack/lib/dependencies/NullDependencyTemplate.js' { - declare module.exports: $Exports<'webpack/lib/dependencies/NullDependencyTemplate'>; -} declare module 'webpack/lib/dependencies/PrefetchDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/PrefetchDependency'>; } @@ -1167,8 +1493,11 @@ declare module 'webpack/lib/dependencies/RequireResolveHeaderDependency.js' { declare module 'webpack/lib/dependencies/SingleEntryDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/SingleEntryDependency'>; } -declare module 'webpack/lib/dependencies/TemplateArgumentDependency.js' { - declare module.exports: $Exports<'webpack/lib/dependencies/TemplateArgumentDependency'>; +declare module 'webpack/lib/dependencies/SystemPlugin.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/SystemPlugin'>; +} +declare module 'webpack/lib/dependencies/UnsupportedDependency.js' { + declare module.exports: $Exports<'webpack/lib/dependencies/UnsupportedDependency'>; } declare module 'webpack/lib/dependencies/WebpackMissingModule.js' { declare module.exports: $Exports<'webpack/lib/dependencies/WebpackMissingModule'>; @@ -1197,15 +1526,24 @@ declare module 'webpack/lib/DllPlugin.js' { declare module 'webpack/lib/DllReferencePlugin.js' { declare module.exports: $Exports<'webpack/lib/DllReferencePlugin'>; } +declare module 'webpack/lib/DynamicEntryPlugin.js' { + declare module.exports: $Exports<'webpack/lib/DynamicEntryPlugin'>; +} declare module 'webpack/lib/EntryModuleNotFoundError.js' { declare module.exports: $Exports<'webpack/lib/EntryModuleNotFoundError'>; } declare module 'webpack/lib/EntryOptionPlugin.js' { declare module.exports: $Exports<'webpack/lib/EntryOptionPlugin'>; } +declare module 'webpack/lib/Entrypoint.js' { + declare module.exports: $Exports<'webpack/lib/Entrypoint'>; +} declare module 'webpack/lib/EnvironmentPlugin.js' { declare module.exports: $Exports<'webpack/lib/EnvironmentPlugin'>; } +declare module 'webpack/lib/ErrorHelpers.js' { + declare module.exports: $Exports<'webpack/lib/ErrorHelpers'>; +} declare module 'webpack/lib/EvalDevToolModulePlugin.js' { declare module.exports: $Exports<'webpack/lib/EvalDevToolModulePlugin'>; } @@ -1218,6 +1556,9 @@ declare module 'webpack/lib/EvalSourceMapDevToolModuleTemplatePlugin.js' { declare module 'webpack/lib/EvalSourceMapDevToolPlugin.js' { declare module.exports: $Exports<'webpack/lib/EvalSourceMapDevToolPlugin'>; } +declare module 'webpack/lib/ExportPropertyMainTemplatePlugin.js' { + declare module.exports: $Exports<'webpack/lib/ExportPropertyMainTemplatePlugin'>; +} declare module 'webpack/lib/ExtendedAPIPlugin.js' { declare module.exports: $Exports<'webpack/lib/ExtendedAPIPlugin'>; } @@ -1230,12 +1571,27 @@ declare module 'webpack/lib/ExternalModuleFactoryPlugin.js' { declare module 'webpack/lib/ExternalsPlugin.js' { declare module.exports: $Exports<'webpack/lib/ExternalsPlugin'>; } +declare module 'webpack/lib/FlagDependencyExportsPlugin.js' { + declare module.exports: $Exports<'webpack/lib/FlagDependencyExportsPlugin'>; +} +declare module 'webpack/lib/FlagDependencyUsagePlugin.js' { + declare module.exports: $Exports<'webpack/lib/FlagDependencyUsagePlugin'>; +} +declare module 'webpack/lib/FlagInitialModulesAsUsedPlugin.js' { + declare module.exports: $Exports<'webpack/lib/FlagInitialModulesAsUsedPlugin'>; +} +declare module 'webpack/lib/formatLocation.js' { + declare module.exports: $Exports<'webpack/lib/formatLocation'>; +} declare module 'webpack/lib/FunctionModulePlugin.js' { declare module.exports: $Exports<'webpack/lib/FunctionModulePlugin'>; } declare module 'webpack/lib/FunctionModuleTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/FunctionModuleTemplatePlugin'>; } +declare module 'webpack/lib/HashedModuleIdsPlugin.js' { + declare module.exports: $Exports<'webpack/lib/HashedModuleIdsPlugin'>; +} declare module 'webpack/lib/HotModuleReplacement.runtime.js' { declare module.exports: $Exports<'webpack/lib/HotModuleReplacement.runtime'>; } @@ -1272,6 +1628,9 @@ declare module 'webpack/lib/LibManifestPlugin.js' { declare module 'webpack/lib/LibraryTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/LibraryTemplatePlugin'>; } +declare module 'webpack/lib/LoaderOptionsPlugin.js' { + declare module.exports: $Exports<'webpack/lib/LoaderOptionsPlugin'>; +} declare module 'webpack/lib/LoaderTargetPlugin.js' { declare module.exports: $Exports<'webpack/lib/LoaderTargetPlugin'>; } @@ -1284,6 +1643,18 @@ declare module 'webpack/lib/MemoryOutputFileSystem.js' { declare module 'webpack/lib/Module.js' { declare module.exports: $Exports<'webpack/lib/Module'>; } +declare module 'webpack/lib/ModuleBuildError.js' { + declare module.exports: $Exports<'webpack/lib/ModuleBuildError'>; +} +declare module 'webpack/lib/ModuleDependencyError.js' { + declare module.exports: $Exports<'webpack/lib/ModuleDependencyError'>; +} +declare module 'webpack/lib/ModuleDependencyWarning.js' { + declare module.exports: $Exports<'webpack/lib/ModuleDependencyWarning'>; +} +declare module 'webpack/lib/ModuleError.js' { + declare module.exports: $Exports<'webpack/lib/ModuleError'>; +} declare module 'webpack/lib/ModuleFilenameHelpers.js' { declare module.exports: $Exports<'webpack/lib/ModuleFilenameHelpers'>; } @@ -1293,15 +1664,15 @@ declare module 'webpack/lib/ModuleNotFoundError.js' { declare module 'webpack/lib/ModuleParseError.js' { declare module.exports: $Exports<'webpack/lib/ModuleParseError'>; } -declare module 'webpack/lib/ModuleParserHelpers.js' { - declare module.exports: $Exports<'webpack/lib/ModuleParserHelpers'>; -} declare module 'webpack/lib/ModuleReason.js' { declare module.exports: $Exports<'webpack/lib/ModuleReason'>; } declare module 'webpack/lib/ModuleTemplate.js' { declare module.exports: $Exports<'webpack/lib/ModuleTemplate'>; } +declare module 'webpack/lib/ModuleWarning.js' { + declare module.exports: $Exports<'webpack/lib/ModuleWarning'>; +} declare module 'webpack/lib/MovedToPluginWarningPlugin.js' { declare module.exports: $Exports<'webpack/lib/MovedToPluginWarningPlugin'>; } @@ -1317,6 +1688,15 @@ declare module 'webpack/lib/MultiModule.js' { declare module 'webpack/lib/MultiModuleFactory.js' { declare module.exports: $Exports<'webpack/lib/MultiModuleFactory'>; } +declare module 'webpack/lib/MultiStats.js' { + declare module.exports: $Exports<'webpack/lib/MultiStats'>; +} +declare module 'webpack/lib/MultiWatching.js' { + declare module.exports: $Exports<'webpack/lib/MultiWatching'>; +} +declare module 'webpack/lib/NamedChunksPlugin.js' { + declare module.exports: $Exports<'webpack/lib/NamedChunksPlugin'>; +} declare module 'webpack/lib/NamedModulesPlugin.js' { declare module.exports: $Exports<'webpack/lib/NamedModulesPlugin'>; } @@ -1356,12 +1736,12 @@ declare module 'webpack/lib/node/NodeTemplatePlugin.js' { declare module 'webpack/lib/node/NodeWatchFileSystem.js' { declare module.exports: $Exports<'webpack/lib/node/NodeWatchFileSystem'>; } -declare module 'webpack/lib/node/OldNodeWatchFileSystem.js' { - declare module.exports: $Exports<'webpack/lib/node/OldNodeWatchFileSystem'>; -} declare module 'webpack/lib/NodeStuffPlugin.js' { declare module.exports: $Exports<'webpack/lib/NodeStuffPlugin'>; } +declare module 'webpack/lib/NoEmitOnErrorsPlugin.js' { + declare module.exports: $Exports<'webpack/lib/NoEmitOnErrorsPlugin'>; +} declare module 'webpack/lib/NoErrorsPlugin.js' { declare module.exports: $Exports<'webpack/lib/NoErrorsPlugin'>; } @@ -1377,18 +1757,27 @@ declare module 'webpack/lib/NormalModuleReplacementPlugin.js' { declare module 'webpack/lib/NullFactory.js' { declare module.exports: $Exports<'webpack/lib/NullFactory'>; } -declare module 'webpack/lib/OldWatchingPlugin.js' { - declare module.exports: $Exports<'webpack/lib/OldWatchingPlugin'>; -} declare module 'webpack/lib/optimize/AggressiveMergingPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/AggressiveMergingPlugin'>; } +declare module 'webpack/lib/optimize/AggressiveSplittingPlugin.js' { + declare module.exports: $Exports<'webpack/lib/optimize/AggressiveSplittingPlugin'>; +} +declare module 'webpack/lib/optimize/ChunkModuleIdRangePlugin.js' { + declare module.exports: $Exports<'webpack/lib/optimize/ChunkModuleIdRangePlugin'>; +} declare module 'webpack/lib/optimize/CommonsChunkPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/CommonsChunkPlugin'>; } +declare module 'webpack/lib/optimize/ConcatenatedModule.js' { + declare module.exports: $Exports<'webpack/lib/optimize/ConcatenatedModule'>; +} declare module 'webpack/lib/optimize/DedupePlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/DedupePlugin'>; } +declare module 'webpack/lib/optimize/EnsureChunkConditionsPlugin.js' { + declare module.exports: $Exports<'webpack/lib/optimize/EnsureChunkConditionsPlugin'>; +} declare module 'webpack/lib/optimize/FlagIncludedChunksPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/FlagIncludedChunksPlugin'>; } @@ -1401,8 +1790,8 @@ declare module 'webpack/lib/optimize/MergeDuplicateChunksPlugin.js' { declare module 'webpack/lib/optimize/MinChunkSizePlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/MinChunkSizePlugin'>; } -declare module 'webpack/lib/optimize/OccurenceOrderPlugin.js' { - declare module.exports: $Exports<'webpack/lib/optimize/OccurenceOrderPlugin'>; +declare module 'webpack/lib/optimize/ModuleConcatenationPlugin.js' { + declare module.exports: $Exports<'webpack/lib/optimize/ModuleConcatenationPlugin'>; } declare module 'webpack/lib/optimize/OccurrenceOrderPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/OccurrenceOrderPlugin'>; @@ -1419,15 +1808,33 @@ declare module 'webpack/lib/optimize/UglifyJsPlugin.js' { declare module 'webpack/lib/OptionsApply.js' { declare module.exports: $Exports<'webpack/lib/OptionsApply'>; } -declare module 'webpack/lib/OriginalSource.js' { - declare module.exports: $Exports<'webpack/lib/OriginalSource'>; +declare module 'webpack/lib/OptionsDefaulter.js' { + declare module.exports: $Exports<'webpack/lib/OptionsDefaulter'>; } declare module 'webpack/lib/Parser.js' { declare module.exports: $Exports<'webpack/lib/Parser'>; } +declare module 'webpack/lib/ParserHelpers.js' { + declare module.exports: $Exports<'webpack/lib/ParserHelpers'>; +} +declare module 'webpack/lib/performance/AssetsOverSizeLimitWarning.js' { + declare module.exports: $Exports<'webpack/lib/performance/AssetsOverSizeLimitWarning'>; +} +declare module 'webpack/lib/performance/EntrypointsOverSizeLimitWarning.js' { + declare module.exports: $Exports<'webpack/lib/performance/EntrypointsOverSizeLimitWarning'>; +} +declare module 'webpack/lib/performance/NoAsyncChunksWarning.js' { + declare module.exports: $Exports<'webpack/lib/performance/NoAsyncChunksWarning'>; +} +declare module 'webpack/lib/performance/SizeLimitsPlugin.js' { + declare module.exports: $Exports<'webpack/lib/performance/SizeLimitsPlugin'>; +} declare module 'webpack/lib/PrefetchPlugin.js' { declare module.exports: $Exports<'webpack/lib/PrefetchPlugin'>; } +declare module 'webpack/lib/prepareOptions.js' { + declare module.exports: $Exports<'webpack/lib/prepareOptions'>; +} declare module 'webpack/lib/ProgressPlugin.js' { declare module.exports: $Exports<'webpack/lib/ProgressPlugin'>; } @@ -1437,9 +1844,6 @@ declare module 'webpack/lib/ProvidePlugin.js' { declare module 'webpack/lib/RawModule.js' { declare module.exports: $Exports<'webpack/lib/RawModule'>; } -declare module 'webpack/lib/RawSource.js' { - declare module.exports: $Exports<'webpack/lib/RawSource'>; -} declare module 'webpack/lib/RecordIdsPlugin.js' { declare module.exports: $Exports<'webpack/lib/RecordIdsPlugin'>; } @@ -1452,8 +1856,8 @@ declare module 'webpack/lib/RequestShortener.js' { declare module 'webpack/lib/RequireJsStuffPlugin.js' { declare module.exports: $Exports<'webpack/lib/RequireJsStuffPlugin'>; } -declare module 'webpack/lib/ResolverPlugin.js' { - declare module.exports: $Exports<'webpack/lib/ResolverPlugin'>; +declare module 'webpack/lib/RuleSet.js' { + declare module.exports: $Exports<'webpack/lib/RuleSet'>; } declare module 'webpack/lib/SetVarMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/SetVarMainTemplatePlugin'>; @@ -1461,8 +1865,8 @@ declare module 'webpack/lib/SetVarMainTemplatePlugin.js' { declare module 'webpack/lib/SingleEntryPlugin.js' { declare module.exports: $Exports<'webpack/lib/SingleEntryPlugin'>; } -declare module 'webpack/lib/Source.js' { - declare module.exports: $Exports<'webpack/lib/Source'>; +declare module 'webpack/lib/SizeFormatHelpers.js' { + declare module.exports: $Exports<'webpack/lib/SizeFormatHelpers'>; } declare module 'webpack/lib/SourceMapDevToolModuleOptionsPlugin.js' { declare module.exports: $Exports<'webpack/lib/SourceMapDevToolModuleOptionsPlugin'>; @@ -1470,9 +1874,6 @@ declare module 'webpack/lib/SourceMapDevToolModuleOptionsPlugin.js' { declare module 'webpack/lib/SourceMapDevToolPlugin.js' { declare module.exports: $Exports<'webpack/lib/SourceMapDevToolPlugin'>; } -declare module 'webpack/lib/SourceMapSource.js' { - declare module.exports: $Exports<'webpack/lib/SourceMapSource'>; -} declare module 'webpack/lib/Stats.js' { declare module.exports: $Exports<'webpack/lib/Stats'>; } @@ -1488,6 +1889,24 @@ declare module 'webpack/lib/UmdMainTemplatePlugin.js' { declare module 'webpack/lib/UnsupportedFeatureWarning.js' { declare module.exports: $Exports<'webpack/lib/UnsupportedFeatureWarning'>; } +declare module 'webpack/lib/UseStrictPlugin.js' { + declare module.exports: $Exports<'webpack/lib/UseStrictPlugin'>; +} +declare module 'webpack/lib/util/identifier.js' { + declare module.exports: $Exports<'webpack/lib/util/identifier'>; +} +declare module 'webpack/lib/util/Queue.js' { + declare module.exports: $Exports<'webpack/lib/util/Queue'>; +} +declare module 'webpack/lib/util/Semaphore.js' { + declare module.exports: $Exports<'webpack/lib/util/Semaphore'>; +} +declare module 'webpack/lib/util/SortableSet.js' { + declare module.exports: $Exports<'webpack/lib/util/SortableSet'>; +} +declare module 'webpack/lib/validateSchema.js' { + declare module.exports: $Exports<'webpack/lib/validateSchema'>; +} declare module 'webpack/lib/WarnCaseSensitiveModulesPlugin.js' { declare module.exports: $Exports<'webpack/lib/WarnCaseSensitiveModulesPlugin'>; } @@ -1503,21 +1922,36 @@ declare module 'webpack/lib/webpack.js' { declare module 'webpack/lib/webpack.web.js' { declare module.exports: $Exports<'webpack/lib/webpack.web'>; } +declare module 'webpack/lib/WebpackError.js' { + declare module.exports: $Exports<'webpack/lib/WebpackError'>; +} declare module 'webpack/lib/WebpackOptionsApply.js' { declare module.exports: $Exports<'webpack/lib/WebpackOptionsApply'>; } declare module 'webpack/lib/WebpackOptionsDefaulter.js' { declare module.exports: $Exports<'webpack/lib/WebpackOptionsDefaulter'>; } +declare module 'webpack/lib/WebpackOptionsValidationError.js' { + declare module.exports: $Exports<'webpack/lib/WebpackOptionsValidationError'>; +} declare module 'webpack/lib/webworker/WebWorkerChunkTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerChunkTemplatePlugin'>; } +declare module 'webpack/lib/webworker/WebWorkerHotUpdateChunkTemplatePlugin.js' { + declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerHotUpdateChunkTemplatePlugin'>; +} +declare module 'webpack/lib/webworker/WebWorkerMainTemplate.runtime.js' { + declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerMainTemplate.runtime'>; +} declare module 'webpack/lib/webworker/WebWorkerMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerMainTemplatePlugin'>; } declare module 'webpack/lib/webworker/WebWorkerTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerTemplatePlugin'>; } +declare module 'webpack/schemas/ajv.absolutePath.js' { + declare module.exports: $Exports<'webpack/schemas/ajv.absolutePath'>; +} declare module 'webpack/web_modules/node-libs-browser.js' { declare module.exports: $Exports<'webpack/web_modules/node-libs-browser'>; } diff --git a/package.json b/package.json index cd4442b2..26dfb8d7 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "Outline", + "name": "outline", "private": true, "main": "index.js", "scripts": { @@ -104,7 +104,7 @@ "extract-text-webpack-plugin": "^3.0.2", "fbemitter": "^2.1.1", "file-loader": "^1.1.6", - "flow-typed": "^2.1.2", + "flow-typed": "^2.4.0", "fs-extra": "^4.0.2", "history": "3.0.0", "html-webpack-plugin": "2.17.0", @@ -198,7 +198,7 @@ "enzyme": "2.8.2", "enzyme-to-json": "^1.5.1", "fetch-test-server": "^1.1.0", - "flow-bin": "^0.49.1", + "flow-bin": "^0.71.0", "identity-obj-proxy": "^3.0.0", "jest-cli": "22", "koa-webpack-dev-middleware": "1.4.5", diff --git a/server/api/documents.js b/server/api/documents.js index 8c9c9a44..e16e4668 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -1,6 +1,6 @@ // @flow import Router from 'koa-router'; -import { Op } from 'sequelize'; +import Sequelize from 'sequelize'; import auth from './middlewares/authentication'; import pagination from './middlewares/pagination'; import { presentDocument, presentRevision } from '../presenters'; @@ -9,6 +9,7 @@ import { InvalidRequestError } from '../errors'; import events from '../events'; import policy from '../policies'; +const Op = Sequelize.Op; const { authorize } = policy; const router = new Router(); @@ -50,6 +51,7 @@ router.post('documents.pinned', auth(), pagination(), async ctx => { teamId: user.teamId, atlasId: collection, pinnedById: { + // $FlowFixMe [Op.ne]: null, }, }, @@ -138,6 +140,7 @@ router.post('documents.drafts', auth(), pagination(), async ctx => { const user = ctx.state.user; const documents = await Document.findAll({ + // $FlowFixMe where: { userId: user.id, publishedAt: { [Op.eq]: null } }, order: [[sort, direction]], offset: ctx.state.pagination.offset, diff --git a/server/emails/WelcomeEmail.js b/server/emails/WelcomeEmail.js index 9f39f629..8d0b27b4 100644 --- a/server/emails/WelcomeEmail.js +++ b/server/emails/WelcomeEmail.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import EmailTemplate from './components/EmailLayout'; import Body from './components/Body'; import Button from './components/Button'; diff --git a/server/emails/components/Body.js b/server/emails/components/Body.js index 74c2144e..2adc4286 100644 --- a/server/emails/components/Body.js +++ b/server/emails/components/Body.js @@ -1,11 +1,11 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Table, TBody, TR, TD } from 'oy-vey'; import EmptySpace from './EmptySpace'; type Props = { - children: React$Element<*>, + children: React.Node, }; export default ({ children }: Props) => { diff --git a/server/emails/components/Button.js b/server/emails/components/Button.js index fc0798ec..fbdb1af3 100644 --- a/server/emails/components/Button.js +++ b/server/emails/components/Button.js @@ -1,7 +1,9 @@ // @flow -import React from 'react'; +import * as React from 'react'; -export default (props: { href: string, children: React.Element<*> }) => { +type Props = { href: string, children: React.Node }; + +export default (props: Props) => { const style = { display: 'inline-block', padding: '10px 20px', @@ -13,5 +15,5 @@ export default (props: { href: string, children: React.Element<*> }) => { cursor: 'pointer', }; - return ; + return {props.children}; }; diff --git a/server/emails/components/EmailLayout.js b/server/emails/components/EmailLayout.js index 1c709823..52c6178f 100644 --- a/server/emails/components/EmailLayout.js +++ b/server/emails/components/EmailLayout.js @@ -1,10 +1,10 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Table, TBody, TR, TD } from 'oy-vey'; import { fonts } from '../../../shared/styles/constants'; type Props = { - children: React$Element<*>, + children: React.Node, }; export default (props: Props) => ( diff --git a/server/emails/components/EmptySpace.js b/server/emails/components/EmptySpace.js index 58bc1a97..20635374 100644 --- a/server/emails/components/EmptySpace.js +++ b/server/emails/components/EmptySpace.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Table, TBody, TR, TD } from 'oy-vey'; const EmptySpace = ({ height }: { height?: number }) => { diff --git a/server/emails/components/Footer.js b/server/emails/components/Footer.js index 0aa0cb73..6a211d71 100644 --- a/server/emails/components/Footer.js +++ b/server/emails/components/Footer.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Table, TBody, TR, TD } from 'oy-vey'; import { color } from '../../../shared/styles/constants'; import { twitterUrl, spectrumUrl } from '../../../shared/utils/routeHelpers'; diff --git a/server/emails/components/Header.js b/server/emails/components/Header.js index 8f83d126..f64849c7 100644 --- a/server/emails/components/Header.js +++ b/server/emails/components/Header.js @@ -1,8 +1,7 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Table, TBody, TR, TD } from 'oy-vey'; import EmptySpace from './EmptySpace'; -import { color } from '../../../shared/styles/constants'; export default () => { return ( @@ -12,6 +11,7 @@ export default () => { Outline, + children: React.Node, }; export default ({ children }: Props) => ( diff --git a/server/mailer.js b/server/mailer.js index bf8d1a59..5d5f8107 100644 --- a/server/mailer.js +++ b/server/mailer.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import nodemailer from 'nodemailer'; import Oy from 'oy-vey'; import Queue from 'bull'; @@ -12,7 +12,7 @@ type SendMailType = { title: string, previewText?: string, text: string, - html: React.Element<*>, + html: React.Node, headCSS?: string, }; diff --git a/server/models/Document.js b/server/models/Document.js index 653f3666..e47510f8 100644 --- a/server/models/Document.js +++ b/server/models/Document.js @@ -4,7 +4,7 @@ import _ from 'lodash'; import randomstring from 'randomstring'; import MarkdownSerializer from 'slate-md-serializer'; import Plain from 'slate-plain-serializer'; -import { Op } from 'sequelize'; +import Sequelize from 'sequelize'; import isUUID from 'validator/lib/isUUID'; import { Collection } from '../models'; @@ -13,6 +13,7 @@ import events from '../events'; import parseTitle from '../../shared/utils/parseTitle'; import Revision from './Revision'; +const Op = Sequelize.Op; const Markdown = new MarkdownSerializer(); const URL_REGEX = /^[a-zA-Z0-9-]*-([a-zA-Z0-9]{10,15})$/; const DEFAULT_TITLE = 'Untitled document'; @@ -144,6 +145,7 @@ Document.associate = models => { ], where: { publishedAt: { + // $FlowFixMe [Op.ne]: null, }, }, @@ -202,7 +204,7 @@ Document.searchForUser = async ( LIMIT :limit OFFSET :offset; `; - const ids = await sequelize + const results = await sequelize .query(sql, { replacements: { query, @@ -211,7 +213,7 @@ Document.searchForUser = async ( }, model: Document, }) - .map(document => document.id); + const ids = results.map(document => document.id); // Second query to get views for the data const withViewsScope = { method: ['withViews', user.id] }; diff --git a/server/models/Team.js b/server/models/Team.js index 87b1ae30..598af8d7 100644 --- a/server/models/Team.js +++ b/server/models/Team.js @@ -51,6 +51,7 @@ Team.prototype.removeAdmin = async function(user: User) { teamId: this.id, isAdmin: true, id: { + // $FlowFixMe [Op.ne]: user.id, }, }, diff --git a/server/pages/About.js b/server/pages/About.js index e5b3f0ce..3367d642 100644 --- a/server/pages/About.js +++ b/server/pages/About.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import Grid from 'styled-components-grid'; import styled from 'styled-components'; import { Helmet } from 'react-helmet'; @@ -68,7 +68,7 @@ export default function About() { Jori Lallo @@ -80,7 +80,7 @@ export default function About() { Tom Moor @@ -93,6 +93,7 @@ export default function About() { maintainers , we believe in being honest and transparent. @@ -141,6 +142,7 @@ export default function About() { here . diff --git a/server/pages/Api.js b/server/pages/Api.js index d4ae28a9..11fc571f 100644 --- a/server/pages/Api.js +++ b/server/pages/Api.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import Grid from 'styled-components-grid'; import { Helmet } from 'react-helmet'; import styled from 'styled-components'; @@ -589,7 +589,7 @@ const MethodList = styled.ul` margin-bottom: 80px; `; -const Methods = (props: { children: React.Element<*> }) => { +const Methods = (props: { children: React.Node }) => { const children = React.Children.toArray(props.children); const methods = children.map(child => child.props.method); @@ -618,16 +618,16 @@ const Request = styled.h4` type MethodProps = { method: string, label: string, - children: React.Element<*>, + children: React.Node, }; -const Description = (props: { children: React.Element<*> }) => ( +const Description = (props: { children: React.Node }) => (

{props.children}

); type ArgumentsProps = { pagination?: boolean, - children?: React.Element<*> | string, + children?: React.Node | string, }; const Arguments = (props: ArgumentsProps) => ( @@ -673,7 +673,7 @@ const Method = (props: MethodProps) => { type ArgumentProps = { id: string, required?: boolean, - description: React.Element<*> | string, + description: React.Node | string, }; const Argument = (props: ArgumentProps) => ( diff --git a/server/pages/Changelog.js b/server/pages/Changelog.js index e6caa376..abb37d10 100644 --- a/server/pages/Changelog.js +++ b/server/pages/Changelog.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import Grid from 'styled-components-grid'; import ReactMarkdown from 'react-markdown'; diff --git a/server/pages/Home.js b/server/pages/Home.js index e56457e1..5aee066b 100644 --- a/server/pages/Home.js +++ b/server/pages/Home.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Helmet } from 'react-helmet'; import styled from 'styled-components'; import Grid from 'styled-components-grid'; diff --git a/server/pages/Pricing.js b/server/pages/Pricing.js index c2dc9c5c..2f20f076 100644 --- a/server/pages/Pricing.js +++ b/server/pages/Pricing.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import Grid from 'styled-components-grid'; import { Helmet } from 'react-helmet'; import Hero from './components/Hero'; diff --git a/server/pages/Privacy.js b/server/pages/Privacy.js index e5767834..68ea41f5 100644 --- a/server/pages/Privacy.js +++ b/server/pages/Privacy.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import Grid from 'styled-components-grid'; import { Helmet } from 'react-helmet'; import Header from './components/Header'; diff --git a/server/pages/components/Layout.js b/server/pages/components/Layout.js index 1e4743cc..c6e9a0d8 100644 --- a/server/pages/components/Layout.js +++ b/server/pages/components/Layout.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { Helmet } from 'react-helmet'; import { TopNavigation, BottomNavigation } from './Navigation'; import Analytics from '../../../shared/components/Analytics'; @@ -13,7 +13,7 @@ export const description = export const screenshotUrl = `${process.env.URL}/screenshot.png`; type Props = { - children?: React$Element<*>, + children?: React.Node, }; export default function Layout({ children }: Props) { diff --git a/server/pages/components/Navigation.js b/server/pages/components/Navigation.js index 613f8cf3..508eca63 100644 --- a/server/pages/components/Navigation.js +++ b/server/pages/components/Navigation.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import breakpoint from 'styled-components-breakpoint'; import { diff --git a/server/pages/components/SignupButton.js b/server/pages/components/SignupButton.js index fe5595b7..155243c8 100644 --- a/server/pages/components/SignupButton.js +++ b/server/pages/components/SignupButton.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; import { signin } from '../../../shared/utils/routeHelpers'; import SlackLogo from '../../../shared/components/SlackLogo'; diff --git a/server/presenters/document.js b/server/presenters/document.js index 18f995e2..0e715811 100644 --- a/server/presenters/document.js +++ b/server/presenters/document.js @@ -1,10 +1,12 @@ // @flow import _ from 'lodash'; -import { Op } from 'sequelize'; +import Sequelize from 'sequelize'; import { User, Document } from '../models'; import presentUser from './user'; import presentCollection from './collection'; +const Op = Sequelize.Op; + type Options = { includeCollaborators?: boolean, }; @@ -61,7 +63,10 @@ async function present(ctx: Object, document: Document, options: ?Options) { // This could be further optimized by using ctx.cache data.collaborators = await User.findAll({ where: { - id: { [Op.in]: _.takeRight(document.collaboratorIds, 10) || [] }, + id: { + // $FlowFixMe + [Op.in]: _.takeRight(document.collaboratorIds, 10) || [], + }, }, }).map(user => presentUser(ctx, user)); diff --git a/server/routes.js b/server/routes.js index c49c282d..3c6a1dce 100644 --- a/server/routes.js +++ b/server/routes.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import path from 'path'; import fs from 'fs-extra'; import Koa from 'koa'; diff --git a/server/test/support.js b/server/test/support.js index 45ecf673..d448b44b 100644 --- a/server/test/support.js +++ b/server/test/support.js @@ -4,9 +4,10 @@ import { sequelize } from '../sequelize'; export function flushdb() { const sql = sequelize.getQueryInterface(); - const tables = Object.keys(sequelize.models).map(model => - sql.quoteTable(sequelize.models[model].getTableName()) - ); + const tables = Object.keys(sequelize.models).map(model => { + const n = sequelize.models[model].getTableName(); + return sql.quoteTable(typeof n === 'string' ? n : n.tableName); + }); const query = `TRUNCATE ${tables.join(', ')} CASCADE`; return sequelize.query(query); diff --git a/server/utils/prefetchTags.js b/server/utils/prefetchTags.js index b48720a4..de323d8d 100644 --- a/server/utils/prefetchTags.js +++ b/server/utils/prefetchTags.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import fs from 'fs'; import path from 'path'; import webpackConfig from '../../webpack.config'; diff --git a/server/utils/renderpage.js b/server/utils/renderpage.js index e970fa46..a5157263 100644 --- a/server/utils/renderpage.js +++ b/server/utils/renderpage.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import ReactDOMServer from 'react-dom/server'; import { Helmet } from 'react-helmet'; import { ServerStyleSheet, StyleSheetManager } from 'styled-components'; @@ -7,7 +7,7 @@ import Layout from '../pages/components/Layout'; const sheet = new ServerStyleSheet(); -export default function renderpage(ctx: Object, children: React$Element<*>) { +export default function renderpage(ctx: Object, children: React.Node) { const html = ReactDOMServer.renderToString( {children} @@ -17,6 +17,7 @@ export default function renderpage(ctx: Object, children: React$Element<*>) { // helmet returns an object of meta tags with toString methods, urgh. const helmet = Helmet.renderStatic(); let head = ''; + // $FlowFixMe Object.keys(helmet).forEach(key => (head += helmet[key].toString())); ctx.body = html diff --git a/setupJest.js b/setupJest.js index b5766c27..ac3a3fe1 100644 --- a/setupJest.js +++ b/setupJest.js @@ -1,5 +1,5 @@ /* eslint-disable */ -import React from 'react'; +import * as React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import localStorage from './__mocks__/localStorage'; diff --git a/shared/components/Flex.js b/shared/components/Flex.js index 3b420faf..7542c18c 100644 --- a/shared/components/Flex.js +++ b/shared/components/Flex.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; import styled from 'styled-components'; type JustifyValues = @@ -22,7 +22,7 @@ type Props = { justify?: JustifyValues, auto?: ?boolean, className?: string, - children?: React$Element<*>, + children?: React.Node, }; const Flex = (props: Props) => { diff --git a/shared/components/SlackLogo.js b/shared/components/SlackLogo.js index ea644941..ebc9d3f7 100644 --- a/shared/components/SlackLogo.js +++ b/shared/components/SlackLogo.js @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import * as React from 'react'; type Props = { size?: number, diff --git a/yarn.lock b/yarn.lock index 7ea594b3..23f615d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -147,13 +147,6 @@ acorn@^5.2.1: version "5.3.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.3.0.tgz#7446d39459c54fb49a80e6ee6478149b940ec822" -agent-base@2: - version "2.1.1" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-2.1.1.tgz#d6de10d5af6132d5bd692427d46fc538539094c7" - dependencies: - extend "~3.0.0" - semver "~5.0.1" - ajv-keywords@^1.0.0: version "1.5.1" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c" @@ -162,6 +155,10 @@ ajv-keywords@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762" +ajv-keywords@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.2.0.tgz#e86b819c602cf8821ad637413698f1dec021847a" + ajv@^4.7.0, ajv@^4.9.1: version "4.11.8" resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" @@ -187,6 +184,15 @@ ajv@^5.1.0, ajv@^5.1.5, ajv@^5.3.0: fast-json-stable-stringify "^2.0.0" json-schema-traverse "^0.3.0" +ajv@^6.0.1: + version "6.4.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.4.0.tgz#d3aff78e9277549771daf0164cff48482b754fc6" + dependencies: + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + uri-js "^3.0.2" + align-text@^0.1.1, align-text@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" @@ -992,7 +998,7 @@ babel-plugin-transform-strict-mode@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-polyfill@^6.13.0, babel-polyfill@^6.23.0: +babel-polyfill@^6.13.0, babel-polyfill@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" dependencies: @@ -1184,6 +1190,10 @@ beeper@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/beeper/-/beeper-1.1.1.tgz#e6d5ea8c5dad001304a70b22638447f69cb2f809" +big-integer@^1.6.17: + version "1.6.28" + resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.28.tgz#8cef0fda3ccde8759c2c66efcfacc35aea658283" + big.js@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.1.3.tgz#4cada2193652eb3ca9ec8e55c9015669c9806978" @@ -1192,7 +1202,7 @@ binary-extensions@^1.0.0: version "1.10.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.10.0.tgz#9aeb9a6c5e88638aad171e167f5900abe24835d0" -"binary@>= 0.3.0 < 1": +binary@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/binary/-/binary-0.3.0.tgz#9f60553bc5ce8c3386f3b553cff47462adecaa79" dependencies: @@ -1217,6 +1227,10 @@ bluebird@^3.3.4: version "3.5.1" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" +bluebird@~3.4.1: + version "3.4.7" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.4.7.tgz#f72d760be09b7f76d08ed8fae98b289a8d05fab3" + bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: version "4.11.8" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" @@ -1406,6 +1420,14 @@ buffer-equal-constant-time@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" +buffer-indexof-polyfill@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.1.tgz#a9fb806ce8145d5428510ce72f278bb363a638bf" + +buffer-shims@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" + buffer-writer@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/buffer-writer/-/buffer-writer-1.0.1.tgz#22a936901e3029afcd7547eb4487ceb697a3bf08" @@ -2417,7 +2439,7 @@ debounce@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.0.2.tgz#503cc674d8d7f737099664fb75ddbd36b9626dc6" -debug@*, debug@2, debug@2.6.8, debug@^2.2.0, debug@^2.3.2, debug@^2.6.1, debug@^2.6.3, debug@^2.6.8: +debug@*, debug@2.6.8, debug@^2.2.0, debug@^2.3.2, debug@^2.6.1, debug@^2.6.3, debug@^2.6.8: version "2.6.8" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" dependencies: @@ -2707,6 +2729,12 @@ duplexer2@0.0.2: dependencies: readable-stream "~1.1.9" +duplexer2@~0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" + dependencies: + readable-stream "^2.0.2" + duplexer3@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" @@ -3325,7 +3353,7 @@ express-session@~1.11.3: uid-safe "~2.0.0" utils-merge "1.0.0" -extend@3, extend@^3.0.0, extend@~3.0.0, extend@~3.0.1: +extend@^3.0.0, extend@~3.0.0, extend@~3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" @@ -3588,38 +3616,30 @@ flexbuffer@0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/flexbuffer/-/flexbuffer-0.0.6.tgz#039fdf23f8823e440c38f3277e6fef1174215b30" -flow-bin@^0.49.1: - version "0.49.1" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.49.1.tgz#c9e456b3173a7535a4ffaf28956352c63bb8e3e9" +flow-bin@^0.71.0: + version "0.71.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.71.0.tgz#fd1b27a6458c3ebaa5cb811853182ed631918b70" -flow-typed@^2.1.2: - version "2.1.5" - resolved "https://registry.yarnpkg.com/flow-typed/-/flow-typed-2.1.5.tgz#c96912807a286357340042783c9369360f384bbd" +flow-typed@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/flow-typed/-/flow-typed-2.4.0.tgz#3d2f48cf85df29df3bca6745b623726496ff4788" dependencies: - babel-polyfill "^6.23.0" + babel-polyfill "^6.26.0" colors "^1.1.2" - fs-extra "^4.0.0" - github "^9.2.0" + fs-extra "^5.0.0" + github "0.2.4" glob "^7.1.2" got "^7.1.0" md5 "^2.1.0" mkdirp "^0.5.1" - request "^2.81.0" - rimraf "^2.6.1" - semver "^5.1.0" - table "^4.0.1" + rimraf "^2.6.2" + semver "^5.5.0" + table "^4.0.2" through "^2.3.8" - unzip "^0.1.11" - which "^1.2.14" + unzipper "^0.8.11" + which "^1.3.0" yargs "^4.2.0" -follow-redirects@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-0.0.7.tgz#34b90bab2a911aa347571da90f22bd36ecd8a919" - dependencies: - debug "^2.2.0" - stream-consume "^0.1.0" - for-in@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" @@ -3698,7 +3718,7 @@ fs-extra@^3.0.1: jsonfile "^3.0.0" universalify "^0.1.0" -fs-extra@^4.0.0, fs-extra@^4.0.1: +fs-extra@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.1.tgz#7fc0c6c8957f983f57f306a24e5b9ddd8d0dd880" dependencies: @@ -3714,6 +3734,14 @@ fs-extra@^4.0.2: jsonfile "^4.0.0" universalify "^0.1.0" +fs-extra@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd" + dependencies: + graceful-fs "^4.1.2" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -3740,16 +3768,7 @@ fstream-ignore@^1.0.5: inherits "2" minimatch "^3.0.0" -"fstream@>= 0.1.30 < 1": - version "0.1.31" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-0.1.31.tgz#7337f058fbbbbefa8c9f561a28cab0849202c988" - dependencies: - graceful-fs "~3.0.2" - inherits "~2.0.0" - mkdirp "0.5" - rimraf "2" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: +fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2, fstream@~1.0.10: version "1.0.11" resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" dependencies: @@ -3829,14 +3848,11 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" -github@^9.2.0: - version "9.3.1" - resolved "https://registry.yarnpkg.com/github/-/github-9.3.1.tgz#6a3c5a9cc2a1cd0b5d097a47baefb9d11caef89e" +github@0.2.4: + version "0.2.4" + resolved "https://registry.yarnpkg.com/github/-/github-0.2.4.tgz#24fa7f0e13fa11b946af91134c51982a91ce538b" dependencies: - follow-redirects "0.0.7" - https-proxy-agent "^1.0.0" mime "^1.2.11" - netrc "^0.1.4" glob-base@^0.3.0: version "0.3.0" @@ -4010,7 +4026,7 @@ got@^7.1.0: url-parse-lax "^1.0.0" url-to-options "^1.0.1" -graceful-fs@^3.0.0, graceful-fs@~3.0.2: +graceful-fs@^3.0.0: version "3.0.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-3.0.11.tgz#7613c778a1afea62f25c630a086d7f3acbbdd818" dependencies: @@ -4444,14 +4460,6 @@ https-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" -https-proxy-agent@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz#35f7da6c48ce4ddbfa264891ac593ee5ff8671e6" - dependencies: - agent-base "2" - debug "2" - extend "3" - humanize-number@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/humanize-number/-/humanize-number-0.0.2.tgz#11c0af6a471643633588588048f1799541489c18" @@ -5807,6 +5815,10 @@ lint-staged@^3.4.0: p-map "^1.1.1" staged-git-files "0.0.4" +listenercount@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/listenercount/-/listenercount-1.0.1.tgz#84c8a72ab59c4725321480c975e6508342e70937" + listr-silent-renderer@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz#924b5a3757153770bf1a8e3fbf74b8bbf3f9242e" @@ -6327,13 +6339,6 @@ marked@^0.3.6: version "0.3.6" resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7" -"match-stream@>= 0.0.2 < 1": - version "0.0.2" - resolved "https://registry.yarnpkg.com/match-stream/-/match-stream-0.0.2.tgz#99eb050093b34dffade421b9ac0b410a9cfa17cf" - dependencies: - buffers "~0.1.1" - readable-stream "~1.0.0" - math-expression-evaluator@^1.2.14: version "1.2.17" resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac" @@ -6521,7 +6526,7 @@ minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" -mkdirp@0.5, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: +"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" dependencies: @@ -6660,10 +6665,6 @@ nested-error-stacks@^1.0.0: dependencies: inherits "~2.0.1" -netrc@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/netrc/-/netrc-0.1.4.tgz#6be94fcaca8d77ade0a9670dc460914c94472444" - next-tick@1: version "1.0.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" @@ -7115,10 +7116,6 @@ outline-icons@^1.0.0, outline-icons@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/outline-icons/-/outline-icons-1.0.3.tgz#f0928a8bbc7e7ff4ea6762eee8fb2995d477941e" -"over@>= 0.0.5 < 1": - version "0.0.5" - resolved "https://registry.yarnpkg.com/over/-/over-0.0.5.tgz#f29852e70fd7e25f360e013a8ec44c82aedb5708" - oy-vey@^0.10.0: version "0.10.0" resolved "https://registry.yarnpkg.com/oy-vey/-/oy-vey-0.10.0.tgz#16160f837f0ea3d0340adfc2377ba93d1ed9ce76" @@ -7816,15 +7813,6 @@ pui-react-tooltip@^8.3.3: prop-types ">=15.5.6" pui-css-tooltips "=8.3.3" -"pullstream@>= 0.4.1 < 1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/pullstream/-/pullstream-0.4.1.tgz#d6fb3bf5aed697e831150eb1002c25a3f8ae1314" - dependencies: - over ">= 0.0.5 < 1" - readable-stream "~1.0.31" - setimmediate ">= 1.0.2 < 2" - slice-stream ">= 1.0.0 < 2" - punycode@1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" @@ -8164,7 +8152,7 @@ read-pkg@^2.0.0: normalize-package-data "^2.3.2" path-type "^2.0.0" -readable-stream@1.0, "readable-stream@>=1.0.33-1 <1.1.0-0", readable-stream@~1.0.0, readable-stream@~1.0.31: +readable-stream@1.0, "readable-stream@>=1.0.33-1 <1.1.0-0": version "1.0.34" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" dependencies: @@ -8194,6 +8182,18 @@ readable-stream@~1.1.8, readable-stream@~1.1.9: isarray "0.0.1" string_decoder "~0.10.x" +readable-stream@~2.1.5: + version "2.1.5" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0" + dependencies: + buffer-shims "^1.0.0" + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "~1.0.0" + process-nextick-args "~1.0.6" + string_decoder "~0.10.x" + util-deprecate "~1.0.1" + readdirp@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" @@ -8600,6 +8600,12 @@ rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.5.4, rimraf@^2.6.1: dependencies: glob "^7.0.5" +rimraf@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" + dependencies: + glob "^7.0.5" + ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7" @@ -8720,9 +8726,9 @@ semver@5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" -semver@~5.0.1: - version "5.0.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.0.3.tgz#77466de589cd5d3c95f138aa78bc569a3cb5d27a" +semver@^5.5.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" send@0.13.2: version "0.13.2" @@ -8832,7 +8838,7 @@ set-immediate-shim@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" -"setimmediate@>= 1.0.1 < 2", "setimmediate@>= 1.0.2 < 2", setimmediate@^1.0.4, setimmediate@^1.0.5: +setimmediate@^1.0.4, setimmediate@^1.0.5, setimmediate@~1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" @@ -8998,11 +9004,11 @@ slice-ansi@0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" -"slice-stream@>= 1.0.0 < 2": +slice-ansi@1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/slice-stream/-/slice-stream-1.0.0.tgz#5b33bd66f013b1a7f86460b03d463dec39ad3ea0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-1.0.0.tgz#044f1a49d8842ff307aad6b505ed178bd950134d" dependencies: - readable-stream "~1.0.31" + is-fullwidth-code-point "^2.0.0" slide@^1.1.5: version "1.1.6" @@ -9193,7 +9199,7 @@ stream-combiner@~0.0.4: dependencies: duplexer "~0.1.1" -stream-consume@^0.1.0, stream-consume@~0.1.0: +stream-consume@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/stream-consume/-/stream-consume-0.1.0.tgz#a41ead1a6d6081ceb79f65b061901b6d8f3d1d0f" @@ -9258,7 +9264,7 @@ string-width@^1.0.1, string-width@^1.0.2: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -string-width@^2.0.0, string-width@^2.1.0: +string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" dependencies: @@ -9432,6 +9438,17 @@ table@^4.0.1: slice-ansi "0.0.4" string-width "^2.0.0" +table@^4.0.2: + version "4.0.3" + resolved "https://registry.yarnpkg.com/table/-/table-4.0.3.tgz#00b5e2b602f1794b9acaf9ca908a76386a7813bc" + dependencies: + ajv "^6.0.1" + ajv-keywords "^3.0.0" + chalk "^2.1.0" + lodash "^4.17.4" + slice-ansi "1.0.0" + string-width "^2.1.1" + tapable@^0.2.7: version "0.2.8" resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" @@ -9859,16 +9876,19 @@ unreachable-branch-transform@^0.3.0: recast "^0.10.1" through2 "^0.6.2" -unzip@^0.1.11: - version "0.1.11" - resolved "https://registry.yarnpkg.com/unzip/-/unzip-0.1.11.tgz#89749c63b058d7d90d619f86b98aa1535d3b97f0" +unzipper@^0.8.11: + version "0.8.13" + resolved "https://registry.yarnpkg.com/unzipper/-/unzipper-0.8.13.tgz#ea889ca10cdda4dcf604e632f19fc5f81871beae" dependencies: - binary ">= 0.3.0 < 1" - fstream ">= 0.1.30 < 1" - match-stream ">= 0.0.2 < 1" - pullstream ">= 0.4.1 < 1" - readable-stream "~1.0.31" - setimmediate ">= 1.0.1 < 2" + big-integer "^1.6.17" + binary "~0.3.0" + bluebird "~3.4.1" + buffer-indexof-polyfill "~1.0.0" + duplexer2 "~0.1.4" + fstream "~1.0.10" + listenercount "~1.0.1" + readable-stream "~2.1.5" + setimmediate "~1.0.4" update-notifier@0.5.0: version "0.5.0" @@ -9892,6 +9912,12 @@ upper-case@^1.0.3, upper-case@^1.1.0, upper-case@^1.1.1, upper-case@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" +uri-js@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-3.0.2.tgz#f90b858507f81dea4dcfbb3c4c3dbfa2b557faaa" + dependencies: + punycode "^2.1.0" + url-loader@^0.6.2: version "0.6.2" resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-0.6.2.tgz#a007a7109620e9d988d14bce677a1decb9a993f7" @@ -10223,7 +10249,7 @@ which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" -which@^1.0.5, which@^1.2.10, which@^1.2.12, which@^1.2.14, which@^1.2.9: +which@^1.0.5, which@^1.2.10, which@^1.2.12, which@^1.2.9, which@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" dependencies: