es-toolkit 1.49.0-dev.1909 → 1.49.0-dev.1911

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
- import { PartialShallow } from "./PartialShallow.mjs";
1
+ import { ListIterator } from "./ListIterator.mjs";
2
+ import { IterateeShorthand } from "./IterateeShorthand.mjs";
2
3
 
3
4
  //#region src/compat/_internal/ListIterateeCustom.d.ts
4
- type ListIterateeCustom<T, R> = ((value: T, index: number, collection: ArrayLike<T>) => R) | (PropertyKey | [PropertyKey, any] | PartialShallow<T>);
5
+ type ListIterateeCustom<T, R> = ListIterator<T, R> | IterateeShorthand<T>;
5
6
  //#endregion
6
7
  export { ListIterateeCustom };
@@ -1,6 +1,7 @@
1
- import { PartialShallow } from "./PartialShallow.js";
1
+ import { ListIterator } from "./ListIterator.js";
2
+ import { IterateeShorthand } from "./IterateeShorthand.js";
2
3
 
3
4
  //#region src/compat/_internal/ListIterateeCustom.d.ts
4
- type ListIterateeCustom<T, R> = ((value: T, index: number, collection: ArrayLike<T>) => R) | (PropertyKey | [PropertyKey, any] | PartialShallow<T>);
5
+ type ListIterateeCustom<T, R> = ListIterator<T, R> | IterateeShorthand<T>;
5
6
  //#endregion
6
7
  export { ListIterateeCustom };
@@ -40,7 +40,7 @@ declare function findLast<T, S extends T>(collection: ArrayLike<T> | null | unde
40
40
  * // => { user: 'pebbles', age: 18 }
41
41
  *
42
42
  * findLast(users, 'age');
43
- * // => { user: 'fred', age: 40 }
43
+ * // => { user: 'pebbles', age: 18 }
44
44
  */
45
45
  declare function findLast<T>(collection: ArrayLike<T> | null | undefined, predicate?: ListIterateeCustom<T, boolean>, fromIndex?: number): T | undefined;
46
46
  /**
@@ -40,7 +40,7 @@ declare function findLast<T, S extends T>(collection: ArrayLike<T> | null | unde
40
40
  * // => { user: 'pebbles', age: 18 }
41
41
  *
42
42
  * findLast(users, 'age');
43
- * // => { user: 'fred', age: 40 }
43
+ * // => { user: 'pebbles', age: 18 }
44
44
  */
45
45
  declare function findLast<T>(collection: ArrayLike<T> | null | undefined, predicate?: ListIterateeCustom<T, boolean>, fromIndex?: number): T | undefined;
46
46
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
- "version": "1.49.0-dev.1909+44bc2422",
3
+ "version": "1.49.0-dev.1911+1f744510",
4
4
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
5
5
  "homepage": "https://es-toolkit.dev",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",