@base-framework/base 3.0.192 → 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 +3 -3
- package/dist/types/shared/strings.d.ts +20 -19
- package/dist/types/shared/types.d.ts +19 -19
- package/package.json +1 -1
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Strings
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This will contain methods for working with strings.
|
|
5
5
|
*
|
|
6
6
|
* @module
|
|
7
7
|
* @name Strings
|
|
8
8
|
*/
|
|
9
9
|
export class Strings {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* This will limit the length of a string.
|
|
12
12
|
*
|
|
13
|
-
* @param {string} str
|
|
14
|
-
* @param {number} [maxLength
|
|
15
|
-
* @returns {string}
|
|
13
|
+
* @param {string} str
|
|
14
|
+
* @param {number} [maxLength]
|
|
15
|
+
* @returns {string}
|
|
16
16
|
*/
|
|
17
17
|
static limit(str: string, maxLength?: number): string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* This will parse a query string.
|
|
20
20
|
*
|
|
21
|
-
* @param {string} [str
|
|
22
|
-
*
|
|
23
|
-
* @
|
|
21
|
+
* @param {string} [str] The string to parse or the global
|
|
22
|
+
* location will be parsed.
|
|
23
|
+
* @param {boolean} [decode]
|
|
24
|
+
* @returns {object}
|
|
24
25
|
*/
|
|
25
26
|
static parseQueryString(str?: string, decode?: boolean): object;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* This will camelCase a string.
|
|
28
29
|
*
|
|
29
|
-
* @param {string} str
|
|
30
|
-
* @returns {string} The
|
|
30
|
+
* @param {string} str
|
|
31
|
+
* @returns {string} The string or false.
|
|
31
32
|
*/
|
|
32
33
|
static camelCase(str: string): string;
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* This will uncamel-case a string.
|
|
35
36
|
*
|
|
36
|
-
* @param {string} str
|
|
37
|
-
* @param {string} [delimiter
|
|
38
|
-
* @returns {string} The
|
|
37
|
+
* @param {string} str
|
|
38
|
+
* @param {string} [delimiter]
|
|
39
|
+
* @returns {string} The string.
|
|
39
40
|
*/
|
|
40
41
|
static uncamelCase(str: string, delimiter?: string): string;
|
|
41
42
|
/**
|
|
42
|
-
*
|
|
43
|
+
* This will title case a string.
|
|
43
44
|
*
|
|
44
|
-
* @param {string} str
|
|
45
|
-
* @returns {string} The
|
|
45
|
+
* @param {string} str
|
|
46
|
+
* @returns {string} The string.
|
|
46
47
|
*/
|
|
47
48
|
static titleCase(str: string): string;
|
|
48
49
|
}
|
|
@@ -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
|
}
|