import { SchemaConflictFieldTypes , SchemaConflicts } from '../../../../../shared/schema/types' ; import { EngineDetails } from '../../../engine/types' ; export const getConflictingEnginesFromConflictingField = ( conflictingField ) => Object . values ( conflictingField ) . flat ( ) as string [ ] ; export const getConflictingEnginesFromSchemaConflicts = ( schemaConflicts ) : string [ ] => Object . values ( schemaConflicts ) . flatMap ( getConflictingEnginesFromConflictingField ) ; export const getConflictingEnginesSet = ( metaEngine ) : Set < string > => { const conflictingEngines = metaEngine . schemaConflicts ? getConflictingEnginesFromSchemaConflicts ( metaEngine . schemaConflicts ) : [ ] ; return new Set ( conflictingEngines ) ; } ;