Comparing version 1.2.4 to 1.2.5
@@ -50,3 +50,3 @@ /// <reference types="node" /> | ||
run(ctx?: Ctx, task?: ListrTaskWrapper<Ctx>): Promise<void>; | ||
prompt<T extends any, P extends PromptTypes>(type: P, options: PromptOptionsType<P>): Promise<T>; | ||
prompt<T = any, P extends PromptTypes = PromptTypes>(type: P, options: PromptOptionsType<P>): Promise<T>; | ||
} | ||
@@ -53,0 +53,0 @@ export declare type ListrTaskResult<Ctx> = string | Promise<any> | ListrClass<Ctx> | Readable | Observable<any>; |
@@ -16,4 +16,4 @@ import { ListrError, ListrOptions, ListrTask, ListrTaskWrapper, StateConstants } from '../interfaces/listr.interface'; | ||
skip(message: string): void; | ||
prompt<T extends any, P extends PromptTypes>(type: P, options: PromptOptionsType<P>): Promise<T>; | ||
prompt<T = any, P extends PromptTypes = PromptTypes>(type: P, options: PromptOptionsType<P>): Promise<T>; | ||
run(ctx: Ctx): Promise<void>; | ||
} |
{ | ||
"name": "listr2", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Terminal task list reborn!", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
72920