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
This is a feature request for inversify-express-utils. I would like this.created and related methods to return an object that takes a generic.
Expected Behavior
I expect this.created to return an interface with a generic (e.g., IHttpResponse<T>).
Current Behavior
this.created returns OkNegotiatedContentResult, which does not take a generic.
Context
I have a controller that extend BaseHttpController and have written a post method. In this method I return the result of this.created(...). I was hoping the return type would include a generic (e.g., IHttpResponse<T>) so that I could use type checking to validate whatever argument I passed to this.created.
The text was updated successfully, but these errors were encountered:
tgiardina
changed the title
inversify-express-utils: BaseHttpController's method generic eturn types
inversify-express-utils: BaseHttpController's method generic return types
Aug 11, 2020
This is a feature request for inversify-express-utils. I would like
this.created
and related methods to return an object that takes a generic.Expected Behavior
I expect
this.created
to return an interface with a generic (e.g.,IHttpResponse<T>
).Current Behavior
this.created
returnsOkNegotiatedContentResult
, which does not take a generic.Context
I have a controller that extend
BaseHttpController
and have written apost
method. In this method I return the result ofthis.created(...)
. I was hoping the return type would include a generic (e.g.,IHttpResponse<T>
) so that I could use type checking to validate whatever argument I passed tothis.created
.The text was updated successfully, but these errors were encountered: