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
When a function has an argument with a Record with a generic key, it is possible to pass a Record<string, string> if the parameter type is declared inline, but the compiler returns an error if the parameter type is a alias.
π Expected behavior
The behavior should be the same independent of how the parameter type is defined.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
record alias generic function argument type compatibility evaluation
π Version & Regression Information
4.9.3
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
When a function has an argument with a Record with a generic key, it is possible to pass a
Record<string, string>
if the parameter type is declared inline, but the compiler returns an error if the parameter type is a alias.π Expected behavior
The behavior should be the same independent of how the parameter type is defined.
The text was updated successfully, but these errors were encountered: