You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
467 B
24 lines
467 B
export interface ValidationFailure {
|
|
propertyName: string;
|
|
errorMessage: string;
|
|
severity: 'error' | 'warning';
|
|
}
|
|
|
|
export interface ValidationError extends ValidationFailure {
|
|
isWarning: false;
|
|
}
|
|
|
|
export interface ValidationWarning extends ValidationFailure {
|
|
isWarning: true;
|
|
}
|
|
|
|
export interface Pending<T> {
|
|
value: T;
|
|
errors: ValidationError[];
|
|
warnings: ValidationWarning[];
|
|
}
|
|
|
|
export type PendingSection<T> = {
|
|
[K in keyof T]: Pending<T[K]>;
|
|
};
|