From 53c44a284e05cdee10b59c9b7a4a957e99c6c675 Mon Sep 17 00:00:00 2001 From: zsmj1994 Date: Tue, 1 Dec 2020 14:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20chore:=20?= =?UTF-8?q?=E6=94=B9=E4=B8=AA=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/func/function.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;