clerc 0.9.0 → 0.9.1
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 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ interface HandlerContext<C extends CommandRecord = CommandRecord, N extends keyo
|
|
|
122
122
|
type Handler<C extends CommandRecord = CommandRecord, K extends keyof C = keyof C> = (ctx: HandlerContext<C, K>) => void;
|
|
123
123
|
type HandlerInCommand<C extends CommandRecord = CommandRecord, K extends keyof C = keyof C> = (ctx: HandlerContext<C, K> & {
|
|
124
124
|
name: K;
|
|
125
|
+
flags: Exclude<TypeFlag<NonNullableFlag<C[K]["flags"]>>["flags"], Record<string, never>>;
|
|
125
126
|
}) => void;
|
|
126
127
|
type FallbackType<T, U> = {} extends T ? U : T;
|
|
127
128
|
type InspectorContext<C extends CommandRecord = CommandRecord> = HandlerContext<C> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clerc",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",
|
|
5
5
|
"description": "Clerc is a simple and easy-to-use cli framework.",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"is-platform": "^0.2.0",
|
|
43
43
|
"lite-emit": "^1.4.0",
|
|
44
44
|
"type-flag": "^3.0.0",
|
|
45
|
-
"@clerc/utils": "0.9.
|
|
45
|
+
"@clerc/utils": "0.9.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "puild",
|