uraniyum 1.1.5 → 1.1.6

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/tags.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import type { State } from "./state";
2
- type Attrs = Record<string, any>;
2
+ type Attrs = {
3
+ class?: string;
4
+ className?: string;
5
+ id?: string;
6
+ style?: string;
7
+ [key: string]: any;
8
+ };
3
9
  type Child = Node | string | number | boolean | null | undefined | State<any> | (() => any);
4
10
  type ChildLike = Child | ChildLike[];
5
11
  export declare const tags: Record<string, (attrsOrChild?: Attrs | ChildLike, ...children: ChildLike[]) => HTMLElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uraniyum",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "browser": "dist/index.min.js",
package/src/tags.ts CHANGED
@@ -5,7 +5,13 @@ function isState(x: any): x is State<any> {
5
5
  return x && typeof x === "object" && "subs" in x && "val" in x;
6
6
  }
7
7
 
8
- type Attrs = Record<string, any>;
8
+ type Attrs = {
9
+ class?: string;
10
+ className?: string;
11
+ id?: string;
12
+ style?: string;
13
+ [key: string]: any;
14
+ };
9
15
 
10
16
  type Child =
11
17
  | Node