diff --git a/index.js b/index.js index da50a7f..9fcee69 100644 --- a/index.js +++ b/index.js @@ -23,12 +23,13 @@ const userAuth = require("./users/user-auth"); * ============================================================================== * User Functions Object * ============================================================================== - * @type {Object} - * @property {Function} createUser - Create User Function - * @property {Function} loginUser - Login User Function - * @property {Function} logoutUser - Logout User Function - * @property {Function} userAuth - User Auth Function - * @property {Function} updateUser - Update User Function + * @type {{ + * createUser: Function + * loginUser: Function + * logoutUser: Function + * userAuth: Function + * updateUser: Function + * }} */ const user = { createUser: createUser, @@ -42,8 +43,9 @@ const user = { * ============================================================================== * Media Functions Object * ============================================================================== - * @type {Object} - * @property {Function} uploadImage - Upload Image async Function + * @type {{ + * uploadImage: Function + * }} */ const media = { uploadImage: uploadImage, @@ -53,9 +55,21 @@ const media = { * ============================================================================== * Main Export * ============================================================================== - * @type {Object} - * @property {Function} get - get Function - * @property {Function} post - post Function + * @type {{ + * get: Function, + * post: Function, + * media: { + * uploadImage: Function + * }, + * user: { + * createUser: Function + * loginUser: Function + * logoutUser: Function + * userAuth: Function + * updateUser: Function + * }, + * }} + * ============================================================================== */ const datasquirel = { get: get, diff --git a/package.json b/package.json index 21866b4..e72258b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.5", + "version": "1.1.6", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": {