Skip to content

Commit b60b5e4

Browse files
committed
docs: fix jsdoc that time is optional
1 parent 83570fe commit b60b5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = timeout
2727
/**
2828
* Create a new timeout middleware.
2929
*
30-
* @param {number|string} time The timeout as a number of milliseconds or a string for `ms`
30+
* @param {number|string} [time=5000] The timeout as a number of milliseconds or a string for `ms`
3131
* @param {object} [options] Additional options for middleware
3232
* @param {boolean} [options.respond=true] Automatically emit error when timeout reached
3333
* @return {function} middleware

0 commit comments

Comments
 (0)