From 7afe62a4d11b51902f9c864f24eef0aa702815d1 Mon Sep 17 00:00:00 2001 From: Glutanimate Date: Thu, 15 Apr 2021 18:30:53 +0200 Subject: [PATCH] Fix minor typo --- ts/sveltelib/asyncReactive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/sveltelib/asyncReactive.ts b/ts/sveltelib/asyncReactive.ts index 80d75ee40..2479304a7 100644 --- a/ts/sveltelib/asyncReactive.ts +++ b/ts/sveltelib/asyncReactive.ts @@ -3,7 +3,7 @@ import { Readable, derived } from "svelte/store"; -interface AsyncReativeData { +interface AsyncReactiveData { value: Readable; error: Readable; loading: Readable; @@ -12,7 +12,7 @@ interface AsyncReativeData { function useAsyncReactive( asyncFunction: () => Promise, dependencies: [Readable, ...Readable[]] -): AsyncReativeData { +): AsyncReactiveData { const promise = derived( dependencies, (_, set: (value: Promise | null) => void): void => set(asyncFunction()),