import { NgModule , Pipe , PipeTransform } from '@angular/core' ; import { DateFnsInputDate } from './types' ; import addMinutes from 'date-fns/addMinutes' ; @ Pipe ( { name : 'dfnsAddMinutes' } ) export class AddMinutesPipe implements PipeTransform { transform ( date , amount ) { return addMinutes ( date , amount ) ; } } @ NgModule ( { declarations : [ AddMinutesPipe ] , exports : [ AddMinutesPipe ] } ) export class AddMinutesPipeModule { }