-
-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added service type as generic type argument #1291
base: next
Are you sure you want to change the base?
Conversation
I like this idea. We've created and used custom types this way in our system for years but since upgrading to |
I'm having some trouble understanding how the example works. This is creating a new class, but that class doesn't extend the base I might be missing something, but I don't see how that |
Sorry for the confusion with the example. This is just the type declaration extension for service schema. Implementation will be the same as in moleculer service schema implementation. So we need to set the
|
I have a couple of high-level thoughts with regards to this PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do Shawn's suggestions.
Added service type as generic type argument
📝 Description
updated this type definitions for
Now we can properly define custom properties in service interface like
💎 Type of change
📜 Example code
🚦 How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
🏁 Checklist: