From a8df641bc3cae0415225be4b47029eb13f0ef04e Mon Sep 17 00:00:00 2001 From: Arne Schubert Date: Thu, 2 Nov 2017 13:34:16 +0100 Subject: [PATCH] Write tests for the generic properties --- types/leaflet/leaflet-tests.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/types/leaflet/leaflet-tests.ts b/types/leaflet/leaflet-tests.ts index b85c8bf4d7..c647491b85 100644 --- a/types/leaflet/leaflet-tests.ts +++ b/types/leaflet/leaflet-tests.ts @@ -484,3 +484,15 @@ L.Util.requestAnimFrame(() => {}, {}); L.Util.requestAnimFrame(() => {}, {}, true); L.Util.cancelAnimFrame(1); L.Util.emptyImageUrl; + +interface MyProperties { + testProperty: string; +} + +(L.polygon(latLngs) as L.Polygon).feature.properties.testProperty = "test"; + +(L.marker([1, 2], { + icon: L.icon({ + iconUrl: 'my-icon.png' + }) +}) as L.Marker).feature.properties.testProperty = "test"; \ No newline at end of file