Skip to content

Commit

Permalink
feat: change flow point ids typings
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarlorentzon committed Feb 3, 2025
1 parent 6151360 commit ac4eefb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion declarations/mapillary.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export interface ClusterContract {
* @description The order of the IDs correspond with the order
* of the color and coordinate arrays.
*/
pointIds: (string | number)[];
pointIds: string[] | number[];

/**
* The colors of the reconstruction.
Expand Down
2 changes: 1 addition & 1 deletion src/api/contracts/ClusterContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface ClusterContract {
* @description The order of the IDs correspond with the order
* of the color and coordinate arrays.
*/
pointIds: (string | number)[];
pointIds: string[] | number[];

/**
* The colors of the reconstruction.
Expand Down
2 changes: 1 addition & 1 deletion test/api/provider/GraphConverter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe("GraphConverter.clusterReconstruction", () => {
// Points
expect(Object.keys(cluster.pointIds).length).toBe(1);

const index = cluster.pointIds.indexOf(pointId);
const index = (<string[]>cluster.pointIds).indexOf(pointId);
expect(index).toBeGreaterThanOrEqual(0);

const pointIndex = 3 * index;
Expand Down

0 comments on commit ac4eefb

Please sign in to comment.