import { NgModule , Pipe , PipeTransform } from '@angular/core' ; import { DateFnsInputDate } from './types' ; import getISOWeekYear from 'date-fns/getISOWeekYear' ; @ Pipe ( { name : 'dfnsGetISOWeekYear' } ) export class GetISOWeekYearPipe implements PipeTransform { transform ( date ) { return getISOWeekYear ( date ) ; } } @ NgModule ( { declarations : [ GetISOWeekYearPipe ] , exports : [ GetISOWeekYearPipe ] } ) export class GetISOWeekYearPipeModule { }