Keyword For Declaring Your Code. The declare keyword sets an execution directive for a block of code. Any, it will not compile, instead saying that 'module' already exists.
The extern keyword declares that a variable or a function has external linkage outside of the file it is declared. The declare keyword is used for ambient declarations where you want to define a variable that may not have originated from a typescript file. If you remove the keyword declare, and just write let module: Placing an item within quote marks instructs javascript to store the value as a literal string rather than a value type.
The var keyword is almost the same as let.
Type the code from yandex.key in the confirmation code field and click confirm. The type of each keyword. Naming them inconsistently would do more harm than good. The problem here is that you won't have intellisense for that variable in design time but you will be able to use the library in your code.