@base-framework/base 3.0.191 → 3.0.193
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/base.js +1 -1
- package/dist/base.js.map +2 -2
- package/dist/types/shared/types.d.ts +19 -19
- package/package.json +1 -1
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Types
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Utility class for working with variable types.
|
|
5
5
|
*
|
|
6
6
|
* @module
|
|
7
7
|
* @name Types
|
|
8
8
|
*/
|
|
9
9
|
export class Types {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Gets the type of a variable.
|
|
12
12
|
*
|
|
13
|
-
* @param {*} data
|
|
14
|
-
* @returns {string}
|
|
13
|
+
* @param {*} data - The data whose type is to be determined.
|
|
14
|
+
* @returns {string} The type of the variable ('undefined', 'object', 'function', 'array', etc.).
|
|
15
15
|
*/
|
|
16
16
|
static getType(data: any): string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Checks if a value is undefined.
|
|
19
19
|
*
|
|
20
|
-
* @param {*} data
|
|
21
|
-
* @returns {boolean}
|
|
20
|
+
* @param {*} data - The data to check.
|
|
21
|
+
* @returns {boolean} True if the data is undefined.
|
|
22
22
|
*/
|
|
23
23
|
static isUndefined(data: any): boolean;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Checks if a value is an object (excluding arrays).
|
|
26
26
|
*
|
|
27
|
-
* @param {*} data
|
|
28
|
-
* @returns {boolean}
|
|
27
|
+
* @param {*} data - The data to check.
|
|
28
|
+
* @returns {boolean} True if the data is a plain object.
|
|
29
29
|
*/
|
|
30
30
|
static isObject(data: any): boolean;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Checks if a value is a function.
|
|
33
33
|
*
|
|
34
|
-
* @param {*} data
|
|
35
|
-
* @returns {boolean}
|
|
34
|
+
* @param {*} data - The data to check.
|
|
35
|
+
* @returns {boolean} True if the data is a function.
|
|
36
36
|
*/
|
|
37
37
|
static isFunction(data: any): boolean;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Checks if a value is a string.
|
|
40
40
|
*
|
|
41
|
-
* @param {*} data
|
|
42
|
-
* @returns {boolean}
|
|
41
|
+
* @param {*} data - The data to check.
|
|
42
|
+
* @returns {boolean} True if the data is a string.
|
|
43
43
|
*/
|
|
44
44
|
static isString(data: any): boolean;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Checks if a value is an array.
|
|
47
47
|
*
|
|
48
|
-
* @param {*} data
|
|
49
|
-
* @returns {boolean}
|
|
48
|
+
* @param {*} data - The data to check.
|
|
49
|
+
* @returns {boolean} True if the data is an array.
|
|
50
50
|
*/
|
|
51
51
|
static isArray(data: any): boolean;
|
|
52
52
|
}
|