mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Remove trailing spaces
This commit is contained in:
@@ -14,4 +14,4 @@ app.use(errorhandler({ log: (err, str, req, res) => {
|
||||
|
||||
const requestWasFresh = req && req.fresh;
|
||||
const responseContentType = res && res.contentType
|
||||
}}))
|
||||
}}))
|
||||
|
||||
Vendored
+5
-5
@@ -7,18 +7,18 @@
|
||||
|
||||
declare module "errorhandler" {
|
||||
import express = require('express');
|
||||
|
||||
|
||||
function errorHandler(options?: errorHandler.Options): express.ErrorRequestHandler;
|
||||
|
||||
|
||||
namespace errorHandler {
|
||||
interface LoggingCallback {
|
||||
(err: Error, str: string, req: express.Request, res: express.Response): void;
|
||||
}
|
||||
|
||||
|
||||
interface Options {
|
||||
/**
|
||||
* Defaults to true.
|
||||
*
|
||||
*
|
||||
* Possible values:
|
||||
* true : Log errors using console.error(str).
|
||||
* false : Only send the error back in the response.
|
||||
@@ -27,6 +27,6 @@ declare module "errorhandler" {
|
||||
log: boolean | LoggingCallback;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export = errorHandler;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user