Spaces:
Running
Running
File size: 487 Bytes
fd8cdf5 | 1 2 3 4 5 6 7 8 9 10 11 12 | 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;
|