UNPKG

guardz

Version:

A simple and lightweight TypeScript type guard library for runtime type validation.

8 lines (7 loc) 316 B
import { ValidationTree } from './validationTypes'; /** * Create a simplified flat tree structure for JSON output * @param tree - The validation tree to simplify * @returns A simplified tree structure as a plain object */ export declare const createSimplifiedTree: (tree: ValidationTree) => Record<string, any>;