import { identity , Identity , ClassNamesGenerator , CustomContentGenerator , DidMountHandler , WillUnmountHandler , createFormatter , FormatterInput , } from '@fullcalendar/common' ; import { NoEventsContentArg , NoEventsMountArg , } from './api-type-deps' ; export const OPTION_REFINERS = { listDayFormat : createFalsableFormatter , listDaySideFormat : createFalsableFormatter , noEventsClassNames : identity as Identity < ClassNamesGenerator < NoEventsContentArg > > , noEventsContent : identity as Identity < CustomContentGenerator < NoEventsContentArg > > , noEventsDidMount : identity as Identity < DidMountHandler < NoEventsMountArg > > , noEventsWillUnmount : identity as Identity < WillUnmountHandler < NoEventsMountArg > > , } ; function createFalsableFormatter ( input ) { return input === false ? null : createFormatter ( input ) ; }