From 686ad06db08bf632615d32253aee29593ed07581 Mon Sep 17 00:00:00 2001 From: "Xavier.Meng" Date: Wed, 16 Nov 2022 18:28:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A0JIRA=20refactor(base):=20=E7=BB=99?= =?UTF-8?q?findIndex=E5=8A=A0=E6=B3=9B=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index b5a3ce55c..6182a0833 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -148,9 +148,9 @@ export interface _base { takeRight: (array: T[], n: number) => T[]; - findIndex: (array: any[], value: any, callback?: Function | object | string, thisArg?: any) => number; + findIndex: (array: T[], predicate?: ((index: number, item: T, array: T[]) => any) | object | string, thisArg?: any) => number; - findLastIndex: (array: any[], value: any, callback?: Function | object | string, thisArg?: any) => number; + findLastIndex: (array: T[], predicate?: ((index: number, item: T, array: T[]) => any) | object | string, thisArg?: any) => number; makeArray: (length: number, value?: T) => number[] | T[]; From 67cd40af6df45ea34a55b0ee907df807413b82b1 Mon Sep 17 00:00:00 2001 From: data Date: Thu, 17 Nov 2022 17:24:05 +0800 Subject: [PATCH 2/2] auto upgrade version to 2.0.20221117172352 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1866c70bd..841972678 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20221117125408", + "version": "2.0.20221117172352", "description": "fineui", "main": "dist/fineui_without_conflict.min.js", "types": "dist/lib/index.d.ts",