Lint additional react packages (#15527)

This commit is contained in:
Andy
2017-03-30 14:25:38 -07:00
committed by GitHub
parent 389adfc542
commit 68e0aea47a
21 changed files with 139 additions and 149 deletions

View File

@@ -3,4 +3,4 @@ import * as React from 'react';
const center = { lat: 0, lng: 0 };
<GoogleMapReact center={center} zoom={3}/>
<GoogleMapReact center={center} zoom={3}/>;

View File

@@ -15,7 +15,7 @@ export interface Options {
styles?: any[];
scrollwheel?: boolean;
panControl?: boolean;
mapTypeControl?: boolean,
mapTypeControl?: boolean;
minZoomOverride?: boolean;
minZoom?: number;
gestureHandling?: string;
@@ -59,18 +59,18 @@ export interface Props {
margin?: any[];
debounced?: boolean;
layerTypes?: string[];
onClick?: ({x, y, lat, lng, event}: { x: number, y: number, lat: number, lng: number, event: any }) => any;
onChange?: ({ center, zoom, bounds, marginBounds }: { center: [number, number], zoom: number, bounds: [number, number, number, number], marginBounds: [number, number, number, number] }) => any;
onClick?({x, y, lat, lng, event}: { x: number, y: number, lat: number, lng: number, event: any }): any;
onChange?({ center, zoom, bounds, marginBounds }: { center: [number, number], zoom: number, bounds: [number, number, number, number], marginBounds: [number, number, number, number] }): any;
resetBoundsOnResize?: boolean;
onChildClick?: (hoverKey: any, childProps: any) => void;
onChildMouseEnter?: (hoverKey: any, childProps: any) => void;
onChildMouseLeave?: (hoverKey: any, childProps: any) => void;
onZoomAnimationStart?: (args: any) => void;
onZoomAnimationEnd?: (args: any) => void;
onMapTypeIdChange?: (args: any) => void;
distanceToMouse?: (pt: {x: number, y: number}, mousePos: {x: number, y: number}) => void;
googleMapLoader?: (bootstrapURLKeys: any) => void;
onGoogleApiLoaded?: ({map, maps}: { map: any, maps: any }) => void;
onChildClick?(hoverKey: any, childProps: any): void;
onChildMouseEnter?(hoverKey: any, childProps: any): void;
onChildMouseLeave?(hoverKey: any, childProps: any): void;
onZoomAnimationStart?(args: any): void;
onZoomAnimationEnd?(args: any): void;
onMapTypeIdChange?(args: any): void;
distanceToMouse?(pt: {x: number, y: number}, mousePos: {x: number, y: number}): void;
googleMapLoader?(bootstrapURLKeys: any): void;
onGoogleApiLoaded?({map, maps}: { map: any, maps: any }): void;
yesIWantToUseGoogleMapApiInternals?: boolean;
}