@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.
- package/dist/cjs/index.cjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/types/utils/is.d.ts +1 -1
- package/docs/changelog.md +17 -0
- package/docs/reference/classes/Is.md +4 -4
- package/package.json +12 -2
package/dist/cjs/index.cjs
CHANGED
package/dist/esm/index.mjs
CHANGED
package/dist/types/utils/is.d.ts
CHANGED
|
@@ -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<
|
|
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**\<`
|
|
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
|
-
#####
|
|
739
|
+
##### T
|
|
740
740
|
|
|
741
|
-
`
|
|
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
|
|
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.
|
|
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.
|
|
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
|
}
|