Skip to content

Commit

Permalink
feat: make point id type more flexible
Browse files Browse the repository at this point in the history
Accept string or number.
  • Loading branch information
oscarlorentzon committed Oct 11, 2024
1 parent 983bd15 commit 1a0b2af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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[];
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[];
pointIds: (string | number)[];

/**
* The colors of the reconstruction.
Expand Down

0 comments on commit 1a0b2af

Please sign in to comment.