77 normalizeArray ,
88} from '@agile-ts/utils' ;
99import { logCodeManager } from '../logCodeManager' ;
10- import { Agile } from '../agile' ;
10+ import type { Agile } from '../agile' ;
1111import { PatchOptionConfigInterface } from '../state' ;
12- import { ComputedTracker } from '../computed' ;
12+ import { ComputedTracker } from '../computed/computed.tracker' ; // Not imported directly from '../computed' due circular dependencies
1313import { Item } from './item' ;
1414import { SelectorConfigInterface , Selector , SelectorKey } from './selector' ;
1515import {
@@ -1181,9 +1181,7 @@ export class Collection<DataType extends DefaultItem = DefaultItem> {
11811181 * @public
11821182 * @param itemKeys - Item/s with identifier/s to be removed.
11831183 */
1184- public remove (
1185- itemKeys : ItemKey | Array < ItemKey >
1186- ) : {
1184+ public remove ( itemKeys : ItemKey | Array < ItemKey > ) : {
11871185 fromGroups : ( groups : Array < ItemKey > | ItemKey ) => Collection < DataType > ;
11881186 everywhere : ( config ?: RemoveItemsConfigInterface ) => Collection < DataType > ;
11891187 } {
@@ -1518,13 +1516,12 @@ export interface CreateCollectionConfigImpl<
15181516 initialData ?: Array < DataType > ;
15191517}
15201518
1521- export type CreateCollectionConfig <
1522- DataType extends DefaultItem = DefaultItem
1523- > =
1524- | CreateCollectionConfigImpl < DataType >
1525- | ( (
1526- collection : Collection < DataType >
1527- ) => CreateCollectionConfigImpl < DataType > ) ;
1519+ export type CreateCollectionConfig < DataType extends DefaultItem = DefaultItem > =
1520+
1521+ | CreateCollectionConfigImpl < DataType >
1522+ | ( (
1523+ collection : Collection < DataType >
1524+ ) => CreateCollectionConfigImpl < DataType > ) ;
15281525
15291526export interface CollectionConfigInterface {
15301527 /**
@@ -1542,8 +1539,9 @@ export interface CollectionConfigInterface {
15421539 defaultGroupKey : ItemKey ;
15431540}
15441541
1545- export interface CollectConfigInterface < DataType = any >
1546- extends AssignDataConfigInterface {
1542+ export interface CollectConfigInterface <
1543+ DataType extends DefaultItem = DefaultItem
1544+ > extends AssignDataConfigInterface {
15471545 /**
15481546 * In which way the collected data should be added to the Collection.
15491547 * - 'push' = at the end
0 commit comments