Skip to content

toPolyLines wrong type, is currently information.Polyline[] but toPolyLines returns { bbox, polylines } #133

@AndreLeBlanc

Description

@AndreLeBlanc

When using the library to write a typescript program to estimate lengths of entities, I came across the following:

  return { bbox, polylines }

in the toPolyLines function

Yet in the types file we see:

  toPolylines(): Information.Polyline[];

Proposed solution:

 {bbox: bbox, polylines: Information.Polyline[]};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions