import { NgModule , Pipe , PipeTransform } from '@angular/core' ; import { DateFnsInputDate } from './types' ; import addISOWeekYears from 'date-fns/addISOWeekYears' ; @ Pipe ( { name : 'dfnsAddISOWeekYears' } ) export class AddISOWeekYearsPipe implements PipeTransform { transform ( date , amount ) { return addISOWeekYears ( date , amount ) ; } } @ NgModule ( { declarations : [ AddISOWeekYearsPipe ] , exports : [ AddISOWeekYearsPipe ] } ) export class AddISOWeekYearsPipeModule { }