I'm trying to install
npm i dhtmlx-scheduler
typings install dt~dhtmlxscheduler --global --save
error TS2307: Cannot find module 'dhtmlxscheduler'.
[02:00:15] gulp-notify: [Error running Gulp] Error: src/components/appointments/appointments.ts(2,20): error TS2307: Cannot find module 'dhtmlxscheduler'.
import * as scheduler from 'dhtmlxscheduler';
I looked into dhtmlxscheduler.js and it doesn't export any member properties. Doing
import * as scheduler from 'dhtmlxscheduler'; should give you an error.
Instead, import the entire module:
import 'dhtmlx-scheduler'; // Taking into account the comment that I left above
Then you can call the
scheduler function directly in your class.