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 string exists, literals will be directly inferred as string instead of the designated literal type.
Moreover, different keys with distinct literal types will be merged.
What is the feature you are proposing?
Hey
Currently, the type of
query
isRecord<string, string>
. However, when I have a predefined type, such as:I hope the type of
query
can be changed toA
, so that I can directly usec.req.query<A>()
to pass parameters to functions that accept typeA
.Perhaps its type definition is like this:
The text was updated successfully, but these errors were encountered: