Skip to content

Commit

Permalink
Merge pull request #27 from hckrnews/feature/fix-docblock
Browse files Browse the repository at this point in the history
Set some fields to optional
  • Loading branch information
w3nl authored Dec 20, 2022
2 parents 7767e87 + 76d6b21 commit f972844
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hckrnews/error",
"description": "Extended Errors",
"version": "1.0.2",
"version": "1.0.3",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
Expand Down
6 changes: 3 additions & 3 deletions src/app-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export default (error = Error) =>
* Set the error values
*
* @param {object} error
* @param {any} error.value
* @param {object} error.type
* @param {any?} error.value
* @param {object?} error.type
* @param {string} error.message
* @param {object} error.me
* @param {object?} error.me
*/
constructor({ value = null, type = null, message, me = null }) {
super(message);
Expand Down

0 comments on commit f972844

Please sign in to comment.