File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,12 @@ export declare interface FileOptions {
32
32
private ?: boolean ;
33
33
}
34
34
35
+ export declare interface RegisterOptions {
36
+ prefix ?: string ;
37
+ }
38
+
35
39
export declare interface App {
36
- [ namespace : string ] : HandlerFunction ;
40
+ [ namespace : string ] : any ;
37
41
}
38
42
39
43
export declare type Middleware = ( req : Request , res : Response , next : ( ) => void ) => void ;
@@ -138,6 +142,7 @@ export declare class Request {
138
142
userAgent : string ;
139
143
clientType : 'desktop' | 'mobile' | 'tv' | 'tablet' | 'unknown' ;
140
144
clientCountry : string ;
145
+ namespace : App ;
141
146
142
147
log : {
143
148
trace : LoggerFunction ;
@@ -202,7 +207,10 @@ export declare class API {
202
207
any ( ...handler : HandlerFunction [ ] ) : void ;
203
208
METHOD ( method : METHODS , path : string , ...handler : HandlerFunction [ ] ) : void ;
204
209
METHOD ( method : METHODS , ...handler : HandlerFunction [ ] ) : void ;
205
-
210
+ register ( routes : ( api : API , options ?: RegisterOptions ) => void , options ?: RegisterOptions ) : void ;
211
+ routes ( format : true ) : void ;
212
+ routes ( format : false ) : string [ ] [ ] ;
213
+ routes ( ) : string [ ] [ ] ;
206
214
207
215
208
216
You can’t perform that action at this time.
0 commit comments