nz-json-schema-form
Version:
Schema form for JSON schema
16 lines (15 loc) • 821 B
TypeScript
import { InjectionToken } from '@angular/core';
import { ValidationErrors } from '@angular/forms';
import { AbstractSchemaControl } from '../forms/forms';
import * as i0 from "@angular/core";
export interface NzSchemaErrorMessageItem {
[key: string]: ((error: ValidationErrors, form: AbstractSchemaControl) => string) | string;
}
export declare const NZ_SCHEMA_ERROR_MESSAGES: InjectionToken<NzSchemaErrorMessageItem>;
export declare function NZ_SCHEMA_DEFAULT_ERROR_MESSAGES_FACTORY(): NzSchemaErrorMessageItem;
export declare class NzSchemaErrorMessageService {
private errorMessages;
getErrorMessage(form: AbstractSchemaControl): string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<NzSchemaErrorMessageService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NzSchemaErrorMessageService>;
}