-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add charlatanResponse helper, add type-safety (#25)
* feat! add charlatanResponse helper, add type-safety fixes #24 this changeset adds a new `charlatanResponse` helper function that returns a `CharlatanResponseBuilder` with a default status code. this new helper function replaces the previous approach of returning an `Object?` from the `CharlatanResponseBuilder` type. This makes it safer to work with in your codebase but is a breaking change. To migrate to this version, replace any usages of directly returning anything other than `CharlatanHttpResponse` in `when*` methods with a a call to `charlatanResponse` or an explicit `CharlatanHttpResponse` instance. * README updates * recalc the semantic PR title check * fix typo and add explicit future checking!
- Loading branch information
1 parent
0fad2e8
commit 671566f
Showing
8 changed files
with
115 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.