File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
packages/@lwc/engine-core/src/framework Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -188,12 +188,17 @@ type RefNodes = { [name: string]: Element };
188188
189189const refsCache : WeakMap < RefVNodes , RefNodes > = new WeakMap ( ) ;
190190
191- /**
192- * A `LightningElement` will always be attached to an [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement),
193- * rather than the more broad `Element` used by the generic shadow root interface.
194- */
195191export interface LightningElementShadowRoot extends ShadowRoot {
192+ /**
193+ * A `LightningElement` will always be attached to an [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement),
194+ * rather than the more broad `Element` used by the generic shadow root interface.
195+ */
196196 readonly host : HTMLElement ;
197+ /**
198+ * When present, indicates that the shadow root is the synthetic polyfill loaded by
199+ * `@lwc/synethic-shadow`.
200+ */
201+ readonly synthetic ?: true ;
197202}
198203
199204export interface LightningElement extends HTMLElementTheGoodParts , AccessibleElementProperties {
You can’t perform that action at this time.
0 commit comments