mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-10 22:44:43 +08:00
Merge branch 'saelyah-patch-1'
This commit is contained in:
4
express-serve-static-core/index.d.ts
vendored
4
express-serve-static-core/index.d.ts
vendored
@@ -860,7 +860,7 @@ interface RequestParamHandler {
|
||||
(req: Request, res: Response, next: NextFunction, value: any, name: string): any;
|
||||
}
|
||||
|
||||
type ApplicaitonRequestHandler<T> = IRouterHandler<T> & IRouterMatcher<T> & {
|
||||
type ApplicationRequestHandler<T> = IRouterHandler<T> & IRouterMatcher<T> & {
|
||||
(...handlers: RequestHandlerParams[]): T;
|
||||
};
|
||||
|
||||
@@ -1105,7 +1105,7 @@ interface Application extends IRouter, Express.Application {
|
||||
*/
|
||||
_router: any;
|
||||
|
||||
use: ApplicaitonRequestHandler<this>;
|
||||
use: ApplicationRequestHandler<this>;
|
||||
}
|
||||
|
||||
interface Express extends Application {
|
||||
|
||||
Reference in New Issue
Block a user