diff --git a/src/atlasComponents/userAnnotations/tools/service.ts b/src/atlasComponents/userAnnotations/tools/service.ts index f77ec97b490bcb52fb27784b28f1202144a2f96e..5b2f145e33449eb4353c234108cd8818dce39553 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 fb1b4ad5b95c613133be272ba8874d39503f6df4..55ff455615c145c59ac2906fba55625fabdf6d1a 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": {