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

Add common interface types for Hit, Miss, Success, etc #435

Open
malandis opened this issue May 2, 2023 · 0 comments
Open

Add common interface types for Hit, Miss, Success, etc #435

malandis opened this issue May 2, 2023 · 0 comments

Comments

@malandis
Copy link
Contributor

malandis commented May 2, 2023

Currently we have no way of expressing whether a generic request was a Success vs Error, Hit vs Miss, etc. Add interface types to express this. We want:

  • Success responses to implement ISuccess
  • Hit, Miss, and other non-error responses to also implement ISuccess
  • Hit responses to implement IHit
  • Miss responses to implement IMiss

Add type annotations to control and data responses.

Survey other specialized types to account for this as well. (eg SetIfNotExists stored vs not stored)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant