Skip to content
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

Improve typings via separate interface definitions, overloaded methods, and more generics #807

Merged
merged 4 commits into from Feb 9, 2021

Conversation

dgeb
Copy link
Member

@dgeb dgeb commented Feb 8, 2021

  • Simplify decorated classes by using separate interface definitions to avoid defining redundant stub methods
  • Overload method definitions to avoid needing DataOrFullResponse and TransformsOrFullResponse interfaces
  • Use generics to allow more refined typing of return values

* Use generic to allow further specification of event name(s)
* Simplify decorated classes by using separate interface definitions to avoid defining stub methods
* Simplify decorated classes by using separate interface definitions to avoid defining stub methods
* Overload method definitions to avoid needing `DataOrFullResponse` and `TransformsOrFullResponse` interfaces
* Use generics to allow more refined typing of return values
* Overload method definitions to avoid needing `DataOrFullResponse` and `TransformsOrFullResponse` interfaces
* Use generics to allow more refined typing of return values
* Don't allow fullResponse request options
* Use generics to allow more refined typing of return values
@dgeb dgeb merged commit 35b94d0 into main Feb 9, 2021
@dgeb dgeb deleted the typings branch February 9, 2021 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant