From f556a2f926842aa5315bae14f26fa3541a8f43a2 Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 26 Jul 2019 16:43:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index f729cd950..a060901a7 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -349,7 +349,7 @@ export interface _base { isNotEmptyString: (string: string) => boolean; - isEmptyString: (string: string) => boolean; + isEmptyString: (string: any) => boolean; encrypt: (type: string, text: string, key: string) => string; From 3f15290c917ffaf17246d2db8b6739c7cece8dba Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 26 Jul 2019 16:48:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index a060901a7..f81b89876 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -108,11 +108,11 @@ export interface _base { int2Abc: (num: number) => string; // 数组相关的方法 - first: (array: any[], callback?: Function|object|number|string, thisArg?: any) => any; + first: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T; initial: (array: any[], callback?: Function|object|number|string, thisArg?: any) => any[]; - last: (array: any[], callback?: Function|object|number|string, thisArg?: any) => any; + last: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T; rest: (array: any[], callback?: Function|object|number|string, thisArg?: any) => any[]; @@ -156,7 +156,7 @@ export interface _base { makeArrayByArray: (array: any[], value: any) => any[]; - uniq: (array: any[], isSorted?: boolean, iteratee?: any, context?: any) => any[]; + uniq: (array: T[], isSorted?: boolean, iteratee?: any, context?: any) => T[]; // 对象相关方法 keys: (object: object) => string[];