Skip to content

Commit

Permalink
Add flowtype definitions for ui/map
Browse files Browse the repository at this point in the history
  • Loading branch information
vicapow authored and jfirebaugh committed Jun 28, 2017
1 parent 0a3a152 commit 406a7e4
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 67 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Expand Up @@ -11,6 +11,7 @@
"array-bracket-spacing": "off",
"block-scoped-var": "error",
"consistent-return": "off",
"flowtype/define-flow-type": 1,
"global-require": "off",
"key-spacing": "off",
"no-eq-null": "off",
Expand Down
5 changes: 4 additions & 1 deletion flow-interfaces/point-geometry.js
@@ -1,3 +1,5 @@
declare type PointLike = Point | [number, number];

declare module "point-geometry" {
declare class Point {
x: number;
Expand Down Expand Up @@ -36,6 +38,7 @@ declare module "point-geometry" {
_rotate(angle: number): Point;
_rotateAround(angle: number, point: Point): Point;
_round(): Point;
static convert(a: PointLike): Point;
}
declare var exports: typeof Point;
declare module.exports: typeof Point;
}

0 comments on commit 406a7e4

Please sign in to comment.