askeroo
Version:
A modern CLI prompt library with flow control, history navigation, and conditional prompts
35 lines • 1.14 kB
TypeScript
import type { Task, TasksOptions } from "./types.js";
export type { Task, TaskLabel, CompleteOn } from "./types.js";
export interface TaskResult {
id: string;
label: string;
status: "success" | "error" | "warning";
error?: string;
warning?: string;
duration?: number;
subtasks?: TaskResult[];
}
export interface TasksResult {
success: boolean;
totalTasks: number;
completedTasks: number;
failedTasks: number;
warningTasks: number;
results: TaskResult[];
}
export declare class TaskWarning extends Error {
constructor(message: string);
}
export declare function tasks(taskList: TasksOptions["tasks"], options?: {
concurrent?: boolean;
}): Promise<TasksResult>;
export declare namespace tasks {
var sequential: (taskList: TasksOptions["tasks"]) => Promise<TasksResult>;
var parallel: (taskList: TasksOptions["tasks"]) => Promise<TasksResult>;
var add: typeof addTasks;
}
export declare function addTask(task: Task): Promise<void>;
export declare function addTasks(taskList: Task[], options?: {
concurrent?: boolean;
}): Promise<void>;
//# sourceMappingURL=index.d.ts.map