export type taskType = (c: C) => Promise | any; export interface TaskConfigType { name: string; task: T; config?: C; } export interface runConfigType { sync?: boolean; queue?: string[]; /** * @description If set to false, it is not displayed */ tip?: string | boolean; callback?: () => Promise; } export default class Task { protected tasks: { [key: string]: () => Promise | any; }; constructor(); registry[0]>, C extends Parameters[0]>(name: string, task: T, config?: C): void; getTaskNames(): string[]; run(c?: runConfigType): Promise; }