maybe I am phrasing this wrong. So I'll go with an example:
using the phaser.js game library:
three files: Index.html with two <script src> to phaser.js and game.js
I followed a tutorial and it all works fine.
But I do not get intellisense and when I try to peek definitions:
Then i did an npm install of phaser to this project and now intellisense and definition links work.
My question is, what has happened to make that work? And could I do this myself as well, without using npm?
Why would the version without npm install not find the definitions but the code still works?
(any links on how the get a grasp of all of this are also very appreciated, when I googled it, I got on some examples on typescript and the "what happens when npm gets installed"-guides were no help either. And "definitions" is a hard term to google in general)