import { NgModule , Pipe , PipeTransform } from '@angular/core' ; import startOfTomorrow from 'date-fns/startOfTomorrow' ; @ Pipe ( { name : 'dfnsStartOfTomorrow' } ) export class StartOfTomorrowPipe implements PipeTransform { transform ( ) { return startOfTomorrow ( ) ; } } @ NgModule ( { declarations : [ StartOfTomorrowPipe ] , exports : [ StartOfTomorrowPipe ] } ) export class StartOfTomorrowPipeModule { }