@creejs/commons-lang 2.1.31 → 2.1.32
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/cjs/index-dev.cjs +46 -2
- package/dist/cjs/index-dev.cjs.map +1 -1
- package/dist/cjs/index-min.cjs +1 -1
- package/dist/cjs/index-min.cjs.map +1 -1
- package/dist/esm/index-dev.js +46 -3
- package/dist/esm/index-dev.js.map +1 -1
- package/dist/esm/index-min.js +1 -1
- package/dist/esm/index-min.js.map +1 -1
- package/dist/umd/index.dev.js +46 -2
- package/dist/umd/index.dev.js.map +1 -1
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +3 -1
- package/types/iterator-utils.d.ts +9 -0
- package/types/type-assert.d.ts +8 -0
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare namespace _default {
|
|
|
17
17
|
export { ArrayBufferUtils };
|
|
18
18
|
export { TimeUtils };
|
|
19
19
|
export { ArrayUtils };
|
|
20
|
+
export { IteratorUtils };
|
|
20
21
|
}
|
|
21
22
|
export default _default;
|
|
22
23
|
import _Error from './_error.js';
|
|
@@ -34,4 +35,5 @@ import TypedArrayUtils from './typed-array-utils.js';
|
|
|
34
35
|
import ArrayBufferUtils from './array-buffer-utils.js';
|
|
35
36
|
import TimeUtils from './time-utils.js';
|
|
36
37
|
import ArrayUtils from './array-utils.js';
|
|
37
|
-
|
|
38
|
+
import IteratorUtils from './iterator-utils.js';
|
|
39
|
+
export { _Error, AggregatedError, LangUtils, StringUtils, TypeUtils, TypeAssert, ExecUtils, PromiseUtils, LangUtils as Lang, TypeUtils as Type, ExecUtils as Exec, ClassProxyUtils, InstanceProxyUtils, ReflectUtils, TypedArrayUtils, ArrayBufferUtils, TimeUtils, ArrayUtils, IteratorUtils };
|
package/types/type-assert.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare namespace _default {
|
|
|
31
31
|
export { assertBigUint64Array };
|
|
32
32
|
export { assertTypedArray };
|
|
33
33
|
export { assertArrayBuffer };
|
|
34
|
+
export { assertIterable };
|
|
34
35
|
}
|
|
35
36
|
export default _default;
|
|
36
37
|
/**
|
|
@@ -258,3 +259,10 @@ export function assertTypedArray(value: any, paramName: string): void;
|
|
|
258
259
|
* @throws {Error} Throws an error if the value is not an ArrayBuffer.
|
|
259
260
|
*/
|
|
260
261
|
export function assertArrayBuffer(value: any, paramName?: string): void;
|
|
262
|
+
/**
|
|
263
|
+
* Asserts that the given value is Iterable
|
|
264
|
+
* @param {*} value - The value to check.
|
|
265
|
+
* @param {string} [paramName] - Optional parameter name for error message.
|
|
266
|
+
* @throws {Error} Throws an error if the value is not Iterable
|
|
267
|
+
*/
|
|
268
|
+
export function assertIterable(value: any, paramName?: string): void;
|