So I was trying to implement a custom Store, but it seems like the Scheduler wants an instance of type ResourceStore for the 'resourceStore' and EventStore for the 'eventStore' according to the typescript definition and documentation. These both extend of AjaxStore.
I tried using a custom implementation of Store, but it seems like the 'eventStore' is then converted to a EventStore/AjaxStore anyway?
When I log the eventStore to the console after the scheduler is initialized, it has the 'autoLoad' property (which is part of AjaxStore)
Below the code I'm roughly using.
class MyStore extends Store {
...
}
interface MyCustomConfig {
...
resourceStore: MyStore;
eventStore: MyStore;
}
class MyScheduler extends Scheduler {
construct(customConfig: MyCustomConfig) {
super.construct({
...
resourceStore: customConfig.resourceStore,
eventStore: customConfig.eventStore
})
}
}
var resourceStore = new MyStore({...});
var eventStore = new MyStore({...});
var scheduler = new MyScheduler({
...
resourceStore: resourceStore,
eventStore: eventStore
});