Skip to content

Wrong types on LPolyline props #360

Open
@ShortDevelopment

Description

@ShortDevelopment

Context

According to the leaflet documentation, it's possible to create a multi-polyline by passing a multidimensional LatLng[][] array to the constructor.

Issue

It works, but the types do not reflect that:

type: Array as PropType<L.LatLngExpression[]>,

Proposal

- type: Array as PropType<L.LatLngExpression[]>
+ type: Array as PropType<L.LatLngExpression[] | L.LatLngExpression[][]>

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