From fd12b5a806479b351c8468738c7a76978694f127 Mon Sep 17 00:00:00 2001 From: Kira Date: Thu, 17 Dec 2020 17:31:04 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-6533=20refactor:=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 12 ++++++------ .../widget/multiselect/multiselect.insert.combo.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index 9455248afc..f101755b76 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -46,17 +46,17 @@ export interface _base { reduceRight: (collection: T[]|object|string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T)|object|string, initialValue?: U|T) => U extends T ? U : T; - find: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; + find: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => T | undefined; - filter: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[]; + filter: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => T[]; - reject: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[]; + reject: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => T[]; - every: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; + every: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; - all: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; + all: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; - some: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; + some: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; any: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; diff --git a/typescript/widget/multiselect/multiselect.insert.combo.ts b/typescript/widget/multiselect/multiselect.insert.combo.ts index 467afd8d4d..2eab5d55fa 100644 --- a/typescript/widget/multiselect/multiselect.insert.combo.ts +++ b/typescript/widget/multiselect/multiselect.insert.combo.ts @@ -44,7 +44,7 @@ export declare class MultiSelectInsertCombo extends Single { hideView(): void; - setValue(value: { + setValue(value?: { type: string; value: string[]; assist: string[];