From f6fbea7a42351f133e570423c15b89a3401f9826 Mon Sep 17 00:00:00 2001 From: Julian Laubstein Date: Fri, 24 Jul 2020 09:23:42 +0200 Subject: [PATCH] Fixed small syntax error --- src/runtime/internal/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/internal/utils.ts b/src/runtime/internal/utils.ts index f4565e4fc4..d8ccbe337e 100644 --- a/src/runtime/internal/utils.ts +++ b/src/runtime/internal/utils.ts @@ -62,7 +62,7 @@ export function subscribe(store, ...callbacks) { return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; } -export function get_store_value>(store: S): T { { +export function get_store_value>(store: S): T { let value; subscribe(store, _ => value = _)(); return value; @@ -152,4 +152,4 @@ export const has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, export function action_destroyer(action_result) { return action_result && is_function(action_result.destroy) ? action_result.destroy : noop; -} \ No newline at end of file +}