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
const a=<T extends '1'|'akv'|'ogb'|'222'>()=>{}
const b=a<''> // try the autocomplete here
π Actual behavior
Autocomplete suggestions include all possible string values, ignoring the specific string literals in the constraint. This behavior diminishes the effectiveness of the autocompletion feature, as shown in the attached screenshot.
π Expected behavior
Autocomplete should provide suggestions only for the specific string literals defined in the type constraint ('1', 'akv', 'ogb', '222') without additional unrelated strings.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
π Search Terms
generic autocomplete numeric string
π Version & Regression Information
TypeScript Version: 5.6.3
β― Playground Link
https://www.typescriptlang.org/play/?exactOptionalPropertyTypes=false&ts=5.6.3#code/MYewdgzgLgBAhgXgDwBUYFMAeV1gCYQwDkAjEQD5FwDWAbhUSAOYBGDATJ0QHwAUAlAm4BvAL4AoUJFgsEcJER5A
π» Code
π Actual behavior
Autocomplete suggestions include all possible string values, ignoring the specific string literals in the constraint. This behavior diminishes the effectiveness of the autocompletion feature, as shown in the attached screenshot.
π Expected behavior
Autocomplete should provide suggestions only for the specific string literals defined in the type constraint ('1', 'akv', 'ogb', '222') without additional unrelated strings.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: