diff --git a/leaflet.heat/leaflet.heat.d.ts b/leaflet.heat/index.d.ts
similarity index 100%
rename from leaflet.heat/leaflet.heat.d.ts
rename to leaflet.heat/index.d.ts
diff --git a/leaflet.heat/leaflet.heat-tests.ts b/leaflet.heat/leaflet.heat-tests.ts
index 2d5f86edfe..7007bf0227 100644
--- a/leaflet.heat/leaflet.heat-tests.ts
+++ b/leaflet.heat/leaflet.heat-tests.ts
@@ -1,7 +1,6 @@
///
-///
-
-var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
+///
+const osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '© OpenStreetMap contributors',
osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}),
map = new L.Map('map', {
@@ -11,7 +10,7 @@ var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
});
// Each point in the input array can be either an array like [50.5, 30.5, 0.5], or a Leaflet LatLng object.
-var heat: L.HeatLayer = L.heatLayer([
+const heat: L.HeatLayer = L.heatLayer([
[50.5, 30.5, 0.2], // lat, lng, intensity
[50.6, 30.4, 0.5],
new L.LatLng(50.7, 30.3),
@@ -28,7 +27,7 @@ heat.setOptions({
});
// Add new point to heat layer
-var newLatLng = new L.LatLng(50.8, 30.2);
+const newLatLng = new L.LatLng(50.8, 30.2);
heat.addLatLng(newLatLng);
// Set new latLng list to the heat layer
diff --git a/leaflet.heat/tsconfig.json b/leaflet.heat/tsconfig.json
new file mode 100644
index 0000000000..482c984b8c
--- /dev/null
+++ b/leaflet.heat/tsconfig.json
@@ -0,0 +1,24 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "lib": [
+ "es6",
+ "dom"
+ ],
+ "noImplicitAny": true,
+ "noImplicitThis": true,
+ "strictNullChecks": true,
+ "strictFunctionTypes": true,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "leaflet.heat-tests.ts"
+ ]
+}
diff --git a/leaflet.heat/tslint.json b/leaflet.heat/tslint.json
new file mode 100644
index 0000000000..3db14f85ea
--- /dev/null
+++ b/leaflet.heat/tslint.json
@@ -0,0 +1 @@
+{ "extends": "dtslint/dt.json" }