From c02feeca08e3825f54418766f22582664d98ad0e Mon Sep 17 00:00:00 2001 From: Tben Date: Mon, 7 Aug 2023 05:17:08 +0100 Subject: [PATCH] Type Checking --- package.json | 2 +- types/general.td.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 types/general.td.js diff --git a/package.json b/package.json index 1e0df68..0fab135 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.2.7", + "version": "1.2.8", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/types/general.td.js b/types/general.td.js new file mode 100644 index 0000000..0754a63 --- /dev/null +++ b/types/general.td.js @@ -0,0 +1,11 @@ +const http = require("http"); + +/** + * @typedef {http.IncomingMessage} Request + */ + +/** + * @typedef {http.ServerResponse} Response + */ + +module.exports = { Request, Response };