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