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