Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

flow-typed update

  • Loading branch information...
valueof committed Oct 2, 2017
1 parent 761255d commit db691f37d67c177e17c7fb7165fe2ed55e1c26de
@@ -1,5 +1,5 @@
// flow-typed signature: dfe0099d0a8b972d07246fc18128f8ff
// flow-typed version: <<STUB>>/babel-cli_v6.3.x
// flow-typed signature: ee9f3fe21ed802eb45c7ac68a8433679
// flow-typed version: <<STUB>>/babel-cli_v6.3.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,5 +1,5 @@
// flow-typed signature: e02aaf4fbce54e684ce6a93a46fe9f52
// flow-typed version: <<STUB>>/babel-core_v6.3.x
// flow-typed signature: e89f957802eabf069b040b120d17edee
// flow-typed version: <<STUB>>/babel-core_v6.3.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,5 +1,5 @@
// flow-typed signature: 94790f3accf8e47677c55cc7d7aabb7f
// flow-typed version: <<STUB>>/babel-plugin-transform-es2015-modules-amd_v6.3.x
// flow-typed signature: 7a980a4d8ec87d8be65be3ce9a987319
// flow-typed version: <<STUB>>/babel-plugin-transform-es2015-modules-amd_v6.3.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,5 +1,5 @@
// flow-typed signature: 5b6101314f0f97d8ef979e94c2192a59
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v6.3.x
// flow-typed signature: 5c196062d64f14a3da7e32ddec496ed2
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v6.3.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,5 +1,5 @@
// flow-typed signature: 22e48a9bd63d8108db2b603d617bfa12
// flow-typed version: <<STUB>>/babel-preset-es2015_v6.3.x
// flow-typed signature: 9cee4ea5593fe1a042a360d3d5fc5ad1
// flow-typed version: <<STUB>>/babel-preset-es2015_v6.3.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,5 +1,5 @@
// flow-typed signature: 5bf8521ffcee7f1a9306ef8459309e63
// flow-typed version: <<STUB>>/babel-preset-stage-0_v6.3.x
// flow-typed signature: 9a2617c76122da2097429b91bac6216a
// flow-typed version: <<STUB>>/babel-preset-stage-0_v6.3.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,5 +1,5 @@
// flow-typed signature: 59dac76f3d515f5dfbc84adb6cd5741a
// flow-typed version: <<STUB>>/babel_v6.0.x
// flow-typed signature: 61e90ee26c0b56a560cf25a034b8a844
// flow-typed version: <<STUB>>/babel_v6.0.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

No changes.
@@ -1,5 +1,5 @@
// flow-typed signature: 83dbea1a617397b588f09a0bd9ff0455
// flow-typed version: <<STUB>>/connect_v^3.3.5
// flow-typed signature: d1514155f636d9288c9cf68d57d0f8e3
// flow-typed version: <<STUB>>/connect_v^3.3.5/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,7 +1,8 @@
// flow-typed signature: c3abd38bbfc1fc2ef09318ae0b630774
// flow-typed version: 622c2ee76d/express_v4.x.x/flow_>=v0.28.x
// flow-typed signature: 730b5b5f47f89c6e5871c0d9e9cd72d9
// flow-typed version: 8d3bb346ba/express_v4.x.x/flow_>=v0.32.x

import type { Server } from 'http';
import type { Socket } from 'net';

