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