Skip to content

Commit

Permalink
docs: fix assert type sig in example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffijoe authored Aug 15, 2022
1 parent fcdd2f0 commit 883f374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Additionally, for your convenience, a few common HTTP errors have been defined w

Fejl wants to get rid of excessive boilerplate in conditionally throwing errors. Therefore, each error class created with `MakeErrorClass` comes with the following **static functions**:

## `assert<T>(data: T, message: string): T`
## `assert<T>(data: T, message: string): void`

Let's create ourselves an error class to play with.

Expand Down

0 comments on commit 883f374

Please sign in to comment.