Enhances VSCode autocomplete by using a distinct type for strings.
AllowOtherStrings is defined as string & {}, an intersection that behaves
like string but is treated differently by TypeScript's type system for
internal processing. This helps in improving the specificity and relevance of
autocomplete suggestions by potentially prioritizing IntrinsicTypeName
over general string inputs, addressing issues where string type suggestions
might overshadow more useful specific literals.
Enhances VSCode autocomplete by using a distinct type for strings.
AllowOtherStrings
is defined asstring & {}
, an intersection that behaves likestring
but is treated differently by TypeScript's type system for internal processing. This helps in improving the specificity and relevance of autocomplete suggestions by potentially prioritizingIntrinsicTypeName
over general string inputs, addressing issues wherestring
type suggestions might overshadow more useful specific literals.