1 | /**
|
2 | * A function that checks if something is a valid string.
|
3 | * @param value The value which will be checked.
|
4 | * Returns true if value is a string.
|
5 | */
|
6 | export function isString(value: any): boolean;
|
7 |
|
8 | /**
|
9 | * A function that checks if something is a valid number.
|
10 | * @param value The value which will be checked.
|
11 | * Returns true if value is a number.
|
12 | */
|
13 | export function isNumber(value: any): boolean;
|
14 |
|
15 | /**
|
16 | * A function that checks if something is a valid boolean.
|
17 | * @param value The value which will be checked.
|
18 | * Returns true if value is a boolean.
|
19 | */
|
20 | export function isBoolean(value: any): boolean;
|
21 |
|
22 | /**
|
23 | * A function that checks if something is a function.
|
24 | * @param value The value which will be checked.
|
25 | * Returns true if value is a function.
|
26 | */
|
27 | export function isFunction(value: any): boolean;
|
28 |
|
29 | /**
|
30 | * A function that checks if something is an object.
|
31 | * @param value The value which will be checked.
|
32 | * Returns true if value is an object.
|
33 | */
|
34 | export function isObject(value: any): boolean;
|
35 |
|
36 | /**
|
37 | * A function that checks if something is "undefined".
|
38 | * @param value The value which will be checked.
|
39 | * Returns true if value is "undefined".
|
40 | */
|
41 | export function isUndefined(value: any): boolean;
|
42 |
|
43 | /**
|
44 | * A function that checks if something is defined (not undefined).
|
45 | * @param value The value which will be checked.
|
46 | * Returns true if value is defined.
|
47 | */
|
48 | export function isDefined(value: any): boolean;
|
49 |
|
50 | /**
|
51 | * A function that checks if something is not defined (null or undefined).
|
52 | * @param value The value which will be checked.
|
53 | * Returns true if value is null or undefined.
|
54 | */
|
55 | export function isNullOrUndefined(value: any): boolean;
|
56 |
|
57 | /**
|
58 | * A function that checks if something is a valid function.
|
59 | * @param value The value which will be checked.
|
60 | * Throws exception if passed value is not a valid function.
|
61 | */
|
62 | export function verifyCallback(value: any): void;
|
63 |
|
64 | /**
|
65 | * Checks if the number has decimals
|
66 | * @param value Number to check
|
67 | */
|
68 | export function numberHasDecimals(value: number): boolean;
|
69 |
|
70 | /**
|
71 | * Checks if the number is 64 bit
|
72 | * @param value Number to check
|
73 | */
|
74 | export function numberIs64Bit(value: number): boolean;
|
75 |
|
76 | /**
|
77 | * A function that gets the class name of an object.
|
78 | * @param object The object.
|
79 | * Returns a string with the name of the class.
|
80 | */
|
81 | export function getClass(object): string;
|
82 |
|
83 | /**
|
84 | * A function that gets the entire class hierarchy of an object.
|
85 | * @param object The object.
|
86 | * Returns an array of strings with the name of all base classes.
|
87 | */
|
88 | export function getBaseClasses(object): Array<string>;
|
89 |
|
90 | /**
|
91 | * A function that gets the ClassInfo for an object.
|
92 | * @param object The object.
|
93 | * Returns a ClassInfo for the object.
|
94 | */
|
95 | export function getClassInfo(object: Object): ClassInfo;
|
96 |
|
97 | /**
|
98 | * A Class holding information about a class
|
99 | */
|
100 | export class ClassInfo {
|
101 | /**
|
102 | * Gets the name of the class.
|
103 | */
|
104 | name: string;
|
105 |
|
106 | /**
|
107 | * Gets the ClassInfo for the base class of the current info.
|
108 | */
|
109 | baseClassInfo: ClassInfo;
|
110 | }
|
111 |
|
112 | /**
|
113 | * Returns a string representation of an object to be shown in UI.
|
114 | * @param object The object.
|
115 | */
|
116 | export function toUIString(object): string;
|