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 skipDryRunning flag #12

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

TorstenStueber
Copy link
Contributor

@TorstenStueber TorstenStueber commented Aug 5, 2024

Closes #11

Unfortunately I had to change the return type of the affected functions and make the result entry optional. It is only undefined if the parameter skipDryRunning is true, otherwise it will always be defined – as before.

It is possible to define this relationship in TypeScript but I think that the types will be ugly. Therefore I keep it as it is. This would now require the caller to explicitly check whether the result entry is undefined or not (or just assure it using the ! operator).

@TorstenStueber TorstenStueber linked an issue Aug 5, 2024 that may be closed by this pull request
@TorstenStueber TorstenStueber requested a review from ebma August 5, 2024 15:39
Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@TorstenStueber TorstenStueber merged commit ac8af61 into main Aug 6, 2024
@TorstenStueber TorstenStueber deleted the 11-allow-to-skip-dry-running-method-calls branch August 6, 2024 07:46
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

Successfully merging this pull request may close these issues.

Allow to skip dry-running method calls
2 participants