import { ChangeType } from '../types/ChangeInfo' ; export function isValidDependentChangeType ( dependentChangeType , disallowedChangeTypes ) { const disallowedDependentChangeTypes = ( disallowedChangeTypes || [ ] ) . filter ( t => t !== 'patch' ) ; return ( [ 'patch' , 'major' , 'minor' , 'prerelease' , 'none' ] . includes ( dependentChangeType ) && ! disallowedDependentChangeTypes . includes ( dependentChangeType ) ) ; }