Spaces:
Running
Running
| export interface ValidationResult { | |
| valid: boolean; | |
| errors: string[]; | |
| } | |
| /** | |
| * Validates that the given data conforms to the expected Dashboard JSON structure. | |
| * Checks for the presence and correct types of `nodes` and `edges` arrays, | |
| * and validates that each node has `id`, `type`, `name` and each edge has `source`, `target`, `type`. | |
| * Returns all validation errors found, not just the first. | |
| */ | |
| export declare function validateDashboard(data: unknown): ValidationResult; | |