-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Regression in DTS generation between TypeScript 5.6 and 5.7 #60506
Milestone
Comments
Note that within the file, |
FYI, here's a simpler repro with a few tweaks that can be made to resolve the issue: |
crisbeto
added a commit
to crisbeto/angular
that referenced
this issue
Nov 19, 2024
Adjusts the return type of `FormBuilder.group` to work around microsoft/TypeScript#60506.
AndrewKushnir
pushed a commit
to angular/angular
that referenced
this issue
Nov 19, 2024
Adjusts the return type of `FormBuilder.group` to work around microsoft/TypeScript#60506. PR Close #58731
AndrewKushnir
pushed a commit
to angular/angular
that referenced
this issue
Nov 19, 2024
Adjusts the return type of `FormBuilder.group` to work around microsoft/TypeScript#60506. PR Close #58731
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π Search Terms
.d.ts generation, TypeScript 5.7
π Version & Regression Information
β― Playground Link
Note: look at the ".D.TS" tab in the playground
https://www.typescriptlang.org/play/?ts=5.7.1-rc#code/KYDwDg9gTgLgBAYwDYEMDOa4DFoFsDCEAdjFBEgDwAqAfHAN4BQccAbikgK7ACEAXHCoBuRgF9GoSLESoM2PAHEynMNTpMWCYqXJp+gkeMbJ0mHFFwAhTgEskAE2BQGzOAHNlqqnFAxgRe0x6URoACldNbTIkNAEqABpXAEoBc1wlCBUKegBtAGk4GyI4AGtgAE8IADNBAF1UvEISaOp82poQlxYWKGAYTihiok4kJB4RFnEjLSI0eCqAIzgAXjgiYAB3eQtrO0coUKSRRgB6E7gAOnsLmExe-sG4GHKwYELMIq0oXoR4IrgAKwXADsFwAjABaKAIOCZGBgTgwPinc4sNIZLL0ewoGAoARzKBFNw5WpwAA+axGSBCKLgAElikCAGwXADMyLO3XRnmy2NxDQsTR0lAJRJJ5Mpow6NAk4Gg804RF+NmI7j6GLAhy6cHuA2KiwuHkymo03T5eLg4vQcFFRGJpIpw1GiUmRzEjFpAHUbDAABb-P02TBVOzAeJPX1vZ6vWE1AAGbnVnkOcfecA4GxQ5UwXx+MHDaAgtMDmBQCAQwDkGazmA20BKaAujETMA1hwuM2FjfNF3YXGAQiAA
π» Code
π Actual behavior
Given the code above, TypeScript 5.7 produces a
.d.ts
file that looks like this:π Expected behavior
It should produce something like this:
Additional information about the issue
Source code of Angular's
FormBuilder
: https://github.com/angular/angular/blob/main/packages/forms/src/form_builder.tsThe text was updated successfully, but these errors were encountered: