clerc 1.0.0-beta.19 → 1.0.0-beta.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/index.d.ts +2 -2
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ type FlagDefaultValue<T = unknown> = T | FlagDefaultValueFunction<T>;
|
|
|
46
46
|
*
|
|
47
47
|
* @template T The target type.
|
|
48
48
|
*/
|
|
49
|
-
interface
|
|
49
|
+
interface TypeFunction<T = unknown> {
|
|
50
50
|
(value: string): T;
|
|
51
51
|
/**
|
|
52
52
|
* Optional display name for the type, useful in help output.
|
|
@@ -54,7 +54,7 @@ interface FlagTypeFunction<T = unknown> {
|
|
|
54
54
|
*/
|
|
55
55
|
display?: string;
|
|
56
56
|
}
|
|
57
|
-
type FlagType<T = unknown> =
|
|
57
|
+
type FlagType<T = unknown> = TypeFunction<T> | readonly [TypeFunction<T>];
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region ../plugin-help/src/types.d.ts
|
|
60
60
|
interface Formatters {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clerc",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.20",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Clerc: The full-featured cli library.",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@clerc/
|
|
48
|
-
"@clerc/plugin-
|
|
49
|
-
"@clerc/
|
|
50
|
-
"@clerc/plugin-
|
|
51
|
-
"@clerc/plugin-
|
|
52
|
-
"@clerc/plugin-
|
|
53
|
-
"@clerc/plugin-
|
|
47
|
+
"@clerc/plugin-completions": "1.0.0-beta.20",
|
|
48
|
+
"@clerc/plugin-friendly-error": "1.0.0-beta.20",
|
|
49
|
+
"@clerc/core": "1.0.0-beta.20",
|
|
50
|
+
"@clerc/plugin-help": "1.0.0-beta.20",
|
|
51
|
+
"@clerc/plugin-not-found": "1.0.0-beta.20",
|
|
52
|
+
"@clerc/plugin-strict-flags": "1.0.0-beta.20",
|
|
53
|
+
"@clerc/plugin-version": "1.0.0-beta.20"
|
|
54
54
|
}
|
|
55
55
|
}
|