/** * Inject a schema object property to nested schema. * uiSchema = { "ui:options": { * "injections": [ * { * "fields": [field1, field2...], * "target": fieldName * } * ... * ] * }} */ export default class InjectField extends React.Component { static propTypes: { uiSchema: PropTypes.Validator; target: PropTypes.Validator; }> | (PropTypes.InferProps<{ fields: PropTypes.Validator<(string | null | undefined)[]>; target: PropTypes.Validator; }> | null | undefined)[] | null | undefined>>>; }>>>; uiSchema: PropTypes.Requireable; }>>>; schema: PropTypes.Validator; }>>>; formData: PropTypes.Validator; }; static getName(): string; constructor(props: any); constructor(props: any, context: any); getStateFromProps(props: any): { schema: any; uiSchema: any; idSchema: any; formData: any; errorSchema: any; onChange: (formData: any) => void; }; onChange: (formData: any) => void; } import * as React from "react"; import * as PropTypes from "prop-types";