chore(flow): bump 0.99.1

This commit is contained in:
George Lima 2019-05-29 23:10:06 -03:00
parent 8b3cd462d9
commit 5a358e1ac5
9 changed files with 27 additions and 10 deletions

View File

@ -5,7 +5,7 @@
"browser": true,
"node": true,
"mocha": true,
"jest/globals": true
"jest": true
},
"plugins": ["flowtype", "jest"],
"settings": {

View File

@ -27,6 +27,7 @@ beforeAll(() => {
});
afterAll(() => {
global.Date = originalDate;
// $FlowFixMe
dateFns.format.mockRestore();
cleanup();
});

View File

@ -27,6 +27,7 @@ beforeAll(() => {
});
afterAll(() => {
global.Date = originalDate;
// $FlowFixMe
dateFns.format.mockRestore();
cleanup();
});

View File

@ -5,7 +5,7 @@ import { ThemeProvider } from 'styled-components';
import { appTheme } from './theme';
import { GlobalStyle } from './global';
export const DoczWrapper = ({ children }: { children: () => Node<*> }) => (
export const DoczWrapper = ({ children }: { children: () => Node }) => (
<ThemeProvider theme={appTheme}>
<Fragment>
<GlobalStyle />

View File

@ -2,7 +2,7 @@
import type { AppState } from './app-state';
export type Action = { type: $Subtype<string>, payload: Object };
export type Action = { type: string, payload: Object };
export type GetState = () => AppState;
export type Dispatch = (action: Action) => void;
export type Middleware = ({ dispatch: Dispatch, getState: GetState }) => (

View File

@ -0,0 +1,15 @@
declare module 'find-process' {
declare type searchType = 'pid' | 'port' | 'name';
declare type searchValue = string | number;
declare type process = {
pid: number,
ppid: number,
uid: string,
gid: string,
name: string,
bin: string,
cmd: string,
};
declare module.exports: (type: searchType, value: searchValue) => Array<process>;
}

View File

@ -98,7 +98,7 @@ declare module 'styled-components' {
declare type InjectedProps = { theme: Theme | void };
declare export function withTheme<Props: {}, Component: React$ComponentType<Props>>(
WrappedComponent: Component,
): React$ComponentType<$Diff<React$ElementConfig<$Supertype<Component>>, InjectedProps>>;
): React$ComponentType<$Diff<React$ElementConfig<Component>, InjectedProps>>;
// @HACK This is a cheat to hide that the underlying type is "just a string"
// once we know of a better way, we should be able to update this accordingly.
@ -350,7 +350,7 @@ declare module 'styled-components/native' {
declare type InjectedProps = { theme: Theme | void };
declare export function withTheme<Props: {}, Component: React$ComponentType<Props>>(
WrappedComponent: Component,
): React$ComponentType<$Diff<React$ElementConfig<$Supertype<Component>>, InjectedProps>>;
): React$ComponentType<$Diff<React$ElementConfig<Component>, InjectedProps>>;
// @HACK This is a cheat to hide that the underlying type is "just a string"
// once we know of a better way, we should be able to update this accordingly.

View File

@ -159,7 +159,7 @@
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.12.4",
"file-loader": "^2.0.0",
"flow-bin": "^0.95.1",
"flow-bin": "^0.99.1",
"flow-coverage-report": "^0.6.1",
"flow-typed": "^2.5.1",
"glow": "^1.2.2",

View File

@ -6795,10 +6795,10 @@ flow-annotation-check@1.8.1:
glob "7.1.1"
load-pkg "^3.0.1"
flow-bin@^0.95.1:
version "0.95.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.95.1.tgz#633113831ccff4b7ee70a2730f63fc43b69ba85f"
integrity sha512-06IOC/pqPMNRYtC6AMZEWYR9Fi6UdBC7gImGinPuNUpPZFnP5E9/0cBCl3DWrH4zz/gSM2HdDilU7vPGpYIr2w==
flow-bin@^0.99.1:
version "0.99.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.99.1.tgz#0d4f413ca84a3a95d0aa64214178684dd7c6a4c5"
integrity sha512-dipNwJlb4MsVt3IuDgPTymCNL4GFoq3pG+GbY6DmBbl0dJPWFSA383rCTmgbfFhoeJ1XCfYBan0BPryToSxiiQ==
flow-coverage-report@^0.6.1:
version "0.6.1"