@@ -13,7 +13,7 @@ import { type FilterQueryDataloader } from "./EntityDataLoader";
1313import { type PartialBy } from "./types" ;
1414
1515export function groupPrimaryKeysByEntity < T extends AnyEntity < T > > (
16- refs : ReadonlyArray < Reference < T > > ,
16+ refs : Array < Reference < T > > ,
1717) : Map < string , Set < Primary < T > > > {
1818 const map = new Map < string , Set < Primary < T > > > ( ) ;
1919 for ( const ref of refs ) {
@@ -29,7 +29,7 @@ export function groupPrimaryKeysByEntity<T extends AnyEntity<T>>(
2929}
3030
3131export function groupInversedOrMappedKeysByEntity < T extends AnyEntity < T > > (
32- collections : ReadonlyArray < Collection < T , AnyEntity > > ,
32+ collections : Array < Collection < T , AnyEntity > > ,
3333) : Map < string , Map < string , Set < Primary < T > > > > {
3434 const entitiesMap = new Map < string , Map < string , Set < Primary < T > > > > ( ) ;
3535 for ( const col of collections ) {
@@ -219,7 +219,7 @@ export interface DataloaderFind<K extends object, Hint extends string = never, F
219219}
220220
221221export function groupFindQueries (
222- dataloaderFinds : ReadonlyArray < PartialBy < DataloaderFind < any , any > , "filtersAndKeys" > > ,
222+ dataloaderFinds : Array < PartialBy < DataloaderFind < any , any > , "filtersAndKeys" > > ,
223223) : Map < string , [ FilterQueryDataloader < any > , { populate ?: true | Set < any > } ?] > {
224224 const queriesMap = new Map < string , [ FilterQueryDataloader < any > , { populate ?: true | Set < any > } ?] > ( ) ;
225225 for ( const dataloaderFind of dataloaderFinds ) {
@@ -242,8 +242,8 @@ export function groupFindQueries(
242242}
243243
244244export function assertHasNewFilterAndMapKey (
245- dataloaderFinds : ReadonlyArray < PartialBy < DataloaderFind < any , any > , "filtersAndKeys" > > ,
246- ) : asserts dataloaderFinds is ReadonlyArray < DataloaderFind < any , any > > {
245+ dataloaderFinds : Array < PartialBy < DataloaderFind < any , any > , "filtersAndKeys" > > ,
246+ ) : asserts dataloaderFinds is Array < DataloaderFind < any , any > > {
247247 /* if (dataloaderFinds.some((el) => el.key == null || el.newFilter == null)) {
248248 throw new Error("Missing key or newFilter");
249249 } */
0 commit comments