UNPKG

@nakedobjects/cicero

Version:

Single Page Application client for a Naked Objects application.

13 lines (12 loc) 1.16 kB
import * as Models from '@nakedobjects/restful-objects'; import { DateTime } from 'luxon'; import { ILocalFilter } from '@nakedobjects/services'; export declare function validateNumber(model: Models.IHasExtensions, newValue: number, filter: ILocalFilter): string; export declare function validateStringFormat(model: Models.IHasExtensions, newValue: string): string; export declare function validateDateTimeFormat(_model: Models.IHasExtensions, _newValue: string): string; export declare function validateDateFormat(model: Models.IHasExtensions, newValue: Date | string, filter: ILocalFilter): string; export declare function validateTimeFormat(_model: Models.IHasExtensions, _newValue: string): string; export declare function validateString(model: Models.IHasExtensions, newValue: string, filter: ILocalFilter): string; export declare function validateMandatory(model: Models.IHasExtensions, viewValue: string): string; export declare function validateMandatoryAgainstType(model: Models.IHasExtensions, viewValue: string, filter: ILocalFilter): string; export declare function validateDate(newValue: string, validInputFormats: string[]): DateTime<true>;