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