Open Gruzchick opened 2 years ago
Is there any type (let's call it FieldPropNames) to be used in this way
import type { TextFieldProps } from "@mui/material/TextField/TextField"; export const muiTextFieldBinding: Record<FieldPropNames, keyof TextFieldProps> = { // ... };
or may be way to infer this type?
Maybe you need FieldPropsEnum from the models, with something like key in FieldPropsEnum
FieldPropsEnum
key in FieldPropsEnum
import { FieldPropsEnum } from 'mobx-react-form/lib/models/FieldProps'
Is there any type (let's call it FieldPropNames) to be used in this way
or may be way to infer this type?