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