From 1a0b2afc3050c34ddd0b24c73e4fd64709f58d23 Mon Sep 17 00:00:00 2001 From: Oscar Lorentzon <oscarlorentzon@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:20:09 -0700 Subject: [PATCH] feat: make point id type more flexible Accept string or number. --- declarations/mapillary.js.flow | 2 +- src/api/contracts/ClusterContract.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/declarations/mapillary.js.flow b/declarations/mapillary.js.flow index 7f16e180..1a164fff 100644 --- a/declarations/mapillary.js.flow +++ b/declarations/mapillary.js.flow @@ -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. diff --git a/src/api/contracts/ClusterContract.ts b/src/api/contracts/ClusterContract.ts index dae6318b..e5bf86a5 100644 --- a/src/api/contracts/ClusterContract.ts +++ b/src/api/contracts/ClusterContract.ts @@ -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.