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
The REST method for get will get inferred as never
even though StatusCodes.OK is equal to 200
If I change [StatusCodes.OK] and [StatusCodes.INTERNAL_SERVER_ERROR] to 200 and 500 respectively, the types are inferred correctly.
Request
Be able to infer the type correctly, as long as the key is a valid HTTP code. This results in the RPC not being useable since _rpc_.$get() errors out since $get is inferred as never
The text was updated successfully, but these errors were encountered:
Actual Result
If I have a route like this:
The REST method for
get
will get inferred asnever
even though
StatusCodes.OK
is equal to200
If I change [StatusCodes.OK] and [StatusCodes.INTERNAL_SERVER_ERROR] to 200 and 500 respectively, the types are inferred correctly.
Request
Be able to infer the type correctly, as long as the key is a valid HTTP code. This results in the RPC not being useable since
_rpc_.$get()
errors out since$get
is inferred asnever
The text was updated successfully, but these errors were encountered: