Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-leaflet

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-leaflet - npm Package Compare versions

Comparing version 2.8.1 to 2.8.2

102

react-leaflet/index.d.ts

@@ -127,4 +127,4 @@ // Type definitions for react-leaflet 2.8

export interface MapComponentProps {
leaflet?: LeafletContext;
pane?: string;
leaflet?: LeafletContext | undefined;
pane?: string | undefined;
}

@@ -145,16 +145,16 @@

export interface MapProps extends MapEvents, Leaflet.MapOptions, Leaflet.LocateOptions, Leaflet.FitBoundsOptions {
animate?: boolean;
duration?: number;
noMoveStart?: boolean;
bounds?: Leaflet.LatLngBoundsExpression;
boundsOptions?: Leaflet.FitBoundsOptions;
animate?: boolean | undefined;
duration?: number | undefined;
noMoveStart?: boolean | undefined;
bounds?: Leaflet.LatLngBoundsExpression | undefined;
boundsOptions?: Leaflet.FitBoundsOptions | undefined;
children: Children;
className?: string;
id?: string;
style?: React.CSSProperties;
useFlyTo?: boolean;
viewport?: Viewport;
whenReady?: () => void;
onViewportChange?: (viewport: Viewport) => void;
onViewportChanged?: (viewport: Viewport) => void;
className?: string | undefined;
id?: string | undefined;
style?: React.CSSProperties | undefined;
useFlyTo?: boolean | undefined;
viewport?: Viewport | undefined;
whenReady?: (() => void) | undefined;
onViewportChange?: ((viewport: Viewport) => void) | undefined;
onViewportChanged?: ((viewport: Viewport) => void) | undefined;
}

@@ -178,4 +178,4 @@

children: Children;
onClose?: () => void;
onOpen?: () => void;
onClose?: (() => void) | undefined;
onOpen?: (() => void) | undefined;
}

@@ -197,8 +197,8 @@

export interface PaneProps {
children?: Children;
className?: string;
leaflet?: LeafletContext;
name?: string;
style?: React.CSSProperties;
pane?: string;
children?: Children | undefined;
className?: string | undefined;
leaflet?: LeafletContext | undefined;
name?: string | undefined;
style?: React.CSSProperties | undefined;
pane?: string | undefined;
}

