From 71b50aeaf679e876042533efd2094afc1b6e2254 Mon Sep 17 00:00:00 2001 From: Mutasem Date: Mon, 1 Nov 2021 14:16:11 +0100 Subject: [PATCH] force type --- packages/editor-ui/src/components/helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/helpers.ts b/packages/editor-ui/src/components/helpers.ts index 332d99307c..98ef17be05 100644 --- a/packages/editor-ui/src/components/helpers.ts +++ b/packages/editor-ui/src/components/helpers.ts @@ -14,9 +14,9 @@ export function getAppNameFromCredType(name: string) { return name.split(' ').filter((word) => !KEYWORDS_TO_FILTER.includes(word)).join(' '); } -export function getStyleTokenValue(name: string) { +export function getStyleTokenValue(name: string): string { if (window.localStorage.getItem(name)) { - return window.localStorage.getItem(name); + return window.localStorage.getItem(name) as string; } const style = getComputedStyle(document.body); const value = style.getPropertyValue(name);