j20 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4645,7 +4645,7 @@ declare abstract class WebComponentClass extends HTMLElement {
4645
4645
  }
4646
4646
 
4647
4647
  declare const wc: () => {
4648
- host: WebComponentClass;
4648
+ host: Document | WebComponentClass | ShadowRoot;
4649
4649
  emit: (name: string, detail: any) => void;
4650
4650
  onConnectedCallback: (callback: () => void) => void;
4651
4651
  onDisconnectedCallback: (callback: () => void) => void;
@@ -4682,7 +4682,7 @@ declare const onMount: (callback: () => (() => void) | void) => void;
4682
4682
  declare const onDestroy: (callback: () => void) => _j20org_signal.Effect;
4683
4683
 
4684
4684
  declare const createCss: <T extends string>(css: T) => () => { [K in ExtractClasses<T>]: string; };
4685
- declare const styleSheet: (id: string, css: string) => void;
4685
+ declare const styleSheet: (css: string, id?: string) => void;
4686
4686
 
4687
4687
  interface ListProps<T> {
4688
4688
  of: T[];
@@ -4743,8 +4743,7 @@ interface Instance {
4743
4743
  parent?: Instance;
4744
4744
  id: string;
4745
4745
  range: Text[];
4746
- root?: Element;
4747
- host?: WebComponentClass;
4746
+ host: WebComponentClass | Document | ShadowRoot;
4748
4747
  disposes?: (() => void)[];
4749
4748
  children?: Instance[];
4750
4749
  mounts?: (() => void)[];