Loosen types on some configuration options

None of these need to be strictly typed to the exact string they're initalized to - being typed to just `string` is enough.
This commit is contained in:
Mia 2022-07-07 01:51:55 -05:00 committed by GitHub
parent a2c7b52b18
commit 91c5811fe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,13 +25,16 @@ exports.routes = {
root: "pokemonshowdown.com",
};
/** @type {string} */
exports.mainserver = 'showdown';
/** @type {string} */
exports.serverlist = '/var/www/html/play.pokemonshowdown.com/config/servers.inc.php';
/** @type {string | null} Password, whether to debug error stacks in request or not*/
exports.devmode = null;
// absolute path to your PS instance. can use the checked-out client that the client clones in.
/** @type {string} */
exports.pspath = '/var/www/html/play.pokemonshowdown.com/data/pokemon-showdown';
/**
@ -128,4 +131,4 @@ exports.restartip = null;
* Custom actions for your loginserver.
* @type {{[k: string]: import('../src/dispatcher').QueryHandler} | null}
*/
exports.actions = null;
exports.actions = null;