From 963df0cf3e8f3e37963dd3b6a3c0e794640fd10d Mon Sep 17 00:00:00 2001 From: Igor D Date: Wed, 21 Jun 2023 19:41:43 +0300 Subject: [PATCH] [chore] Update SavedCustomMapStyle accessToken property to be defined as optional (#2278) Signed-off-by: Ihor Dykhta Co-authored-by: Jacob Wasilkowski <4933392+jwasilgeo@users.noreply.github.com> --- src/schemas/src/schema-manager.ts | 2 +- src/types/schemas.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schemas/src/schema-manager.ts b/src/schemas/src/schema-manager.ts index a7131020d7..934c478fe5 100644 --- a/src/schemas/src/schema-manager.ts +++ b/src/schemas/src/schema-manager.ts @@ -51,7 +51,7 @@ export type SavedLayerGroups = { export type SavedCustomMapStyle = { [key: string]: { - accessToken: string; + accessToken?: string; custom: BaseMapStyle['custom']; icon: string; id: string; diff --git a/src/types/schemas.d.ts b/src/types/schemas.d.ts index 1592296313..827ecc050c 100644 --- a/src/types/schemas.d.ts +++ b/src/types/schemas.d.ts @@ -141,7 +141,7 @@ export type SavedLayerGroups = { export type SavedCustomMapStyle = { [key: string]: { - accessToken: string; + accessToken?: string; custom: boolean; icon: string; id: string;