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