-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.d.ts
48 lines (48 loc) · 3.1 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
export function assignInWith (obj: Object, ...sources: Object[]): Object
export function camelize (str: string): string
export function capitalize (str: string): string
export function clone (obj: Object): Object
export function cloneDeep (obj: Object): Object
export function difference (array: Array<any>, values: Array<any>): Array<any>
export function findLastIndex (array: Array<any>, predicate: Function): number
export function flow (funcs: Array<Function>): Function
export function freezeDeep (obj: Object): Object
export function get (obj: Object, path: string | Array<string | number>, defaultValue: any): any
export function getArrayHasIntersect (arr1: Array<any>, arr2: Array<any>): boolean
export function getArrayUniq (arr: Array<any>): Array<any>
export function getErrorMessage (obj: obj): string
export function invert (obj: Object): Object
export function groupBy<T> (array: Array<T>, key: string | ((item: T) => string)): { [key: string]: Array<T> }
export function isEmpty (val: any): boolean
export function isEqual (value: any, another: any): boolean
export function isFinite (val: any): boolean
export function isFunction (val: any): boolean
export function isMatch (obj: Object, source: Object): boolean
export function isNil (val: any): boolean
export function isNumber (val: any): boolean
export function isObject (verifiable: any): Boolean
export function isObjectLike(value: any): boolean
export function isPlainObject (val: any): boolean
export function isString (val: any): boolean
export function isUndefined (val: any): boolean
export function mapKeys(obj: Object, mapper: (val: any, key: string) => string): Object
export function mapValues(obj: Object, mapper: (val: any, key: string) => any): Object
export function max (array: Array<any>): any
export function mean (values: Array<number>): number
export function merge (obj: Object, ...sources: Object[]): Object
export function min (array: Array<any>): any
export function omit (obj: Object, keys: Array<string>): Object
export function omitBy (obj: Object, predicate: (val: any, key: string) => boolean): Object
export function pick (obj: Object, keys: Array<string>): Object
export function pickBy (obj: Object, predicate: (val: any, key: string) => boolean): Object
export function resolvePromiseCb<T> (err: any, res: T, cb: (err: any, res: T) => void): Promise<T>|void
export function shuffle<T> (array: Array<T>): Array<T>
export function snakeCase (str: string): string
export function sum (values: Array<string>): number
export function sumBy (values: Array, iteratee: Function | string): number
export function union (...arrays: Array[]): Array
export function uniqBy (array: Array, iteratee: Function | string): Array
export function uniqWith (array: Array, comparator: Function): Array
export function update (obj: Object, path: string | Array<string | number>, updater: Function): Object
export function validateInput ( input: string, format: 'NUMBER' | 'EMAIL' | 'PATH' | 'NAME' | 'NAME_WITH_DIGITS' | 'INPUT' | 'ADDRESS' | 'PHONE_CODE' | 'PHONE' | 'IMAGE' | 'FILE' | 'FILENAME' | 'PASSWORD' | 'URL' ): Boolean
export function without (array: Array, ...values: Array): Array