Recently, I stumbled upon a JavaScript library that seems to be an ideal fit for my project. The library can be found at:
After installing the necessary libraries using npm - npm i raphael graphdracula - new folders were created in node_modules and the package.json file was updated as expected.
Now, when attempting to create a graph
var g = new Dracula.Graph();
an error is thrown by the compiler
Error: Cannot find name 'Dracula'
the main question now becomes: how do I properly import this library so TypeScript/Angular recognizes it? Unfortunately, my IDE does not offer much assistance in resolving this issue. Although I understand I need to import it in my module, I am unsure of what exactly needs to be imported.
import { ?? } from '??';