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

Types for callsFake() #9

Open
m-radzikowski opened this issue Mar 6, 2021 · 1 comment
Open

Types for callsFake() #9

m-radzikowski opened this issue Mar 6, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@m-radzikowski
Copy link
Owner

Mock callsFake() method is not typed. The input argument passed to the mock function should be typed with an intersection of all Client commands inputs, and similar for the output.


Please vote with 👍   if you need this.

@m-radzikowski m-radzikowski added the enhancement New feature or request label Mar 6, 2021
@JElgar
Copy link

JElgar commented Jul 10, 2024

Presumably for the output we would want CommandResponse<TCommandOutput> (as it is for resolves) rather than an intersection of the all possible output types (guessing the same would apply for the input)?

In the mean time maybe the README is a touch misleading "fully typed - same type control for declaring mock's behavior as when writing regular code"

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

No branches or pull requests

2 participants