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

Expose types such as RuleExpression for further use #3913

Closed
simonwep opened this issue Sep 1, 2022 · 1 comment
Closed

Expose types such as RuleExpression for further use #3913

simonwep opened this issue Sep 1, 2022 · 1 comment
Labels
👕 TypeScript TypeScript typings issue

Comments

@simonwep
Copy link

simonwep commented Sep 1, 2022

Is your feature request related to a problem? Please describe.

It's currently not possible to import types such as RuleExpression or FieldOptions as they're not exposed.

Describe the solution you'd like

Types such as RuleExpression to be exposed for further use :)

Describe alternatives you've considered

Extracting the type via typeof and Parameters from useField:

export type Rules = Parameters<typeof useField>[1];
@logaretm logaretm added the 👕 TypeScript TypeScript typings issue label Sep 2, 2022
@logaretm
Copy link
Owner

I believe the FieldOptions are exposed already. I will expose RuleExpression in the next release.

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

No branches or pull requests

2 participants