UNPKG

@rjsf/utils

Version:
9 lines (8 loc) 454 B
import { RJSFSchema, StrictRJSFSchema } from './types.js'; /** Detects whether the given `schema` contains fixed items. This is the case when `schema.items` is a non-empty array * that only contains objects. * * @param schema - The schema in which to check for fixed items * @returns - True if there are fixed items in the schema, false otherwise */ export default function isFixedItems<S extends StrictRJSFSchema = RJSFSchema>(schema: S): boolean;