RFC: add support for Service Request and Response type#2125
Closed
bwgjoseph wants to merge 1 commit intofeathersjs:crowfrom
Closed
RFC: add support for Service Request and Response type#2125bwgjoseph wants to merge 1 commit intofeathersjs:crowfrom
bwgjoseph wants to merge 1 commit intofeathersjs:crowfrom
Conversation
Contributor
Author
|
@daffl would this be considered for |
Member
|
This is a good suggestion. Since there already was a major refactoring in the works (PR via #2255) I included it there so we'll close this PR. Thank you for putting this up! |
Contributor
Author
|
Thanks @daffl! Will try it out after you have release a alpha/beta for it. The only thing that I noticed (now, with a quick look) is that you had the request at the 2nd arg, and response at the first. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
This PR would likely be a breaking change, so I am actually hoping to make it into
doveinstead ofcrow. I have most of the description written in this-repo that I created to showcase, but I will put some of key info here.For the longest time, I have been wanting to have some ways to allow me to define a different set of request/response interface since it can be different (and it is for most cases that I have encounter). There have been some chats about this in
slackas well, and I thought I can start making some changes and see if this can be accepted, and I'm sure can be further improved as well.Objective
Allow to declare a different set of interface for
RequestandResponsewhich can also greatly improve dev-experience.Example
Result
For more details, and example, please refer to feathers-request-response-demo
If there is a better way to do this, I would like to have your feedback. This should not affect any actual functionality of the application, it all just providing better typing's for typescript developers.
Thanks!