react-chrono
Version:
A Modern Timeline component for React
27 lines • 800 B
TypeScript
/**
* Simple runtime validation for Timeline props without external dependencies
*/
interface ValidationError {
path: string[];
message: string;
}
/**
* Validates timeline props and returns validation errors
* @param props - Timeline props to validate
* @returns Array of validation errors (empty if valid)
*/
export declare function validateTimelineProps(props: any): ValidationError[];
/**
* Safely validates props without throwing, returns success/error result
* @param props - Raw timeline props
* @returns Success result or error result with validation errors
*/
export declare function safeValidateTimelineProps(props: unknown): {
success: true;
data: any;
} | {
success: false;
errors: ValidationError[];
};
export {};
//# sourceMappingURL=validation.d.ts.map