search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

typescript can't find Property 'makeDraggable'

Asked by Thomas de Brouwer
7 years ago.

I am trying to implement the external drag and drop on the scheduler in Angular2. I followed the tutorial (https://doc.daypilot.org/scheduler/external-drag-and-drop/).
I got it working by making a function in my component which makes the items external draggable.
Typescript fails to compile and gives me the following warning: TS2339: Property 'makeDraggable' does not exist on type 'typeof Scheduler'.
However, the code is working as it is supposed to and the items are external draggable.

How can i get rid of this error so typescript can compile my project again?

Answer posted by Dan Letecky [DayPilot]
7 years ago.

DayPilot.Scheduler.makeDraggable() is now included in the TypeScript definitions (since https://javascript.daypilot.org/daypilot-pro-for-javascript-8-3-sp12/).

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.