You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-][isolatedDeclarations] Optional parameter typed as imported generic type gets emitted as `any`[/-][+][isolatedDeclarations] Optional parameter in arrow function typed as imported generic type gets emitted as `any`[/+]on Jul 16, 2024
@RyanCavanaugh I've checked and created PR #59446, and the emitter seems to be working as expected. @MichaelMitchell-at, could you provide more details on the cases that cause the issue?
@a-tarasyuk thank you for the fix! The only example I had found so far in our code base basically boils down to the example I provided. At the time I just worked around it by rewriting it as a function declaration.
[isolatedDeclarations] Optional parameter in arrow function typed as imported generic type gets emitted as `any` Β· Issue #59292 Β· microsoft/TypeScript
Activity
[-][isolatedDeclarations] Optional parameter typed as imported generic type gets emitted as `any`[/-][+][isolatedDeclarations] Optional parameter in arrow function typed as imported generic type gets emitted as `any`[/+]a-tarasyuk commentedon Jul 27, 2024
@RyanCavanaugh I've checked and created PR #59446, and the emitter seems to be working as expected. @MichaelMitchell-at, could you provide more details on the cases that cause the issue?
MichaelMitchell-at commentedon Jul 28, 2024
@a-tarasyuk thank you for the fix! The only example I had found so far in our code base basically boils down to the example I provided. At the time I just worked around it by rewriting it as a function declaration.
jakebailey commentedon Jan 17, 2025
For reference, this was fixed by #60195.