dothtml-interfaces 0.4.4 → 0.4.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dothtml-interfaces",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Dependency injection interfaces for DOTHtml.",
5
5
  "main": "src/index.d.ts",
6
6
  "types": "src/index.d.ts",
@@ -0,0 +1,12 @@
1
+ import { IWatcher } from "./i-watcher";
2
+
3
+ export interface IBinding<T = any, Td = T>{
4
+ _source: IWatcher<T>;
5
+ _get: ()=>Td;
6
+ _set: (v: string|number|boolean)=>void;
7
+
8
+ _transform: {
9
+ display?: (v: T)=>Td;
10
+ read?: (v: string)=>T;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ export interface IObserver<T = any>{
2
+ observerUpdate(value: T, obsreverId: number): void;
3
+ }
@@ -0,0 +1,4 @@
1
+ import { IBinding } from "./i-binding";
2
+ import { IWatcher } from "./i-watcher";
3
+
4
+ export type IReactive = IBinding|IWatcher;
@@ -0,0 +1,4 @@
1
+
2
+ export interface IRef<T extends HTMLElement = HTMLElement>{
3
+ get element(): T;
4
+ }
@@ -1,3 +1,4 @@
1
+ import { IBinding } from "./i-binding";
1
2
 
2
3
  export interface IWatcher<T = any>{
3
4
  // Get the value.
@@ -34,21 +35,4 @@ export interface IWatcher<T = any>{
34
35
  }))): IBinding<T, Td>;
35
36
 
36
37
  bind(): IBinding<T>;
37
- }
38
-
39
- export interface IObserver<T = any>{
40
- observerUpdate(value: T, obsreverId: number): void;
41
- }
42
-
43
- export interface IBinding<T = any, Td = T>{
44
- _source: IWatcher<T>;
45
- _get: ()=>Td;
46
- _set: (v: string|number|boolean)=>void;
47
-
48
- _transform: {
49
- display?: (v: T)=>Td;
50
- read?: (v: string)=>T;
51
- }
52
- }
53
-
54
- export type IReactive = IBinding|IWatcher;
38
+ }
package/src/i-dot.d.ts CHANGED
@@ -2,10 +2,13 @@
2
2
  import IDotComponent from "./i-dot-component";
3
3
  import IDotCss from "./styles/i-dot-css";
4
4
  import IEventBus from "./i-event-bus";
5
- import {IReactive, IBinding, IWatcher} from "./i-reactive";
5
+ import {IReactive} from "./bindings/i-reactive";
6
+ import { IBinding } from "./bindings/i-binding";
7
+ import { IWatcher } from "./bindings/i-watcher";
6
8
  import IDotcssProp from "./styles/i-css-prop";
9
+ import { IRef } from "./bindings/i-ref";
7
10
 
8
- type DotContentPrimitive = string | number | boolean;
11
+ type DotContentPrimitive = string | number | boolean | undefined | null;
9
12
  type DotContentBasic = DotContentPrimitive | Node | Element | NodeList | IDotComponent | IDotDocument//typeof DotDocument;
10
13
  export type DotContent = DotContentBasic | Array<DotContent> | IReactive;//|(()=>DotContent);
11
14
 
@@ -421,7 +424,7 @@ export interface IDotConditionalDocument extends IDotDocument {
421
424
  }
422
425
 
423
426
  // Attribute interface (for all elements):
