koa-ts-core 0.0.8 → 0.0.9-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { HttpMethod } from '../types/route';
|
|
2
|
+
export declare const INDEX_ROUTE = "index";
|
|
2
3
|
/**
|
|
3
4
|
* 注册路由
|
|
4
5
|
* @param method 请求路由方式
|
|
5
6
|
* @param path? 路由地址, 可选,默认为方法名字
|
|
6
7
|
* @returns
|
|
7
8
|
*/
|
|
8
|
-
export declare function Router(method?: HttpMethod, path?: string): (target: any,
|
|
9
|
+
export declare function Router(method?: HttpMethod, path?: string): (target: any, functionName: string, descriptor: PropertyDescriptor) => any;
|
|
9
10
|
/**
|
|
10
11
|
* 注册权限路由路由
|
|
11
12
|
* @param method 请求路由方式
|
|
12
13
|
* @param path? 路由地址, 可选,默认为方法名字
|
|
13
14
|
* @returns
|
|
14
15
|
*/
|
|
15
|
-
export declare function AuthRouter(method?: HttpMethod, path?: string): (target: any,
|
|
16
|
+
export declare function AuthRouter(method?: HttpMethod, path?: string): (target: any, functionName: string, descriptor: PropertyDescriptor) => any;
|