dothtml-interfaces 0.1.0 → 0.1.2

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/README.md CHANGED
Binary file
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "dothtml-interfaces",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Dependency injection interfaces for DOTHtml.",
5
- "main": "src/index.d.ts",
6
- "types": "src/index.d.ts",
5
+ "main": "./src/index.d.ts",
6
+ "types": "./src/index.d.ts",
7
7
  "scripts": {},
8
8
  "author": "",
9
9
  "license": "ISC",
10
10
  "devDependencies": {
11
11
  "typescript": "^5.3.2"
12
- }
12
+ },
13
+ "exports": "./src/index.d.ts",
14
+ "files": [
15
+ "./src/**/*"
16
+ ]
13
17
  }
@@ -1,29 +0,0 @@
1
-
2
- import { IDotElement } from "./i-dot";
3
- import IDotCss from "./i-dot-css";
4
-
5
- export default interface IComponent {
6
- // Properties
7
- props: { [key: string]: any };
8
- bindings: { [key: string]: any };
9
- events: Array<string>;
10
- $refs: { [key: string]: HTMLElement };
11
- name: string;
12
-
13
- // Methods
14
- builder(...args: Array<any>): IDotElement;
15
- created(...args: Array<any>): void;
16
- ready(): void;
17
- deleting(): void;
18
- deleted(): void;
19
- built(): void;
20
- on(event: string, handler: Function): void;
21
- off(event: string, handler: Function): void;
22
- $updateStyles(): void;
23
-
24
- // Accessors
25
- readonly $el: HTMLElement;
26
-
27
- // Optional Method
28
- style?(css: IDotCss): void;
29
- }