Skip to content

Commit e19ae3e

Browse files
committed
fix: route pulgin must
1 parent 2711ac1 commit e19ae3e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kever",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"description": "A lightweight inversion of control container for Node.js apps powered by TypeScript and Koa runtime",
55
"main": "./lib/index.js",
66
"types": "./dts/index.d.ts",
@@ -47,6 +47,7 @@
4747
"typescript": "^3.7.2"
4848
},
4949
"dependencies": {
50+
"kever-bin": "0.0.3",
5051
"koa": "^2.11.0",
5152
"koa-body": "^4.1.1",
5253
"koa-cookie": "^1.0.0",

src/decorator/httpRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const All = createHTTPMethodDecorator('get', 'post', 'put', 'delete')
2929
*/
3030
type HttpMethodReturnType = (
3131
path: string,
32-
aopPlugins: RouteAopInterface
32+
aopPlugins?: RouteAopInterface
3333
) => MethodDecorator
3434
function createHTTPMethodDecorator(
3535
...methods: Array<string>

0 commit comments

Comments
 (0)