Skip to content

Can you fix InfoWindow types inside index.d.ts #452

@roman-telia

Description

@roman-telia

Hey,
I have a propblem of using this package with typescript.

I am enforced to pass map component to the InfoWindow, yet it is inside map itself can map prop be optional?

and can marker be undefined or marker type?

from lines 96 onvards:

export interface IInfoWindowProps extends Partial<google.maps.InfoWindowOptions> {
google: typeof google
map?: google.maps.Map // map as optional
marker: google.maps.Marker | undefined // google.maps.Marker | undefined

mapCenter?: google.maps.LatLng | google.maps.LatLngLiteral
visible?: boolean

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions