dothtml-interfaces 6.0.7 → 6.0.9

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": "6.0.7",
3
+ "version": "6.0.9",
4
4
  "description": "Dependency injection interfaces for DOTHtml.",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -24,8 +24,8 @@ export interface IWatcher<T = any>{
24
24
  */
25
25
  subscribe(callback: Function): number;
26
26
 
27
- _subscribe(boundReactive: IBinding, item: any);
28
- _detachBinding(id: number);
27
+ _subscribe(boundReactive: IBinding, item: any): number;
28
+ _detachBinding(id: number): void;
29
29
 
30
30
  /**
31
31
  * Called manually by the user to trigger an update.
@@ -9,7 +9,7 @@ export interface FrameworkItems {
9
9
  * The shadow root element of the component.
10
10
  */
11
11
  readonly refs: { [key: string]: HTMLElement };
12
- emit<T>(event: string, ...args: Array<any>): void;
12
+ emit(event: string, ...args: Array<any>): void;
13
13
  restyle(): void;
14
14
  readonly props: Record<string, any>;
15
15
  readonly cvdom: any;
package/src/i-dot.ts CHANGED
@@ -1,4 +1,5 @@
1
1
 
2
+ import { VERSION } from "./version";
2
3
  import IDotComponent from "./i-dot-component";
3
4
  import IDotCss from "./styles/i-dot-css";
4
5
  import IEventBus from "./i-event-bus";
@@ -295,7 +296,7 @@ export type ComponentArgs<TProps extends Array<string> = [], TEvents extends Arr
295
296
  export interface IDotCore extends IDotDocument {
296
297
  (targetSelector: string | Element | Node | NodeList | Array<Node | Element>, targetWindow?: Window): IDotDocument;
297
298
 
298
- version: string;
299
+ version: typeof VERSION;
299
300
  styleMode: "sync" | "async";
300
301
 
301
302
  navigate(path: string, replace?: boolean): void;
@@ -1,11 +1,11 @@
1
1
 
2
2
  export default interface IEventBus{
3
3
 
4
- on (event, callback);
4
+ on (event: string, callback: Function): void;
5
5
 
6
- off (event, callback);
6
+ off (event: string, callback: Function): void;
7
7
 
8
- emit (event, ...args);
8
+ emit (event: string, ...args: any[]): void;
9
9
 
10
- flush (event);
11
- }
10
+ flush (event: string): void;
11
+ }
package/src/index.ts CHANGED
@@ -2,16 +2,16 @@ import { IDotCore } from "./i-dot";
2
2
 
3
3
  export * from "./i-dot";
4
4
 
5
- export { default as IDotCss } from "./styles/i-dot-css";
5
+ export type { default as IDotCss } from "./styles/i-dot-css";
6
6
  export * from "./styles/i-dot-css";
7
- export { default as IDotcssProp } from "./styles/i-css-prop";
8
- export { IDotStyleBuilder } from "./styles/i-dot-style-builder";
7
+ export type { default as IDotcssProp } from "./styles/i-css-prop";
8
+ export type { IDotStyleBuilder } from "./styles/i-dot-style-builder";
9
9
 
10
10
 
11
- export { default as IDotComponent, FrameworkItems } from "./i-dot-component";
11
+ export type { default as IDotComponent, FrameworkItems } from "./i-dot-component";
12
12
 
13
- export { IWatcher } from "./bindings/i-watcher";
14
- export { IObserver } from "./bindings/i-observer";
15
- export { IBinding } from "./bindings/i-binding";
16
- export { IReactive } from "./bindings/i-reactive";
17
- export { default as IEventBus } from "./i-event-bus";
13
+ export type { IWatcher } from "./bindings/i-watcher";
14
+ export type { IObserver } from "./bindings/i-observer";
15
+ export type { IBinding } from "./bindings/i-binding";
16
+ export type { IReactive } from "./bindings/i-reactive";
17
+ export type { default as IEventBus } from "./i-event-bus";
@@ -1,5 +1,6 @@
1
1
 
2
2
 
3
+
3
4
  import IAtColorProfileBuilder from "./at-rules/i-at-color-profile-builder";
4
5
  import IAtCounterStyleBuilder from "./at-rules/i-at-counter-style-builder";
5
6
  import IAtFontPaletteValues from "./at-rules/i-at-font-palette-values";
@@ -45,9 +46,6 @@ import { IDotStyleBuilder } from "./i-dot-style-builder";
45
46
  // type HueRotateFunction = `hue-rotate(${Angle|""})`;
46
47
  // type FilterFunction = SaturateFunction|SepiaFunction|OpacityFunction|InvertFunction|GrayscaleFunction|ContrastFunction|BrightnessFunction|BlurFunction|DropShadowFunction|HueRotateFunction;
47
48
 
48
- // FLEX
49
- type Flex = `${number}fr`;
50
-
51
49
  // FONT
52
50
 
53
51
  // type GenericFamily = "serif" | "sans-serif" | "monospace" | "cursive" | "fantasy" | "system-ui" | "ui-serif" | "ui-sans-serif" | "ui-monospace" | "ui-rounded" | "emoji" | "math" | "fangsong";
package/src/version.ts ADDED
@@ -0,0 +1,2 @@
1
+ /* GENERATED CONTENT */
2
+ export const VERSION = "6.0.9" as const;