diff --git a/src/runtime/internal/utils.ts b/src/runtime/internal/utils.ts index bc2f2f6e7a..01cf1e4169 100644 --- a/src/runtime/internal/utils.ts +++ b/src/runtime/internal/utils.ts @@ -1,8 +1,6 @@ import { Readable, Subscriber, Writable } from 'svelte/store'; import { SvelteComponent } from '../index.js'; -type TODO = T - export function noop() {} export const identity = (x: T): T => x; @@ -74,7 +72,7 @@ export function subscribe>(store: S, ...callbacks: Arra return noop; } // TODO: `store` does not accept an array of callbacks - const unsub: TODO = store.subscribe(...(callbacks as [TODO])); + const unsub: any = store.subscribe(...(callbacks as [any])); return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; }