@tspro/ts-utils-lib 1.1.0 → 1.3.0
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/CHANGELOG.md +8 -0
- package/dist/index.d.mts +119 -72
- package/dist/index.d.ts +119 -72
- package/dist/index.js +130 -30
- package/dist/index.mjs +130 -30
- package/package.json +12 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function isArray<T>(a: T[] | unknown): a is T[];
|
|
1
|
+
declare function isArray$1<T>(a: T[] | unknown): a is T[];
|
|
2
2
|
declare function toArray<T>(a: T | T[]): Array<T>;
|
|
3
3
|
declare function duplicate<T>(a: T[] | undefined): T[] | undefined;
|
|
4
4
|
declare function removeDuplicates<T>(a: T[]): T[];
|
|
@@ -11,20 +11,19 @@ declare function getRangeArray(start: number, end: number): number[];
|
|
|
11
11
|
declare function arrayContains<T extends unknown>(arg: T[], item: T): boolean;
|
|
12
12
|
declare function chunckArray<A>(arr: ReadonlyArray<A>, chunckSize: number): A[][];
|
|
13
13
|
|
|
14
|
-
declare const index$
|
|
15
|
-
declare const index$
|
|
16
|
-
declare const index$
|
|
17
|
-
declare const index$
|
|
18
|
-
declare const index$
|
|
19
|
-
declare const index$
|
|
20
|
-
declare const index$
|
|
21
|
-
declare const index$
|
|
22
|
-
declare const index$
|
|
23
|
-
declare const index$
|
|
24
|
-
declare const index$
|
|
25
|
-
declare
|
|
26
|
-
|
|
27
|
-
export { index$6_arrayContains as arrayContains, index$6_chunckArray as chunckArray, index$6_duplicate as duplicate, index$6_fillArray as fillArray, index$6_getRangeArray as getRangeArray, index$6_getSequenceArray as getSequenceArray, index$6_isArray as isArray, index$6_mapRangeArray as mapRangeArray, index$6_mapSequenceArray as mapSequenceArray, index$6_removeDuplicates as removeDuplicates, index$6_removeDuplicatesCmp as removeDuplicatesCmp, index$6_toArray as toArray };
|
|
14
|
+
declare const index$8_arrayContains: typeof arrayContains;
|
|
15
|
+
declare const index$8_chunckArray: typeof chunckArray;
|
|
16
|
+
declare const index$8_duplicate: typeof duplicate;
|
|
17
|
+
declare const index$8_fillArray: typeof fillArray;
|
|
18
|
+
declare const index$8_getRangeArray: typeof getRangeArray;
|
|
19
|
+
declare const index$8_getSequenceArray: typeof getSequenceArray;
|
|
20
|
+
declare const index$8_mapRangeArray: typeof mapRangeArray;
|
|
21
|
+
declare const index$8_mapSequenceArray: typeof mapSequenceArray;
|
|
22
|
+
declare const index$8_removeDuplicates: typeof removeDuplicates;
|
|
23
|
+
declare const index$8_removeDuplicatesCmp: typeof removeDuplicatesCmp;
|
|
24
|
+
declare const index$8_toArray: typeof toArray;
|
|
25
|
+
declare namespace index$8 {
|
|
26
|
+
export { index$8_arrayContains as arrayContains, index$8_chunckArray as chunckArray, index$8_duplicate as duplicate, index$8_fillArray as fillArray, index$8_getRangeArray as getRangeArray, index$8_getSequenceArray as getSequenceArray, isArray$1 as isArray, index$8_mapRangeArray as mapRangeArray, index$8_mapSequenceArray as mapSequenceArray, index$8_removeDuplicates as removeDuplicates, index$8_removeDuplicatesCmp as removeDuplicatesCmp, index$8_toArray as toArray };
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
interface CSSProperties {
|
|
@@ -73,28 +72,28 @@ declare function getDimension(style?: CSSProperties): {
|
|
|
73
72
|
declare function styleLayoutChanged(style1?: CSSProperties, style2?: CSSProperties): boolean;
|
|
74
73
|
declare function getCanvasTextWidth(text: string, font: string): number;
|
|
75
74
|
|
|
76
|
-
type index$
|
|
77
|
-
declare const index$
|
|
78
|
-
declare const index$
|
|
79
|
-
declare const index$
|
|
80
|
-
declare const index$
|
|
81
|
-
declare const index$
|
|
82
|
-
declare const index$
|
|
83
|
-
declare const index$
|
|
84
|
-
declare const index$
|
|
85
|
-
declare const index$
|
|
86
|
-
declare const index$
|
|
87
|
-
declare const index$
|
|
88
|
-
declare const index$
|
|
89
|
-
declare const index$
|
|
90
|
-
declare const index$
|
|
91
|
-
declare const index$
|
|
92
|
-
declare const index$
|
|
93
|
-
declare const index$
|
|
94
|
-
declare const index$
|
|
95
|
-
declare const index$
|
|
96
|
-
declare namespace index$
|
|
97
|
-
export { type index$
|
|
75
|
+
type index$7_CSSProperties = CSSProperties;
|
|
76
|
+
declare const index$7_addClass: typeof addClass;
|
|
77
|
+
declare const index$7_appendTo: typeof appendTo;
|
|
78
|
+
declare const index$7_getButton: typeof getButton;
|
|
79
|
+
declare const index$7_getCanvas: typeof getCanvas;
|
|
80
|
+
declare const index$7_getCanvasTextWidth: typeof getCanvasTextWidth;
|
|
81
|
+
declare const index$7_getDimension: typeof getDimension;
|
|
82
|
+
declare const index$7_getHeight: typeof getHeight;
|
|
83
|
+
declare const index$7_getOffset: typeof getOffset;
|
|
84
|
+
declare const index$7_getPadding: typeof getPadding;
|
|
85
|
+
declare const index$7_getWidth: typeof getWidth;
|
|
86
|
+
declare const index$7_hasClass: typeof hasClass;
|
|
87
|
+
declare const index$7_removeClass: typeof removeClass;
|
|
88
|
+
declare const index$7_removeFromParent: typeof removeFromParent;
|
|
89
|
+
declare const index$7_setHeight: typeof setHeight;
|
|
90
|
+
declare const index$7_setOffset: typeof setOffset;
|
|
91
|
+
declare const index$7_setRect: typeof setRect;
|
|
92
|
+
declare const index$7_setVisibility: typeof setVisibility;
|
|
93
|
+
declare const index$7_setWidth: typeof setWidth;
|
|
94
|
+
declare const index$7_styleLayoutChanged: typeof styleLayoutChanged;
|
|
95
|
+
declare namespace index$7 {
|
|
96
|
+
export { type index$7_CSSProperties as CSSProperties, index$7_addClass as addClass, index$7_appendTo as appendTo, index$7_getButton as getButton, index$7_getCanvas as getCanvas, index$7_getCanvasTextWidth as getCanvasTextWidth, index$7_getDimension as getDimension, index$7_getHeight as getHeight, index$7_getOffset as getOffset, index$7_getPadding as getPadding, index$7_getWidth as getWidth, index$7_hasClass as hasClass, index$7_removeClass as removeClass, index$7_removeFromParent as removeFromParent, index$7_setHeight as setHeight, index$7_setOffset as setOffset, index$7_setRect as setRect, index$7_setVisibility as setVisibility, index$7_setWidth as setWidth, index$7_styleLayoutChanged as styleLayoutChanged };
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
type EnumObject = {
|
|
@@ -105,18 +104,65 @@ type EnumValue<E extends EnumObject> = E extends {
|
|
|
105
104
|
} ? V : never;
|
|
106
105
|
declare function getEnumValues<E extends EnumObject>(e: E): Array<EnumValue<E>>;
|
|
107
106
|
|
|
108
|
-
type index$
|
|
109
|
-
type index$
|
|
110
|
-
declare const index$
|
|
111
|
-
declare namespace index$
|
|
112
|
-
export { type index$
|
|
107
|
+
type index$6_EnumObject = EnumObject;
|
|
108
|
+
type index$6_EnumValue<E extends EnumObject> = EnumValue<E>;
|
|
109
|
+
declare const index$6_getEnumValues: typeof getEnumValues;
|
|
110
|
+
declare namespace index$6 {
|
|
111
|
+
export { type index$6_EnumObject as EnumObject, type index$6_EnumValue as EnumValue, index$6_getEnumValues as getEnumValues };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare function isUndefined(value: unknown): value is undefined;
|
|
115
|
+
declare function isNull(value: unknown): value is null;
|
|
116
|
+
declare function isObject$1(value: unknown): value is Record<string, unknown>;
|
|
117
|
+
declare function isObjectOrUndefined(value: unknown): value is Record<string, unknown> | undefined;
|
|
118
|
+
declare function isArray<T>(a: T[] | unknown): a is T[];
|
|
119
|
+
declare function isArrayOrUndefined(value: unknown): value is unknown[] | undefined;
|
|
120
|
+
declare function isString(value: unknown): value is string;
|
|
121
|
+
declare function isStringOrUndefined(value: unknown): value is string | undefined;
|
|
122
|
+
declare function isBoolean(value: unknown): value is boolean;
|
|
123
|
+
declare function isBooleanOrUndefined(value: unknown): value is boolean | undefined;
|
|
124
|
+
declare function isFunction(value: unknown): value is Function;
|
|
125
|
+
declare function isFunctionOrUndefined(value: unknown): value is Function | undefined;
|
|
126
|
+
declare function isNumber(value: unknown): value is number;
|
|
127
|
+
declare function isNumberOrUndefined(value: unknown): value is number | undefined;
|
|
128
|
+
declare function isEnumValue<E extends Record<string, string | number>>(value: unknown, enumObj: E, name?: string): value is E[keyof E];
|
|
129
|
+
declare function isEnumValueOrUndefined<E extends Record<string, string | number>>(value: unknown, enumObj: E, name?: string): value is E[keyof E] | undefined;
|
|
130
|
+
declare function isInteger$1(n: unknown): n is number;
|
|
131
|
+
declare function isIntegerEq(value: unknown, compareTo: number): value is number;
|
|
132
|
+
declare function isIntegerGt(value: unknown, compareTo: number): value is number;
|
|
133
|
+
declare function isIntegerGte(value: unknown, compareTo: number): value is number;
|
|
134
|
+
declare function isIntegerLt(value: unknown, compareTo: number): value is number;
|
|
135
|
+
declare function isIntegerLte(value: unknown, compareTo: number): value is number;
|
|
136
|
+
|
|
137
|
+
declare const index$5_isArray: typeof isArray;
|
|
138
|
+
declare const index$5_isArrayOrUndefined: typeof isArrayOrUndefined;
|
|
139
|
+
declare const index$5_isBoolean: typeof isBoolean;
|
|
140
|
+
declare const index$5_isBooleanOrUndefined: typeof isBooleanOrUndefined;
|
|
141
|
+
declare const index$5_isEnumValue: typeof isEnumValue;
|
|
142
|
+
declare const index$5_isEnumValueOrUndefined: typeof isEnumValueOrUndefined;
|
|
143
|
+
declare const index$5_isFunction: typeof isFunction;
|
|
144
|
+
declare const index$5_isFunctionOrUndefined: typeof isFunctionOrUndefined;
|
|
145
|
+
declare const index$5_isIntegerEq: typeof isIntegerEq;
|
|
146
|
+
declare const index$5_isIntegerGt: typeof isIntegerGt;
|
|
147
|
+
declare const index$5_isIntegerGte: typeof isIntegerGte;
|
|
148
|
+
declare const index$5_isIntegerLt: typeof isIntegerLt;
|
|
149
|
+
declare const index$5_isIntegerLte: typeof isIntegerLte;
|
|
150
|
+
declare const index$5_isNull: typeof isNull;
|
|
151
|
+
declare const index$5_isNumber: typeof isNumber;
|
|
152
|
+
declare const index$5_isNumberOrUndefined: typeof isNumberOrUndefined;
|
|
153
|
+
declare const index$5_isObjectOrUndefined: typeof isObjectOrUndefined;
|
|
154
|
+
declare const index$5_isString: typeof isString;
|
|
155
|
+
declare const index$5_isStringOrUndefined: typeof isStringOrUndefined;
|
|
156
|
+
declare const index$5_isUndefined: typeof isUndefined;
|
|
157
|
+
declare namespace index$5 {
|
|
158
|
+
export { index$5_isArray as isArray, index$5_isArrayOrUndefined as isArrayOrUndefined, index$5_isBoolean as isBoolean, index$5_isBooleanOrUndefined as isBooleanOrUndefined, index$5_isEnumValue as isEnumValue, index$5_isEnumValueOrUndefined as isEnumValueOrUndefined, index$5_isFunction as isFunction, index$5_isFunctionOrUndefined as isFunctionOrUndefined, isInteger$1 as isInteger, index$5_isIntegerEq as isIntegerEq, index$5_isIntegerGt as isIntegerGt, index$5_isIntegerGte as isIntegerGte, index$5_isIntegerLt as isIntegerLt, index$5_isIntegerLte as isIntegerLte, index$5_isNull as isNull, index$5_isNumber as isNumber, index$5_isNumberOrUndefined as isNumberOrUndefined, isObject$1 as isObject, index$5_isObjectOrUndefined as isObjectOrUndefined, index$5_isString as isString, index$5_isStringOrUndefined as isStringOrUndefined, index$5_isUndefined as isUndefined };
|
|
113
159
|
}
|
|
114
160
|
|
|
115
161
|
declare function getMapKeys<K, V>(map: Map<K, V>): K[];
|
|
116
162
|
|
|
117
|
-
declare const index$
|
|
118
|
-
declare namespace index$
|
|
119
|
-
export { index$
|
|
163
|
+
declare const index$4_getMapKeys: typeof getMapKeys;
|
|
164
|
+
declare namespace index$4 {
|
|
165
|
+
export { index$4_getMapKeys as getMapKeys };
|
|
120
166
|
}
|
|
121
167
|
|
|
122
168
|
declare function isInteger(n: unknown): n is number;
|
|
@@ -140,25 +186,25 @@ declare function calcNormal(x1: number, y1: number, x2: number, y2: number): {
|
|
|
140
186
|
};
|
|
141
187
|
declare function sum(arr: number[]): number;
|
|
142
188
|
|
|
143
|
-
declare const index$
|
|
144
|
-
declare const index$
|
|
145
|
-
declare const index$
|
|
146
|
-
declare const index$
|
|
147
|
-
declare const index$
|
|
148
|
-
declare const index$
|
|
149
|
-
declare const index$
|
|
150
|
-
declare const index$
|
|
151
|
-
declare const index$
|
|
152
|
-
declare const index$
|
|
153
|
-
declare namespace index$
|
|
154
|
-
export { index$
|
|
189
|
+
declare const index$3_calcNormal: typeof calcNormal;
|
|
190
|
+
declare const index$3_clamp: typeof clamp;
|
|
191
|
+
declare const index$3_interpolateCoord: typeof interpolateCoord;
|
|
192
|
+
declare const index$3_interpolateY: typeof interpolateY;
|
|
193
|
+
declare const index$3_isInteger: typeof isInteger;
|
|
194
|
+
declare const index$3_linearToDecibels: typeof linearToDecibels;
|
|
195
|
+
declare const index$3_mod: typeof mod;
|
|
196
|
+
declare const index$3_romanize: typeof romanize;
|
|
197
|
+
declare const index$3_sum: typeof sum;
|
|
198
|
+
declare const index$3_toOrdinalNumber: typeof toOrdinalNumber;
|
|
199
|
+
declare namespace index$3 {
|
|
200
|
+
export { index$3_calcNormal as calcNormal, index$3_clamp as clamp, index$3_interpolateCoord as interpolateCoord, index$3_interpolateY as interpolateY, index$3_isInteger as isInteger, index$3_linearToDecibels as linearToDecibels, index$3_mod as mod, index$3_romanize as romanize, index$3_sum as sum, index$3_toOrdinalNumber as toOrdinalNumber };
|
|
155
201
|
}
|
|
156
202
|
|
|
157
203
|
declare function isObject(value: unknown): value is Record<string, unknown>;
|
|
158
204
|
|
|
159
|
-
declare const index$
|
|
160
|
-
declare namespace index$
|
|
161
|
-
export { index$
|
|
205
|
+
declare const index$2_isObject: typeof isObject;
|
|
206
|
+
declare namespace index$2 {
|
|
207
|
+
export { index$2_isObject as isObject };
|
|
162
208
|
}
|
|
163
209
|
|
|
164
210
|
/**
|
|
@@ -207,25 +253,26 @@ declare function removeAt(str: string, pos: number, removeCount: number): string
|
|
|
207
253
|
*/
|
|
208
254
|
declare function makeSentenceFromPascal(PascalString: string): string;
|
|
209
255
|
|
|
210
|
-
declare const
|
|
211
|
-
declare const
|
|
212
|
-
declare const
|
|
213
|
-
declare const
|
|
214
|
-
declare const
|
|
215
|
-
declare const
|
|
216
|
-
declare const
|
|
217
|
-
declare namespace index {
|
|
218
|
-
export {
|
|
256
|
+
declare const index$1_chunkString: typeof chunkString;
|
|
257
|
+
declare const index$1_insertAt: typeof insertAt;
|
|
258
|
+
declare const index$1_makeSentenceFromPascal: typeof makeSentenceFromPascal;
|
|
259
|
+
declare const index$1_removeAt: typeof removeAt;
|
|
260
|
+
declare const index$1_repeatString: typeof repeatString;
|
|
261
|
+
declare const index$1_replaceAt: typeof replaceAt;
|
|
262
|
+
declare const index$1_toCharArray: typeof toCharArray;
|
|
263
|
+
declare namespace index$1 {
|
|
264
|
+
export { index$1_chunkString as chunkString, index$1_insertAt as insertAt, index$1_makeSentenceFromPascal as makeSentenceFromPascal, index$1_removeAt as removeAt, index$1_repeatString as repeatString, index$1_replaceAt as replaceAt, index$1_toCharArray as toCharArray };
|
|
219
265
|
}
|
|
220
266
|
|
|
221
|
-
declare namespace
|
|
222
|
-
export { index$
|
|
267
|
+
declare namespace index {
|
|
268
|
+
export { index$8 as Arr, index$7 as Dom, index$6 as Enum, index$5 as Is, index$4 as Map, index$3 as Math, index$2 as Obj, index$1 as Str };
|
|
223
269
|
}
|
|
224
270
|
|
|
225
271
|
declare namespace Assert {
|
|
226
272
|
type ErrorConstructor = new (msg: string) => Error;
|
|
227
273
|
function setErrorClass(ec?: ErrorConstructor): void;
|
|
228
274
|
function assert<T>(a: T, userMsg?: string): void;
|
|
275
|
+
function assertEnum<E extends Record<string, string | number>>(value: unknown, enumObj: E, name?: string): asserts value is E[keyof E];
|
|
229
276
|
function interrupt(userMsg?: string): never;
|
|
230
277
|
function int(a: unknown, userMsg?: string): number;
|
|
231
278
|
function eq<T>(a: T, b: T, userMsg?: string): T;
|
|
@@ -344,4 +391,4 @@ declare class SmallIntCache<V> {
|
|
|
344
391
|
clear(): void;
|
|
345
392
|
}
|
|
346
393
|
|
|
347
|
-
export { Assert, Cookies, Device, LRUCache, SmallIntCache, Stack,
|
|
394
|
+
export { Assert, Cookies, Device, LRUCache, SmallIntCache, Stack, index as Utils, Vec2 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function isArray<T>(a: T[] | unknown): a is T[];
|
|
1
|
+
declare function isArray$1<T>(a: T[] | unknown): a is T[];
|
|
2
2
|
declare function toArray<T>(a: T | T[]): Array<T>;
|
|
3
3
|
declare function duplicate<T>(a: T[] | undefined): T[] | undefined;
|
|
4
4
|
declare function removeDuplicates<T>(a: T[]): T[];
|
|
@@ -11,20 +11,19 @@ declare function getRangeArray(start: number, end: number): number[];
|
|
|
11
11
|
declare function arrayContains<T extends unknown>(arg: T[], item: T): boolean;
|
|
12
12
|
declare function chunckArray<A>(arr: ReadonlyArray<A>, chunckSize: number): A[][];
|
|
13
13
|
|
|
14
|
-
declare const index$
|
|
15
|
-
declare const index$
|
|
16
|
-
declare const index$
|
|
17
|
-
declare const index$
|
|
18
|
-
declare const index$
|
|
19
|
-
declare const index$
|
|
20
|
-
declare const index$
|
|
21
|
-
declare const index$
|
|
22
|
-
declare const index$
|
|
23
|
-
declare const index$
|
|
24
|
-
declare const index$
|
|
25
|
-
declare
|
|
26
|
-
|
|
27
|
-
export { index$6_arrayContains as arrayContains, index$6_chunckArray as chunckArray, index$6_duplicate as duplicate, index$6_fillArray as fillArray, index$6_getRangeArray as getRangeArray, index$6_getSequenceArray as getSequenceArray, index$6_isArray as isArray, index$6_mapRangeArray as mapRangeArray, index$6_mapSequenceArray as mapSequenceArray, index$6_removeDuplicates as removeDuplicates, index$6_removeDuplicatesCmp as removeDuplicatesCmp, index$6_toArray as toArray };
|
|
14
|
+
declare const index$8_arrayContains: typeof arrayContains;
|
|
15
|
+
declare const index$8_chunckArray: typeof chunckArray;
|
|
16
|
+
declare const index$8_duplicate: typeof duplicate;
|
|
17
|
+
declare const index$8_fillArray: typeof fillArray;
|
|
18
|
+
declare const index$8_getRangeArray: typeof getRangeArray;
|
|
19
|
+
declare const index$8_getSequenceArray: typeof getSequenceArray;
|
|
20
|
+
declare const index$8_mapRangeArray: typeof mapRangeArray;
|
|
21
|
+
declare const index$8_mapSequenceArray: typeof mapSequenceArray;
|
|
22
|
+
declare const index$8_removeDuplicates: typeof removeDuplicates;
|
|
23
|
+
declare const index$8_removeDuplicatesCmp: typeof removeDuplicatesCmp;
|
|
24
|
+
declare const index$8_toArray: typeof toArray;
|
|
25
|
+
declare namespace index$8 {
|
|
26
|
+
export { index$8_arrayContains as arrayContains, index$8_chunckArray as chunckArray, index$8_duplicate as duplicate, index$8_fillArray as fillArray, index$8_getRangeArray as getRangeArray, index$8_getSequenceArray as getSequenceArray, isArray$1 as isArray, index$8_mapRangeArray as mapRangeArray, index$8_mapSequenceArray as mapSequenceArray, index$8_removeDuplicates as removeDuplicates, index$8_removeDuplicatesCmp as removeDuplicatesCmp, index$8_toArray as toArray };
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
interface CSSProperties {
|
|
@@ -73,28 +72,28 @@ declare function getDimension(style?: CSSProperties): {
|
|
|
73
72
|
declare function styleLayoutChanged(style1?: CSSProperties, style2?: CSSProperties): boolean;
|
|
74
73
|
declare function getCanvasTextWidth(text: string, font: string): number;
|
|
75
74
|
|
|
76
|
-
type index$
|
|
77
|
-
declare const index$
|
|
78
|
-
declare const index$
|
|
79
|
-
declare const index$
|
|
80
|
-
declare const index$
|
|
81
|
-
declare const index$
|
|
82
|
-
declare const index$
|
|
83
|
-
declare const index$
|
|
84
|
-
declare const index$
|
|
85
|
-
declare const index$
|
|
86
|
-
declare const index$
|
|
87
|
-
declare const index$
|
|
88
|
-
declare const index$
|
|
89
|
-
declare const index$
|
|
90
|
-
declare const index$
|
|
91
|
-
declare const index$
|
|
92
|
-
declare const index$
|
|
93
|
-
declare const index$
|
|
94
|
-
declare const index$
|
|
95
|
-
declare const index$
|
|
96
|
-
declare namespace index$
|
|
97
|
-
export { type index$
|
|
75
|
+
type index$7_CSSProperties = CSSProperties;
|
|
76
|
+
declare const index$7_addClass: typeof addClass;
|
|
77
|
+
declare const index$7_appendTo: typeof appendTo;
|
|
78
|
+
declare const index$7_getButton: typeof getButton;
|
|
79
|
+
declare const index$7_getCanvas: typeof getCanvas;
|
|
80
|
+
declare const index$7_getCanvasTextWidth: typeof getCanvasTextWidth;
|
|
81
|
+
declare const index$7_getDimension: typeof getDimension;
|
|
82
|
+
declare const index$7_getHeight: typeof getHeight;
|
|
83
|
+
declare const index$7_getOffset: typeof getOffset;
|
|
84
|
+
declare const index$7_getPadding: typeof getPadding;
|
|
85
|
+
declare const index$7_getWidth: typeof getWidth;
|
|
86
|
+
declare const index$7_hasClass: typeof hasClass;
|
|
87
|
+
declare const index$7_removeClass: typeof removeClass;
|
|
88
|
+
declare const index$7_removeFromParent: typeof removeFromParent;
|
|
89
|
+
declare const index$7_setHeight: typeof setHeight;
|
|
90
|
+
declare const index$7_setOffset: typeof setOffset;
|
|
91
|
+
declare const index$7_setRect: typeof setRect;
|
|
92
|
+
declare const index$7_setVisibility: typeof setVisibility;
|
|
93
|
+
declare const index$7_setWidth: typeof setWidth;
|
|
94
|
+
declare const index$7_styleLayoutChanged: typeof styleLayoutChanged;
|
|
95
|
+
declare namespace index$7 {
|
|
96
|
+
export { type index$7_CSSProperties as CSSProperties, index$7_addClass as addClass, index$7_appendTo as appendTo, index$7_getButton as getButton, index$7_getCanvas as getCanvas, index$7_getCanvasTextWidth as getCanvasTextWidth, index$7_getDimension as getDimension, index$7_getHeight as getHeight, index$7_getOffset as getOffset, index$7_getPadding as getPadding, index$7_getWidth as getWidth, index$7_hasClass as hasClass, index$7_removeClass as removeClass, index$7_removeFromParent as removeFromParent, index$7_setHeight as setHeight, index$7_setOffset as setOffset, index$7_setRect as setRect, index$7_setVisibility as setVisibility, index$7_setWidth as setWidth, index$7_styleLayoutChanged as styleLayoutChanged };
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
type EnumObject = {
|
|
@@ -105,18 +104,65 @@ type EnumValue<E extends EnumObject> = E extends {
|
|
|
105
104
|
} ? V : never;
|
|
106
105
|
declare function getEnumValues<E extends EnumObject>(e: E): Array<EnumValue<E>>;
|
|
107
106
|
|
|
108
|
-
type index$
|
|
109
|
-
type index$
|
|
110
|
-
declare const index$
|
|
111
|
-
declare namespace index$
|
|
112
|
-
export { type index$
|
|
107
|
+
type index$6_EnumObject = EnumObject;
|
|
108
|
+
type index$6_EnumValue<E extends EnumObject> = EnumValue<E>;
|
|
109
|
+
declare const index$6_getEnumValues: typeof getEnumValues;
|
|
110
|
+
declare namespace index$6 {
|
|
111
|
+
export { type index$6_EnumObject as EnumObject, type index$6_EnumValue as EnumValue, index$6_getEnumValues as getEnumValues };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare function isUndefined(value: unknown): value is undefined;
|
|
115
|
+
declare function isNull(value: unknown): value is null;
|
|
116
|
+
declare function isObject$1(value: unknown): value is Record<string, unknown>;
|
|
117
|
+
declare function isObjectOrUndefined(value: unknown): value is Record<string, unknown> | undefined;
|
|
118
|
+
declare function isArray<T>(a: T[] | unknown): a is T[];
|
|
119
|
+
declare function isArrayOrUndefined(value: unknown): value is unknown[] | undefined;
|
|
120
|
+
declare function isString(value: unknown): value is string;
|
|
121
|
+
declare function isStringOrUndefined(value: unknown): value is string | undefined;
|
|
122
|
+
declare function isBoolean(value: unknown): value is boolean;
|
|
123
|
+
declare function isBooleanOrUndefined(value: unknown): value is boolean | undefined;
|
|
124
|
+
declare function isFunction(value: unknown): value is Function;
|
|
125
|
+
declare function isFunctionOrUndefined(value: unknown): value is Function | undefined;
|
|
126
|
+
declare function isNumber(value: unknown): value is number;
|
|
127
|
+
declare function isNumberOrUndefined(value: unknown): value is number | undefined;
|
|
128
|
+
declare function isEnumValue<E extends Record<string, string | number>>(value: unknown, enumObj: E, name?: string): value is E[keyof E];
|
|
129
|
+
declare function isEnumValueOrUndefined<E extends Record<string, string | number>>(value: unknown, enumObj: E, name?: string): value is E[keyof E] | undefined;
|
|
130
|
+
declare function isInteger$1(n: unknown): n is number;
|
|
131
|
+
declare function isIntegerEq(value: unknown, compareTo: number): value is number;
|
|
132
|
+
declare function isIntegerGt(value: unknown, compareTo: number): value is number;
|
|
133
|
+
declare function isIntegerGte(value: unknown, compareTo: number): value is number;
|
|
134
|
+
declare function isIntegerLt(value: unknown, compareTo: number): value is number;
|
|
135
|
+
declare function isIntegerLte(value: unknown, compareTo: number): value is number;
|
|
136
|
+
|
|
137
|
+
declare const index$5_isArray: typeof isArray;
|
|
138
|
+
declare const index$5_isArrayOrUndefined: typeof isArrayOrUndefined;
|
|
139
|
+
declare const index$5_isBoolean: typeof isBoolean;
|
|
140
|
+
declare const index$5_isBooleanOrUndefined: typeof isBooleanOrUndefined;
|
|
141
|
+
declare const index$5_isEnumValue: typeof isEnumValue;
|
|
142
|
+
declare const index$5_isEnumValueOrUndefined: typeof isEnumValueOrUndefined;
|
|
143
|
+
declare const index$5_isFunction: typeof isFunction;
|
|
144
|
+
declare const index$5_isFunctionOrUndefined: typeof isFunctionOrUndefined;
|
|
145
|
+
declare const index$5_isIntegerEq: typeof isIntegerEq;
|
|
146
|
+
declare const index$5_isIntegerGt: typeof isIntegerGt;
|
|
147
|
+
declare const index$5_isIntegerGte: typeof isIntegerGte;
|
|
148
|
+
declare const index$5_isIntegerLt: typeof isIntegerLt;
|
|
149
|
+
declare const index$5_isIntegerLte: typeof isIntegerLte;
|
|
150
|
+
declare const index$5_isNull: typeof isNull;
|
|
151
|
+
declare const index$5_isNumber: typeof isNumber;
|
|
152
|
+
declare const index$5_isNumberOrUndefined: typeof isNumberOrUndefined;
|
|
153
|
+
declare const index$5_isObjectOrUndefined: typeof isObjectOrUndefined;
|
|
154
|
+
declare const index$5_isString: typeof isString;
|
|
155
|
+
declare const index$5_isStringOrUndefined: typeof isStringOrUndefined;
|
|
156
|
+
declare const index$5_isUndefined: typeof isUndefined;
|
|
157
|
+
declare namespace index$5 {
|
|
158
|
+
export { index$5_isArray as isArray, index$5_isArrayOrUndefined as isArrayOrUndefined, index$5_isBoolean as isBoolean, index$5_isBooleanOrUndefined as isBooleanOrUndefined, index$5_isEnumValue as isEnumValue, index$5_isEnumValueOrUndefined as isEnumValueOrUndefined, index$5_isFunction as isFunction, index$5_isFunctionOrUndefined as isFunctionOrUndefined, isInteger$1 as isInteger, index$5_isIntegerEq as isIntegerEq, index$5_isIntegerGt as isIntegerGt, index$5_isIntegerGte as isIntegerGte, index$5_isIntegerLt as isIntegerLt, index$5_isIntegerLte as isIntegerLte, index$5_isNull as isNull, index$5_isNumber as isNumber, index$5_isNumberOrUndefined as isNumberOrUndefined, isObject$1 as isObject, index$5_isObjectOrUndefined as isObjectOrUndefined, index$5_isString as isString, index$5_isStringOrUndefined as isStringOrUndefined, index$5_isUndefined as isUndefined };
|
|
113
159
|
}
|
|
114
160
|
|
|
115
161
|
declare function getMapKeys<K, V>(map: Map<K, V>): K[];
|
|
116
162
|
|
|
117
|
-
declare const index$
|
|
118
|
-
declare namespace index$
|
|
119
|
-
export { index$
|
|
163
|
+
declare const index$4_getMapKeys: typeof getMapKeys;
|
|
164
|
+
declare namespace index$4 {
|
|
165
|
+
export { index$4_getMapKeys as getMapKeys };
|
|
120
166
|
}
|
|
121
167
|
|
|
122
168
|
declare function isInteger(n: unknown): n is number;
|
|
@@ -140,25 +186,25 @@ declare function calcNormal(x1: number, y1: number, x2: number, y2: number): {
|
|
|
140
186
|
};
|
|
141
187
|
declare function sum(arr: number[]): number;
|
|
142
188
|
|
|
143
|
-
declare const index$
|
|
144
|
-
declare const index$
|
|
145
|
-
declare const index$
|
|
146
|
-
declare const index$
|
|
147
|
-
declare const index$
|
|
148
|
-
declare const index$
|
|
149
|
-
declare const index$
|
|
150
|
-
declare const index$
|
|
151
|
-
declare const index$
|
|
152
|
-
declare const index$
|
|
153
|
-
declare namespace index$
|
|
154
|
-
export { index$
|
|
189
|
+
declare const index$3_calcNormal: typeof calcNormal;
|
|
190
|
+
declare const index$3_clamp: typeof clamp;
|
|
191
|
+
declare const index$3_interpolateCoord: typeof interpolateCoord;
|
|
192
|
+
declare const index$3_interpolateY: typeof interpolateY;
|
|
193
|
+
declare const index$3_isInteger: typeof isInteger;
|
|
194
|
+
declare const index$3_linearToDecibels: typeof linearToDecibels;
|
|
195
|
+
declare const index$3_mod: typeof mod;
|
|
196
|
+
declare const index$3_romanize: typeof romanize;
|
|
197
|
+
declare const index$3_sum: typeof sum;
|
|
198
|
+
declare const index$3_toOrdinalNumber: typeof toOrdinalNumber;
|
|
199
|
+
declare namespace index$3 {
|
|
200
|
+
export { index$3_calcNormal as calcNormal, index$3_clamp as clamp, index$3_interpolateCoord as interpolateCoord, index$3_interpolateY as interpolateY, index$3_isInteger as isInteger, index$3_linearToDecibels as linearToDecibels, index$3_mod as mod, index$3_romanize as romanize, index$3_sum as sum, index$3_toOrdinalNumber as toOrdinalNumber };
|
|
155
201
|
}
|
|
156
202
|
|
|
157
203
|
declare function isObject(value: unknown): value is Record<string, unknown>;
|
|
158
204
|
|
|
159
|
-
declare const index$
|
|
160
|
-
declare namespace index$
|
|
161
|
-
export { index$
|
|
205
|
+
declare const index$2_isObject: typeof isObject;
|
|
206
|
+
declare namespace index$2 {
|
|
207
|
+
export { index$2_isObject as isObject };
|
|
162
208
|
}
|
|
163
209
|
|
|
164
210
|
/**
|
|
@@ -207,25 +253,26 @@ declare function removeAt(str: string, pos: number, removeCount: number): string
|
|
|
207
253
|
*/
|
|
208
254
|
declare function makeSentenceFromPascal(PascalString: string): string;
|
|
209
255
|
|
|
210
|
-
declare const
|
|
211
|
-
declare const
|
|
212
|
-
declare const
|
|
213
|
-
declare const
|
|
214
|
-
declare const
|
|
215
|
-
declare const
|
|
216
|
-
declare const
|
|
217
|
-
declare namespace index {
|
|
218
|
-
export {
|
|
256
|
+
declare const index$1_chunkString: typeof chunkString;
|
|
257
|
+
declare const index$1_insertAt: typeof insertAt;
|
|
258
|
+
declare const index$1_makeSentenceFromPascal: typeof makeSentenceFromPascal;
|
|
259
|
+
declare const index$1_removeAt: typeof removeAt;
|
|
260
|
+
declare const index$1_repeatString: typeof repeatString;
|
|
261
|
+
declare const index$1_replaceAt: typeof replaceAt;
|
|
262
|
+
declare const index$1_toCharArray: typeof toCharArray;
|
|
263
|
+
declare namespace index$1 {
|
|
264
|
+
export { index$1_chunkString as chunkString, index$1_insertAt as insertAt, index$1_makeSentenceFromPascal as makeSentenceFromPascal, index$1_removeAt as removeAt, index$1_repeatString as repeatString, index$1_replaceAt as replaceAt, index$1_toCharArray as toCharArray };
|
|
219
265
|
}
|
|
220
266
|
|
|
221
|
-
declare namespace
|
|
222
|
-
export { index$
|
|
267
|
+
declare namespace index {
|
|
268
|
+
export { index$8 as Arr, index$7 as Dom, index$6 as Enum, index$5 as Is, index$4 as Map, index$3 as Math, index$2 as Obj, index$1 as Str };
|
|
223
269
|
}
|
|
224
270
|
|
|
225
271
|
declare namespace Assert {
|
|
226
272
|
type ErrorConstructor = new (msg: string) => Error;
|
|
227
273
|
function setErrorClass(ec?: ErrorConstructor): void;
|
|
228
274
|
function assert<T>(a: T, userMsg?: string): void;
|
|
275
|
+
function assertEnum<E extends Record<string, string | number>>(value: unknown, enumObj: E, name?: string): asserts value is E[keyof E];
|
|
229
276
|
function interrupt(userMsg?: string): never;
|
|
230
277
|
function int(a: unknown, userMsg?: string): number;
|
|
231
278
|
function eq<T>(a: T, b: T, userMsg?: string): T;
|
|
@@ -344,4 +391,4 @@ declare class SmallIntCache<V> {
|
|
|
344
391
|
clear(): void;
|
|
345
392
|
}
|
|
346
393
|
|
|
347
|
-
export { Assert, Cookies, Device, LRUCache, SmallIntCache, Stack,
|
|
394
|
+
export { Assert, Cookies, Device, LRUCache, SmallIntCache, Stack, index as Utils, Vec2 };
|