Skip to content

getRectanglePoints needs better type return #176

@tpoisseau

Description

@tpoisseau

export function getRectanglePoints(box: CommittedBox): Point[] {

For non breaking change I suggest to return a tuple [topLeft: Point, topRight: Point, bottomRight: Point, bottomLeft: Point].

If breaking change OK, return an object.

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