diff --git a/src/helpers/helper.ts b/src/helpers/helper.ts index 9794766..1a6c05c 100644 --- a/src/helpers/helper.ts +++ b/src/helpers/helper.ts @@ -1,6 +1,6 @@ import * as path from "path/posix"; -async function SendJSON(json: any, status: number = 200): Promise { +async function SendJSON(json: object, status: number = 200): Promise { return new Response(JSON.stringify(json), { headers: { "Content-Type": "application/json" @@ -61,4 +61,4 @@ function Html(html: string, status: number = 200): Response { }); } -export { SendJSON, Success, Failure, ServerFailure, Redirect, Html, SendFile }; \ No newline at end of file +export { SendJSON, Success, Failure, ServerFailure, Redirect, Html, SendFile };