import { NgModule , Pipe , PipeTransform } from '@angular/core' ; import { DateFnsInputDate } from './types' ; import isSameQuarter from 'date-fns/isSameQuarter' ; @ Pipe ( { name : 'dfnsIsSameQuarter' } ) export class IsSameQuarterPipe implements PipeTransform { transform ( dateLeft , dateRight ) { return isSameQuarter ( dateLeft , dateRight ) ; } } @ NgModule ( { declarations : [ IsSameQuarterPipe ] , exports : [ IsSameQuarterPipe ] } ) export class IsSameQuarterPipeModule { }