From 94c13f870caae467288a08bbb292003d1b949f42 Mon Sep 17 00:00:00 2001 From: Moein Date: Tue, 29 Sep 2020 14:24:02 +0330 Subject: [PATCH] Fix return type of `get` store function This reverts commit 8641df07417b98bf3ff9495dd12f397f9be4254f. --- src/runtime/store/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/store/index.ts b/src/runtime/store/index.ts index 0f97d1341a..8cf5ef134e 100644 --- a/src/runtime/store/index.ts +++ b/src/runtime/store/index.ts @@ -201,4 +201,6 @@ export function derived(stores: Stores, fn: Function, initial_value?: T): Rea * Get the current value from a store by subscribing and immediately unsubscribing. * @param store readable */ -export { get_store_value as get }; \ No newline at end of file +export const get = get_store_value as { + (store: Readable): (T | undefined); +};