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