diff --git a/func/after.d.ts b/func/after.d.ts index 226ae63..3b0c5db 100644 --- a/func/after.d.ts +++ b/func/after.d.ts @@ -4,7 +4,7 @@ * @param callback 回调 * @param context 上下文 */ -export declare function after(count: number, callback: (this: C, ...args: any[]) => any, context?: C): (this: any,...args: any[]) => any; +export declare function after(count: number, callback: (this: C, ...args: any[]) => any, context?: C): (this: any,...args: any[]) => any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/arrayEach.d.ts b/func/arrayEach.d.ts index bc0238b..8eebbf5 100644 --- a/func/arrayEach.d.ts +++ b/func/arrayEach.d.ts @@ -4,8 +4,8 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function arrayEach(list: T[] | ArrayLike, iterate: (this: C, item: T, index: number, list: T[]) => void, context?: C): void; -export declare function arrayEach(obj: any[], iterate: (this: C, item: any, index: number, obj: any) => void, context?: C): void; +export declare function arrayEach(list: T[] | ArrayLike, iterate: (this: C, item: T, index: number, list: T[]) => void, context?: C): void; +export declare function arrayEach(obj: any[], iterate: (this: C, item: any, index: number, obj: any) => void, context?: C): void; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/before.d.ts b/func/before.d.ts index a98db2b..d6772bb 100644 --- a/func/before.d.ts +++ b/func/before.d.ts @@ -4,7 +4,7 @@ * @param callback 回调 * @param context 上下文 */ -export declare function before(count: number, callback: (this: C, rests: any[], ...args: any[]) => any, context?: C): (this: any, ...args: any[]) => any; +export declare function before(count: number, callback: (this: C, rests: any[], ...args: any[]) => any, context?: C): (this: any, ...args: any[]) => any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/bind.d.ts b/func/bind.d.ts index 12baab2..0ab3cd4 100644 --- a/func/bind.d.ts +++ b/func/bind.d.ts @@ -4,7 +4,7 @@ * @param context 上下文 * @param params 额外的参数 */ -export declare function bind(callback: (this: C, ...args: any[]) => any, context?: C, ...params: any[]): (this: any, ...args: any[]) => any; +export declare function bind(callback: (this: C, ...args: any[]) => any, context?: C, ...params: any[]): (this: any, ...args: any[]) => any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/countBy.d.ts b/func/countBy.d.ts index 5dfb6df..5bba5c1 100644 --- a/func/countBy.d.ts +++ b/func/countBy.d.ts @@ -4,7 +4,7 @@ * @param iterate 回调/属性 * @param context 上下文 */ -export declare function countBy(list: T[], iterate: string | number | ((this: C, item: T, index: number, list: T[]) => string | number), context?: C): { [key: string]: number }; +export declare function countBy(list: T[], iterate: string | number | ((this: C, item: T, index: number, list: T[]) => string | number), context?: C): { [key: string]: number }; /** * 集合分组统计,返回各组中对象的数量统计 @@ -12,7 +12,7 @@ export declare function countBy(list: T[], iterate: string | number | ((th * @param iterate 回调/属性 * @param context 上下文 */ -export declare function countBy(obj: T, iterate: string | number | ((this: C, item: any, key: string, obj: T) => string | number), context?: C): { [key: string]: number }; +export declare function countBy(obj: T, iterate: string | number | ((this: C, item: any, key: string, obj: T) => string | number), context?: C): { [key: string]: number }; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/debounce.d.ts b/func/debounce.d.ts index cdf402b..120053c 100644 --- a/func/debounce.d.ts +++ b/func/debounce.d.ts @@ -15,7 +15,7 @@ export interface DebounceOptions { * @param wait 毫秒 * @param options 可选参数 */ -export declare function debounce(callback: (this: C, ...args: any[]) => any, wait: number, options?: DebounceOptions): (this: C, ...args: any[]) => any; +export declare function debounce(callback: (this: C, ...args: any[]) => any, wait: number, options?: DebounceOptions): (this: C, ...args: any[]) => any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/each.d.ts b/func/each.d.ts index f15ee5e..8ff0ecd 100644 --- a/func/each.d.ts +++ b/func/each.d.ts @@ -4,7 +4,7 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function each(list: T[] | ArrayLike, iterate: (this: C, item: T, index: number, list: T[]) => void, context?: CSSKeyframeRule): void; +export declare function each(list: T[] | ArrayLike, iterate: (this: C, item: T, index: number, list: T[]) => void, context?: CSSKeyframeRule): void; /** * 通用迭代器 @@ -12,7 +12,7 @@ export declare function each(list: T[] | ArrayLike, iterate: (this: C, * @param iterate 回调 * @param context 上下文 */ -export declare function each(obj: T, iterate: (this: C, item: any, key: string, obj: T) => void, context?: C): void; +export declare function each(obj: T, iterate: (this: C, item: any, key: string, obj: T) => void, context?: C): void; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/eachTree.d.ts b/func/eachTree.d.ts index 11145f1..c2a820e 100644 --- a/func/eachTree.d.ts +++ b/func/eachTree.d.ts @@ -9,9 +9,9 @@ export interface EachTreeOptions { * @param {Object} options {children: 'children'} * @param {Object} context 上下文 */ -export declare function eachTree(list: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => void, options?: EachTreeOptions, context?: C): void; -export declare function eachTree(list: any[], iterate: (this: C, item: any, index: number, items: any[], path: string[], parent: any, nodes: any[]) => void, options?: EachTreeOptions, context?: C): void; -export declare function eachTree(list: any, iterate: (this: C, item: any, index: number, items: any, path: string[], parent: any, nodes: any) => void, options?: EachTreeOptions, context?: C): void; +export declare function eachTree(list: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => void, options?: EachTreeOptions, context?: C): void; +export declare function eachTree(list: any[], iterate: (this: C, item: any, index: number, items: any[], path: string[], parent: any, nodes: any[]) => void, options?: EachTreeOptions, context?: C): void; +export declare function eachTree(list: any, iterate: (this: C, item: any, index: number, items: any, path: string[], parent: any, nodes: any) => void, options?: EachTreeOptions, context?: C): void; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/every.d.ts b/func/every.d.ts index 832cf31..3967031 100644 --- a/func/every.d.ts +++ b/func/every.d.ts @@ -5,7 +5,7 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function every(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): boolean; +export declare function every(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): boolean; /** * 对象中的值中的每一项运行给定函数,如果该函数对每一项都返回 true,则返回 true,否则返回 false @@ -13,7 +13,7 @@ export declare function every(list: T[], iterate: (this: C, item: T, index * @param iterate 回调 * @param context 上下文 */ -export declare function every(list: T, iterate: (this: C, item: any, key: string, list: T) => boolean, context?: C): boolean; +export declare function every(list: T, iterate: (this: C, item: any, key: string, list: T) => boolean, context?: C): boolean; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/filter.d.ts b/func/filter.d.ts index 6b74740..5f14ae6 100644 --- a/func/filter.d.ts +++ b/func/filter.d.ts @@ -5,7 +5,7 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function filter(array: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): T[]; +export declare function filter(array: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): T[]; /** * 查找匹配第一条数据 @@ -13,7 +13,7 @@ export declare function filter(array: T[], iterate: (this: C, item: T, ind * @param iterate 回调 * @param context 上下文 */ -export declare function filter(obj: T, iterate: (this: C, item: any, key: string, list: T) => boolean, context?: C): any; +export declare function filter(obj: T, iterate: (this: C, item: any, key: string, list: T) => boolean, context?: C): any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/filterTree.d.ts b/func/filterTree.d.ts index 4fbed8e..cb3a047 100644 --- a/func/filterTree.d.ts +++ b/func/filterTree.d.ts @@ -10,7 +10,7 @@ export interface FilterTreeOptions { * @param {Object} options {children: 'children'} * @param {Object} context 上下文 */ -export declare function filterTree(list: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => boolean, options?: FilterTreeOptions, context?: C): T[]; +export declare function filterTree(list: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => boolean, options?: FilterTreeOptions, context?: C): T[]; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/find.d.ts b/func/find.d.ts index d21b1fc..3c4e2f0 100644 --- a/func/find.d.ts +++ b/func/find.d.ts @@ -4,7 +4,7 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function find(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): T; +export declare function find(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): T; /** * 从左至右遍历,匹配最近的一条数据 @@ -12,7 +12,7 @@ export declare function find(list: T[], iterate: (this: C, item: T, index: * @param iterate 回调 * @param context 上下文 */ -export declare function find(obj: T, iterate: (this: C, item: any, key: string, obj: T) => boolean, context?: C): any; +export declare function find(obj: T, iterate: (this: C, item: any, key: string, obj: T) => boolean, context?: C): any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/findIndexOf.d.ts b/func/findIndexOf.d.ts index da6d59b..3cfaee5 100644 --- a/func/findIndexOf.d.ts +++ b/func/findIndexOf.d.ts @@ -4,7 +4,7 @@ * @param iterate 迭代器 * @param context 上下文 */ -export declare function findIndexOf(list: T[], iterate: (this: C, item: T, index: any, obj: T[]) => boolean, context?: C): number; +export declare function findIndexOf(list: T[], iterate: (this: C, item: T, index: any, obj: T[]) => boolean, context?: C): number; /** * 返回对象第一个索引值 @@ -12,7 +12,7 @@ export declare function findIndexOf(list: T[], iterate: (this: C, item: T, * @param iterate 迭代器 * @param context 上下文 */ -export declare function findIndexOf(obj: T, iterate: (this: C, item: any, key: string, obj: T) => boolean, context?: C): number; +export declare function findIndexOf(obj: T, iterate: (this: C, item: any, key: string, obj: T) => boolean, context?: C): number; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/findKey.d.ts b/func/findKey.d.ts index aa3b693..e4bca43 100644 --- a/func/findKey.d.ts +++ b/func/findKey.d.ts @@ -4,7 +4,7 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function findKey(list: T[], iterate: (this: C, item: T, index: number, list: T[])=> boolean, context?: C): number; +export declare function findKey(list: T[], iterate: (this: C, item: T, index: number, list: T[])=> boolean, context?: C): number; /** * 查找匹配第一条数据的键 @@ -12,7 +12,7 @@ export declare function findKey(list: T[], iterate: (this: C, item: T, ind * @param iterate 回调 * @param context 上下文 */ -export declare function findKey(obj: T, iterate: (this: C, item: any, key: string, obj: T)=> boolean, context?: C): any; +export declare function findKey(obj: T, iterate: (this: C, item: any, key: string, obj: T)=> boolean, context?: C): any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/findLast.d.ts b/func/findLast.d.ts index d4c9183..28b3f04 100644 --- a/func/findLast.d.ts +++ b/func/findLast.d.ts @@ -4,7 +4,7 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function findLast(array: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): T; +export declare function findLast(array: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): T; /** * 从右至左遍历,匹配最近的一条数据 @@ -12,7 +12,7 @@ export declare function findLast(array: T[], iterate: (this: C, item: T, i * @param iterate 回调 * @param context 上下文 */ -export declare function findLast(obj: T, iterate: (this: C, item: any, key: string, obj: T) => boolean, context?: C): any; +export declare function findLast(obj: T, iterate: (this: C, item: any, key: string, obj: T) => boolean, context?: C): any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/findLastIndexOf.d.ts b/func/findLastIndexOf.d.ts index 8049cee..5326f22 100644 --- a/func/findLastIndexOf.d.ts +++ b/func/findLastIndexOf.d.ts @@ -4,7 +4,7 @@ * @param iterate 迭代器 * @param context 上下文 */ -export declare function findLastIndexOf(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): number; +export declare function findLastIndexOf(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): number; /** * 从最后开始的索引值,返回对象第一个索引值 @@ -12,7 +12,7 @@ export declare function findLastIndexOf(list: T[], iterate: (this: C, item * @param iterate 迭代器 * @param context 上下文 */ -export declare function findLastIndexOf(obj: any, iterate: (this: C, item: any, key: string, obj: any) => boolean, context?: C): number; +export declare function findLastIndexOf(obj: any, iterate: (this: C, item: any, key: string, obj: any) => boolean, context?: C): number; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/findTree.d.ts b/func/findTree.d.ts index b895404..dcf3249 100644 --- a/func/findTree.d.ts +++ b/func/findTree.d.ts @@ -18,7 +18,7 @@ export interface FindTreeOptions { * @param {Object} options {children: 'children'} * @param {Object} context 上下文 */ -export declare function findTree(list: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => boolean, options?: FindTreeOptions, context?: C): FindTerrResult; +export declare function findTree(list: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => boolean, options?: FindTreeOptions, context?: C): FindTerrResult; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/forOf.d.ts b/func/forOf.d.ts index 8b97f9c..43ae1b7 100644 --- a/func/forOf.d.ts +++ b/func/forOf.d.ts @@ -2,7 +2,7 @@ * 已废弃,被 some, every 替换 * @deprecated */ -export declare function forOf(obj: any, iterate: (this: C, item: any, index: any, obj: any) => boolean, context?: C): void; +export declare function forOf(obj: any, iterate: (this: C, item: any, index: any, obj: any) => boolean, context?: C): void; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/groupBy.d.ts b/func/groupBy.d.ts index 51aa951..ea0164d 100644 --- a/func/groupBy.d.ts +++ b/func/groupBy.d.ts @@ -4,7 +4,7 @@ * @param iterate 回调/对象属性 * @param context 上下文 */ -export declare function groupBy(list: T[], iterate: string | number | ((this: C, item: T, index: number, obj: T[]) => string | number), context?: C): { [key: string]: T[] }; +export declare function groupBy(list: T[], iterate: string | number | ((this: C, item: T, index: number, obj: T[]) => string | number), context?: C): { [key: string]: T[] }; /** * 集合分组,默认使用键值分组,如果有 iterate 则使用结果进行分组 @@ -12,7 +12,7 @@ export declare function groupBy(list: T[], iterate: string | number | ((th * @param iterate 回调/对象属性 * @param context 上下文 */ -export declare function groupBy(obj: T, iterate: string | number | ((this: C, item: any, key: string, obj: T) => string | number), context?: C): { [key: string]: any[] }; +export declare function groupBy(obj: T, iterate: string | number | ((this: C, item: any, key: string, obj: T) => string | number), context?: C): { [key: string]: any[] }; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/lastArrayEach.d.ts b/func/lastArrayEach.d.ts index 3c73420..dbd32b4 100644 --- a/func/lastArrayEach.d.ts +++ b/func/lastArrayEach.d.ts @@ -4,10 +4,10 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function lastArrayEach(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => void, context?: C): void; -export declare function lastArrayEach(list: T, iterate: (this: C, item: any, index: number, list: T) => void, context?: C): void; -export declare function lastArrayEach(list: any[], iterate: (this: C, item: any, index: number, list: any[]) => void, context?: C): void; -export declare function lastArrayEach(list: any, iterate: (this: C, item: any, index: number, list: any) => void, context?: C): void; +export declare function lastArrayEach(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => void, context?: C): void; +export declare function lastArrayEach(list: T, iterate: (this: C, item: any, index: number, list: T) => void, context?: C): void; +export declare function lastArrayEach(list: any[], iterate: (this: C, item: any, index: number, list: any[]) => void, context?: C): void; +export declare function lastArrayEach(list: any, iterate: (this: C, item: any, index: number, list: any) => void, context?: C): void; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/lastEach.d.ts b/func/lastEach.d.ts index cd5eb8d..6b99ade 100644 --- a/func/lastEach.d.ts +++ b/func/lastEach.d.ts @@ -4,10 +4,10 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function lastEach(list: T[], iterate: (this: C, item: T, index: number, list: T) => void, context?: C): void; -export declare function lastEach(obj: T, iterate: (this: C, item: any, key: string, obj: T) => void, context?: C): void; -export declare function lastEach(obj: any[], iterate: (this: C, item: any, key: string, obj: any[]) => void, context?: C): void; -export declare function lastEach(obj: any, iterate: (this: C, item: any, key: string, obj: any) => void, context?: C): void; +export declare function lastEach(list: T[], iterate: (this: C, item: T, index: number, list: T) => void, context?: C): void; +export declare function lastEach(obj: T, iterate: (this: C, item: any, key: string, obj: T) => void, context?: C): void; +export declare function lastEach(obj: any[], iterate: (this: C, item: any, key: string, obj: any[]) => void, context?: C): void; +export declare function lastEach(obj: any, iterate: (this: C, item: any, key: string, obj: any) => void, context?: C): void; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/lastForOf.d.ts b/func/lastForOf.d.ts index 60b33ad..f3b1730 100644 --- a/func/lastForOf.d.ts +++ b/func/lastForOf.d.ts @@ -2,7 +2,7 @@ * 已废弃 * @deprecated */ -export declare function lastForOf(obj: any, iterate: (this: C, item: any, index: any, obj: any) => boolean, context?: C): void; +export declare function lastForOf(obj: any, iterate: (this: C, item: any, index: any, obj: any) => boolean, context?: C): void; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/lastObjectEach.d.ts b/func/lastObjectEach.d.ts index 295f708..d8e6560 100644 --- a/func/lastObjectEach.d.ts +++ b/func/lastObjectEach.d.ts @@ -4,8 +4,8 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function lastObjectEach(obj: T, iterate: (this: C, item: any, key: string, obj: T) => void, context?: C): void; -export declare function lastObjectEach(obj: any, iterate: (this: C, item: any, key: string, obj: any) => void, context?: C): void; +export declare function lastObjectEach(obj: T, iterate: (this: C, item: any, key: string, obj: T) => void, context?: C): void; +export declare function lastObjectEach(obj: any, iterate: (this: C, item: any, key: string, obj: any) => void, context?: C): void; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/map.d.ts b/func/map.d.ts index 2999277..f8b65e9 100644 --- a/func/map.d.ts +++ b/func/map.d.ts @@ -4,7 +4,7 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function map(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => U, context?: C): U[]; +export declare function map(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => U, context?: C): U[]; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/mapTree.d.ts b/func/mapTree.d.ts index 5607995..bc46002 100644 --- a/func/mapTree.d.ts +++ b/func/mapTree.d.ts @@ -10,9 +10,9 @@ export interface MapTreeOptions { * @param {Object} options {children: 'children', mapChildren: 'children} * @param {Object} context 上下文 */ -export declare function mapTree(array: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => U, options?: MapTreeOptions, context?: C): U[]; -export declare function mapTree(array: any[], iterate: (this: C, item: any, index: number, items: any[], path: string[], parent: any, nodes: any[]) => U, options?: MapTreeOptions, context?: C): U[]; -export declare function mapTree(array: any, iterate: (this: C, item: any, index: number, items: any, path: string[], parent: any, nodes: any) => U, options?: MapTreeOptions, context?: C): U[]; +export declare function mapTree(array: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => U, options?: MapTreeOptions, context?: C): U[]; +export declare function mapTree(array: any[], iterate: (this: C, item: any, index: number, items: any[], path: string[], parent: any, nodes: any[]) => U, options?: MapTreeOptions, context?: C): U[]; +export declare function mapTree(array: any, iterate: (this: C, item: any, index: number, items: any, path: string[], parent: any, nodes: any) => U, options?: MapTreeOptions, context?: C): U[]; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/once.d.ts b/func/once.d.ts index bfebf2c..c2fea54 100644 --- a/func/once.d.ts +++ b/func/once.d.ts @@ -4,7 +4,7 @@ * @param context 上下文 * @param params 额外的参数 */ -export declare function once(callback: (this: S, ...args: any[]) => any, context?: C, ...params: any[]): (this: S | C, ...args: any[]) => any; +export declare function once(callback: (this: S, ...args: any[]) => any, context?: C, ...params: any[]): (this: S | C, ...args: any[]) => any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/orderBy.d.ts b/func/orderBy.d.ts index c623948..f2f0262 100644 --- a/func/orderBy.d.ts +++ b/func/orderBy.d.ts @@ -11,7 +11,7 @@ export type OrderByFieldConfs = null | string | any[][] | OrderBySortConfs * @param fieldConfs 排序规则 * @param context 上下文 */ -export declare function orderBy(array: T[], fieldConfs: OrderByFieldConfs, context?: C): T[]; +export declare function orderBy(array: T[], fieldConfs: OrderByFieldConfs, context?: C): T[]; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/sum.d.ts b/func/sum.d.ts index ff945c4..6f0d641 100644 --- a/func/sum.d.ts +++ b/func/sum.d.ts @@ -4,7 +4,7 @@ * @param iterate 回调 * @param context 上下文 */ -export declare function sum(obj: T[], iterate?: string | number | ((this: C, item: T, index: number, list: T[]) => number), context?: C): number; +export declare function sum(obj: T[], iterate?: string | number | ((this: C, item: T, index: number, list: T[]) => number), context?: C): number; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/throttle.d.ts b/func/throttle.d.ts index 5e383df..4292cf3 100644 --- a/func/throttle.d.ts +++ b/func/throttle.d.ts @@ -15,7 +15,7 @@ export interface ThrottleOptions { * @param wait 毫秒 * @param options 可选参数 */ -export declare function throttle(callback: (this: C, ...args: any[]) => any, wait: number, options?: ThrottleOptions): (this: C, ...args: any[]) => any; +export declare function throttle(callback: (this: C, ...args: any[]) => any, wait: number, options?: ThrottleOptions): (this: C, ...args: any[]) => any; declare module './ctor' { interface XEUtilsMethods { diff --git a/func/toDateString.d.ts b/func/toDateString.d.ts index 55f551f..96573c1 100644 --- a/func/toDateString.d.ts +++ b/func/toDateString.d.ts @@ -1,8 +1,8 @@ -import { FirstDayOfWeek } from "./getWhatWeek" +import { FirstDayOfWeek } from './getWhatWeek' export type ToDateStringFormats = { /** - * 用于格式化季度 + * 用于格式化季度 * 例如:[null, '第一季度', '第二季度', '第三季度', '第四季度'] */ q?: string[] | { diff --git a/package.json b/package.json index c230c82..841ffd7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xe-utils", - "version": "3.5.30", + "version": "3.5.31", "description": "JavaScript 函数库、工具类", "main": "index.js", "unpkg": "dist/xe-utils.umd.min.js",