UNPKG

@ui-schema/react

Version:

Schema-driven UI generator for React using JSON Schema. Build powerful form and interface generators with headless components and hooks.

11 lines (10 loc) 392 B
import type { Validity } from '@ui-schema/react/UIStore'; import { Map } from 'immutable'; /** * Checks if the `scope` is valid, * returns: * - `0` when no error was found * - `1` when error was found and `count` = false * - `1+` when error was found and `count` = true */ export declare const isInvalid: (validity: Map<any, unknown> | Validity | undefined, count?: boolean) => number;