breadc 0.8.5 → 0.8.6
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 +5 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,9 @@ interface TreeNode {
|
|
|
49
49
|
|
|
50
50
|
declare function makeTreeNode(pnode: Partial<TreeNode>): TreeNode;
|
|
51
51
|
|
|
52
|
+
type Prettify<T> = {
|
|
53
|
+
[K in keyof T]: T[K];
|
|
54
|
+
} & {};
|
|
52
55
|
type Lowercase = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z';
|
|
53
56
|
type Uppercase = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
|
|
54
57
|
type Letter = Lowercase | Uppercase;
|
|
@@ -77,9 +80,9 @@ type ExtractOption<T extends string, D = undefined> = {
|
|
|
77
80
|
[k in ExtractOptionName<T>]: D extends undefined ? ExtractOptionType<T> : D;
|
|
78
81
|
};
|
|
79
82
|
type Push<T extends any[], U, R> = [...T, U, R];
|
|
80
|
-
type ActionFn<T extends any[], Option extends object = {}, R = any> = (...arg: Push<T, Option & {
|
|
83
|
+
type ActionFn<T extends any[], Option extends object = {}, R = any> = (...arg: Push<T, Prettify<Option & {
|
|
81
84
|
'--': string[];
|
|
82
|
-
}
|
|
85
|
+
}>, {}>) => R | Promise<R>;
|
|
83
86
|
/**
|
|
84
87
|
* Max Dep: 5
|
|
85
88
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "breadc",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"description": "Yet another Command Line Application Framework with fully strong TypeScript support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"breadc",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@breadc/color": "0.8.
|
|
37
|
+
"@breadc/color": "0.8.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^18.11.19",
|