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