Skip to content

Commit

Permalink
fix type defs
Browse files Browse the repository at this point in the history
  • Loading branch information
evgnomon committed Nov 1, 2023
1 parent 416d8af commit c9ef753
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
/**
Expand Down

0 comments on commit c9ef753

Please sign in to comment.