Define type Children equivalent to that defined react-leaflet/src/propTypes/children.js.

This commit is contained in:
David Schneider
2017-04-13 15:42:03 -07:00
parent c9e8642144
commit f4d7df929d
+2
View File
@@ -10,6 +10,8 @@ import * as React from 'react';
// All events need to be lowercase so they don't collide with React.DOMAttributes<T>
// which already declares things with some of the same names
type Children = React.ReactNode | React.ReactNode[];
interface LeafletLayerEvents {
onbaselayerchange?(event: Leaflet.LayersControlEvent): void;
onoverlayadd?(event: Leaflet.LayersControlEvent): void;