@clerc/advanced-types 1.0.2 → 1.0.3
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/index.d.ts +1 -15
- package/package.json +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { TypeFunction } from "@clerc/parser";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Defines how a string input is converted to the target type T.
|
|
5
|
-
*
|
|
6
|
-
* @template T The target type.
|
|
7
|
-
*/
|
|
8
|
-
interface TypeFunction<T = unknown> {
|
|
9
|
-
(value: string): T;
|
|
10
|
-
/**
|
|
11
|
-
* Optional display name for the type, useful in help output.
|
|
12
|
-
* If provided, this will be shown instead of the function name.
|
|
13
|
-
*/
|
|
14
|
-
display?: string;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
3
|
//#region src/errors.d.ts
|
|
18
4
|
declare class FlagValidationError extends Error {}
|
|
19
5
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clerc/advanced-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Clerc advanced types",
|
|
@@ -41,5 +41,11 @@
|
|
|
41
41
|
],
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@clerc/parser": "1.0.3"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@clerc/parser": "*"
|
|
44
50
|
}
|
|
45
51
|
}
|