mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Write tests for the generic properties
This commit is contained in:
@@ -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<MyProperties>).feature.properties.testProperty = "test";
|
||||
|
||||
(L.marker([1, 2], {
|
||||
icon: L.icon({
|
||||
iconUrl: 'my-icon.png'
|
||||
})
|
||||
}) as L.Marker<MyProperties>).feature.properties.testProperty = "test";
|
||||
Reference in New Issue
Block a user