@@ -212,3 +212,3 @@ export interface PaneState {

removePane(): void;
setStyle(arg: { style?: string, className?: string }): void;
setStyle(arg: { style?: string | undefined, className?: string | undefined }): void;
getParentPane(): HTMLElement | null | undefined;

@@ -219,4 +219,4 @@ getPane(name: string | null | undefined): HTMLElement | null | undefined;

export interface MapLayerProps extends MapComponentProps {
attribution?: string;
children?: Children;
attribution?: string | undefined;
children?: Children | undefined;
}

@@ -234,6 +234,6 @@

export interface LeafletContext {
map?: Leaflet.Map;
pane?: string;
layerContainer?: LayerContainer;
popupContainer?: Leaflet.Layer;
map?: Leaflet.Map | undefined;
pane?: string | undefined;
layerContainer?: LayerContainer | undefined;
popupContainer?: Leaflet.Layer | undefined;
}

@@ -276,3 +276,3 @@

export interface WMSTileLayerProps extends TileLayerEvents, Leaflet.WMSOptions, GridLayerProps {
children?: Children;
children?: Children | undefined;
url: string;

@@ -287,5 +287,5 @@ }

export interface ImageOverlayProps extends MapLayerProps, Leaflet.ImageOverlayOptions {
bounds?: Leaflet.LatLngBoundsExpression;
bounds?: Leaflet.LatLngBoundsExpression | undefined;
url: string | HTMLImageElement;
zIndex?: number;
zIndex?: number | undefined;
}

@@ -298,5 +298,5 @@ export class ImageOverlay<P extends ImageOverlayProps = ImageOverlayProps, E extends Leaflet.ImageOverlay = Leaflet.ImageOverlay> extends MapLayer<P, E> {

export interface SVGOverlayProps extends Leaflet.ImageOverlayOptions, MapComponentProps {
children?: Children;
preserveAspectRatio?: string;
viewBox?: string;
children?: Children | undefined;
preserveAspectRatio?: string | undefined;
viewBox?: string | undefined;
}

@@ -309,8 +309,8 @@ export class SVGOverlay<P extends SVGOverlayProps = SVGOverlayProps, E extends Leaflet.SVGOverlay = Leaflet.SVGOverlay> extends MapComponent<P, E> {

export interface VideoOverlayProps extends Leaflet.VideoOverlayOptions, MapComponentProps {
attribution?: string;
attribution?: string | undefined;
bounds: Leaflet.LatLngBoundsExpression;
opacity?: number;
play?: boolean;
opacity?: number | undefined;
play?: boolean | undefined;
url: string | string[] | HTMLVideoElement;
zIndex?: number;
zIndex?: number | undefined;
}

@@ -367,3 +367,3 @@ export class VideoOverlay<P extends VideoOverlayProps = VideoOverlayProps, E extends Leaflet.VideoOverlay = Leaflet.VideoOverlay> extends MapLayer<P, E> {

data: GeoJSON.GeoJsonObject | GeoJSON.GeoJsonObject[];
markersInheritOptions?: boolean;
markersInheritOptions?: boolean | undefined;
}

@@ -400,3 +400,3 @@ export class GeoJSON<P extends GeoJSONProps = GeoJSONProps, E extends Leaflet.GeoJSON = Leaflet.GeoJSON> extends FeatureGroup<P, E> {

export interface PopupProps extends Leaflet.PopupOptions, DivOverlayProps {
position?: Leaflet.LatLngExpression;
position?: Leaflet.LatLngExpression | undefined;
}

@@ -419,3 +419,3 @@ export class Popup<P extends PopupProps = PopupProps, E extends Leaflet.Popup = Leaflet.Popup> extends DivOverlay<P, E> {

export type MapControlProps = {
leaflet?: LeafletContext
leaflet?: LeafletContext | undefined
} & Leaflet.ControlOptions;

@@ -436,3 +436,3 @@

children: Children;
collapsed?: boolean;
collapsed?: boolean | undefined;
}

@@ -456,10 +456,10 @@ export class LayersControl<P extends LayersControlProps = LayersControlProps, E extends Leaflet.Control.Layers = Leaflet.Control.Layers> extends MapControl<P, E> {

interface ControlledLayerProps {
addBaseLayer?: AddLayerHandler;
addOverlay?: AddLayerHandler;
checked?: boolean;
addBaseLayer?: AddLayerHandler | undefined;
addOverlay?: AddLayerHandler | undefined;
checked?: boolean | undefined;
children: Children;
leaflet?: LeafletContext;
leaflet?: LeafletContext | undefined;
name: string;
removeLayer?: RemoveLayerHandler;
removeLayerControl?: RemoveLayerHandler;
removeLayer?: RemoveLayerHandler | undefined;
removeLayerControl?: RemoveLayerHandler | undefined;
}

@@ -496,3 +496,3 @@ class ControlledLayer<P extends ControlledLayerProps = ControlledLayerProps> extends React.Component<P> {

export interface ContextProps {
leaflet?: LeafletContext;
leaflet?: LeafletContext | undefined;
}

@@ -499,0 +499,0 @@ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;

{
"name": "@types/react-leaflet",
"version": "2.8.1",
"version": "2.8.2",
"description": "TypeScript definitions for react-leaflet",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-leaflet",
"license": "MIT",

@@ -45,4 +46,4 @@ "contributors": [

},
"typesPublisherContentHash": "5b32f2edb3a89835867b2e9730e8e1d50385b343ad7c0e90c517d549d9293825",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "e407d0dbfd965b23403dda68af71aa2bd0f75b4f9f1cc1970ff9b584f96123c0",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 09 Mar 2021 01:53:27 GMT
* Last updated: Wed, 07 Jul 2021 17:33:47 GMT
* Dependencies: [@types/leaflet](https://npmjs.com/package/@types/leaflet), [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc