import { SecondaryIndexLayout } from '../base/layout' ; import { ConfigurationException } from '../base/exceptions' ; internal export function validateFindKeys ( findKeys ) { const alreadyDefinedIndexes = [ ] ; findKeys . forEach ( ( findKey , index ) => { if ( alreadyDefinedIndexes . includes ( findKey . indexName ) ) { throw new ConfigurationException ( `find key at index ${ index } has duplicate index reference ${ findKey . indexName }` ) ; } alreadyDefinedIndexes . push ( findKey . indexName ) ; } ) ; }