fix(form-core): infer `formOptions` parameter's type correctly #1679
main fromrefs/pull/1679/head·merged by LeCarbonator(GitHub profile, opens in a new tab) - Add TFormData generic parameter to formOptions function
- Add test to verify listener type preservation with formOptions
- Current implementation has intentional type issues for investigation
- 1
More templates
- @tanstack/form-example-angular-array
- @tanstack/form-example-angular-large-form
- @tanstack/form-example-angular-simple
- @tanstack/form-example-angular-standard-schema
- @tanstack/form-example-lit-array
- @tanstack/form-example-lit-simple
- @tanstack/form-example-lit-standard-schema
- @tanstack/form-example-lit-ui-libraries
- @tanstack/form-example-react-array
- @tanstack/form-example-react-compiler
- @tanstack/form-example-react-dynamic
- @tanstack/field-errors-from-form-validators
- @tanstack/form-example-react-large-form
- @tanstack/form-example-react-next-server-actions
- @tanstack/form-example-react-query-integration
- @tanstack/form-example-remix
- @tanstack/form-example-react-simple
- @tanstack/form-example-react-standard-schema
- @tanstack/form-example-react-tanstack-start
- @tanstack/form-example-react-ui-libraries
- @tanstack/form-example-solid-array
- @tanstack/form-example-solid-large-form
- @tanstack/form-example-solid-simple
- @tanstack/form-example-solid-standard-schema
- @tanstack/form-example-svelte-array
- @tanstack/form-example-svelte-simple
- @tanstack/form-example-svelte-standard-schema
- @tanstack/form-example-vue-array
- @tanstack/form-example-vue-simple
- @tanstack/form-example-vue-standard-schema
@tanstack/angular-form
npm i https://pkg.pr.new/@tanstack/angular-form@1679@tanstack/form-core
npm i https://pkg.pr.new/@tanstack/form-core@1679@tanstack/lit-form
npm i https://pkg.pr.new/@tanstack/lit-form@1679@tanstack/react-form
npm i https://pkg.pr.new/@tanstack/react-form@1679@tanstack/solid-form
npm i https://pkg.pr.new/@tanstack/solid-form@1679@tanstack/svelte-form
npm i https://pkg.pr.new/@tanstack/svelte-form@1679@tanstack/vue-form
npm i https://pkg.pr.new/@tanstack/vue-form@1679commit:
b2f9abeThere was a suggestion with using reverse mapped types, but I'll test it locally first because it may end up being too separated from the original types.
Do you mind if I commit the changes here if they work?
There was a suggestion with using reverse mapped types, but I'll test it locally first because it may end up being too separated from the original types.
Do you mind if I commit the changes here if they work?
Yeah go for it :)
well, it was worth a shot.
Codecov Report#
:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 90.50%. Comparing base (
124dd5b) to head (b2f9abe). :warning: Report is 2 commits behind head on main.Additional details and impacted files
@@ Coverage Diff @@ ## main #1679 +/- ## ======================================= Coverage 90.50% 90.50% ======================================= Files 37 37 Lines 1685 1685 Branches 421 421 ======================================= Hits 1525 1525 Misses 143 143 Partials 17 17:umbrella: View full report in Codecov by Sentry. :loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Alright, now we're talking. Would you mind giving this implementation a user test first? @a-is-4-adam
LeCarbonator(GitHub profile, opens in a new tab) changed the title
LeCarbonator(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
View your CI Pipeline Execution ↗ for commit b2f9abef760fe24969b5a4bb24cfbe7fb8ddede5
nx affected --targets=test:sherif,test:knip,tes...nx run-many --target=build --exclude=examples/**☁️ Nx Cloud last updated this comment at
2025-08-09 09:28:01UTC