Skip to content

Commit

Permalink
update ts
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Dec 8, 2020
1 parent 965e885 commit 77ce5ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion func/orderBy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interface OrderBySortConfs<T, C> {
order?: 'order' | 'desc' | null;
}

export type OrderByFieldConfs<T, C> = null | string | OrderBySortConfs<T, C> | (string | OrderBySortConfs<T, C>)[] | ((this: C, item: T, index: number, list: T[]) => any);
export type OrderByFieldConfs<T, C> = null | string | any[][] | OrderBySortConfs<T, C> | (string | OrderBySortConfs<T, C>)[] | ((this: C, item: T, index: number, list: T[]) => any);

/**
* 将数组进行排序
Expand Down
4 changes: 4 additions & 0 deletions func/sortBy.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import orderBy from './orderBy'

/**
* 被 orderBy 替换
* @deprecated
*/
export const sortBy: typeof orderBy

declare module './ctor' {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xe-utils",
"version": "3.0.3",
"version": "3.0.4",
"description": "JavaScript 函数库、工具类",
"main": "index.js",
"unpkg": "dist/xe-utils.umd.min.js",
Expand Down

0 comments on commit 77ce5ef

Please sign in to comment.