Browse Source

Merge pull request #207368 in DEC/fineui from master to feature/x

* commit '67cd40af6df45ea34a55b0ee907df807413b82b1':
  auto upgrade version to 2.0.20221117172352
  无JIRA refactor(base): 给findIndex加泛型
master
superman 2 years ago
parent
commit
1da6e0e2d9
  1. 2
      package.json
  2. 4
      typescript/core/base.ts

2
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",

4
typescript/core/base.ts

@ -148,9 +148,9 @@ export interface _base {
takeRight: <T>(array: T[], n: number) => T[];
findIndex: (array: any[], value: any, callback?: Function | object | string, thisArg?: any) => number;
findIndex: <T>(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: <T>(array: T[], predicate?: ((index: number, item: T, array: T[]) => any) | object | string, thisArg?: any) => number;
makeArray: <T>(length: number, value?: T) => number[] | T[];

Loading…
Cancel
Save