alexbol99 / flatten-js

Javascript library for 2d geometry
MIT License
560 stars 58 forks source link

Fix typings #49

Closed saraedum closed 4 years ago

saraedum commented 4 years ago

Typescript otherwise complains in my setup:

515:21 Parameter 'MultilineEdgeShape' implicitly has an 'any' type.
    513 |     class MultilineEdge extends Edge {
    514 |         shape: MultilineEdgeShape;          // there may be only one line edge and only terminal ray edges
  > 515 |         constructor(MultilineEdgeShape);
        |                     ^
    516 |     }
    517 |
    518 |     class Multiline extends LinkedList {
541:14 'point', which lacks return-type annotation, implicitly has an 'any' return type.
    539 |
    540 |     function point(x?: number, y?: number): Point;
  > 541 |     function point(arr?: [number, number]);
        |              ^
    542 |     function circle(pc: Point, r: number) : Circle;
    543 |     function line(pt?: Point, norm?: Vector) : Line;
    544 |     function line(norm?: Vector, pt?: Point) : Line;
coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 82.433% when pulling 8fba7161381e1f629ed4bfff694ff7e7607b41d3 on saraedum:patch-1 into 7323efb9c8f931885e273aacaef15bfb532828da on alexbol99:master.