We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1636a89 commit 4d94126Copy full SHA for 4d94126
index.d.ts
@@ -36,8 +36,10 @@ export declare interface RegisterOptions {
36
prefix?: string;
37
}
38
39
+export type Package = any;
40
+
41
export declare interface App {
- [namespace: string]: any;
42
+ [namespace: string]: Package;
43
44
45
export declare type Middleware = (req: Request, res: Response, next: () => void) => void;
@@ -186,8 +188,8 @@ export declare class Response {
186
188
187
189
190
export declare class API {
- app(namespace: string, handler: HandlerFunction): App;
- app(options: App): App;
191
+ app(namespace: string, package: Package): App;
192
+ app(packages: App): App;
193
194
get(path: string, ...handler: HandlerFunction[]): void;
195
get(...handler: HandlerFunction[]): void;
0 commit comments