dothtml-interfaces 1.0.0 → 6.0.4

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.
Files changed (2) hide show
  1. package/package.json +11 -2
  2. package/src/i-dot.ts +2 -3
package/package.json CHANGED
@@ -1,12 +1,21 @@
1
1
  {
2
2
  "name": "dothtml-interfaces",
3
- "version": "1.0.0",
3
+ "version": "6.0.4",
4
4
  "description": "Dependency injection interfaces for DOTHtml.",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
7
7
  "scripts": {},
8
- "author": "",
8
+ "author": "Joshua Sideris",
9
9
  "license": "ISC",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/JSideris/DOThtml.git",
13
+ "directory": "packages/interfaces"
14
+ },
15
+ "homepage": "https://dothtml.org/",
16
+ "bugs": {
17
+ "url": "https://github.com/JSideris/DOThtml/issues"
18
+ },
10
19
  "devDependencies": {
11
20
  "typescript": "^5.3.2"
12
21
  },
package/src/i-dot.ts CHANGED
@@ -37,9 +37,9 @@ export interface IDotDocument {
37
37
  /**
38
38
  * Cast any document to any other element type. This can be used to access attributes when dotHTML doesn't know the type.
39
39
  * @example
40
- * dot("#my-input").as(dot.input).value("Hello, world!")
40
+ * dot("#my-input").as(dot.input).attr("value", "Hello, world!")
41
41
  * @example
42
- * dot.h("<a>Click me!</a>").as(dot.a).hRef("https://dothtml.com/")
42
+ * dot.h("<a>Click me!</a>").as(dot.a).attr("href", "https://dothtml.com/")
43
43
  */
44
44
  as<T extends IDotDocument>(dotElement: (...props: any[]) => T): T;
45
45
  /**
@@ -87,7 +87,6 @@ export interface IDotDocument {
87
87
  remove(): void;
88
88
 
89
89
  style(c: string | ISignal<any> | IBinding<any, any> | IDotCss | ((s: IDotCss) => void)): this;
90
- class(name: string, condition?: any): this;
91
90
  attr(name: string, value: any): this;
92
91
  on(event: string, callback: (e: any) => void): this;
93
92
  onEnter(callback: (el: HTMLElement) => void): this;