@rjsf/utils
Version:
Utility functions for @rjsf/core
9 lines (8 loc) • 454 B
TypeScript
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;