Skip to content
Source
Sign inSign up
TanStack/form

fix(form-core): infer `formOptions` parameter's type correctly #1679

Mergeda-is-4-adam(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/1679/headmerged 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. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit b2f9abef760fe24969b5a4bb24cfbe7fb8ddede5

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded1m 16sView ↗
      nx run-many --target=build --exclude=examples/**✅ Succeeded<1sView ↗

      ☁️ Nx Cloud last updated this comment at 2025-08-09 09:28:01 UTC

    2. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented
      More templates

      @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@1679

      commit: b2f9abe

    3. 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?

    4. 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 :)

    5. codecov[bot](GitHub profile, opens in a new tab)commented

      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

  • Sign in to join this conversation.