import { ArrayInferExtract } from 'ngx-tethys/util' ; export type ReferencesIdDictionary < TReferences > = { [ key in keyof TReferences ] ? : { [ key ] : ArrayInferExtract < TReferences [ key ] > ; } ; } ; export type OnCombineRefsFn < TEntity , TReferences > = ( entity : TEntity , referencesIdMap : ReferencesIdDictionary < TReferences > , references ? : TReferences ) => void ; export interface OnCombineRefs < TEntity , TReferences > { onCombineRefs ( entity , referencesIdMap , references ? ) : void ; }