UNPKG

@pagopa/dx-cli

Version:

A CLI useful to manage DX tools.

17 lines (16 loc) 474 B
import { Result } from "neverthrow"; export type ValidationCheck = FailedCheck | SuccessfulCheck; export type ValidationCheckResult = Result<ValidationCheck, Error>; export type ValidationReporter = { reportCheckResult(result: ValidationCheck): void; }; type FailedCheck = Pick<SuccessfulCheck, "checkName"> & { errorMessage: string; isValid: false; }; type SuccessfulCheck = { checkName: string; isValid: true; successMessage: string; }; export {};