扩展打字稿中的传单

时间:2018-07-23 09:22:27

标签: typescript leaflet typescript-typings

我将webpack@2.6typescript@2.0一起使用。 我安装了leafletleaflet-routing-machine 我这样导入它们。

import * as L from 'leaflet';
import {Map} from 'leaflet';
import "leaflet-routing-machine";

但是打字稿不知道Routing中的L.Routing.control({})

如何定义它?下面的代码不起作用。

interface L {
  Routing: any;
}

0 个答案:

没有答案