@base-framework/base 3.0.227 → 3.0.228

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.
@@ -19,6 +19,13 @@
19
19
  * }
20
20
  */
21
21
  export class Component extends Unit {
22
+ /**
23
+ * This will create a component.
24
+ *
25
+ * @constructor
26
+ * @param {array} args
27
+ */
28
+ constructor(...args: any[]);
22
29
  /**
23
30
  * @param {boolean} isComponent
24
31
  */
@@ -22,9 +22,78 @@ export class Unit {
22
22
  * This will create a unit.
23
23
  *
24
24
  * @constructor
25
- * @param {array} args
25
+ * @overload
26
+ * @param {object} props
27
+ * @param {Array<object>} [children=[]] - An array of children
28
+ *
29
+ * @overload
30
+ * @param {Array<object>} [children=[]] - An array of children
31
+ *
32
+ * @overload
33
+ * @param {string} [children] - A child string
34
+ *
35
+ * @overload
36
+ * @param {object} props
37
+ * @param {string} [children] - A child string
38
+ */
39
+ constructor(props: object, children?: Array<object>);
40
+ /**
41
+ * This will create a unit.
42
+ *
43
+ * @constructor
44
+ * @overload
45
+ * @param {object} props
46
+ * @param {Array<object>} [children=[]] - An array of children
47
+ *
48
+ * @overload
49
+ * @param {Array<object>} [children=[]] - An array of children
50
+ *
51
+ * @overload
52
+ * @param {string} [children] - A child string
53
+ *
54
+ * @overload
55
+ * @param {object} props
56
+ * @param {string} [children] - A child string
57
+ */
58
+ constructor(children?: Array<object>);
59
+ /**
60
+ * This will create a unit.
61
+ *
62
+ * @constructor
63
+ * @overload
64
+ * @param {object} props
65
+ * @param {Array<object>} [children=[]] - An array of children
66
+ *
67
+ * @overload
68
+ * @param {Array<object>} [children=[]] - An array of children
69
+ *
70
+ * @overload
71
+ * @param {string} [children] - A child string
72
+ *
73
+ * @overload
74
+ * @param {object} props
75
+ * @param {string} [children] - A child string
76
+ */
77
+ constructor(children?: string);
78
+ /**
79
+ * This will create a unit.
80
+ *
81
+ * @constructor
82
+ * @overload
83
+ * @param {object} props
84
+ * @param {Array<object>} [children=[]] - An array of children
85
+ *
86
+ * @overload
87
+ * @param {Array<object>} [children=[]] - An array of children
88
+ *
89
+ * @overload
90
+ * @param {string} [children] - A child string
91
+ *
92
+ * @overload
93
+ * @param {object} props
94
+ * @param {string} [children] - A child string
26
95
  */
27
- constructor(...args: any[]);
96
+ constructor(props: object, children?: string);
28
97
  /**
29
98
  * @member {boolean} isUnit
30
99
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.0.227",
3
+ "version": "3.0.228",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",