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