In my current React/TypeScript project, I am utilizing Azure Media Player. According to the documentation on Referencing the Player, it suggests referencing the player in this manner:
var myPlayer = amp('vid1');
However, when attempting this approach, a compiler error is generated:
TypeScript error in C:/<file path>/<file name>.tsx(47,17):
Cannot find namespace 'amp'. TS2503
It is evident that this issue pertains to TypeScript versus JavaScript as documented.
Subsequently, I experimented with TypeScript:
let player: amp.Player = amp("player");
Yet, the same compiler error persists.
What methodology should I adopt to reference the AMP player within my React/TypeScript project effectively?