如何正确导入wampy到TypeScript项目?

时间:2016-08-07 19:17:16

标签: typescript websocket wamp

如何将wampy正确导入TypeScript项目?

安装的

Wampy.js

typings install dt~wampy --global --save && npm install wampy --save

尝试导入Wampy:

import {Wampy} from "wampy";

npm start产生此错误:

error TS2305: Module '"wampy"' has no exported member 'Wampy'.

接下来我尝试导入,因为我看到here

import * as Wampy from "wampy";

获得

error TS2304: Cannot find name 'Wampy'.

0 个答案:

没有答案