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