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 10, 2024
1 parent fc8240b commit 7aa8527
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 7aa8527

Please sign in to comment.