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