import { SearchableSnapshotAction } from '../../../../../common/types' ; export const getDefaultRepository = ( configs ) : string => { if ( configs . length === 0 ) { return '' ; } if ( Boolean ( configs [ 0 ] ?. snapshot_repository ) ) { return configs [ 0 ] ! . snapshot_repository ; } return getDefaultRepository ( configs . slice ( 1 ) ) ; } ;