@aomex/commander
Advanced tools
Comparing version 0.0.31 to 0.0.32
# @aomex/commander | ||
## 0.0.32 | ||
### Patch Changes | ||
- [`7237c7b`](https://github.com/aomex/aomex/commit/7237c7b827eb77671dd445457562cd763e200454) Thanks [@geekact](https://github.com/geekact)! - feat(commander): 指令返回中间件类型提示 | ||
- Updated dependencies [[`0e6ed2c`](https://github.com/aomex/aomex/commit/0e6ed2c611100dcfaafb6fb41357624ad9f5c67a)]: | ||
- @aomex/core@0.0.25 | ||
- @aomex/console@0.0.30 | ||
## 0.0.31 | ||
@@ -4,0 +14,0 @@ |
@@ -21,2 +21,3 @@ import { Union2Intersection, Middleware, PathToFileOptions } from '@aomex/core'; | ||
declare namespace Builder { | ||
type Interface<Props extends object, T extends ConsoleMiddlewareToken[] | []> = Props & Union2Intersection<CollectArrayType<T[number]>>; | ||
type Context<Props extends object, T extends ConsoleMiddlewareToken[] | []> = Props & Union2Intersection<CollectArrayType<T[number]>> & ConsoleContext; | ||
@@ -47,3 +48,3 @@ interface Docs { | ||
constructor(options?: CommanderOptions<Props>); | ||
create<T extends ConsoleMiddlewareToken<object>[] | []>(command: string | string[], options: BuilderOptions<Props, T>): void; | ||
create<T extends ConsoleMiddlewareToken<object>[] | []>(command: string | string[], options: BuilderOptions<Props, T>): Builder.Interface<Props, T>; | ||
protected toMiddleware(): Middleware; | ||
@@ -50,0 +51,0 @@ } |
@@ -59,2 +59,3 @@ // src/commanders.ts | ||
options.disable !== true && this.builders.push(builder); | ||
return void 0; | ||
} | ||
@@ -61,0 +62,0 @@ toMiddleware() { |
{ | ||
"name": "@aomex/commander", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"description": "", | ||
@@ -29,9 +29,9 @@ "type": "module", | ||
"peerDependencies": { | ||
"@aomex/console": "^0.0.29", | ||
"@aomex/core": "^0.0.24" | ||
"@aomex/console": "^0.0.30", | ||
"@aomex/core": "^0.0.25" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@aomex/console": "^0.0.29", | ||
"@aomex/core": "^0.0.24" | ||
"@aomex/console": "^0.0.30", | ||
"@aomex/core": "^0.0.25" | ||
}, | ||
@@ -38,0 +38,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22580
232