module import inject from './inject' ; import type { Effect } from './types/effect' ; /**
 * Rethrows a received error
 * performing an optional side effect.
 */ export default function rethrow < Error > ( effect ) { return inject ( ( error ) => { throw error ; } , effect ) ; }