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