Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Feb 9, 2024
1 parent 0ad1a76 commit 45a7cb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helpers/get-error-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const getErrorMessage = (error: unknown): string => {
* Checks if error has message.
*
* @param e Error object.
*
* @returns True if error has message, false otherwise.
*/
const isErrorWithMessage = (e: unknown): e is ErrorWithMessage => (
typeof e === 'object'
Expand Down

0 comments on commit 45a7cb5

Please sign in to comment.