diff --git a/src/intersect.ts b/src/intersect.ts index 9e86146..1c6ee52 100644 --- a/src/intersect.ts +++ b/src/intersect.ts @@ -10,9 +10,9 @@ import { Point } from "./bodies/point"; /** * replace body with array of related convex polygons */ -export function ensureConvex( - body: T, -): (T | SATPolygon)[] { +export function ensureConvex( + body: TBody, +): (TBody | SATPolygon)[] { if (body.isConvex || body.type !== BodyType.Polygon) { return [body]; }