import { NgModule , Pipe , PipeTransform } from '@angular/core' ; import { DateFnsInputDate } from './types' ; import getOverlappingDaysInIntervals from 'date-fns/getOverlappingDaysInIntervals' ; @ Pipe ( { name : 'dfnsGetOverlappingDaysInIntervals' } ) export class GetOverlappingDaysInIntervalsPipe implements PipeTransform { transform ( intervalLeft , intervalRight ) { return getOverlappingDaysInIntervals ( intervalLeft , intervalRight ) ; } } @ NgModule ( { declarations : [ GetOverlappingDaysInIntervalsPipe ] , exports : [ GetOverlappingDaysInIntervalsPipe ] } ) export class GetOverlappingDaysInIntervalsPipeModule { }