clerc 1.0.0-beta.15 → 1.0.0-beta.17
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 +7 -4
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -36,21 +36,24 @@ declare const friendlyErrorPlugin: ({
|
|
|
36
36
|
}?: FriendlyErrorPluginOptions) => Plugin;
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region ../parser/src/types.d.ts
|
|
39
|
-
|
|
39
|
+
interface FlagDefaultValueFunction<T> {
|
|
40
|
+
(): T;
|
|
40
41
|
display?: string;
|
|
41
|
-
}
|
|
42
|
+
}
|
|
43
|
+
type FlagDefaultValue<T = unknown> = T | FlagDefaultValueFunction<T>;
|
|
42
44
|
/**
|
|
43
45
|
* Defines how a string input is converted to the target type T.
|
|
44
46
|
*
|
|
45
47
|
* @template T The target type.
|
|
46
48
|
*/
|
|
47
|
-
|
|
49
|
+
interface FlagTypeFunction<T = unknown> {
|
|
50
|
+
(value: string): T;
|
|
48
51
|
/**
|
|
49
52
|
* Optional display name for the type, useful in help output.
|
|
50
53
|
* If provided, this will be shown instead of the function name.
|
|
51
54
|
*/
|
|
52
55
|
display?: string;
|
|
53
|
-
}
|
|
56
|
+
}
|
|
54
57
|
type FlagType<T = unknown> = FlagTypeFunction<T> | readonly [FlagTypeFunction<T>];
|
|
55
58
|
//#endregion
|
|
56
59
|
//#region ../plugin-help/src/types.d.ts
|
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.17",
|
|
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/core": "1.0.0-beta.
|
|
48
|
-
"@clerc/plugin-completions": "1.0.0-beta.
|
|
49
|
-
"@clerc/plugin-
|
|
50
|
-
"@clerc/plugin-not-found": "1.0.0-beta.
|
|
51
|
-
"@clerc/plugin-
|
|
52
|
-
"@clerc/plugin-
|
|
53
|
-
"@clerc/plugin-
|
|
47
|
+
"@clerc/core": "1.0.0-beta.17",
|
|
48
|
+
"@clerc/plugin-completions": "1.0.0-beta.17",
|
|
49
|
+
"@clerc/plugin-friendly-error": "1.0.0-beta.17",
|
|
50
|
+
"@clerc/plugin-not-found": "1.0.0-beta.17",
|
|
51
|
+
"@clerc/plugin-help": "1.0.0-beta.17",
|
|
52
|
+
"@clerc/plugin-strict-flags": "1.0.0-beta.17",
|
|
53
|
+
"@clerc/plugin-version": "1.0.0-beta.17"
|
|
54
54
|
}
|
|
55
55
|
}
|