From b9752ba776eeaa41bd6d3f83e7ee174b5598357a Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Tue, 4 Jun 2019 21:26:56 +0100 Subject: [PATCH] feat(geom-arc): enable TS strict compiler flags (refactor) --- packages/geom-arc/src/bounds.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/geom-arc/src/bounds.ts b/packages/geom-arc/src/bounds.ts index d2cdceada4..03e8a63bb6 100644 --- a/packages/geom-arc/src/bounds.ts +++ b/packages/geom-arc/src/bounds.ts @@ -6,6 +6,7 @@ import { min2, ReadonlyVec, set2, + Vec, VecPair } from "@thi.ng/vectors"; import { pointAtTheta } from "./point-at"; @@ -19,7 +20,7 @@ export const bounds = ( ): VecPair => { const min = set2([], MAX2); const max = set2([], MIN2); - const p = []; + const p: Vec = []; const update = (theta: number) => { pointAtTheta(pos, r, axis, theta, p); min2(null, min, p);