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