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

feat: allow add types when we use FormState type #475

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

Conversation

mau2099
Copy link

@mau2099 mau2099 commented Nov 12, 2024

so that way, we can do:

  const handleOnSubmit = async ({ values }: FormState<AttendanceDetailsForm>) => {
   ...
  }

but we can still use former way, so no breaking changes

  const handleOnSubmit = async ({ values }: FormState) => {
   ...
  }

*Note: changes based on this chart https://teslamotors.github.io/informed/api-reference/fieldState

@mau2099 mau2099 force-pushed the feat/optional-types-form-state branch from 80aa6f3 to 3c561c7 Compare November 12, 2024 18:49
@mau2099
Copy link
Author

mau2099 commented Nov 12, 2024

maintainer is requiring at least 3 thumbs up here from senior typescript devs, so if you are seeing this, drop your thoughts!

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.

1 participant