Our pure JavaScript Scheduler component


Post by dyd »

Hi,

Have you planned to release typings for Scheduler?
I'm working on an Angular project, some intellisense for Typescript would come in handy : )
Thanks!

Post by johan.isaksson »

Hello,

There is a very minor typings file in the angular demo, but it by no means cover it entirely. We accept feature requests and will try to fix those in high demand first. So anyone who wants typings, please leave a comment in this thread

Best regards,
Johan Isaksson
Best regards,
Johan Isaksson

Post by Robert Hirst »

My vote for more typings support :)

I'd imagine there could be some difficulty in getting an ideal solution for this though, since the available properties and methods vary according to activated features.

For the complex objects such as stores, I've found if I import the relevant objects in my main import:
import {
  Scheduler,
  AssignmentStore
} from 'scheduler';
I can then make typed getters and setters around important scheduler properties and interact with the getters/setters instead, which at least means I can get autocomplete and method signature validation in the places where it helps me the most.

e.g.
 get assignmentStore(): AssignmentStore {
    return this.scheduler.assignmentStore;
  }
  set assignmentStore(value: AssignmentStore) {
    this.scheduler.assignmentStore = value;
  }
I'm using Webstorm, but I'm not sure whether it will give auto-complete in other IDEs.
autocompletewebstorm.png
autocompletewebstorm.png (56.77 KiB) Viewed 1703 times

Post by robprice93 »

Typings for the Events (e.g. eventClick) would be very useful!

Post Reply