mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-11 18:44:07 +00:00
(update) removed polish flow type, added js-cookie flow type
This commit is contained in:
parent
a7d7142844
commit
4cf4ea3369
30
flow-typed/npm/js-cookie_v2.x.x.js
vendored
Normal file
30
flow-typed/npm/js-cookie_v2.x.x.js
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
// flow-typed signature: a23fa96dc9c75f8931650efff45badee
|
||||||
|
// flow-typed version: c6154227d1/js-cookie_v2.x.x/flow_>=v0.104.x
|
||||||
|
|
||||||
|
declare module 'js-cookie' {
|
||||||
|
declare type CookieOptions = {
|
||||||
|
expires?: number | Date,
|
||||||
|
path?: string,
|
||||||
|
domain?: string,
|
||||||
|
secure?: boolean,
|
||||||
|
...
|
||||||
|
}
|
||||||
|
declare type ConverterFunc = (value: string, name: string) => string;
|
||||||
|
declare type ConverterObj = {
|
||||||
|
read: ConverterFunc,
|
||||||
|
write: ConverterFunc,
|
||||||
|
...
|
||||||
|
};
|
||||||
|
declare class Cookie {
|
||||||
|
defaults: CookieOptions;
|
||||||
|
set(name: string, value: mixed, options?: CookieOptions): void;
|
||||||
|
get(...args: Array<void>): { [key: string]: string, ... };
|
||||||
|
get(name: string, ...args: Array<void>): string | void;
|
||||||
|
remove(name: string, options?: CookieOptions): void;
|
||||||
|
getJSON(name: string): Object;
|
||||||
|
withConverter(converter: ConverterFunc | ConverterObj): this;
|
||||||
|
noConflict(): this;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module.exports: Cookie;
|
||||||
|
}
|
46
flow-typed/npm/polish_vx.x.x.js
vendored
46
flow-typed/npm/polish_vx.x.x.js
vendored
@ -1,46 +0,0 @@
|
|||||||
// flow-typed signature: e215c06fb9ec51e72b3ed908312ee496
|
|
||||||
// flow-typed version: <<STUB>>/polish_v^0.2.3/flow_v0.112.0
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is an autogenerated libdef stub for:
|
|
||||||
*
|
|
||||||
* 'polish'
|
|
||||||
*
|
|
||||||
* 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 'polish' {
|
|
||||||
declare module.exports: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 'polish/polish' {
|
|
||||||
declare module.exports: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'polish/polish.min' {
|
|
||||||
declare module.exports: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'polish/polish.spec' {
|
|
||||||
declare module.exports: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Filename aliases
|
|
||||||
declare module 'polish/polish.js' {
|
|
||||||
declare module.exports: $Exports<'polish/polish'>;
|
|
||||||
}
|
|
||||||
declare module 'polish/polish.min.js' {
|
|
||||||
declare module.exports: $Exports<'polish/polish.min'>;
|
|
||||||
}
|
|
||||||
declare module 'polish/polish.spec.js' {
|
|
||||||
declare module.exports: $Exports<'polish/polish.spec'>;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user