Skip to content

Commit 5851810

Browse files
Bump quickselect from 2.0.0 to 3.0.0 (#734)
* Bump quickselect from 2.0.0 to 3.0.0 Bumps [quickselect](https://github.com/mourner/quickselect) from 2.0.0 to 3.0.0. - [Release notes](https://github.com/mourner/quickselect/releases) - [Commits](mourner/quickselect@v2.0.0...v3.0.0) --- updated-dependencies: - dependency-name: quickselect dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Fix types --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: HarelM <[email protected]>
1 parent 30d9ad4 commit 5851810

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@mapbox/unitbezier": "^0.0.1",
5454
"json-stringify-pretty-compact": "^4.0.0",
5555
"minimist": "^1.2.8",
56-
"quickselect": "^2.0.0",
56+
"quickselect": "^3.0.0",
5757
"rw": "^1.3.3",
5858
"tinyqueue": "^3.0.0"
5959
},

src/util/classify_rings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export function classifyRings<T extends Point2D>(rings: RingWithArea<T>[], maxRi
1414

1515
if (len <= 1) return [rings];
1616

17-
const polygons: T[][][] = [];
18-
let polygon: T[][];
17+
const polygons: RingWithArea<T>[][] = [];
18+
let polygon: RingWithArea<T>[];
1919
let ccw: boolean | undefined;
2020

2121
for (const ring of rings) {
@@ -48,7 +48,7 @@ export function classifyRings<T extends Point2D>(rings: RingWithArea<T>[], maxRi
4848
return polygons;
4949
}
5050

51-
function compareAreas(a: {area: number}, b: {area: number}) {
51+
function compareAreas<T extends Point2D>(a: RingWithArea<T>, b: RingWithArea<T>): number {
5252
return b.area - a.area;
5353
}
5454

0 commit comments

Comments
 (0)