diff --git a/typescript/core/func/function.ts b/typescript/core/func/function.ts index 592d2c106..55d8015b7 100644 --- a/typescript/core/func/function.ts +++ b/typescript/core/func/function.ts @@ -12,7 +12,7 @@ export type _createDistinctName = (array: any[], name: string) => string; * @param keyword 关键字 * @param param 搜索哪个属性 */ -export type _getSearchResult = (items: any, keyword: any, param: string) => {find: any, match: any} +export type _getSearchResult = (items: any, keyword: any, param?: string) => { find: any[], match: any[] } /** * 在方法A执行之前执行方法B @@ -34,4 +34,4 @@ type _function = { beforeFunc: _beforeFunc; afterFunc: _afterFunc; } -export default _function; \ No newline at end of file +export default _function;