Skip to content

Commit 6fddef0

Browse files
committed
Pulling HasMarkerAnchor interface out into types file
1 parent b63dcb3 commit 6fddef0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-google-maps-api/src/components/drawing/Marker.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as React from 'react'
33
import { unregisterEvents, applyUpdatersToPropsAndRegisterEvents } from '../../utils/helper'
44

55
import MapContext from '../../map-context'
6+
import { HasMarkerAnchor } from '../../types'
67

78
import { Clusterer } from '@react-google-maps/marker-clusterer'
89
import { ReactNode } from 'react'
@@ -249,10 +250,6 @@ export class Marker extends React.PureComponent<MarkerProps, MarkerState> {
249250
}
250251

251252
render(): React.ReactNode {
252-
interface HasMarkerAnchor {
253-
anchor?: google.maps.Marker | null
254-
}
255-
256253
let children: ReactNode | null = null
257254
if(this.props.children) {
258255
children = React.Children.map(this.props.children, child => {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export interface HasMarkerAnchor {
2+
anchor?: google.maps.Marker | null
3+
}

0 commit comments

Comments
 (0)