release-checker
Version:
Check your release before publishing
25 lines (24 loc) • 646 B
TypeScript
export interface Checker {
canRun: () => boolean;
cliOption: string;
errors: ValidationError[];
hasErrors: boolean;
hasWarnings: boolean;
id: string;
run: () => Array<ValidationError | ValidationWarning>;
shortCliOption: string;
statusToDisplayWhileValidating: string;
warnings: ValidationWarning[];
whyCannotRun: () => string;
}
declare const noopChecker: Checker;
export declare type CheckerProps = keyof typeof noopChecker;
export interface ValidationError {
reason: string;
severity: 'error';
}
export interface ValidationWarning {
reason: string;
severity: 'warning';
}
export {};