From c4f1b21825db811d2cbeb94de734a38637eaf816 Mon Sep 17 00:00:00 2001
From: fsdavid <daviti1@mail.com>
Date: Tue, 12 Oct 2021 16:53:28 +0200
Subject: [PATCH] Fix lint

---
 src/atlasComponents/userAnnotations/tools/service.ts | 2 +-
 src/util/patchPureConstants.ts                       | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/atlasComponents/userAnnotations/tools/service.ts b/src/atlasComponents/userAnnotations/tools/service.ts
index f77ec97b4..5b2f145e3 100644
--- a/src/atlasComponents/userAnnotations/tools/service.ts
+++ b/src/atlasComponents/userAnnotations/tools/service.ts
@@ -33,7 +33,7 @@ type TAnnotationMetadata = {
   desc: string
 }
 
-const descType: 'siibra-ex/meta/desc' = 'siibra-ex/meta/desc'
+const descType = 'siibra-ex/meta/desc'
 type TTypedAnnMetadata = {
   '@type': 'siibra-ex/meta/desc'
 } & TAnnotationMetadata
diff --git a/src/util/patchPureConstants.ts b/src/util/patchPureConstants.ts
index fb1b4ad5b..55ff45561 100644
--- a/src/util/patchPureConstants.ts
+++ b/src/util/patchPureConstants.ts
@@ -49,10 +49,10 @@ async function getInterpolatedPatchObj(targetName: string, labelIndex: number){
       "volumeSrc": {
         'minds/core/referencespace/v1.0.0/a1655b99-82f1-420f-a3c2-fe80fd4c8588': {
           "collect": [{
-            "@type": "fzj/tmp/volume_type/v0.0.1" as "fzj/tmp/volume_type/v0.0.1",
+            "@type": "fzj/tmp/volume_type/v0.0.1" as const,
             "@id": "fzj/tmp/volume_type/v0.0.1/interpolated",
             "name": "Julich Brain v2.5 interpolated map",
-            "volume_type": "neuroglancer/precomputed" as "neuroglancer/precomputed",
+            "volume_type": "neuroglancer/precomputed" as const,
             "url": "https://neuroglancer.humanbrainproject.org/precomputed/BigBrainRelease.2015/2019_05_22_interpolated_areas",
             "detail": {
               "neuroglancer/precomputed": {
@@ -93,10 +93,10 @@ async function getIndividualMap(parentName: string, regionName: string, url: str
       "volumeSrc": {
         'minds/core/referencespace/v1.0.0/a1655b99-82f1-420f-a3c2-fe80fd4c8588': {
           "collect": [{
-            "@type": "fzj/tmp/volume_type/v0.0.1" as "fzj/tmp/volume_type/v0.0.1",
+            "@type": "fzj/tmp/volume_type/v0.0.1" as const,
             "@id": `fzj/tmp/volume_type/v0.0.1/${volumeId}`,
             "name": "Julich Brain v2.5 detailed map",
-            "volume_type": "neuroglancer/precomputed" as "neuroglancer/precomputed",
+            "volume_type": "neuroglancer/precomputed" as const,
             "url": url,
             "detail": {
               "neuroglancer/precomputed": {
-- 
GitLab