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