-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
38 lines (38 loc) · 1.16 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Express, Router, RouterOptions } from 'express'
declare module 'express' {
export interface Express {
useExcept: Express['use']
allExcept: Express['all']
getExcept: Express['get']
postExcept: Express['post']
putExcept: Express['put']
deleteExcept: Express['delete']
patchExcept: Express['patch']
optionsExcept: Express['options']
headExcept: Express['head']
}
export interface Application {
useExcept: Application['use']
allExcept: Application['all']
getExcept: Application['get']
postExcept: Application['post']
putExcept: Application['put']
deleteExcept: Application['delete']
patchExcept: Application['patch']
optionsExcept: Application['options']
headExcept: Application['head']
}
export interface Router {
useExcept: Router['use']
allExcept: Router['all']
getExcept: Router['get']
postExcept: Router['post']
putExcept: Router['put']
deleteExcept: Router['delete']
patchExcept: Router['patch']
optionsExcept: Router['options']
headExcept: Router['head']
}
export function Router(options?: RouterOptions): Router;
export default function(): Express
}