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()),