Skip to content

Commit b48a8dd

Browse files
committed
Add missing error type
1 parent 937cbed commit b48a8dd

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/error/to-json/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/error/to-json/lib/to_json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var typeName = require( './type.js' );
1414
* Returns a JSON representation of an error object.
1515
*
1616
* @param {(Error|TypeError|SyntaxError|URIError|ReferenceError|RangeError|EvalError)} err - error to serialize
17-
* @throws first argument must be an error object
17+
* @throws {TypeError} first argument must be an error object
1818
* @returns {Object} JSON representation
1919
*
2020
* @example

0 commit comments

Comments
 (0)