CoolFace
Apppublic

mr4/knowledge-graph-preview

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
dashboard-validator.d.ts12 linesDownload Raw Back to lib
1export interface ValidationResult {2    valid: boolean;3    errors: string[];4}5/**6 * Validates that the given data conforms to the expected Dashboard JSON structure.7 * Checks for the presence and correct types of `nodes` and `edges` arrays,8 * and validates that each node has `id`, `type`, `name` and each edge has `source`, `target`, `type`.9 * Returns all validation errors found, not just the first.10 */11export declare function validateDashboard(data: unknown): ValidationResult;12