UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

19 lines 746 B
import { EnumeratedValue } from './getEnumeratedValues'; import { FlatTypeInfo } from './getType'; import { JSONSchema7 } from 'json-schema'; export interface SchemaPropertyInfo { type: FlatTypeInfo | undefined; isRequired: boolean; enumeratedValues: EnumeratedValue[] | null; description?: string; } export interface SchemaPropertiesMap { [propertyName: string]: SchemaPropertyInfo; } /** * Processes a JSON schema once and returns information for all properties * @param schema The JSON schema to process * @returns A map of property names to their schema information */ export declare function getSchemaPropertiesInfo(schema: JSONSchema7 | null): SchemaPropertiesMap; //# sourceMappingURL=getSchemaPropertyInfo.d.ts.map