Upgrade to Flow 0.98.1
Summary: This should buy us some time before Sandcastle kicks us off again. :) Reviewed By: danielbuechele Differential Revision: D15449604 fbshipit-source-id: 90d4e8a965d0163de32416b43d9aa24ede104db2
This commit is contained in:
committed by
Facebook Github Bot
parent
c0aaf6037d
commit
a3b7b93167
@@ -33,4 +33,4 @@ untyped-import
|
||||
untyped-type-import
|
||||
|
||||
[version]
|
||||
^0.91.0
|
||||
^0.98.1
|
||||
|
||||
32
flow-typed/npm/express_v4.x.x.js
vendored
32
flow-typed/npm/express_v4.x.x.js
vendored
@@ -1,7 +1,4 @@
|
||||
// flow-typed signature: 45384ed25d019e0595020cc30e78b80f
|
||||
// flow-typed version: d11eab7bb5/express_v4.x.x/flow_>=v0.32.x
|
||||
|
||||
import type { Server } from 'http';
|
||||
import * as http from 'http';
|
||||
import type { Socket } from 'net';
|
||||
|
||||
declare type express$RouterOptions = {
|
||||
@@ -104,8 +101,10 @@ declare class express$Response extends http$ServerResponse mixins express$Reques
|
||||
|
||||
declare type express$NextFunction = (err?: ?Error | 'route') => mixed;
|
||||
declare type express$Middleware =
|
||||
((req: express$Request, res: express$Response, next: express$NextFunction) => mixed) |
|
||||
((error: Error, req: express$Request, res: express$Response, next: express$NextFunction) => mixed);
|
||||
// $FlowFixMe: $SubType is deprecated; waiting for upstream to fix this.
|
||||
((req: $Subtype<express$Request>, res: express$Response, next: express$NextFunction) => mixed) |
|
||||
// $FlowFixMe: $SubType is deprecated; waiting for upstream to fix this.
|
||||
((error: Error, req: $Subtype<express$Request>, res: express$Response, next: express$NextFunction) => mixed);
|
||||
declare interface express$RouteMethodType<T> {
|
||||
(middleware: express$Middleware): T;
|
||||
(...middleware: Array<express$Middleware>): T;
|
||||
@@ -151,28 +150,29 @@ declare class express$Router extends express$Route {
|
||||
use(...middleware: Array<express$Middleware>): this;
|
||||
use(path: express$Path|express$Path[], ...middleware: Array<express$Middleware>): this;
|
||||
use(path: string, router: express$Router): this;
|
||||
handle(req: http$IncomingMessage, res: http$ServerResponse, next: express$NextFunction): void;
|
||||
handle(req: http$IncomingMessage<>, res: http$ServerResponse, next: express$NextFunction): void;
|
||||
param(
|
||||
param: string,
|
||||
callback: (
|
||||
req: express$Request,
|
||||
// $FlowFixMe: $SubType is deprecated; waiting for upstream to fix this.
|
||||
req: $Subtype<express$Request>,
|
||||
res: express$Response,
|
||||
next: express$NextFunction,
|
||||
id: string
|
||||
) => mixed
|
||||
): void;
|
||||
(req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
|
||||
(req: http$IncomingMessage<>, res: http$ServerResponse, next?: ?express$NextFunction): void;
|
||||
}
|
||||
|
||||
declare class express$Application extends express$Router mixins events$EventEmitter {
|
||||
constructor(): void;
|
||||
locals: {[name: string]: mixed};
|
||||
mountpath: string;
|
||||
listen(port: number, hostname?: string, backlog?: number, callback?: (err?: ?Error) => mixed): ?Server;
|
||||
listen(port: number, hostname?: string, callback?: (err?: ?Error) => mixed): ?Server;
|
||||
listen(port: number, callback?: (err?: ?Error) => mixed): ?Server;
|
||||
listen(path: string, callback?: (err?: ?Error) => mixed): ?Server;
|
||||
listen(handle: Object, callback?: (err?: ?Error) => mixed): ?Server;
|
||||
listen(port: number, hostname?: string, backlog?: number, callback?: (err?: ?Error) => mixed): ?http.Server;
|
||||
listen(port: number, hostname?: string, callback?: (err?: ?Error) => mixed): ?http.Server;
|
||||
listen(port: number, callback?: (err?: ?Error) => mixed): ?http.Server;
|
||||
listen(path: string, callback?: (err?: ?Error) => mixed): ?http.Server;
|
||||
listen(handle: Object, callback?: (err?: ?Error) => mixed): ?http.Server;
|
||||
disable(name: string): void;
|
||||
disabled(name: string): boolean;
|
||||
enable(name: string): express$Application;
|
||||
@@ -184,9 +184,9 @@ declare class express$Application extends express$Router mixins events$EventEmit
|
||||
// get(name: string): mixed;
|
||||
set(name: string, value: mixed): mixed;
|
||||
render(name: string, optionsOrFunction: {[name: string]: mixed}, callback: express$RenderCallback): void;
|
||||
handle(req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
|
||||
handle(req: http$IncomingMessage<>, res: http$ServerResponse, next?: ?express$NextFunction): void;
|
||||
// callable signature is not inherited
|
||||
(req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
|
||||
(req: http$IncomingMessage<>, res: http$ServerResponse, next?: ?express$NextFunction): void;
|
||||
}
|
||||
|
||||
declare module 'express' {
|
||||
|
||||
88
flow-typed/npm/redux_v4.x.x.js
vendored
88
flow-typed/npm/redux_v4.x.x.js
vendored
@@ -1,8 +1,4 @@
|
||||
// flow-typed signature: df80bdd535bfed9cf3223e077f3b4543
|
||||
// flow-typed version: c4c8963c9c/redux_v4.x.x/flow_>=v0.55.x
|
||||
|
||||
declare module 'redux' {
|
||||
|
||||
/*
|
||||
|
||||
S = State
|
||||
@@ -11,49 +7,91 @@ declare module 'redux' {
|
||||
|
||||
*/
|
||||
|
||||
declare export type Action<T> = {
|
||||
type: T
|
||||
}
|
||||
|
||||
declare export type DispatchAPI<A> = (action: A) => A;
|
||||
declare export type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>;
|
||||
|
||||
declare export type Dispatch<A: { type: * }> = DispatchAPI<A>;
|
||||
|
||||
declare export type MiddlewareAPI<S, A, D = Dispatch<A>> = {
|
||||
dispatch: D;
|
||||
getState(): S;
|
||||
dispatch: D,
|
||||
getState(): S,
|
||||
};
|
||||
|
||||
declare export type Store<S, A, D = Dispatch<A>> = {
|
||||
// rewrite MiddlewareAPI members in order to get nicer error messages (intersections produce long messages)
|
||||
dispatch: D;
|
||||
getState(): S;
|
||||
subscribe(listener: () => void): () => void;
|
||||
replaceReducer(nextReducer: Reducer<S, A>): void
|
||||
dispatch: D,
|
||||
getState(): S,
|
||||
subscribe(listener: () => void): () => void,
|
||||
replaceReducer(nextReducer: Reducer<S, A>): void,
|
||||
};
|
||||
|
||||
declare export type Reducer<S, A> = (state: S | void, action: A) => S;
|
||||
|
||||
declare export type CombinedReducer<S, A> = (state: $Shape<S> & {} | void, action: A) => S;
|
||||
declare export type CombinedReducer<S, A> = (
|
||||
state: ($Shape<S> & {}) | void,
|
||||
action: A
|
||||
) => S;
|
||||
|
||||
declare export type Middleware<S, A, D = Dispatch<A>> =
|
||||
(api: MiddlewareAPI<S, A, D>) =>
|
||||
(next: D) => D;
|
||||
declare export type Middleware<S, A, D = Dispatch<A>> = (
|
||||
api: MiddlewareAPI<S, A, D>
|
||||
) => (next: D) => D;
|
||||
|
||||
declare export type StoreCreator<S, A, D = Dispatch<A>> = {
|
||||
(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
|
||||
(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
|
||||
(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>,
|
||||
(
|
||||
reducer: Reducer<S, A>,
|
||||
preloadedState: S,
|
||||
enhancer?: StoreEnhancer<S, A, D>
|
||||
): Store<S, A, D>,
|
||||
};
|
||||
|
||||
declare export type StoreEnhancer<S, A, D = Dispatch<A>> = (next: StoreCreator<S, A, D>) => StoreCreator<S, A, D>;
|
||||
declare export type StoreEnhancer<S, A, D = Dispatch<A>> = (
|
||||
next: StoreCreator<S, A, D>
|
||||
) => StoreCreator<S, A, D>;
|
||||
|
||||
declare export function createStore<S, A, D>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
|
||||
declare export function createStore<S, A, D>(reducer: Reducer<S, A>, preloadedState?: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
|
||||
declare export function createStore<S, A, D>(
|
||||
reducer: Reducer<S, A>,
|
||||
enhancer?: StoreEnhancer<S, A, D>
|
||||
): Store<S, A, D>;
|
||||
declare export function createStore<S, A, D>(
|
||||
reducer: Reducer<S, A>,
|
||||
preloadedState?: S,
|
||||
enhancer?: StoreEnhancer<S, A, D>
|
||||
): Store<S, A, D>;
|
||||
|
||||
declare export function applyMiddleware<S, A, D>(...middlewares: Array<Middleware<S, A, D>>): StoreEnhancer<S, A, D>;
|
||||
declare export function applyMiddleware<S, A, D>(
|
||||
...middlewares: Array<Middleware<S, A, D>>
|
||||
): StoreEnhancer<S, A, D>;
|
||||
|
||||
declare export type ActionCreator<A, B> = (...args: Array<B>) => A;
|
||||
declare export type ActionCreators<K, A> = { [key: K]: ActionCreator<A, any> };
|
||||
declare export type ActionCreators<K, A> = {
|
||||
[key: K]: ActionCreator<A, any>,
|
||||
};
|
||||
|
||||
declare export function bindActionCreators<A, C: ActionCreator<A, any>, D: DispatchAPI<A>>(actionCreator: C, dispatch: D): C;
|
||||
declare export function bindActionCreators<A, K, C: ActionCreators<K, A>, D: DispatchAPI<A>>(actionCreators: C, dispatch: D): C;
|
||||
declare export function bindActionCreators<
|
||||
A,
|
||||
C: ActionCreator<A, any>,
|
||||
D: DispatchAPI<A>
|
||||
>(
|
||||
actionCreator: C,
|
||||
dispatch: D
|
||||
): C;
|
||||
declare export function bindActionCreators<
|
||||
A,
|
||||
K,
|
||||
C: ActionCreators<K, A>,
|
||||
D: DispatchAPI<A>
|
||||
>(
|
||||
actionCreators: C,
|
||||
dispatch: D
|
||||
): C;
|
||||
|
||||
declare export function combineReducers<O: Object, A>(reducers: O): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>;
|
||||
declare export function combineReducers<O: {}, A>(
|
||||
reducers: O
|
||||
): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>;
|
||||
|
||||
declare export var compose: $Compose;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
"eslint-plugin-prettier": "^3.0.1",
|
||||
"eslint-plugin-react": "^7.5.1",
|
||||
"eslint-plugin-relay": "^1.0.0",
|
||||
"flow-bin": "^0.91.0",
|
||||
"flow-bin": "^0.98.1",
|
||||
"glob": "^7.1.2",
|
||||
"jest": "^24.7.1",
|
||||
"jest-fetch-mock": "^2.1.0",
|
||||
|
||||
@@ -3417,10 +3417,10 @@ flat-cache@^1.2.1:
|
||||
graceful-fs "^4.1.2"
|
||||
write "^0.2.1"
|
||||
|
||||
flow-bin@^0.91.0:
|
||||
version "0.91.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.91.0.tgz#f5c89729f74b2ccbd47df6fbfadbdcc89cc1e478"
|
||||
integrity sha512-j+L+xNiUYnZZ27MjVI0y2c9474ZHOvdSQq0Tjwh56mEA7tfxYqp5Dcb6aZSwvs3tGMTjCrZow9aUlZf3OoRyDQ==
|
||||
flow-bin@^0.98.1:
|
||||
version "0.98.1"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.98.1.tgz#a8d781621c91703df69928acc83c9777e2fcbb49"
|
||||
integrity sha512-y1YzQgbFUX4EG6h2EO8PhyJeS0VxNgER8XsTwU8IXw4KozfneSmGVgw8y3TwAOza7rVhTlHEoli1xNuNW1rhPw==
|
||||
|
||||
flow-parser@0.*:
|
||||
version "0.96.1"
|
||||
|
||||
Reference in New Issue
Block a user