424
- export interface IDotGlobalAttrs {
427
+ export interface IDotGlobalAttrs<T extends HTMLElement = HTMLElement> {
425
428
  /**
426
429
  * Create a custom attribute.
427
430
  */
@@ -437,7 +440,7 @@ export interface IDotGlobalAttrs {
437
440
  // TODO: this needs to be redone now.
438
441
  // The better way might be using the new reactive system instead of references.
439
442
  // For now I'll leave it like this:
440
- // ref?: IReactive<HTMLElement>;
443
+ ref?: IRef<T>;
441
444
 
442
445
  /** @deprecated Deprecated in HTML5. Use CSS. */
443
446
  bgColor?: AttrVal<unknown>;
@@ -550,7 +553,7 @@ export interface IDotGlobalAttrs {
550
553
  // prop(name: string, value: any): IMountedComponent<T>;
551
554
  // }
552
555
 
553
- interface IDotA extends IDotGlobalAttrs {
556
+ interface IDotA extends IDotGlobalAttrs<HTMLAnchorElement> {
554
557
  download?: AttrVal<boolean>;
555
558
  hRef?: AttrVal<string>;
556
559
  hRefLang?: AttrVal<string>;
@@ -566,7 +569,7 @@ interface IDotA extends IDotGlobalAttrs {
566
569
  target?: AttrVal<"_blank"> | AttrVal<"_parent"> | AttrVal<"_self"> | AttrVal<"_top">;
567
570
  type?: AttrVal<string>;
568
571
  }
569
- interface IDotArea extends IDotGlobalAttrs {
572
+ interface IDotArea extends IDotGlobalAttrs<HTMLAreaElement> {
570
573
  alt?: AttrVal<string>;
571
574
  coords?: AttrVal<string>;
572
575
  download?: AttrVal<string>;
@@ -578,7 +581,7 @@ interface IDotArea extends IDotGlobalAttrs {
578
581
  shape?: AttrVal<string>;
579
582
  target?: AttrVal<string>;
580
583
  }
581
- interface IDotAudio extends IDotGlobalAttrs {
584
+ interface IDotAudio extends IDotGlobalAttrs<HTMLAudioElement> {
582
585
  autoPlay?: AttrVal<boolean>;
583
586
  // buffered?: unknown; // Not used?
584
587
  controls?: AttrVal<boolean>;
@@ -617,11 +620,11 @@ interface IDotAudio extends IDotGlobalAttrs {
617
620
  onWaiting?: (e: Event) => void;
618
621
  onCanPlay?: (e: Event) => void;
619
622
  }
620
- interface IDotBlockQuote extends IDotGlobalAttrs {
623
+ interface IDotBlockQuote extends IDotGlobalAttrs<HTMLQuoteElement> {
621
624
  quoteCite?: AttrVal<string>; // alias for cite
622
625
  }
623
626
 
624
- interface IDotBody extends IDotGlobalAttrs {
627
+ interface IDotBody extends IDotGlobalAttrs<HTMLBodyElement> {
625
628
  align?: unknown; // Deprecated in HTML5. Use CSS.
626
629
  background?: unknown; // Deprecated in HTML5. Use CSS.
627
630
 
@@ -636,11 +639,11 @@ interface IDotBody extends IDotGlobalAttrs {
636
639
  onStorage?: (e: StorageEvent) => void;
637
640
  }
638
641
 
639
- interface IDotBr extends IDotGlobalAttrs {
642
+ interface IDotBr extends IDotGlobalAttrs<HTMLBRElement> {
640
643
  /** @deprecated Deprecated in HTML5. Use CSS. */
641
644
  clear?: unknown;
642
645
  }
643
- interface IDotButton extends IDotGlobalAttrs {
646
+ interface IDotButton extends IDotGlobalAttrs<HTMLButtonElement> {
644
647
  autoFocus?: AttrVal<boolean>;
645
648
  formAction?: AttrVal<string>;
646
649
  disabled?: AttrVal<boolean>;
@@ -649,19 +652,19 @@ interface IDotButton extends IDotGlobalAttrs {
649
652
  whichForm?: AttrVal<string>; // alias for form
650
653
  value?: AttrVal<string>;
651
654
  }
652
- interface IDotCanvas extends IDotGlobalAttrs {
655
+ interface IDotCanvas extends IDotGlobalAttrs<HTMLCanvasElement> {
653
656
  height?: AttrVal<number>;
654
657
  width?: AttrVal<number>;
655
658
  }
656
659
 
657
- interface IDotCol extends IDotGlobalAttrs {
660
+ interface IDotCol extends IDotGlobalAttrs<HTMLTableColElement> {
658
661
  /** @deprecated Deprecated in HTML5. Use CSS. */
659
662
  charOff?: AttrVal<unknown>;
660
663
  colSpan?: AttrVal<number>; // alias for span
661
664
  vAlign?: AttrVal<number>;
662
665
  }
663
666
 
664
- interface IDotColGroup extends IDotGlobalAttrs {
667
+ interface IDotColGroup extends IDotGlobalAttrs<HTMLTableColElement> {
665
668
  /** @deprecated Deprecated in HTML5. Use CSS. */
666
669
  charOff?: AttrVal<unknown>;
667
670
  colSpan?: AttrVal<number>; // alias for span
@@ -674,23 +677,23 @@ interface IDotDel extends IDotGlobalAttrs {
674
677
  quoteCite?: AttrVal<string>; // alias for cite
675
678
  }
676
679
 
677
- interface IDotDetails extends IDotGlobalAttrs {
680
+ interface IDotDetails extends IDotGlobalAttrs<HTMLDetailsElement> {
678
681
  open?: AttrVal<boolean>;
679
682
  // Events:
680
683
  onToggle?: (e: Event) => void;
681
684
  }
682
- interface IDotEmbed extends IDotGlobalAttrs {
685
+ interface IDotEmbed extends IDotGlobalAttrs<HTMLEmbedElement> {
683
686
  height?: AttrVal<number>;
684
687
  src?: AttrVal<string>;
685
688
  type?: AttrVal<string>;
686
689
  width?: AttrVal<number>;
687
690
  }
688
- interface IDotFieldSet extends IDotGlobalAttrs {
691
+ interface IDotFieldSet extends IDotGlobalAttrs<HTMLFieldSetElement> {
689
692
  disabled?: AttrVal<boolean>;
690
693
  name?: AttrVal<string>;
691
694
  whichForm?: AttrVal<string>; // alias for form
692
695
  }
693
- interface IDotForm extends IDotGlobalAttrs {
696
+ interface IDotForm extends IDotGlobalAttrs<HTMLFormElement> {
694
697
  acceptCharset?: AttrVal<string>; // accept-charset, apparently the only hyphenated attribute (aside from data-*)...
695
698
  action?: AttrVal<string>;
696
699
  autoComplete?: AttrVal<"on"> | AttrVal<"off">;
@@ -701,10 +704,10 @@ interface IDotForm extends IDotGlobalAttrs {
701
704
  target?: AttrVal<"_self"> | AttrVal<"_blank"> | AttrVal<"_parent"> | AttrVal<"_top">;
702
705
  // rel?: PrimativeOrObservable<string> IDotForm; // Not used with forms?
703
706
  }
704
- interface IDotHr extends IDotGlobalAttrs {
707
+ interface IDotHr extends IDotGlobalAttrs<HTMLHRElement> {
705
708
  noShade?: AttrVal<unknown>;
706
709
  }
707
- interface IDotIFrame extends IDotGlobalAttrs {
710
+ interface IDotIFrame extends IDotGlobalAttrs<HTMLIFrameElement> {
708
711
  allow?: AttrVal<string>;
709
712
  allowFullScreen?: AttrVal<boolean>;
710
713
  /** @deprecated Deprecated in HTML5. */
@@ -724,7 +727,7 @@ interface IDotIFrame extends IDotGlobalAttrs {
724
727
  srcDoc?: AttrVal<string>;
725
728
  width?: AttrVal<number>;
726
729
  }
727
- interface IDotImg extends IDotGlobalAttrs {
730
+ interface IDotImg extends IDotGlobalAttrs<HTMLImageElement> {
728
731
  alt?: AttrVal<string>;
729
732
  crossOrigin?: AttrVal<"anonymous"> | AttrVal<"use-credentials">;
730
733
  decoding?: AttrVal<"async"> | AttrVal<"auto"> | AttrVal<"sync">;
@@ -742,7 +745,7 @@ interface IDotImg extends IDotGlobalAttrs {
742
745
  useMap?: AttrVal<number>;
743
746
  width?: AttrVal<number>;
744
747
  }
745
- interface IDotInput extends IDotGlobalAttrs {
748
+ interface IDotInput extends IDotGlobalAttrs<HTMLInputElement> {
746
749
  accept?: AttrVal<string>;
747
750
  alt?: AttrVal<string>;
748
751
  autoCapitalize?: AttrVal<"none"> | AttrVal<"sentences"> | AttrVal<"words"> | AttrVal<"characters">;
@@ -790,23 +793,23 @@ interface IDotKeyGen extends IDotGlobalAttrs {
790
793
  keyType?: AttrVal<string>;
791
794
  }
792
795
 
793
- interface IDotLabel extends IDotGlobalAttrs {
796
+ interface IDotLabel extends IDotGlobalAttrs<HTMLLabelElement> {
794
797
  for?: AttrVal<string>;
795
798
  }
796
799
 
797
- interface IDotLi extends IDotGlobalAttrs {
800
+ interface IDotLi extends IDotGlobalAttrs<HTMLLIElement> {
798
801
  value?: AttrVal<number>;
799
802
  }
800
803
 
801
- interface IDotMap extends IDotGlobalAttrs {
804
+ interface IDotMap extends IDotGlobalAttrs<HTMLMapElement> {
802
805
  name?: AttrVal<string>;
803
806
  }
804
807
 
805
- interface IDotMenu extends IDotGlobalAttrs {
808
+ interface IDotMenu extends IDotGlobalAttrs<HTMLMenuElement> {
806
809
  type?: AttrVal<string>;
807
810
  }
808
811
 
809
- interface IDotMeter extends IDotGlobalAttrs {
812
+ interface IDotMeter extends IDotGlobalAttrs<HTMLMeterElement> {
810
813
  high?: AttrVal<number>;
811
814
  low?: AttrVal<number>;
812
815
  max?: AttrVal<number>;
@@ -815,7 +818,7 @@ interface IDotMeter extends IDotGlobalAttrs {
815
818
  value?: AttrVal<number>;
816
819
  }
817
820
 
818
- interface IDotObject extends IDotGlobalAttrs {
821
+ interface IDotObject extends IDotGlobalAttrs<HTMLObjectElement> {
819
822
  archive?: AttrVal<string>;
820
823
  classId?: AttrVal<string>;
821
824
  codeBase?: AttrVal<string>;
@@ -830,46 +833,46 @@ interface IDotObject extends IDotGlobalAttrs {
830
833
  width?: AttrVal<number>;
831
834
  }
832
835
 
833
- interface IDotOl extends IDotGlobalAttrs {
836
+ interface IDotOl extends IDotGlobalAttrs<HTMLUListElement> {
834
837
  /** @deprecated Deprecated in HTML5. */
835
838
  reversed?: AttrVal<boolean>;
836
839
  start?: AttrVal<number>;
837
840
  }
838
841
 
839
- interface IDotOptGroup extends IDotGlobalAttrs {
842
+ interface IDotOptGroup extends IDotGlobalAttrs<HTMLUListElement> {
840
843
  disabled?: AttrVal<boolean>;
841
844
  }
842
845
 
843
- interface IDotOption extends IDotGlobalAttrs {
846
+ interface IDotOption extends IDotGlobalAttrs<HTMLUListElement> {
844
847
  disabled?: AttrVal<boolean>;
845
848
  optionLabel?: AttrVal<string>; // Alias for label
846
849
  selected?: AttrVal<boolean>;
847
850
  value?: AttrVal<string>;
848
851
  }
849
852
 
850
- interface IDotOutput extends IDotGlobalAttrs {
853
+ interface IDotOutput extends IDotGlobalAttrs<HTMLOutputElement> {
851
854
  for?: AttrVal<string>;
852
855
  name?: AttrVal<string>;
853
856
  whichForm?: AttrVal<string>; // Alias for form
854
857
  }
855
858
 
856
- interface IDotParam extends IDotGlobalAttrs {
859
+ interface IDotParam extends IDotGlobalAttrs<HTMLParamElement> {
857
860
  name?: AttrVal<string>;
858
861
  value?: AttrVal<string>;
859
862
  /** @deprecated Deprecated in HTML5. */
860
863
  valueType?: AttrVal<unknown>;
861
864
  }
862
865
 
863
- interface IDotProgress extends IDotGlobalAttrs {
866
+ interface IDotProgress extends IDotGlobalAttrs<HTMLProgressElement> {
864
867
  max?: AttrVal<number>;
865
868
  value?: AttrVal<number>;
866
869
  }
867
870
 
868
- interface IDotQ extends IDotGlobalAttrs {
871
+ interface IDotQ extends IDotGlobalAttrs<HTMLQuoteElement> {
869
872
  quoteCite?: AttrVal<string>; // alias for cite
870
873
  }
871
874
 
872
- interface IDotSelect extends IDotGlobalAttrs {
875
+ interface IDotSelect extends IDotGlobalAttrs<HTMLSelectElement> {
873
876
  autoFocus?: AttrVal<boolean>;
874
877
  disabled?: AttrVal<boolean>;
875
878
  multiple?: AttrVal<boolean>;
@@ -880,14 +883,14 @@ interface IDotSelect extends IDotGlobalAttrs {
880
883
  value?: AttrVal<string>; // Pseudo attribute for convenience.
881
884
  }
882
885
 
883
- interface IDotSource extends IDotGlobalAttrs {
886
+ interface IDotSource extends IDotGlobalAttrs<HTMLSourceElement> {
884
887
  media?: AttrVal<string>;
885
888
  src?: AttrVal<string>;
886
889
  type?: AttrVal<string>;
887
890
  sizes?: AttrVal<string>;
888
891
  srcSet?: AttrVal<string>;
889
892
  }
890
- interface IDotTable extends IDotGlobalAttrs {
893
+ interface IDotTable extends IDotGlobalAttrs<HTMLTableElement> {
891
894
  /** @deprecated Deprecated in HTML5. Use CSS. */
892
895
  border?: AttrVal<string> | AttrVal<number>;
893
896
  /** @deprecated Deprecated in HTML5. Use CSS. */
@@ -906,7 +909,7 @@ interface IDotTable extends IDotGlobalAttrs {
906
909
  width?: AttrVal<number>;
907
910
  }
908
911
 
909
- interface IDotTextArea extends IDotGlobalAttrs {
912
+ interface IDotTextArea extends IDotGlobalAttrs<HTMLTextAreaElement> {
910
913
  autoCapitalize?: AttrVal<"none"> | AttrVal<"sentences"> | AttrVal<"words"> | AttrVal<"characters">;
911
914
  autoFocus?: AttrVal<boolean>;
912
915
  cols?: AttrVal<number>;
@@ -924,14 +927,14 @@ interface IDotTextArea extends IDotGlobalAttrs {
924
927
  value?: AttrVal<string>; // Pseudo attribute for convenience.
925
928
  }
926
929
 
927
- interface IDotTBody extends IDotGlobalAttrs {
930
+ interface IDotTBody extends IDotGlobalAttrs<HTMLTableSectionElement> {
928
931
  /** @deprecated Deprecated in HTML5. Use CSS. */
929
932
  charOff?: AttrVal<unknown>;
930
933
  /** @deprecated Deprecated in HTML5. Use CSS. */
931
934
  vAlign?: AttrVal<unknown>;
932
935
  }
933
936
 
934
- interface IDotTd extends IDotGlobalAttrs {
937
+ interface IDotTd extends IDotGlobalAttrs<HTMLTableCellElement> {
935
938
 
936
939
  /** @deprecated Deprecated in HTML5. Use CSS. */
937
940
  axis?: AttrVal<string>;
@@ -949,18 +952,18 @@ interface IDotTd extends IDotGlobalAttrs {
949
952
  vAlign?: AttrVal<string>;
950
953
  }
951
954
 
952
- interface IDotTFoot extends IDotGlobalAttrs {
955
+ interface IDotTFoot extends IDotGlobalAttrs<HTMLTableSectionElement> {
953
956
  /** @deprecated Deprecated in HTML5. Use CSS. */
954
957
  charOff?: AttrVal<number>;
955
958
  /** @deprecated Deprecated in HTML5. Use CSS. */
956
959
  vAlign?: AttrVal<string>;
957
960
  }
958
961
 
959
- interface IDotTime extends IDotGlobalAttrs {
962
+ interface IDotTime extends IDotGlobalAttrs<HTMLTimeElement> {
960
963
  dateTime?: AttrVal<string>;
961
964
  }
962
965
 
963
- interface IDotTh extends IDotGlobalAttrs {
966
+ interface IDotTh extends IDotGlobalAttrs<HTMLTableCellElement> {
964
967
  /** @deprecated Deprecated in HTML5. Use CSS. */
965
968
  axis?: AttrVal<string>;
966
969
  colSpan?: AttrVal<number>;
@@ -973,21 +976,21 @@ interface IDotTh extends IDotGlobalAttrs {
973
976
  vAlign?: AttrVal<string>;
974
977
  }
975
978
 
976
- interface IDotTHead extends IDotGlobalAttrs {
979
+ interface IDotTHead extends IDotGlobalAttrs<HTMLTableSectionElement> {
977
980
  /** @deprecated Deprecated in HTML5. Use CSS. */
978
981
  charOff?: AttrVal<string> | AttrVal<number>;
979
982
  /** @deprecated Deprecated in HTML5. Use CSS. */
980
983
  vAlign?: AttrVal<string>;
981
984
  }
982
985
 
983
- interface IDotTr extends IDotGlobalAttrs {
986
+ interface IDotTr extends IDotGlobalAttrs<HTMLTableRowElement> {
984
987
  /** @deprecated Deprecated in HTML5. Use CSS. */
985
988
  charOff?: AttrVal<string> | AttrVal<number>;
986
989
  /** @deprecated Deprecated in HTML5. Use CSS. */
987
990
  vAlign?: AttrVal<string>;
988
991
  }
989
992
 
990
- interface IDotTrack extends IDotGlobalAttrs {
993
+ interface IDotTrack extends IDotGlobalAttrs<HTMLTrackElement> {
991
994
  default?: AttrVal<boolean>;
992
995
  kind?: AttrVal<string>;
993
996
  src?: AttrVal<string>;
@@ -998,7 +1001,7 @@ interface IDotTrack extends IDotGlobalAttrs {
998
1001
  onCueChange?: (e: Event) => void;
999
1002
  }
1000
1003
 
1001
- interface IDotVideo extends IDotGlobalAttrs {
1004
+ interface IDotVideo extends IDotGlobalAttrs<HTMLVideoElement> {
1002
1005
  autoPlay?: AttrVal<boolean>;
1003
1006
  buffered?: IReactive; // Managed by browser not user. TODO: we can possibly use events to update observable objects.
1004
1007
  controls?: AttrVal<boolean>;
package/src/index.d.ts CHANGED
@@ -8,5 +8,8 @@ export * from "./styles/i-dot-css";
8
8
 
9
9
  export { default as IDotComponent, FrameworkItems } from "./i-dot-component";
10
10
 
11
- export { IWatcher, IObserver, IBinding, IReactive } from "./i-reactive";
11
+ export { IWatcher } from "./bindings/i-watcher";
12
+ export { IObserver } from "./bindings/i-observer";
13
+ export { IBinding } from "./bindings/i-binding";
14
+ export { IReactive } from "./bindings/i-reactive";
12
15
  export { default as IEventBus } from "./i-event-bus";
@@ -1,4 +1,5 @@
1
- import { IBinding, IWatcher } from "../i-reactive";
1
+ import { IBinding } from "../bindings/i-binding";
2
+ import { IWatcher } from "../bindings/i-watcher";
2
3
 
3
4
  // Global keyword values.
4
5
  export type GKV = IWatcher<string>|IBinding<any, string>|"inherit"|"initial"|"unset"|"revert"|"revert-layer";
@@ -5,7 +5,8 @@ import IShadowProp from "./complex-css-types/i-shadow-prop";
5
5
  import ITransformationProp from "./complex-css-types/i-transformation-prop";
6
6
  import ColorProp from "./mapped-types/color-props";
7
7
  import LengthProp from "./mapped-types/length-prop";
8
- import { IBinding, IWatcher } from "../i-reactive";
8
+ import { IBinding } from "../bindings/i-binding";
9
+ import { IWatcher } from "../bindings/i-watcher";
9
10
 
10
11
  type BackgroundPositionShorthand2D = string;
11
12
  type BackgroundRepeatValues2d = "no-repeat"|"repeat"|"space"|"round";
@@ -1,4 +1,4 @@
1
- import { IReactive } from "../../i-reactive";
1
+ import { IReactive } from "../../bindings/i-reactive";
2
2
 
3
3
  type V = IReactive | number | string;
4
4
 
@@ -1,4 +1,5 @@
1
- import { IBinding, IWatcher } from "../../i-reactive";
1
+ import { IBinding } from "../../bindings/i-binding";
2
+ import { IWatcher } from "../../bindings/i-watcher";
2
3
 
3
4
  type V = IBinding<any, number|string>| IWatcher<number|string> | number | string;
4
5
 
@@ -1,4 +1,5 @@
1
- import { IReactive, IBinding } from "../../i-reactive";
1
+ import { IReactive } from "../../bindings/i-reactive";
2
+ import { IBinding } from "../../bindings/i-binding";
2
3
  import { GKV } from "../css-types";
3
4
  // import { NumericLength } from "./css-types";
4
5