From e0890a8f0e9729d0f135d797dac2ae86ffa0aacf Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Thu, 15 Aug 2024 13:04:40 +0100 Subject: [PATCH] Update Types --- users/add-user.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/users/add-user.js b/users/add-user.js index 8f5babc..e71b928 100644 --- a/users/add-user.js +++ b/users/add-user.js @@ -18,10 +18,20 @@ const localAddUser = require("../engine/user/add-user"); /** ****************************************************************************** */ /** ****************************************************************************** */ +/** + * @typedef {object} SuccessUserObject + * @property {number} id + * @property {string} first_name + * @property {string} last_name + * @property {string} email + */ + /** * @typedef {object} FunctionReturn * @property {boolean} success - Did the function run successfully? - * @property {(Object[]|string)} [payload=[]] - Payload + * @property {SuccessUserObject | null} [payload] - Payload + * @property {string} [msg] + * @property {any} [sqlResult] */ /**