I would like to use JSOM for things like creating Caml queries as I have to migrate AngularJS to Angular 4. The app is running in a WebPart.
Unfortunately there is no npm package for this. How can I use JSOM from my typescript? How do I write the import?
Always get the message:
Cannot find name 'SP'
After some more research, I found out, that it is possible to add external JS libraries to my Angular 4 App via the WebPack externals.
How can I import those files as external libraries to my app and which files do I need to get a working JSOM?