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

#180 export form state type #181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crazyursus92
Copy link

I am developing base form components in my project and I want to reuse type to provide form state to component. For example
I have a component called "ControlWrapper" which resposible for display label and validation error and I want to be full type safety, so I want to resuse FormState type from lib. Now I need to copy FromState from lib to my own type file and it is affect runtime typescript perfomance and maintainability

Fix for issue #180

@gl-aagostino
Copy link

+1 looking for the same thing!

vansh-kushwaha pushed a commit to vansh-kushwaha/svelte-forms-lib that referenced this pull request Dec 1, 2023
This is usefull when we are expecting the formState as a prop from other component

tjinauyeung#181
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

Successfully merging this pull request may close these issues.

None yet

2 participants