get the types from the array of object as key of object with Predefined Type
Code const fields:magicField[] = [ { type: “select”, RenderComponent: CustomInput, config: { label: “First Name”, placeholder: “First Name”, name: “firstName” , validation: z.string().min(1), options: () => [ { label: “First Name”, value: “First Name” }, { label: “Second Name”, value: “Second Name” }, ], }, }, ]; I want to convert this fields.config.name as the […]