diff --git a/package-shared/types/database-schema.td.js b/package-shared/types/database-schema.td.js index 5f469ca..04b8ee1 100644 --- a/package-shared/types/database-schema.td.js +++ b/package-shared/types/database-schema.td.js @@ -1,3 +1,5 @@ +// @ts-check + /** * @typedef {string} DSQL_DatabaseFullName - Database full name(slug) including datasquirel data => "datasquirel_user_7_new_database" */ diff --git a/package-shared/types/mysql.td.js b/package-shared/types/mysql.td.js index 5d0b3f6..a228957 100644 --- a/package-shared/types/mysql.td.js +++ b/package-shared/types/mysql.td.js @@ -1,3 +1,5 @@ +// @ts-check + /** * @typedef {object} DSQL_MYSQL_SHOW_INDEXES_Type * @property {string} Key_name - MYSQL Index Name @@ -44,5 +46,3 @@ * @property {number} active_clone - is Database active clone => 0 or 1 * @property {string} active_clone_parent_db - Database parent db full name => eg. "datasquirel_user_7_wexculture" */ - -//////////////////////////////////////// diff --git a/package-shared/types/package-shared-index.js b/package-shared/types/package-shared-index.js index 60ed1ea..87ea7cb 100644 --- a/package-shared/types/package-shared-index.js +++ b/package-shared/types/package-shared-index.js @@ -33,4 +33,6 @@ * @property {string} [msg] - Message * @property {string} [error] - Error Message * @property {DSQL_TableSchemaType} [schema] - Error Message + * + * @exports GetReturn */ diff --git a/package-shared/types/user.td.js b/package-shared/types/user.td.js index cb552db..3e916a0 100644 --- a/package-shared/types/user.td.js +++ b/package-shared/types/user.td.js @@ -1,3 +1,5 @@ +// @ts-check + /** * @typedef {object} DATASQUIREL_LoggedInUser * @property {number} [id] @@ -41,7 +43,7 @@ /** * @typedef {object} AuthenticatedUser * @property {boolean} success - Did the function run successfully? - * @property {import("../types/user.td").DATASQUIREL_LoggedInUser | null} payload - Payload of the response + * @property {DATASQUIREL_LoggedInUser | null} payload - Payload of the response * @property {string} [msg] - An optional message * @property {number} [userId] - An optional message */ @@ -97,14 +99,14 @@ * social_id: [string], * image: string, * image_thumbnail: string, - * verification_status: [number=0], + * verification_status: [number], * }} payload - Payload */ /** * @typedef {object} ReauthUserFunctionReturn * @property {boolean} success - Did the function run successfully? - * @property {import("../types/user.td").DATASQUIREL_LoggedInUser | null} payload - Payload + * @property {DATASQUIREL_LoggedInUser | null} payload - Payload * @property {string} [msg] - Response Message * @property {number} [userId] - user ID * @property {string} [token] - new Token diff --git a/package.json b/package.json index 81d9ae0..6b205e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "2.1.4", + "version": "2.1.5", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": {