@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
31 lines (30 loc) • 854 B
TypeScript
import { Observable } from 'rxjs';
/**
* The levels of severity of a validation alert.
*/
export declare enum ValidationAlertSeverity {
Informational = 0,
Warning = 1,
Error = 2
}
/**
* Defines a Validation Alert object used for advanced form validation
*/
export interface ValidationAlert {
hidden?: boolean;
valid?: boolean;
pending?: boolean;
message?: string;
severity?: ValidationAlertSeverity;
isMarkdownMessage?: boolean;
iconClass?: string;
showWhenPristine?: boolean;
}
export declare type ValidationResult = ValidationAlert | boolean | string;
/**
* Defines a collection of validation alerts
*/
export interface ValidationAlerts extends MsftSme.StringMap<ValidationResult> {
}
export interface AsyncValidationAlerts extends Array<Observable<ValidationAlerts>> {
}