Fix return type of `get` store function

This reverts commit 8641df0741.
pull/5464/head
Moein 5 years ago
parent 46a83a50e3
commit 94c13f870c

@ -201,4 +201,6 @@ export function derived<T>(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 };
export const get = get_store_value as {
<T>(store: Readable<T>): (T | undefined);
};

Loading…
Cancel
Save