Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear way for typing rewriter binding #600

Open
Gruzchick opened this issue Apr 23, 2022 · 1 comment
Open

Clear way for typing rewriter binding #600

Gruzchick opened this issue Apr 23, 2022 · 1 comment

Comments

@Gruzchick
Copy link

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?

@foxhound87
Copy link
Owner

foxhound87 commented Feb 24, 2024

Maybe you need FieldPropsEnum from the models, with something like key in FieldPropsEnum

import { FieldPropsEnum } from 'mobx-react-form/lib/models/FieldProps'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants