Merge branch 'patch-1' of https://github.com/eftas-gka/DefinitelyTyped into eftas-gka-patch-1

This commit is contained in:
Andy Hanson
2018-01-24 11:00:45 -08:00
+7 -1
View File
@@ -8,6 +8,12 @@ import * as L from 'leaflet';
declare module 'leaflet' {
namespace Control {
class Locate extends Control {
onAdd(map: Map): HTMLElement;
start(): void;
stop(): void;
setView():void;
}
interface LocateOptions {
position?: string;
layer?: Layer;
@@ -40,6 +46,6 @@ declare module 'leaflet' {
/**
* Creates a Leaflet.Locate control
*/
function locate(options?: Control.LocateOptions): Control;
function locate(options?: Control.LocateOptions): Control.Locate;
}
}