@twin.org/core 0.0.2-next.19 → 0.0.2-next.20

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.
@@ -346,6 +346,7 @@ class Is {
346
346
  * @param value The value to test.
347
347
  * @returns True if the value is a function.
348
348
  */
349
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
349
350
  static function(value) {
350
351
  return typeof value === "function";
351
352
  }
@@ -344,6 +344,7 @@ class Is {
344
344
  * @param value The value to test.
345
345
  * @returns True if the value is a function.
346
346
  */
347
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
347
348
  static function(value) {
348
349
  return typeof value === "function";
349
350
  }
@@ -195,7 +195,7 @@ export declare class Is {
195
195
  * @param value The value to test.
196
196
  * @returns True if the value is a function.
197
197
  */
198
- static function<FN extends (args?: unknown[]) => unknown = (args?: unknown[]) => unknown>(value: unknown): value is FN;
198
+ static function<T extends (...args: any[]) => any = (...args: any[]) => any>(value: unknown): value is T;
199
199
  /**
200
200
  * Is the value a string formatted as an email address.
201
201
  * @param value The value to test.
package/docs/changelog.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @twin.org/core - Changelog
2
2
 
3
+ ## [0.0.2-next.20](https://github.com/twinfoundation/framework/compare/core-v0.0.2-next.19...core-v0.0.2-next.20) (2025-10-02)
4
+
5
+
6
+ ### Features
7
+
8
+ * improve Is.function and ModuleHelper.getModuleMethod signatures ([ecf968b](https://github.com/twinfoundation/framework/commit/ecf968b02934b3676be4bf7cd2d1e7f8e7af6ce2))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/nameof bumped from 0.0.2-next.19 to 0.0.2-next.20
16
+ * devDependencies
17
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.19 to 0.0.2-next.20
18
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.19 to 0.0.2-next.20
19
+
3
20
  ## [0.0.2-next.19](https://github.com/twinfoundation/framework/compare/core-v0.0.2-next.18...core-v0.0.2-next.19) (2025-09-30)
4
21
 
5
22
 
@@ -730,15 +730,15 @@ True if the value is a TypedArray.
730
730
 
731
731
  ### function()
732
732
 
733
- > `static` **function**\<`FN`\>(`value`): `value is FN`
733
+ > `static` **function**\<`T`\>(`value`): `value is T`
734
734
 
735
735
  Is the property a function.
736
736
 
737
737
  #### Type Parameters
738
738
 
739
- ##### FN
739
+ ##### T
740
740
 
741
- `FN` *extends* (`args?`) => `unknown` = (`args?`) => `unknown`
741
+ `T` *extends* (...`args`) => `any` = (...`args`) => `any`
742
742
 
743
743
  #### Parameters
744
744
 
@@ -750,7 +750,7 @@ The value to test.
750
750
 
751
751
  #### Returns
752
752
 
753
- `value is FN`
753
+ `value is T`
754
754
 
755
755
  True if the value is a function.
756
756
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/core",
3
- "version": "0.0.2-next.19",
3
+ "version": "0.0.2-next.20",
4
4
  "description": "Helper methods/classes for data type checking/validation/guarding/error handling",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/nameof": "0.0.2-next.19",
17
+ "@twin.org/nameof": "0.0.2-next.20",
18
18
  "intl-messageformat": "10.7.16",
19
19
  "rfc6902": "5.1.2"
20
20
  },
@@ -35,5 +35,15 @@
35
35
  "dist/types",
36
36
  "locales",
37
37
  "docs"
38
+ ],
39
+ "keywords": [
40
+ "twin",
41
+ "trade",
42
+ "iota",
43
+ "framework",
44
+ "blockchain",
45
+ "core",
46
+ "foundation",
47
+ "utilities"
38
48
  ]
39
49
  }