Skip to content
Permalink
Browse files

flow-types are committed now and added npm script to download them (L…

…edgerHQ#1948)

flow-types are committed now and added npm script to download them
  • Loading branch information...
valpinkman committed Apr 29, 2019
2 parents f40c836 + 4e1e42b commit 72aa28e2027e421449e9a0fce411a6cb49e2bda5
Showing with 15,973 additions and 30 deletions.
  1. +0 −1 .gitignore
  2. +4 −0 flow-typed/npm/@babel/polyfill_v7.x.x.js
  3. +47 −0 flow-typed/npm/@babel/register_v7.x.x.js
  4. +12 −0 flow-typed/npm/@storybook/addon-actions_v3.x.x.js
  5. +24 −0 flow-typed/npm/@storybook/addon-knobs_v3.x.x.js
  6. +24 −0 flow-typed/npm/@storybook/addon-links_v3.x.x.js
  7. +23 −0 flow-typed/npm/@storybook/addon-options_v3.x.x.js
  8. +44 −0 flow-typed/npm/@storybook/react_v3.x.x.js
  9. +165 −0 flow-typed/npm/axios_v0.18.x.js
  10. +1,690 −0 flow-typed/npm/bignumber.js_v7.x.x.js
  11. +98 −0 flow-typed/npm/chalk_v2.x.x.js
  12. +249 −0 flow-typed/npm/chance_v1.x.x.js
  13. +30 −0 flow-typed/npm/debug_v3.x.x.js
  14. +6 −0 flow-typed/npm/flow-bin_v0.x.x.js
  15. +31 −0 flow-typed/npm/fuse.js_v3.x.x.js
  16. +137 −0 flow-typed/npm/history_v4.x.x.js
  17. +6 −0 flow-typed/npm/invariant_v2.x.x.js
  18. +988 −0 flow-typed/npm/jest_v22.x.x.js
  19. +105 −0 flow-typed/npm/js-yaml_v3.x.x.js
  20. +6,086 −0 flow-typed/npm/lodash_v4.x.x.js
  21. +26 −0 flow-typed/npm/lru-cache_v4.0.x.js
  22. +378 −0 flow-typed/npm/moment_v2.x.x.js
  23. +178 −0 flow-typed/npm/prettier_v1.x.x.js
  24. +58 −0 flow-typed/npm/qs_v6.5.x.js
  25. +235 −0 flow-typed/npm/raven-js_v3.17.x.js
  26. +174 −0 flow-typed/npm/react-router-dom_v4.x.x.js
  27. +134 −0 flow-typed/npm/react-router_v4.x.x.js
  28. +81 −0 flow-typed/npm/react-test-renderer_v16.x.x.js
  29. +100 −0 flow-typed/npm/redux_v4.x.x.js
  30. +18 −0 flow-typed/npm/rimraf_v2.x.x.js
  31. +3,340 −0 flow-typed/npm/rxjs_v6.x.x.js
  32. +198 −0 flow-typed/npm/semver_v5.1.x.js
  33. +8 −0 flow-typed/npm/smoothscroll-polyfill_v0.x.x.js
  34. +369 −0 flow-typed/npm/source-map_v0.7.x.js
  35. +102 −0 flow-typed/npm/uuid_v3.x.x.js
  36. +594 −0 flow-typed/npm/webpack_v4.x.x.js
  37. +208 −0 flow-typed/npm/zxcvbn_v4.x.x.js
  38. +3 −0 package.json
  39. +0 −29 scripts/postinstall.sh
@@ -1,7 +1,6 @@
xliffs/
/.env
/dist/
/flow-typed/
/node_modules/
/static/fonts/museosans/
/storybook-static/
@@ -0,0 +1,4 @@
// flow-typed signature: ebc6e7724cd1da0d1a8b10de36bd7a94
// flow-typed version: 7b122e75af/@babel/polyfill_v7.x.x/flow_>=v0.30.x

declare module '@babel/polyfill' {}
@@ -0,0 +1,47 @@
// flow-typed signature: 5934458d8287c23337a0363563a548f9
// flow-typed version: b77688cf5d/@babel/register_v7.x.x/flow_>=v0.30.x

declare module '@babel/register' {
declare type Ignore = boolean | string | RegExp | (filename: string) => boolean;
declare type Options = {|
ast?: boolean,
auxiliaryCommentAfter?: ?string,
auxiliaryCommentBefore?: ?string,
babelrc?: boolean,
code?: boolean,
comments?: boolean,
compact?: 'auto' | boolean,
configFile?: string | boolean,
env?: Object,
extends?: ?string,
extensions?: Array<string>,
filename?: string,
filenameRelative?: string,
generatorOpts?: Object,
getModuleId?: void | null | (moduleName: string) => string,
highlightCode?: boolean,
ignore?: Ignore | Array<Ignore>,
inputSourceMap?: Object,
minified?: boolean,
moduleId?: string,
moduleIds?: boolean,
moduleRoot?: string,
only?: RegExp,
parserOpts?: Object,
plugins?: Array<[string, Object] | string>,
presets?: Array<string>,
retainLines?: boolean,
resolveModuleSource?: null | (source: string, filename: string) => boolean,
shouldPrintComment?: null | (commentContents: string) => string,
sourceFileName?: string,
sourceMaps?: boolean | 'inline' | 'both',
sourceMapTarget?: string,
sourceRoot?: string,
sourceType?: 'script' | 'module',
wrapPluginVisitorMethod?: null | (pluginAlias: string, visitorType: string, callback: Function) => boolean,
extensions?: Array<string>,
cache?: boolean,
|};

declare module.exports: (options?: Options) => void;
}
@@ -0,0 +1,12 @@
// flow-typed signature: 2f5b0f18c5b5b31b01f63163429685c7
// flow-typed version: 5edd39ab2e/@storybook/addon-actions_v3.x.x/flow_>=v0.25.x

declare module '@storybook/addon-actions' {
declare type Action = (name: string) => (...args: Array<any>) => void;
declare type DecorateFn = (args: Array<any>) => Array<any>;

declare module.exports: {
action: Action,
decorateAction(args: Array<DecorateFn>): Action;
};
}
@@ -0,0 +1,24 @@
// flow-typed signature: 2be09489aa5b13abeac6cff77889482f
// flow-typed version: d31d780f52/@storybook/addon-knobs_v3.x.x/flow_vx.x.x

declare module "@storybook/addon-knobs/react" {
declare type Context = { kind: string, story: string };
declare type Renderable = React$Element<*>;
declare type RenderFunction = () => Renderable | Array<Renderable>;
declare type GroupId = string;

declare function array<T>(string, (Array<T> | {[string]: T}), ?string, ?GroupId): Array<T>;
declare function boolean(string, boolean, ?GroupId): boolean;
declare function button(string, ((?{}) => void), ?GroupId): void;
declare function color(string, string, ?GroupId): string;
declare function date(string, Date, ?GroupId): number;
declare function number(string, number, ?{ range?: boolean, min?: number, max?: number, step?: number }, ?GroupId): number;
declare function object(string, any, ?GroupId): any;
declare function select<T>(string, Array<T> | { [T]: string }, T, ?GroupId): T;
declare function selectV2<T>(string, Array<T> | { [string]: T }, T, ?GroupId): T;
declare function text(string, string, ?GroupId): string;
declare function withKnobs(
story: RenderFunction,
context: Context
): Renderable | null;
}
@@ -0,0 +1,24 @@
// flow-typed signature: 6228614f4cefdb3846493aaa7a03baac
// flow-typed version: bfd22d4eee/@storybook/addon-links_v3.x.x/flow_>=v0.53.x

declare module '@storybook/addon-links' {
declare type LinkToFunction = (...args: Array<any>) => string;

declare module.exports: {
linkTo<T>(
book: string | LinkToFunction,
kind?: string | LinkToFunction
): (evt: SyntheticEvent<T>) => void,
hrefTo(kind: string, story: string): Promise<string>,
};
}

declare module '@storybook/addon-links/react' {
declare type Props = {
kind?: string,
story?: string,
};

declare class LinkTo extends React$Component<Props> {}
declare module.exports: typeof LinkTo;
}
@@ -0,0 +1,23 @@
// flow-typed signature: 4096abe74fc4ed9934891a18922b22e6
// flow-typed version: 028ef45280/@storybook/addon-options_v3.x.x/flow_>=v0.25.x

declare module '@storybook/addon-options' {
declare type Options = {
name?: string,
url?: string,
goFullScreen?: boolean,
showLeftPanel?: boolean, // deprecated, use showStoriesPanel
showStoriesPanel?: boolean,
showDownPanel?: boolean, // deprecated; use showAddonPanel
showAddonPanel?: boolean,
showSearchBox?: boolean,
downPanelInRight?: boolean, // deprecated; use addonPanelInRight
addonPanelInRight?: boolean,
sortStoriesByKind?: boolean,
hierarchySeparator?: RegExp | string,
hierarchyRootSeparator?: RegExp | string,
selectedAddonPanel?: string,
};

declare function setOptions(options: Options): void;
}
@@ -0,0 +1,44 @@
// flow-typed signature: 1aeadf523ef2d96985697463dd71c89d
// flow-typed version: 35108faf5b/@storybook/react_v3.x.x/flow_>=v0.72.x

type NodeModule = typeof module;

declare module '@storybook/react' {
declare type Context = { kind: string, story: string };
declare type Renderable = React$Element<*>;
declare type RenderCallback = (
context: Context
) => Renderable | Array<Renderable>;
declare type RenderFunction = () => Renderable | Array<Renderable>;

declare type StoryDecorator = (
story: RenderFunction,
context: Context
) => Renderable | null;

declare interface Story {
+kind: string;
add(storyName: string, callback: RenderCallback): Story;
addDecorator(decorator: StoryDecorator): Story;
}

declare interface StoryObject {
name: string;
render: RenderFunction;
}

declare interface StoryBucket {
kind: string;
filename: string;
stories: Array<StoryObject>;
}

declare function addDecorator(decorator: StoryDecorator): void;
declare function configure(fn: () => void, module: NodeModule): void;
declare function setAddon(addon: Object): void;
declare function storiesOf(name: string, module: NodeModule): Story;
declare function storiesOf<T>(name: string, module: NodeModule): Story & T;
declare function forceReRender(): void;

declare function getStorybook(): Array<StoryBucket>;
}
@@ -0,0 +1,165 @@
// flow-typed signature: c7fc5e55e23fbd64fda47f934043c4f8
// flow-typed version: 7ffaa2ca07/axios_v0.18.x/flow_>=v0.93.x

declare module 'axios' {
declare interface AxiosTransformer<T> {
(data: T, headers?: Object): Object;
}
declare interface ProxyConfig {
host: string;
port: number;
auth?: {
username: string,
password: string,
};
}
declare interface Cancel {
constructor(message?: string): Cancel;
message: string;
}
declare interface Canceler {
(message?: string): void;
}
declare interface CancelTokenSource {
token: CancelToken;
cancel: Canceler;
}
declare class CancelToken {
constructor(executor: (cancel: Canceler) => void): CancelToken;
static source(): CancelTokenSource;
promise: Promise<Cancel>;
reason?: Cancel;
throwIfRequested(): void;
}
declare interface AxiosXHRConfigBase<T, R = T> {
adapter?: <T, R>(config: AxiosXHRConfig<T, R>) => Promise<AxiosXHR<T, R>>;
auth?: {
username: string,
password: string,
};
baseURL?: string;
cancelToken?: CancelToken;
headers?: Object;
httpAgent?: mixed; // Missing the type in the core flow node libdef
httpsAgent?: mixed; // Missing the type in the core flow node libdef
maxContentLength?: number;
maxRedirects?: number;
params?: Object;
paramsSerializer?: (params: Object) => string;
onUploadProgress?: (progressEvent: ProgressEvent) => void;
onDownloadProgress?: (progressEvent: ProgressEvent) => void;
proxy?: ProxyConfig | false;
responseType?:
| 'arraybuffer'
| 'blob'
| 'document'
| 'json'
| 'text'
| 'stream';
timeout?: number;
transformRequest?: AxiosTransformer<T> | Array<AxiosTransformer<T>>;
transformResponse?: AxiosTransformer<R> | Array<AxiosTransformer<R>>;
validateStatus?: (status: number) => boolean;
withCredentials?: boolean;
xsrfCookieName?: string;
xsrfHeaderName?: string;
}
declare type $AxiosXHRConfigBase<T, R = T> = AxiosXHRConfigBase<T, R>;
declare interface AxiosXHRConfig<T, R = T> extends AxiosXHRConfigBase<T, R> {
data?: T;
method?: string;
url: string;
}
declare type $AxiosXHRConfig<T, R = T> = AxiosXHRConfig<T, R>;
declare class AxiosXHR<T, R = T> {
config: AxiosXHRConfig<T, R>;
data: R;
headers?: Object;
status: number;
statusText: string;
request: http$ClientRequest<> | XMLHttpRequest;
}
declare type $AxiosXHR<T, R = T> = AxiosXHR<T, R>;
declare type AxiosInterceptorIdent = number;
declare class AxiosRequestInterceptor<T, R = T> {
use(
successHandler: ?(
response: AxiosXHRConfig<T, R>
) => Promise<AxiosXHRConfig<*, *>> | AxiosXHRConfig<*, *>,
errorHandler: ?(error: mixed) => mixed
): AxiosInterceptorIdent;
eject(ident: AxiosInterceptorIdent): void;
}
declare class AxiosResponseInterceptor<T, R = T> {
use(
successHandler: ?(response: AxiosXHR<T, R>) => mixed,
errorHandler: ?(error: $AxiosError<any>) => mixed
): AxiosInterceptorIdent;
eject(ident: AxiosInterceptorIdent): void;
}
declare type AxiosPromise<T, R = T> = Promise<AxiosXHR<T, R>>;
declare class Axios {
<T, R>(
config: AxiosXHRConfig<T, R> | string,
config?: AxiosXHRConfig<T, R>
): AxiosPromise<T, R>;
constructor<T, R>(config?: AxiosXHRConfigBase<T, R>): void;
request<T, R>(config: AxiosXHRConfig<T, R>): AxiosPromise<T, R>;
delete<T, R>(
url: string,
config?: AxiosXHRConfigBase<T, R>
): AxiosPromise<T, R>;
get<T, R>(
url: string,
config?: AxiosXHRConfigBase<T, R>
): AxiosPromise<T, R>;
head<T, R>(
url: string,
config?: AxiosXHRConfigBase<T, R>
): AxiosPromise<T, R>;
post<T, R>(
url: string,
data?: mixed,
config?: AxiosXHRConfigBase<T, R>
): AxiosPromise<T, R>;
put<T, R>(
url: string,
data?: mixed,
config?: AxiosXHRConfigBase<T, R>
): AxiosPromise<T, R>;
patch<T, R>(
url: string,
data?: mixed,
config?: AxiosXHRConfigBase<T, R>
): AxiosPromise<T, R>;
interceptors: {
request: AxiosRequestInterceptor<mixed>,
response: AxiosResponseInterceptor<mixed>,
};
defaults: { headers: Object } & AxiosXHRConfig<*, *>;
}

declare class AxiosError<T, R = T> extends Error {
config: AxiosXHRConfig<T, R>;
request?: http$ClientRequest<> | XMLHttpRequest;
response?: AxiosXHR<T, R>;
code?: string;
}

declare type $AxiosError<T, R = T> = AxiosError<T, R>;

declare interface AxiosExport extends Axios {
<T, R>(
config: AxiosXHRConfig<T, R> | string,
config?: AxiosXHRConfig<T, R>
): AxiosPromise<T, R>;
Axios: typeof Axios;
Cancel: Class<Cancel>;
CancelToken: Class<CancelToken>;
isCancel(value: any): boolean;
create(config?: AxiosXHRConfigBase<any, any>): Axios;
all: typeof Promise.all;
spread(callback: Function): (arr: Array<any>) => Function;
}
declare module.exports: AxiosExport;
}
Oops, something went wrong.

0 comments on commit 72aa28e

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