import { TemplateRef } from '@angular/core'; import { CalendarOptions } from 'fullcalendar'; export type CalendarOption = OptionName extends keyof CalendarOptions ? CalendarOptions[OptionName] : never; export type CalendarTemplateRef = TemplateRef<{ $implicit: CalendarArgLookup; }>; type CalendarArgLookup = OptionName extends keyof CalendarOptions ? FirstParam : never; type FirstParam = Func extends ((...args: any) => any) ? Parameters[0] : never; export {};