mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Define type Children equivalent to that defined react-leaflet/src/propTypes/children.js.
This commit is contained in:
Vendored
+2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user