如何将wampy正确导入TypeScript项目?
随安装的 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'.