【发布时间】:2017-02-10 14:53:16
【问题描述】:
我正在使用带有最新 ionic@RC.0 构建过程的 typescript 2.0。
我安装了这样的谷歌地图类型:
npm install @types/google-maps --save-dev --save-exact
我正在尝试像这样将一些类型定义导入我的代码中
/// <reference types="google-maps" />
import { LatLng, LatLngBounds } from 'google-maps';
但我收到此打字稿错误:
./node_modules/@types/google-maps/index.d.ts has no exported member 'LatLng'
如果我查看源代码,我实际上在
中找到了定义./node_modules/@types/google-maps/node_modules/@types/googlemaps/index.d.ts
【问题讨论】:
标签: typescript