Skip to content

Commit

Permalink
Merge pull request #1 from hajali-amine/fix/typo-unknonw-in-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fdionisi authored Nov 25, 2022
2 parents 8968de2 + 213ba6e commit 91f368e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Now, during error handling code can inspect the `type` error and define behaviou
```ts
import { MyError, MyErrorType } from "./my-error"

export function errorHandling(error: unknonw) {
export function errorHandling(error: unknown) {
if (error instanceof MyError) {
switch (error.type) {
case MyErrorType.HTTP: {
Expand All @@ -78,4 +78,4 @@ export function errorHandling(error: unknonw) {

_TypedError_ is distributed under the terms of the MIT license.

See [LICENSE](LICENSE) for details.
See [LICENSE](LICENSE) for details.

0 comments on commit 91f368e

Please sign in to comment.