@base-framework/base 3.0.112 → 3.0.114

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.
@@ -1,23 +1,9 @@
1
- export namespace TrackerTypes {
2
- let types: {};
3
- /**
4
- * This will add a type.
5
- * @param {string} type
6
- * @param {function} callBack The function to call when an object
7
- * is having the type removed.
8
- * @returns {void}
9
- */
10
- function add(type: string, callBack: Function): void;
11
- /**
12
- * This will get a type or return false.
13
- * @param {string} type
14
- * @returns {(Function|false)} The callBack or false.
15
- */
16
- function get(type: string): false | Function;
17
- /**
18
- * This will remove a type.
19
- * @param {string} type
20
- * @returns {void}
21
- */
22
- function remove(type: string): void;
23
- }
1
+ /**
2
+ * TrackerTypes
3
+ *
4
+ * This will add and remove tracker types to the data tracker.
5
+ *
6
+ * @type {object} TrackerTypes
7
+ *
8
+ */
9
+ export const TrackerTypes: object;
@@ -10,11 +10,25 @@ export class HtmlToString {
10
10
  * This will create a node string.
11
11
  *
12
12
  * @param {string} tag
13
- * @param {object} attrs
13
+ * @param {array} attrs
14
14
  * @param {string} children
15
15
  * @returns {string}
16
16
  */
17
- static create(tag: string, attrs?: object, children?: string): string;
17
+ static create(tag: string, attrs?: any[], children?: string): string;
18
+ /**
19
+ * This will get the inner content.
20
+ *
21
+ * @param {object} attrs
22
+ * @returns {string}
23
+ */
24
+ static getInnerContent(attrs: object): string;
25
+ /**
26
+ * This will get the inner html.
27
+ *
28
+ * @param {object} attrs
29
+ * @returns {string}
30
+ */
31
+ static getInnerHtml(attrs: object): string;
18
32
  /**
19
33
  * This will create a text node.
20
34
  *
@@ -27,7 +27,7 @@ export class Strings {
27
27
  * This will uncamel-case a string.
28
28
  *
29
29
  * @param {string} str
30
- * @param {string} delimiter
30
+ * @param {string} [delimiter]
31
31
  * @returns {string} The string.
32
32
  */
33
33
  static uncamelCase(str: string, delimiter?: string): string;
@@ -24,24 +24,24 @@ export class Types {
24
24
  /**
25
25
  * This will check if the request is an object.
26
26
  *
27
- * @param {object} obj
27
+ * @param {*} data
28
28
  * @returns {boolean}
29
29
  */
30
- static isObject(obj: object): boolean;
30
+ static isObject(data: any): boolean;
31
31
  /**
32
- * This will check if the request is an object.
32
+ * This will check if the request is a function.
33
33
  *
34
- * @param {object} obj
34
+ * @param {*} data
35
35
  * @returns {boolean}
36
36
  */
37
- static isFunction(obj: object): boolean;
37
+ static isFunction(data: any): boolean;
38
38
  /**
39
- * This will check if the request is an object.
39
+ * This will check if the request is a string.
40
40
  *
41
- * @param {object} obj
41
+ * @param {*} data
42
42
  * @returns {boolean}
43
43
  */
44
- static isString(obj: object): boolean;
44
+ static isString(data: any): boolean;
45
45
  /**
46
46
  * This will check if the data is an array.
47
47
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.0.112",
3
+ "version": "3.0.114",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",