diff --git a/typescript/core/func/function.ts b/typescript/core/func/function.ts index 031a2ddc41..4da9ab104b 100644 --- a/typescript/core/func/function.ts +++ b/typescript/core/func/function.ts @@ -28,7 +28,7 @@ export type _function = { * @param items * @param key */ - getSortedResult: (items: T[], key: string) => T[]; + getSortedResult: (items: T[], key?: string | Function) => T[]; /** * 在方法A执行之前执行方法B