debt-collector
Version:
a nodejs tool to identify, track and mesure technical debt
21 lines (20 loc) • 599 B
TypeScript
type TaskListOptions = {
isConfigValid: boolean | null;
isReady: boolean;
isHistoryDirty: boolean | null;
isFinished: boolean;
revlength: number;
currentCommit: {
commit: string;
index: number;
};
isGitReady: boolean;
};
type State = 'loading' | 'pending' | 'success' | 'warning' | 'error';
export type TaskProps = {
state: State;
label: string;
status: string;
};
export declare const useTaskList: ({ isConfigValid, isReady, isHistoryDirty, currentCommit, isGitReady, isFinished, revlength, }: TaskListOptions) => TaskProps[];
export {};