import { ReactNode } from 'react'; import LegacyField, { Field } from './field'; import ComponentMapper from './component-mapper'; type FieldUnion = { [K in keyof T]: Field; }[keyof T]; export interface Schema { title?: ReactNode; description?: ReactNode; fields: FieldUnion[]; } export interface LegacySchema { title?: ReactNode; description?: ReactNode; fields: LegacyField[]; } export default Schema; export { LegacySchema as LegacySchemaType };