怎么做 - 我尝试过组合
typings install [googlemaps | google.maps] [--ambient] --save
Run Code Online (Sandbox Code Playgroud)
并最终得到此错误的变化
打字ERR!消息无法在注册表中找到"npm"的"googlemaps".
根据Amy的建议,我也下载到相关目录并添加
/// <reference path="main/ambient/google.maps/google.maps.d.ts" />
Run Code Online (Sandbox Code Playgroud)
到我的main.d.ts(一个明显被阅读的文件,因为我没有得到其他错误).
我在网上找不到任何回答这个问题的内容
我的最终目标是摆脱这种错误
错误TS2503:找不到命名空间'google'.
typescript ×1