revert some changes

pull/7324/head
Simon Holthausen 3 years ago
parent 4c7b2d9d6e
commit 06608737a8

@ -1,4 +1,4 @@
import './ambient.d.ts';
import './ambient';
export {
onMount,

@ -72,7 +72,6 @@ export function subscribe<T, S extends Readable<T>>(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<T, S extends Readable<T>>(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);

Loading…
Cancel
Save