From c9ef753c8619eea993bbd75d848ae0b16ae8510c Mon Sep 17 00:00:00 2001 From: Hamed Ghasemzadeh Date: Wed, 1 Nov 2023 19:40:59 +0000 Subject: [PATCH] fix type defs --- lib/index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/index.js b/lib/index.js index d617937..40bf65d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -4,6 +4,14 @@ import util from "node:util"; import Redis from "ioredis"; import mysql from "mysql"; +/** + * @typedef {object} MEMConfig + * @property {string} MEM_SHARD_1_INTERNAL_HOST - The internal host for MEM shard 1. + * @property {string} MEM_SHARD_2_INTERNAL_HOST - The internal host for MEM shard 2. + * @property {string} MEM_SHARD_3_INTERNAL_HOST - The internal host for MEM shard 3. + * @property {number} MEM_INTERNAL_PORT - The internal port for MEM. + */ + /** * @param {number} shard - * @returns {{host:string, port:number}} - endpoint @@ -85,14 +93,6 @@ export class DB { } } -/** - * @typedef {object} MEMConfig - * @property {string} MEM_SHARD_1_INTERNAL_HOST - The internal host for MEM shard 1. - * @property {string} MEM_SHARD_2_INTERNAL_HOST - The internal host for MEM shard 2. - * @property {string} MEM_SHARD_3_INTERNAL_HOST - The internal host for MEM shard 3. - * @property {number} MEM_INTERNAL_PORT - The internal port for MEM. - */ - export class MEM { #conf; /**