UNPKG

712 BPlain TextView Raw
1import * as Listr from 'listr';
2
3// The Listr interface definitions are incomplete so add own
4// ones temporary here
5export interface ListrOptionsExtended extends Listr.ListrOptions {
6 clearOutput: boolean;
7 collapse: boolean;
8 showSubtasks: boolean;
9 separateTopTasks: boolean;
10}
11
12export interface ListrTaskHelper {
13 title: string;
14 output: string;
15 spinner?: () => string;
16 isEnabled(): boolean;
17 isCompleted(): boolean;
18 hasFailed(): boolean;
19 isPending(): boolean;
20 isSkipped(): boolean;
21 subtasks: ListrTaskHelper[];
22}
23
24export interface PackageVersions {
25 [key: string]: string;
26}
27
28export interface PackageVersionsNpm {
29 [key: string]: {
30 local: string;
31 npm: string;
32 };
33}
\No newline at end of file