Skip to content

Commit a8a0888

Browse files
Updated jsdocs to be more descriptive (#150)
* updated types to be more descriptive * removed unnecessary changes
1 parent e8b81a5 commit a8a0888

File tree

3 files changed

+7404
-10
lines changed

3 files changed

+7404
-10
lines changed

index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ const composeSlim = (middleware) => async (ctx, next) => {
1515
return dispatch(0)()
1616
}
1717

18+
/** @typedef {import("koa").Middleware} Middleware */
19+
1820
/**
1921
* Compose `middleware` returning
2022
* a fully valid middleware comprised
2123
* of all those which are passed.
2224
*
23-
* @param {...(Array | Function)} middleware
24-
* @return {Function}
25+
* @param {...(Middleware | Middleware[])} middleware
26+
* @return {Middleware}
2527
* @api public
2628
*/
2729

0 commit comments

Comments
 (0)