diff --git a/src/runtime/ambient.d.ts b/src/runtime/ambient.ts similarity index 100% rename from src/runtime/ambient.d.ts rename to src/runtime/ambient.ts diff --git a/src/runtime/index.ts b/src/runtime/index.ts index 91b10537bb..2029f67a04 100644 --- a/src/runtime/index.ts +++ b/src/runtime/index.ts @@ -1,4 +1,4 @@ -import './ambient.d.ts'; +import './ambient'; export { onMount, diff --git a/src/runtime/internal/utils.ts b/src/runtime/internal/utils.ts index ff0b0e4c69..3996f1fe00 100644 --- a/src/runtime/internal/utils.ts +++ b/src/runtime/internal/utils.ts @@ -72,7 +72,6 @@ export function subscribe>(store: S, ...callbacks: Arra if (store == null) { return noop; } - // TODO: `store` does not accept an array of callbacks const unsub: any = store.subscribe(...(callbacks as [any])); return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; } @@ -87,8 +86,6 @@ export function component_subscribe>(component: SvelteC component.$$.on_destroy.push(subscribe(store, callback)); } -// TODO: find out what types are expected here instead of using `any` everywhere - export function create_slot(definition: any[], ctx: any[], $$scope: T$$, fn: Function) { if (definition) { const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);