From 90e897e9def76780f90a02be2c96bb064e092360 Mon Sep 17 00:00:00 2001 From: Antoliny0919 Date: Mon, 29 Jun 2026 01:08:48 +0900 Subject: [PATCH] refactor(compat/_internal): simplify ListIterateeCustom using ListIterator and IterateeShorthand --- src/compat/_internal/ListIterateeCustom.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/compat/_internal/ListIterateeCustom.ts b/src/compat/_internal/ListIterateeCustom.ts index aae4171fcd..2fa5b67235 100644 --- a/src/compat/_internal/ListIterateeCustom.ts +++ b/src/compat/_internal/ListIterateeCustom.ts @@ -1,5 +1,4 @@ -import { PartialShallow } from './PartialShallow.ts'; +import { IterateeShorthand } from './IterateeShorthand'; +import { ListIterator } from './ListIterator.ts'; -export type ListIterateeCustom = - | ((value: T, index: number, collection: ArrayLike) => R) - | (PropertyKey | [PropertyKey, any] | PartialShallow); +export type ListIterateeCustom = ListIterator | IterateeShorthand;