@base-framework/base 3.0.219 → 3.0.220
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/types/main/events/event-methods.d.ts +11 -11
- package/dist/types/main/events/events.d.ts +20 -20
- package/dist/types/modules/animation/animation.d.ts +9 -9
- package/dist/types/modules/data-binder/sources/element-source.d.ts +2 -2
- package/dist/types/modules/date/date-time.d.ts +6 -6
- package/dist/types/modules/layout/directives/directives.d.ts +2 -2
- package/dist/types/shared/objects.d.ts +8 -8
- package/package.json +9 -2
|
@@ -9,7 +9,7 @@ export namespace EventMethods {
|
|
|
9
9
|
* @param {boolean} [capture]
|
|
10
10
|
* @returns {object}
|
|
11
11
|
*/
|
|
12
|
-
export function addListener(event: string, obj:
|
|
12
|
+
export function addListener(event: string, obj: object, fn: Function, capture?: boolean): object;
|
|
13
13
|
/**
|
|
14
14
|
* This will add an event to an object.
|
|
15
15
|
*
|
|
@@ -19,7 +19,7 @@ export namespace EventMethods {
|
|
|
19
19
|
* @param {boolean} [capture]
|
|
20
20
|
* @returns {object}
|
|
21
21
|
*/
|
|
22
|
-
export function on(event: string, obj:
|
|
22
|
+
export function on(event: string, obj: object, fn: Function, capture?: boolean): object;
|
|
23
23
|
/**
|
|
24
24
|
* This will remove an event from an object.
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ export namespace EventMethods {
|
|
|
29
29
|
* @param {boolean} [capture]
|
|
30
30
|
* @returns {object}
|
|
31
31
|
*/
|
|
32
|
-
export function off(event: string, obj:
|
|
32
|
+
export function off(event: string, obj: object, fn: Function, capture?: boolean): object;
|
|
33
33
|
/**
|
|
34
34
|
* This will remove an event from an object.
|
|
35
35
|
*
|
|
@@ -39,7 +39,7 @@ export namespace EventMethods {
|
|
|
39
39
|
* @param {boolean} [capture]
|
|
40
40
|
* @returns {object}
|
|
41
41
|
*/
|
|
42
|
-
export function removeListener(event: string, obj:
|
|
42
|
+
export function removeListener(event: string, obj: object, fn: Function, capture?: boolean): object;
|
|
43
43
|
/**
|
|
44
44
|
* This will create a custom event.
|
|
45
45
|
*
|
|
@@ -50,7 +50,7 @@ export namespace EventMethods {
|
|
|
50
50
|
* @param {object} [params]
|
|
51
51
|
* @returns {object}
|
|
52
52
|
*/
|
|
53
|
-
export function _createEvent(event:
|
|
53
|
+
export function _createEvent(event: object, eventType: string, settings?: object, params?: object): object;
|
|
54
54
|
/**
|
|
55
55
|
* This will create a custom event. This supports html, mouse,
|
|
56
56
|
* and customevents.
|
|
@@ -61,7 +61,7 @@ export namespace EventMethods {
|
|
|
61
61
|
* @param {object} [params]
|
|
62
62
|
* @returns {object}
|
|
63
63
|
*/
|
|
64
|
-
export function createEvent(event: string, obj:
|
|
64
|
+
export function createEvent(event: string, obj: object, options?: object, params?: object): object;
|
|
65
65
|
/**
|
|
66
66
|
* This will get thetype of an event.
|
|
67
67
|
*
|
|
@@ -78,7 +78,7 @@ export namespace EventMethods {
|
|
|
78
78
|
* @param {object} [params]
|
|
79
79
|
* @returns {object}
|
|
80
80
|
*/
|
|
81
|
-
export function trigger(event:
|
|
81
|
+
export function trigger(event: string | object, obj: object, params?: object): object;
|
|
82
82
|
export let mouseWheelEventType: any;
|
|
83
83
|
/**
|
|
84
84
|
* This will get the system mouse event.
|
|
@@ -96,7 +96,7 @@ export namespace EventMethods {
|
|
|
96
96
|
* @param {boolean} [capture]
|
|
97
97
|
* @returns {object} base object.
|
|
98
98
|
*/
|
|
99
|
-
export function onMouseWheel(callBackFn: Function, obj?:
|
|
99
|
+
export function onMouseWheel(callBackFn: Function, obj?: object, cancelDefault?: boolean, capture?: boolean): object;
|
|
100
100
|
/**
|
|
101
101
|
* This will remove a mouse event
|
|
102
102
|
*
|
|
@@ -105,20 +105,20 @@ export namespace EventMethods {
|
|
|
105
105
|
* @param {boolean} [capture]
|
|
106
106
|
* @returns {object} base object.
|
|
107
107
|
*/
|
|
108
|
-
export function offMouseWheel(callBackFn: Function, obj?:
|
|
108
|
+
export function offMouseWheel(callBackFn: Function, obj?: object, capture?: boolean): object;
|
|
109
109
|
/**
|
|
110
110
|
* This will prevent default on an event.
|
|
111
111
|
*
|
|
112
112
|
* @param {object} e
|
|
113
113
|
* @returns {object} base object.
|
|
114
114
|
*/
|
|
115
|
-
export function preventDefault(e:
|
|
115
|
+
export function preventDefault(e: object): object;
|
|
116
116
|
/**
|
|
117
117
|
* This will stop an event from propigating.
|
|
118
118
|
*
|
|
119
119
|
* @param {object} e
|
|
120
120
|
* @returns {object} base object.
|
|
121
121
|
*/
|
|
122
|
-
export function stopPropagation(e:
|
|
122
|
+
export function stopPropagation(e: object): object;
|
|
123
123
|
}
|
|
124
124
|
import { Events } from './events.js';
|
|
@@ -5,7 +5,7 @@ export namespace Events {
|
|
|
5
5
|
* @param {object} obj
|
|
6
6
|
* @returns {array}
|
|
7
7
|
*/
|
|
8
|
-
function getEvents(obj:
|
|
8
|
+
function getEvents(obj: object): any[];
|
|
9
9
|
/**
|
|
10
10
|
* This will create an object to use with the dataTracker.
|
|
11
11
|
*
|
|
@@ -17,7 +17,7 @@ export namespace Events {
|
|
|
17
17
|
* @param {function} [originalFn]
|
|
18
18
|
* @returns {object}
|
|
19
19
|
*/
|
|
20
|
-
function create(event: string, obj:
|
|
20
|
+
function create(event: string, obj: object, fn: Function, capture?: boolean, swapped?: boolean, originalFn?: Function): object;
|
|
21
21
|
/**
|
|
22
22
|
* This will add an event to an object.
|
|
23
23
|
*
|
|
@@ -27,7 +27,7 @@ export namespace Events {
|
|
|
27
27
|
* @param {boolean} [capture]
|
|
28
28
|
* @returns {object} The events object.
|
|
29
29
|
*/
|
|
30
|
-
function on(event: string | any[], obj:
|
|
30
|
+
function on(event: string | any[], obj: object, fn: Function, capture?: boolean): object;
|
|
31
31
|
/**
|
|
32
32
|
* This will remove an event from an object.
|
|
33
33
|
*
|
|
@@ -37,7 +37,7 @@ export namespace Events {
|
|
|
37
37
|
* @param {boolean} [capture]
|
|
38
38
|
* @returns {object} The events object.
|
|
39
39
|
*/
|
|
40
|
-
function off(event: string | any[], obj:
|
|
40
|
+
function off(event: string | any[], obj: object, fn: Function, capture?: boolean): object;
|
|
41
41
|
/**
|
|
42
42
|
* This will add an event to an object.
|
|
43
43
|
*
|
|
@@ -48,14 +48,14 @@ export namespace Events {
|
|
|
48
48
|
* @param {boolean} [swapped]
|
|
49
49
|
* @param {function} [originalFn]
|
|
50
50
|
*/
|
|
51
|
-
function add(event: string, obj:
|
|
51
|
+
function add(event: string, obj: object, fn: Function, capture?: object | boolean, swapped?: boolean, originalFn?: Function): {
|
|
52
52
|
/**
|
|
53
53
|
* This will get the events on an element.
|
|
54
54
|
*
|
|
55
55
|
* @param {object} obj
|
|
56
56
|
* @returns {array}
|
|
57
57
|
*/
|
|
58
|
-
getEvents(obj:
|
|
58
|
+
getEvents(obj: object): any[];
|
|
59
59
|
/**
|
|
60
60
|
* This will create an object to use with the dataTracker.
|
|
61
61
|
*
|
|
@@ -67,7 +67,7 @@ export namespace Events {
|
|
|
67
67
|
* @param {function} [originalFn]
|
|
68
68
|
* @returns {object}
|
|
69
69
|
*/
|
|
70
|
-
create(event: string, obj:
|
|
70
|
+
create(event: string, obj: object, fn: Function, capture?: boolean, swapped?: boolean, originalFn?: Function): object;
|
|
71
71
|
/**
|
|
72
72
|
* This will add an event to an object.
|
|
73
73
|
*
|
|
@@ -77,7 +77,7 @@ export namespace Events {
|
|
|
77
77
|
* @param {boolean} [capture]
|
|
78
78
|
* @returns {object} The events object.
|
|
79
79
|
*/
|
|
80
|
-
on(event: string | any[], obj:
|
|
80
|
+
on(event: string | any[], obj: object, fn: Function, capture?: boolean): object;
|
|
81
81
|
/**
|
|
82
82
|
* This will remove an event from an object.
|
|
83
83
|
*
|
|
@@ -87,8 +87,8 @@ export namespace Events {
|
|
|
87
87
|
* @param {boolean} [capture]
|
|
88
88
|
* @returns {object} The events object.
|
|
89
89
|
*/
|
|
90
|
-
off(event: string | any[], obj:
|
|
91
|
-
add(event: string, obj:
|
|
90
|
+
off(event: string | any[], obj: object, fn: Function, capture?: boolean): object;
|
|
91
|
+
add(event: string, obj: object, fn: Function, capture?: object | boolean, swapped?: boolean, originalFn?: Function): /*elided*/ any;
|
|
92
92
|
/**
|
|
93
93
|
* This will remove an event from an object.
|
|
94
94
|
*
|
|
@@ -98,13 +98,13 @@ export namespace Events {
|
|
|
98
98
|
* @param {object|boolean} [capture]
|
|
99
99
|
* @returns {object} a reference to the event object.
|
|
100
100
|
*/
|
|
101
|
-
remove(event: string, obj:
|
|
101
|
+
remove(event: string, obj: object, fn: Function, capture?: object | boolean): object;
|
|
102
102
|
/**
|
|
103
103
|
* This will remove an event listener.
|
|
104
104
|
* @param {object} listener
|
|
105
105
|
* @returns {object} a reference to the event object.
|
|
106
106
|
*/
|
|
107
|
-
removeEvent(listener:
|
|
107
|
+
removeEvent(listener: object): object;
|
|
108
108
|
/**
|
|
109
109
|
* This will search for an event.
|
|
110
110
|
*
|
|
@@ -115,7 +115,7 @@ export namespace Events {
|
|
|
115
115
|
* @param {boolean} [capture]
|
|
116
116
|
* @returns {object|boolean}
|
|
117
117
|
*/
|
|
118
|
-
getEvent(event: string, obj:
|
|
118
|
+
getEvent(event: string, obj: object, fn: Function, capture?: boolean): object | boolean;
|
|
119
119
|
/**
|
|
120
120
|
* This will search for an event from the object events.
|
|
121
121
|
*
|
|
@@ -123,14 +123,14 @@ export namespace Events {
|
|
|
123
123
|
* @param {array} events
|
|
124
124
|
* @returns {object|boolean}
|
|
125
125
|
*/
|
|
126
|
-
search(eventObj:
|
|
126
|
+
search(eventObj: object, events: any[]): object | boolean;
|
|
127
127
|
/**
|
|
128
128
|
* This will remove all events on an object.
|
|
129
129
|
*
|
|
130
130
|
* @param {object} obj
|
|
131
131
|
* @returns {object} a reference to the events object.
|
|
132
132
|
*/
|
|
133
|
-
removeEvents(obj:
|
|
133
|
+
removeEvents(obj: object): object;
|
|
134
134
|
/**
|
|
135
135
|
* @member {array} swap The swappable events.
|
|
136
136
|
*/
|
|
@@ -158,13 +158,13 @@ export namespace Events {
|
|
|
158
158
|
* @param {object|boolean} [capture]
|
|
159
159
|
* @returns {object} a reference to the event object.
|
|
160
160
|
*/
|
|
161
|
-
function remove(event: string, obj:
|
|
161
|
+
function remove(event: string, obj: object, fn: Function, capture?: object | boolean): object;
|
|
162
162
|
/**
|
|
163
163
|
* This will remove an event listener.
|
|
164
164
|
* @param {object} listener
|
|
165
165
|
* @returns {object} a reference to the event object.
|
|
166
166
|
*/
|
|
167
|
-
function removeEvent(listener:
|
|
167
|
+
function removeEvent(listener: object): object;
|
|
168
168
|
/**
|
|
169
169
|
* This will search for an event.
|
|
170
170
|
*
|
|
@@ -175,7 +175,7 @@ export namespace Events {
|
|
|
175
175
|
* @param {boolean} [capture]
|
|
176
176
|
* @returns {object|boolean}
|
|
177
177
|
*/
|
|
178
|
-
function getEvent(event: string, obj:
|
|
178
|
+
function getEvent(event: string, obj: object, fn: Function, capture?: boolean): object | boolean;
|
|
179
179
|
/**
|
|
180
180
|
* This will search for an event from the object events.
|
|
181
181
|
*
|
|
@@ -183,14 +183,14 @@ export namespace Events {
|
|
|
183
183
|
* @param {array} events
|
|
184
184
|
* @returns {object|boolean}
|
|
185
185
|
*/
|
|
186
|
-
function search(eventObj:
|
|
186
|
+
function search(eventObj: object, events: any[]): object | boolean;
|
|
187
187
|
/**
|
|
188
188
|
* This will remove all events on an object.
|
|
189
189
|
*
|
|
190
190
|
* @param {object} obj
|
|
191
191
|
* @returns {object} a reference to the events object.
|
|
192
192
|
*/
|
|
193
|
-
function removeEvents(obj:
|
|
193
|
+
function removeEvents(obj: object): object;
|
|
194
194
|
let swap: string[];
|
|
195
195
|
/**
|
|
196
196
|
* This will a event type to the swappable array.
|
|
@@ -8,30 +8,30 @@ export namespace animate {
|
|
|
8
8
|
* @param {string} className
|
|
9
9
|
* @param {number} timer
|
|
10
10
|
*/
|
|
11
|
-
function add(object:
|
|
11
|
+
function add(object: object, className: string, timer: number): void;
|
|
12
12
|
/**
|
|
13
13
|
* This will remove an animation from an element.
|
|
14
14
|
*
|
|
15
15
|
* @param {object} object
|
|
16
16
|
* @param {string|number} removeClass
|
|
17
17
|
*/
|
|
18
|
-
function remove(object:
|
|
18
|
+
function remove(object: object, removeClass: string | number): void;
|
|
19
19
|
/**
|
|
20
20
|
* This will stop an animation timer.
|
|
21
21
|
* @param {object} animation
|
|
22
22
|
*/
|
|
23
|
-
function stopTimer(animation:
|
|
23
|
+
function stopTimer(animation: object): void;
|
|
24
24
|
/**
|
|
25
25
|
* This will check if the element is animating.
|
|
26
26
|
* @param {object} obj
|
|
27
27
|
* @returns {array}
|
|
28
28
|
*/
|
|
29
|
-
function checkAnimating(obj:
|
|
29
|
+
function checkAnimating(obj: object): any[];
|
|
30
30
|
/**
|
|
31
31
|
* This will stop previous animations still animating.
|
|
32
32
|
* @param {object} obj
|
|
33
33
|
*/
|
|
34
|
-
function stopPreviousAnimations(obj:
|
|
34
|
+
function stopPreviousAnimations(obj: object): void;
|
|
35
35
|
/**
|
|
36
36
|
* This will reset the objects.
|
|
37
37
|
*/
|
|
@@ -47,7 +47,7 @@ export namespace animate {
|
|
|
47
47
|
* @param {function} endCallBack
|
|
48
48
|
* @returns {void}
|
|
49
49
|
*/
|
|
50
|
-
function create(obj:
|
|
50
|
+
function create(obj: object, animationClass: string, duration: number, callBack: Function, endCallBack: Function): void;
|
|
51
51
|
/**
|
|
52
52
|
* This will add an animation then hide the element.
|
|
53
53
|
*
|
|
@@ -57,7 +57,7 @@ export namespace animate {
|
|
|
57
57
|
* @param {function} endCallBack
|
|
58
58
|
* @returns {void}
|
|
59
59
|
*/
|
|
60
|
-
function hide(object:
|
|
60
|
+
function hide(object: object, animationClass: string, duration: number, endCallBack: Function): void;
|
|
61
61
|
/**
|
|
62
62
|
* This will add an animation then show the element.
|
|
63
63
|
*
|
|
@@ -66,7 +66,7 @@ export namespace animate {
|
|
|
66
66
|
* @param {number} duration
|
|
67
67
|
* @param {function} endCallBack
|
|
68
68
|
*/
|
|
69
|
-
function show(object:
|
|
69
|
+
function show(object: object, animationClass: string, duration: number, endCallBack: Function): void;
|
|
70
70
|
/**
|
|
71
71
|
* This will add an animation to the element.
|
|
72
72
|
*
|
|
@@ -75,5 +75,5 @@ export namespace animate {
|
|
|
75
75
|
* @param {number} duration
|
|
76
76
|
* @param {function} endCallBack
|
|
77
77
|
*/
|
|
78
|
-
function set(object:
|
|
78
|
+
function set(object: object, animationClass: string, duration: number, endCallBack: Function): void;
|
|
79
79
|
}
|
|
@@ -40,8 +40,8 @@ export class ElementSource extends TwoWaySource {
|
|
|
40
40
|
* @returns {object}
|
|
41
41
|
*/
|
|
42
42
|
private addSetMethod;
|
|
43
|
-
setValue: ((element:
|
|
44
|
-
getValue: ((element:
|
|
43
|
+
setValue: ((element: object, attr: string, value: any) => void) | ((element: object, attr: string, value: any) => void) | ((element: object, attr: string, value: any) => void) | ((element: object, attr: string, value: any) => void);
|
|
44
|
+
getValue: ((element: object, attr: string) => any) | ((element: object, attr: string) => any);
|
|
45
45
|
/**
|
|
46
46
|
* This will get the bind attribute.
|
|
47
47
|
*
|
|
@@ -8,7 +8,7 @@ export namespace DateTime {
|
|
|
8
8
|
* @param {boolean} [shortenName=false]
|
|
9
9
|
* @returns {?string}
|
|
10
10
|
*/
|
|
11
|
-
function getDayName(day?: number, shortenName?: boolean): string;
|
|
11
|
+
function getDayName(day?: number, shortenName?: boolean): string | null;
|
|
12
12
|
/**
|
|
13
13
|
* This will convert month to js.
|
|
14
14
|
*
|
|
@@ -60,14 +60,14 @@ export namespace DateTime {
|
|
|
60
60
|
* @param {number|string} hours
|
|
61
61
|
* @returns {string}
|
|
62
62
|
*/
|
|
63
|
-
function getMeridian(hours:
|
|
63
|
+
function getMeridian(hours: number | string): string;
|
|
64
64
|
/**
|
|
65
65
|
* This will convert 24 hour time to 12 hour time.
|
|
66
66
|
*
|
|
67
67
|
* @param {number|string} hours
|
|
68
68
|
* @returns {number}
|
|
69
69
|
*/
|
|
70
|
-
function convert24To12(hours:
|
|
70
|
+
function convert24To12(hours: number | string): number;
|
|
71
71
|
/**
|
|
72
72
|
* This will convert 12 hour time to 24 hour time.
|
|
73
73
|
*
|
|
@@ -75,7 +75,7 @@ export namespace DateTime {
|
|
|
75
75
|
* @param {string} meridian
|
|
76
76
|
* @returns {number}
|
|
77
77
|
*/
|
|
78
|
-
function convert12To24(hours:
|
|
78
|
+
function convert12To24(hours: number | string, meridian: string): number;
|
|
79
79
|
/**
|
|
80
80
|
* This will render a date.
|
|
81
81
|
*
|
|
@@ -85,7 +85,7 @@ export namespace DateTime {
|
|
|
85
85
|
* @param {string} [format='sql']
|
|
86
86
|
* @returns {string}
|
|
87
87
|
*/
|
|
88
|
-
function renderDate(year: number, month:
|
|
88
|
+
function renderDate(year: number, month: number | string, day: number | string, format?: string): string;
|
|
89
89
|
/**
|
|
90
90
|
* This will render time.
|
|
91
91
|
*
|
|
@@ -221,5 +221,5 @@ export namespace DateTime {
|
|
|
221
221
|
* @param {string} endDate
|
|
222
222
|
* @returns {object}
|
|
223
223
|
*/
|
|
224
|
-
function getDifference(startDate: string, endDate: string):
|
|
224
|
+
function getDifference(startDate: string, endDate: string): object;
|
|
225
225
|
}
|
|
@@ -8,14 +8,14 @@ export namespace Directives {
|
|
|
8
8
|
* @param {function} callBack
|
|
9
9
|
* @returns {object}
|
|
10
10
|
*/
|
|
11
|
-
function add(name: string, callBack: Function):
|
|
11
|
+
function add(name: string, callBack: Function): object;
|
|
12
12
|
/**
|
|
13
13
|
* This will get a directive.
|
|
14
14
|
*
|
|
15
15
|
* @param {string} name
|
|
16
16
|
* @returns {object|null}
|
|
17
17
|
*/
|
|
18
|
-
function get(name: string):
|
|
18
|
+
function get(name: string): object | null;
|
|
19
19
|
/**
|
|
20
20
|
* This will get all directive names.
|
|
21
21
|
*
|
|
@@ -5,7 +5,7 @@ export namespace Objects {
|
|
|
5
5
|
* @param {object} [prototype] - The prototype object to extend from.
|
|
6
6
|
* @returns {object} The newly created object.
|
|
7
7
|
*/
|
|
8
|
-
function create(prototype?:
|
|
8
|
+
function create(prototype?: object): object;
|
|
9
9
|
/**
|
|
10
10
|
* Extends properties from the source object to the target object.
|
|
11
11
|
* Only copies properties that are not already defined on the target object.
|
|
@@ -14,21 +14,21 @@ export namespace Objects {
|
|
|
14
14
|
* @param {object} targetObj - The target object to extend.
|
|
15
15
|
* @returns {object|false} The extended target object or false if invalid.
|
|
16
16
|
*/
|
|
17
|
-
function extendObject(sourceObj:
|
|
17
|
+
function extendObject(sourceObj: object, targetObj: object): object | false;
|
|
18
18
|
/**
|
|
19
19
|
* Deep clones an object in a safe and scalable manner.
|
|
20
20
|
*
|
|
21
21
|
* @param {object} obj - The object to clone.
|
|
22
22
|
* @returns {object} A deep clone of the object.
|
|
23
23
|
*/
|
|
24
|
-
function clone(obj:
|
|
24
|
+
function clone(obj: object): object;
|
|
25
25
|
/**
|
|
26
26
|
* Retrieves the prototype of a class or object.
|
|
27
27
|
*
|
|
28
28
|
* @param {function|object} entity - The class or object.
|
|
29
29
|
* @returns {object} The prototype of the entity.
|
|
30
30
|
*/
|
|
31
|
-
function getClassObject(entity:
|
|
31
|
+
function getClassObject(entity: Function | object): object;
|
|
32
32
|
/**
|
|
33
33
|
* Extends a class or object with the properties of another class or object.
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ export namespace Objects {
|
|
|
36
36
|
* @param {function|object} targetClass - The target class or object.
|
|
37
37
|
* @returns {object|false} The resulting extended object or false if invalid.
|
|
38
38
|
*/
|
|
39
|
-
function extendClass(sourceClass:
|
|
39
|
+
function extendClass(sourceClass: Function | object, targetClass: Function | object): object | false;
|
|
40
40
|
/**
|
|
41
41
|
* Checks if an object has a specific property.
|
|
42
42
|
*
|
|
@@ -44,19 +44,19 @@ export namespace Objects {
|
|
|
44
44
|
* @param {string} prop - The property to check for.
|
|
45
45
|
* @returns {boolean} True if the object has the property.
|
|
46
46
|
*/
|
|
47
|
-
function hasOwnProp(obj:
|
|
47
|
+
function hasOwnProp(obj: object, prop: string): boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Determines if a value is a plain object.
|
|
50
50
|
*
|
|
51
51
|
* @param {object} obj - The value to check.
|
|
52
52
|
* @returns {boolean} True if the value is a plain object.
|
|
53
53
|
*/
|
|
54
|
-
function isPlainObject(obj:
|
|
54
|
+
function isPlainObject(obj: object): boolean;
|
|
55
55
|
/**
|
|
56
56
|
* Checks if an object is empty.
|
|
57
57
|
*
|
|
58
58
|
* @param {object} obj - The object to check.
|
|
59
59
|
* @returns {boolean} True if the object has no own properties.
|
|
60
60
|
*/
|
|
61
|
-
function isEmpty(obj:
|
|
61
|
+
function isEmpty(obj: object): boolean;
|
|
62
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base-framework/base",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.220",
|
|
4
4
|
"description": "This is a javascript framework.",
|
|
5
5
|
"main": "./dist/base.js",
|
|
6
6
|
"type": "module",
|
|
@@ -29,9 +29,16 @@
|
|
|
29
29
|
},
|
|
30
30
|
"types": "dist/types/base.d.ts",
|
|
31
31
|
"files": [
|
|
32
|
-
"
|
|
32
|
+
"package.json",
|
|
33
33
|
"readme.md",
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
|
+
"exports": {
|
|
37
|
+
"./package.json": "./package.json",
|
|
38
|
+
".": {
|
|
39
|
+
"import": "./dist/base.js",
|
|
40
|
+
"require": "./dist/base.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
36
43
|
"homepage": "https://github.com/chrisdurfee/base#readme"
|
|
37
44
|
}
|