declare type express$RouterOptions = {
caseSensitive?: boolean,
@@ -14,27 +15,33 @@ declare class express$RequestResponseBase {
get(field: string): string | void;
}

declare type express$RequestParams = {
[param: string]: string
}

declare class express$Request extends http$IncomingMessage mixins express$RequestResponseBase {
baseUrl: string;
body: mixed;
body: any;
cookies: {[cookie: string]: string};
connection: Socket;
fresh: boolean;
hostname: boolean;
hostname: string;
ip: string;
ips: Array<string>;
method: string;
originalUrl: string;
params: {[param: string]: string};
params: express$RequestParams;
path: string;
protocol: 'https' | 'http';
query: {[name: string]: string};
query: {[name: string]: string | Array<string>};
route: string;
secure: boolean;
signedCookies: {[signedCookie: string]: string};
stale: boolean;
subdomains: Array<string>;
xhr: boolean;
accepts(types: string): string | false;
accepts(types: Array<string>): string | false;
acceptsCharsets(...charsets: Array<string>): string | false;
acceptsEncodings(...encoding: Array<string>): string | false;
acceptsLanguages(...lang: Array<string>): string | false;
@@ -64,7 +71,7 @@ declare type express$SendFileOptions = {
dotfiles?: 'allow' | 'deny' | 'ignore'
};

declare class express$Response extends http$ClientRequest mixins express$RequestResponseBase {
declare class express$Response extends http$ServerResponse mixins express$RequestResponseBase {
headersSent: boolean;
locals: {[name: string]: mixed};
append(field: string, value?: string): this;
@@ -83,16 +90,20 @@ declare class express$Response extends http$ClientRequest mixins express$Request
send(body?: mixed): this;
sendFile(path: string, options?: express$SendFileOptions, callback?: (err?: ?Error) => mixed): this;
sendStatus(statusCode: number): this;
set(field: string, value?: string): this;
header(field: string, value?: string): this;
header(headers: {[name: string]: string}): this;
set(field: string, value?: string|string[]): this;
set(headers: {[name: string]: string}): this;
status(statusCode: number): this;
type(type: string): this;
vary(field: string): this;
req: express$Request;
}

declare type express$NextFunction = (err?: ?Error) => mixed;
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);
((req: $Subtype<express$Request>, res: express$Response, next: express$NextFunction) => mixed) |
((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;
@@ -133,11 +144,15 @@ declare class express$Route {
declare class express$Router extends express$Route {
constructor(options?: express$RouterOptions): void;
route(path: string): express$Route;
static (): express$Router;
static (options?: express$RouterOptions): express$Router;
use(middleware: express$Middleware): this;
use(...middleware: Array<express$Middleware>): this;
use(path: string|RegExp|string[], ...middleware: Array<express$Middleware>): this;
use(path: string, router: express$Router): this;
handle(req: http$IncomingMessage, res: http$ServerResponse, next: express$NextFunction): void;

// Can't use regular callable signature syntax due to https://github.com/facebook/flow/issues/3084
$call: (req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction) => void;
}

declare class express$Application extends express$Router mixins events$EventEmitter {
@@ -151,7 +166,7 @@ declare class express$Application extends express$Router mixins events$EventEmit
listen(handle: Object, callback?: (err?: ?Error) => mixed): Server;
disable(name: string): void;
disabled(name: string): boolean;
enable(name: string): void;
enable(name: string): express$Application;
enabled(name: string): boolean;
engine(name: string, callback: Function): void;
/**
@@ -160,22 +175,22 @@ 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;
}

declare module 'express' {
declare function serveStatic(root: string, options?: Object): express$Middleware;

declare type RouterOptions = express$RouterOptions;
declare type CookieOptions = express$CookieOptions;
declare type Middleware = express$Middleware;
declare type NextFunction = express$NextFunction;
declare type $Response = express$Response;
declare type $Request = express$Request;
declare type $Application = express$Application;
declare export type RouterOptions = express$RouterOptions;
declare export type CookieOptions = express$CookieOptions;
declare export type Middleware = express$Middleware;
declare export type NextFunction = express$NextFunction;
declare export type RequestParams = express$RequestParams;
declare export type $Response = express$Response;
declare export type $Request = express$Request;
declare export type $Application = express$Application;

declare module.exports: {
(): express$Application, // If you try to call like a function, it will use this signature
static: serveStatic, // `static` property on the function
static: (root: string, options?: Object) => express$Middleware, // `static` property on the function
Router: typeof express$Router, // `Router` property on the function
};
}
No changes.
@@ -1,5 +1,5 @@
// flow-typed signature: 073c7ccd155071b719347599f94b25bc
// flow-typed version: <<STUB>>/handlebars_v^4.0.5
// flow-typed signature: 84283fa2a931ba811d1f89f42e6fc2ca
// flow-typed version: <<STUB>>/handlebars_v^4.0.5/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,5 +1,5 @@
// flow-typed signature: 84662bc4e64c654095b528329068be44
// flow-typed version: <<STUB>>/less_v1.7.x
// flow-typed signature: c8bad5e84f8c92d583ee987704eb4630
// flow-typed version: <<STUB>>/less_v1.7.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -1,5 +1,5 @@
// flow-typed signature: a83b503836101aea426203a0136b4222
// flow-typed version: <<STUB>>/nodeunit_v0.9.x
// flow-typed signature: 417e5453d28d2c851ef2f2df3c6bfb44
// flow-typed version: <<STUB>>/nodeunit_v0.9.x/flow_v0.37.4

/**
* This is an autogenerated libdef stub for:
@@ -8,8 +8,8 @@
*
* 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:
* 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
*/

@@ -74,14 +74,6 @@ declare module 'nodeunit/deps/json2' {
declare module.exports: any;
}

declare module 'nodeunit/dist/browser/nodeunit' {
declare module.exports: any;
}

declare module 'nodeunit/dist/browser/nodeunit.min' {
declare module.exports: any;
}

declare module 'nodeunit/examples/browser/nodeunit' {
declare module.exports: any;
}
@@ -182,6 +174,10 @@ declare module 'nodeunit/share/license' {
declare module.exports: any;
}

declare module 'nodeunit/test/fixtures/dir/example_test_sub' {
declare module.exports: any;
}

declare module 'nodeunit/test/fixtures/dir/mock_module3' {
declare module.exports: any;
}
@@ -298,12 +294,6 @@ declare module 'nodeunit/deps/ejs/test/ejs.test.js' {
declare module 'nodeunit/deps/json2.js' {
declare module.exports: $Exports<'nodeunit/deps/json2'>;
}
declare module 'nodeunit/dist/browser/nodeunit.js' {
declare module.exports: $Exports<'nodeunit/dist/browser/nodeunit'>;
}
declare module 'nodeunit/dist/browser/nodeunit.min.js' {
declare module.exports: $Exports<'nodeunit/dist/browser/nodeunit.min'>;
}
declare module 'nodeunit/examples/browser/nodeunit.js' {
declare module.exports: $Exports<'nodeunit/examples/browser/nodeunit'>;
}
@@ -385,6 +375,9 @@ declare module 'nodeunit/lib/utils.js' {
declare module 'nodeunit/share/license.js' {
declare module.exports: $Exports<'nodeunit/share/license'>;
}
declare module 'nodeunit/test/fixtures/dir/example_test_sub.js' {
declare module.exports: $Exports<'nodeunit/test/fixtures/dir/example_test_sub'>;
}
declare module 'nodeunit/test/fixtures/dir/mock_module3.js' {
declare module.exports: $Exports<'nodeunit/test/fixtures/dir/mock_module3'>;
}

0 comments on commit db691f3

Please sign in to comment.
You can’t perform that action at this time.