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