fix: 🏷️ change internal runtime API TS types

change (component.$$set) type from `void` to `Promise<void>`

Signed-off-by: Soren Abedi <soren.abedi@gmail.com>
pull/6784/head
Soren Abedi 5 years ago
parent e45d180162
commit 7d347dcb09

@ -180,7 +180,7 @@ export let SvelteElement;
if (typeof HTMLElement === 'function') { if (typeof HTMLElement === 'function') {
SvelteElement = class extends HTMLElement { SvelteElement = class extends HTMLElement {
$$: T$$; $$: T$$;
$$set?: ($$props: any) => void; $$set?: ($$props: any) => Promise<void>;
constructor() { constructor() {
super(); super();
this.attachShadow({ mode: 'open' }); this.attachShadow({ mode: 'open' });

Loading…
Cancel
Save