@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
43 lines • 1.42 kB
TypeScript
/**
* Validation and error message constants
*
* Centralized validation messages, error templates, and parameter
* validation patterns used throughout the application.
*/
/**
* Parameter validation messages
*/
export declare const VALIDATION_MESSAGES: {
/**
* Missing parameter error template
* @param param - The name of the missing parameter
*/
readonly MISSING_PARAMETER: (param: string) => string;
/**
* Missing parameter with context template
* @param param - The name of the missing parameter
* @param context - Additional context (e.g., "search query", "filter")
*/
readonly MISSING_PARAMETER_WITH_CONTEXT: (param: string, context: string) => string;
/**
* Invalid format error template
* @param field - The field with invalid format
*/
readonly INVALID_FORMAT: (field: string) => string;
/**
* Required field missing template
* @param field - The required field that is missing
*/
readonly REQUIRED_FIELD: (field: string) => string;
/**
* Validation failed template
* @param reason - The reason validation failed
*/
readonly VALIDATION_FAILED: (reason?: string) => string;
/**
* Invalid input provided template
* @param details - Details about the invalid input
*/
readonly INVALID_INPUT: (details?: string) => string;
};
//# sourceMappingURL=validation.d.ts.map