Skip to content

Commit 4d94126

Browse files
author
Mateusz Stawecki
committed
TS updated app() to use Package not HandlerFunction #137
1 parent 1636a89 commit 4d94126

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ export declare interface RegisterOptions {
3636
prefix?: string;
3737
}
3838

39+
export type Package = any;
40+
3941
export declare interface App {
40-
[namespace: string]: any;
42+
[namespace: string]: Package;
4143
}
4244

4345
export declare type Middleware = (req: Request, res: Response, next: () => void) => void;
@@ -186,8 +188,8 @@ export declare class Response {
186188
}
187189

188190
export declare class API {
189-
app(namespace: string, handler: HandlerFunction): App;
190-
app(options: App): App;
191+
app(namespace: string, package: Package): App;
192+
app(packages: App): App;
191193

192194
get(path: string, ...handler: HandlerFunction[]): void;
193195
get(...handler: HandlerFunction[]): void;

0 commit comments

Comments
 (0)