Refactor get query serialization

This commit is contained in:
Benjamin Toby
2024-10-18 05:49:04 +01:00
parent e2d2d00487
commit 33283e7d0f
4 changed files with 65 additions and 9 deletions
+18 -1
View File
@@ -1,3 +1,5 @@
// @ts-check
const http = require("http");
/**
@@ -17,4 +19,19 @@ const http = require("http");
* }} ImageInputFileToBase64FunctionReturn
*/
module.exports = { Request, Response, ImageInputFileToBase64FunctionReturn };
/**
* @typedef {object} GetReqQueryObject
* @property {string} db
* @property {string} query
* @property {string} [queryValues]
* @property {string} [tableName]
*/
/**
* @typedef {(param0: SerializeQueryParams) => string} SerializeQueryFnType
*/
/**
* @typedef {object} SerializeQueryParams
* @property {any} query
*/