mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
add tests; resync files, forgot where i was.
This commit is contained in:
parent
6b36b1d5f2
commit
1a794e2d7e
30 changed files with 3654 additions and 534 deletions
52
flow-typed/npm/chokidar_vx.x.x.js
vendored
Normal file
52
flow-typed/npm/chokidar_vx.x.x.js
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
// flow-typed signature: d2dd6b4e6831834e8554fcd055fcf1ab
|
||||
// flow-typed version: <<STUB>>/chokidar_v2.1.2/flow_v0.95.1
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
*
|
||||
* 'chokidar'
|
||||
*
|
||||
* 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 'chokidar' {
|
||||
import type { FSWatcher } from 'fs'
|
||||
import type EventEmitter from 'events'
|
||||
declare type BufferEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "latin1" | "binary" | "hex"
|
||||
declare type Chokidar = {
|
||||
watch: (filename: string, options?: { encoding?: BufferEncoding; persistent?: boolean; recursive?: boolean; } | BufferEncoding, listener?: (event: string, filename: string) => void) => EventEmitter
|
||||
};
|
||||
|
||||
declare module.exports: Chokidar;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 'chokidar/lib/fsevents-handler' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'chokidar/lib/nodefs-handler' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
// Filename aliases
|
||||
declare module 'chokidar/index' {
|
||||
declare module.exports: $Exports<'chokidar'>;
|
||||
}
|
||||
declare module 'chokidar/index.js' {
|
||||
declare module.exports: $Exports<'chokidar'>;
|
||||
}
|
||||
declare module 'chokidar/lib/fsevents-handler.js' {
|
||||
declare module.exports: $Exports<'chokidar/lib/fsevents-handler'>;
|
||||
}
|
||||
declare module 'chokidar/lib/nodefs-handler.js' {
|
||||
declare module.exports: $Exports<'chokidar/lib/nodefs-handler'>;
|
||||
}
|
2603
flow-typed/npm/eris_vx.x.x.js
vendored
2603
flow-typed/npm/eris_vx.x.x.js
vendored
File diff suppressed because it is too large
Load diff
38
flow-typed/npm/koa_v2.x.x.js
vendored
38
flow-typed/npm/koa_v2.x.x.js
vendored
|
@ -81,31 +81,31 @@ declare module 'koa' {
|
|||
// if you meet some error here, temporarily add an additional annotation
|
||||
// like: `request.accepts((['json', 'text']:Array<string>))` to fix it.
|
||||
((arg: string, ...args: string[]) => string|false) &
|
||||
( () => string[] ) , // return the old value.
|
||||
(() => string[]), // return the old value.
|
||||
|
||||
// https://github.com/jshttp/accepts/blob/master/index.js#L153
|
||||
// https://github.com/jshttp/accepts/blob/master/test/charset.js
|
||||
acceptsCharsets: ( (args: string[]) => buffer$Encoding|false)&
|
||||
acceptsCharsets: ((args: string[]) => buffer$Encoding|false)&
|
||||
// ToDo: https://github.com/facebook/flow/issues/3009
|
||||
// if you meet some error here, see L70.
|
||||
( (arg: string, ...args: string[]) => buffer$Encoding|false ) &
|
||||
( () => string[] ),
|
||||
((arg: string, ...args: string[]) => buffer$Encoding|false) &
|
||||
(() => string[]),
|
||||
|
||||
// https://github.com/jshttp/accepts/blob/master/index.js#L119
|
||||
// https://github.com/jshttp/accepts/blob/master/test/encoding.js
|
||||
acceptsEncodings: ( (args: string[]) => string|false)&
|
||||
acceptsEncodings: ((args: string[]) => string|false)&
|
||||
// ToDo: https://github.com/facebook/flow/issues/3009
|
||||
// if you meet some error here, see L70.
|
||||
( (arg: string, ...args: string[]) => string|false ) &
|
||||
( () => string[] ),
|
||||
((arg: string, ...args: string[]) => string|false) &
|
||||
(() => string[]),
|
||||
|
||||
// https://github.com/jshttp/accepts/blob/master/index.js#L185
|
||||
// https://github.com/jshttp/accepts/blob/master/test/language.js
|
||||
acceptsLanguages: ( (args: string[]) => string|false) &
|
||||
acceptsLanguages: ((args: string[]) => string|false) &
|
||||
// ToDo: https://github.com/facebook/flow/issues/3009
|
||||
// if you meet some error here, see L70.
|
||||
( (arg: string, ...args: string[]) => string|false ) &
|
||||
( () => string[] ),
|
||||
((arg: string, ...args: string[]) => string|false) &
|
||||
(() => string[]),
|
||||
|
||||
get: (field: string) => string,
|
||||
|
||||
|
@ -116,9 +116,9 @@ declare module 'koa' {
|
|||
* If there is no content type, `false` is returned.
|
||||
* Otherwise, it returns the first `type` that matches.
|
||||
*/
|
||||
is: ( (args: string[]) => null|false|string)&
|
||||
( (arg: string, ...args: string[]) => null|false|string ) &
|
||||
( () => string ), // should return the mime type
|
||||
is: ((args: string[]) => null|false|string)&
|
||||
((arg: string, ...args: string[]) => null|false|string) &
|
||||
(() => string), // should return the mime type
|
||||
|
||||
toJSON: () => RequestJSON,
|
||||
inspect: () => RequestInspect,
|
||||
|
@ -167,9 +167,9 @@ declare module 'koa' {
|
|||
get: (field: string) => string,
|
||||
// https://github.com/jshttp/type-is/blob/master/test/test.js
|
||||
// https://github.com/koajs/koa/blob/v2.x/lib/response.js#L382
|
||||
is: ( (arg: string[]) => false|string) &
|
||||
( (arg: string, ...args: string[]) => false|string ) &
|
||||
( () => string ), // should return the mime type
|
||||
is: ((arg: string[]) => false|string) &
|
||||
((arg: string, ...args: string[]) => false|string) &
|
||||
(() => string), // should return the mime type
|
||||
redirect: (url: string, alt?: string) => void,
|
||||
remove: (field: string) => void,
|
||||
// https://github.com/koajs/koa/blob/v2.x/lib/response.js#L418
|
||||
|
@ -198,7 +198,7 @@ declare module 'koa' {
|
|||
declare type CookiesSetOptions = {
|
||||
domain: string, // domain of the cookie (no default).
|
||||
maxAge: number, // milliseconds from Date.now() for expiry
|
||||
expires?: Date, //cookie's expiration date (expires at the end of session by default).
|
||||
expires?: Date, // cookie's expiration date (expires at the end of session by default).
|
||||
path?: string, // the path of the cookie (/ by default).
|
||||
secure?: boolean, // false by default for HTTP, true by default for HTTPS
|
||||
httpOnly?: boolean, // a boolean indicating whether the cookie is only to be sent over HTTP(S),
|
||||
|
@ -210,7 +210,7 @@ declare module 'koa' {
|
|||
get: (name: string, options?: {signed: boolean}) => string|void,
|
||||
set: ((name: string, value: string, options?: CookiesSetOptions) => Context)&
|
||||
// delete cookie (an outbound header with an expired date is used.)
|
||||
( (name: string) => Context),
|
||||
((name: string) => Context),
|
||||
};
|
||||
// The default props of context come from two files
|
||||
// `application.createContext` & `context.js`
|
||||
|
@ -233,7 +233,7 @@ declare module 'koa' {
|
|||
// if (!(err instanceof Error)) err = new Error(`non-error thrown: ${err}`);
|
||||
onerror: (err?: mixed) => void,
|
||||
// context.md#L88
|
||||
throw: ( status: number, msg?: string, opts?: {} ) => void,
|
||||
throw: (status: number, msg?: string, opts?: {}) => void,
|
||||
toJSON(): ContextJSON,
|
||||
inspect(): ContextJSON,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue