Hi!
I’m using Angular v14.1.0 and Mobiscroll v5.17.2.
This issue is similar to the below one:
Issue with exporting interface MbscRecurrenceRule
The above issue was solved in version v5.17.2.
The problem I have now, are with the interfaces MbscCalendarColor and MbscCalendarEventData:
import { MbscCalendarColor } from '@mobiscroll/angular/dist/js/core/shared/calendar-view/calendar-view.types';
import { MbscCalendarEventData } from '@mobiscroll/angular/dist/js/core/shared/calendar-view/calendar-view.types';
Both interfaces are part of the public API of the Event Calendar component but they’re not correctly exported.
To make use of them one has to write the entire path where the TypeScript declaration file is located.
See the following imports:
import { MbscCalendarEventData } from '@mobiscroll/angular/dist/js/core/shared/calendar-view/calendar-view.types';
import {
MbscCalendarEvent,
MbscCellClickEvent,
MbscEventcalendarOptions,
MbscEventClickEvent,
MbscRecurrenceRule,
} from '@mobiscroll/angular';
You can see how it’s preferred to have one entry point from where to import all the interfaces that are part of the public API instead of having to import each interface individually.
Also note, that having to write the entire path where the interface is located could break the application in future releases.
If, in a future release, Mobiscroll changes the location of these interfaces (an implementation detail), any application that depends on them would break.