datasquirel/package-shared/types/general.td.js

38 lines
684 B
JavaScript
Raw Normal View History

2024-10-18 04:49:04 +00:00
// @ts-check
2023-09-21 14:00:04 +00:00
const http = require("http");
/**
* @typedef {http.IncomingMessage} Request
*/
/**
* @typedef {http.ServerResponse} Response
*/
2024-10-11 09:26:00 +00:00
/**
* @typedef {{
* imageBase64: string,
* imageBase64Full: string,
* imageName: string,
* imageSize: number,
* }} ImageInputFileToBase64FunctionReturn
*/
2024-10-18 04:49:04 +00:00
/**
* @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
*/