diff --git a/packages/svelte/src/runtime/internal/Component.js b/packages/svelte/src/runtime/internal/Component.js index e62d4c0985..b0e82da267 100644 --- a/packages/svelte/src/runtime/internal/Component.js +++ b/packages/svelte/src/runtime/internal/Component.js @@ -159,17 +159,23 @@ export let SvelteElement; if (typeof HTMLElement === 'function') { SvelteElement = class extends HTMLElement { + /** The Svelte component constructor */ $$ctor; + /** Slots */ $$s; + /** The Svelte component instance */ $$c; + /** Whether or not the custom element is connected */ $$cn = false; + /** Component props data */ $$d = {}; + /** `true` if currently in the process of reflecting component props back to attributes */ $$r = false; - /** @type {Record} */ + /** @type {Record} Props definition (name, reflected, type etc) */ $$p_d = {}; - /** @type {Record} */ + /** @type {Record} Event listeners */ $$l = {}; - /** @type {Map} */ + /** @type {Map} Event listener unsubscribe functions */ $$l_u = new Map(); constructor($$componentCtor, $$slots, use_shadow_dom) {