var map = L.map('map', {
    center: [51.505, -0.09],
    zoom: 13
});

// Defaults
L.control.locate().addTo(map);

// Simple
var lc = L.control.locate({
    position: 'topright',
    strings: {
        title: "Show me where I am, yo!"
    }
}).addTo(map);

// Locate Options
map.addControl(L.control.locate({
    locateOptions: {
        maxZoom: 10,
        enableHighAccuracy: true
}}));
var map: L.Map;

// Defaults
L.control.locate().addTo(map);

// Simple
var lc = L.control.locate({
    position: 'topright',
    strings: {
        title: "Show me where I am, yo!"
    }
}).addTo(map);

// Locate Options
map.addControl(L.control.locate({
    locateOptions: {
        maxZoom: 10,
        enableHighAccuracy: true
}}));
--- 
+++ 
@@ -1,4 +1,7 @@
-var map: L.Map;
+var map = L.map('map', {
+    center: [51.505, -0.09],
+    zoom: 13
+});
 
 // Defaults
 L.control.locate().addTo(map);
Update tests because of linting
