// A single check step export interface CheckStepInterface { getName(): string; // return [error, warning], null/"" on success check(): Promise<[string, string]>; } // An action for a check, fix, or update, or a combination. export interface ActionInterface { getName(): string; // return check steps for sanity check (0, 1, or more) getSanityChecks(): CheckStepInterface[]; // return check steps for consistenct check (0, 1, or more) getConsistencyChecks(): CheckStepInterface[]; sanityFix(): Promise; consistencyFix(): Promise; update(): Promise; } export enum FixCheckMode { CheckSanityOnly = 1, CheckAll, FixSanityOnly, FixAll }