import { ArityOneFn , Compose , WrappingFn } from './internal/common-types' ; type ChainRight = ( wrappingFn : WrappingFn ) => Compose ; const chainRight = ( wrappingFn ) => ( ... fns ) => ( initialArg ) => fns . reduceRight ( ( arg , fn , index ) => wrappingFn ( fn , arg , index === fns . length - 1 ) , initialArg ) ; export { chainRight } ; export default chainRight ;