Possibly save 1 hour of your time: Here are some reminders when using Typescript.
- Resource Link – Create variable using let rather than var:
npm install mapbox-gl
npm install –save @types/mapbox-gl
If you cannot find it in npm package manager, you can try Typed definition in github.