mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Add ExpressAPIFunctionType to processIncomingRequest and returnResponse
This commit is contained in:
@@ -10,6 +10,7 @@ import Sleep from 'Common/Types/Sleep';
|
||||
import Typeof from 'Common/Types/Typeof';
|
||||
import { JSONValue } from 'Common/Types/JSON';
|
||||
import logger from 'CommonServer/Utils/Logger';
|
||||
import {ExpressAPIFunctionType} from 'CommonServer/Types/FunctionTypes';
|
||||
|
||||
const router: ExpressRouter = Express.getRouter();
|
||||
|
||||
@@ -35,7 +36,7 @@ router.post(
|
||||
}
|
||||
);
|
||||
|
||||
const returnResponse: Function = async (
|
||||
const returnResponse: ExpressAPIFunctionType = async (
|
||||
req: ExpressRequest,
|
||||
res: ExpressResponse,
|
||||
next: NextFunction
|
||||
|
||||
Reference in New Issue
Block a user