Skip to content

Flow comments plugin creates incorrect code #6142

Description

@diligiant

(I opened an issue on the affected repository react-leaflet#363)

Flow-comments output incorrect code when transforming consecutive flow "statements". As shown in the issue linked above,

import { GeoJSON as LeafletGeoJSON, type LatLng, type Layer } from 'leaflet';

"renders" as

import { GeoJSON as LeafletGeoJSON, /*:: type LatLng*/, /*:: type Layer*/ } from 'leaflet';

You'll notice the 2 hanging commas.

Reproducible on the repository @1.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: commentsarea: flowoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions