-
Notifications
You must be signed in to change notification settings - Fork 107
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
Suggestion: Change CircuitBreaker
type declaration
#846
Labels
Comments
submitting a PR would be helpful |
Closed
8 tasks
See the above PR. |
Closed
8 tasks
PR is ready to be merged, what's the status for this? |
The DefinetlyTyped repo is a community created repo and isn't associated with this repo, so you would need to ask those folks when it will be merged |
This issue is stale because it has been open 30 days with no activity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I propose the following change to
@types/opossum
:While this is the most breaking change, it makes a lot of work with the
CircuitBreaker
interface easier, for example:to
Practically, the type annotation is not required here (TS is able to infer it given the constructor assignment). Code such as:
is also simpler written like:
I am willing to submit a PR.
The text was updated successfully, but these errors were encountered: