import { ClassNamesGenerator, FormatterInput } from '@fullcalendar/core' import { identity, Identity, CustomContentGenerator, DidMountHandler, WillUnmountHandler, createFormatter, DateFormatter, } from '@fullcalendar/core/internal' import { NoEventsContentArg, NoEventsMountArg, } from './public-types.js' export const OPTION_REFINERS = { listDayFormat: createFalsableFormatter, // defaults specified in list plugins listDaySideFormat: createFalsableFormatter, // " noEventsClassNames: identity as Identity>, noEventsContent: identity as Identity>, noEventsDidMount: identity as Identity>, noEventsWillUnmount: identity as Identity>, // noEventsText is defined in base options } function createFalsableFormatter(input: FormatterInput | false): DateFormatter { return input === false ? null : createFormatter(input) }