Merge pull request #31120 from daraclare/ts-error-fix-onViewStateChange-optional

types/react-map-gl: Change onViewStateChange to an optional property
This commit is contained in:
Nathan Shively-Sanders
2018-12-18 13:42:16 -08:00
committed by GitHub
+2 -2
View File
@@ -300,8 +300,8 @@ export class Popup extends BaseControl<PopupProps> {}
export interface NavigationControlProps extends BaseControlProps {
className?: string;
onViewStateChange: (info: ViewStateChangeInfo) => void;
onViewportChange: (viewport: ViewState) => void;
onViewStateChange?: (info: ViewStateChangeInfo) => void;
onViewportChange?: (viewport: ViewState) => void;
showCompass?: boolean;
showZoom?: boolean;
}