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