Comparing version 3.2.0-rc.1 to 3.2.0-rc.2
@@ -42,6 +42,6 @@ /// <reference types="node" /> | ||
}; | ||
export declare type UserContextKeys<BaseContext, Context extends BaseContext> = Exclude<keyof Context, keyof BaseContext>; | ||
export declare type UserContext<BaseContext, Context extends BaseContext> = Pick<Context, UserContextKeys<BaseContext, Context>>; | ||
export declare type PartialContext<BaseContext, Context extends BaseContext> = UserContextKeys<BaseContext, Context> extends never ? Partial<Pick<Context, keyof BaseContext>> | undefined | void : Partial<Pick<Context, keyof BaseContext>> & UserContext<BaseContext, Context>; | ||
export declare type RunContext<BaseContext, Context extends BaseContext> = Context | PartialContext<BaseContext, Context>; | ||
export declare type UserContextKeys<Context extends BaseContext> = Exclude<keyof Context, keyof BaseContext>; | ||
export declare type UserContext<Context extends BaseContext> = Pick<Context, UserContextKeys<Context>>; | ||
export declare type PartialContext<Context extends BaseContext> = UserContextKeys<Context> extends never ? Partial<Pick<Context, keyof BaseContext>> | undefined | void : Partial<Pick<Context, keyof BaseContext>> & UserContext<Context>; | ||
export declare type RunContext<Context extends BaseContext> = Context | PartialContext<Context>; | ||
export declare type CliOptions = Readonly<{ | ||
@@ -169,3 +169,3 @@ /** | ||
process(input: Array<string>): Command<Context>; | ||
run(input: Command<Context> | Array<string>, userContext: RunContext<BaseContext, Context>): Promise<number>; | ||
run(input: Command<Context> | Array<string>, userContext: RunContext<Context>): Promise<number>; | ||
/** | ||
@@ -179,3 +179,3 @@ * Runs a command and exits the current `process` with the exit code returned by the command. | ||
*/ | ||
runExit(input: Command<Context> | Array<string>, context: RunContext<BaseContext, Context>): Promise<void>; | ||
runExit(input: Command<Context> | Array<string>, context: RunContext<Context>): Promise<void>; | ||
suggest(input: Array<string>, partial: boolean): string[][]; | ||
@@ -182,0 +182,0 @@ definitions({ colored }?: { |
{ | ||
"name": "clipanion", | ||
"version": "3.2.0-rc.1", | ||
"version": "3.2.0-rc.2", | ||
"main": "lib/advanced/index", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
205622