Ensure everything in Config has a type

This commit is contained in:
Mia 2022-07-07 01:54:32 -05:00 committed by GitHub
parent 91c5811fe0
commit a12b1eeb1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,11 @@ exports.gapi_clientid = '';
exports.bannedTerms = [];
// To use for password hashing.
/** @type {number} */
exports.passwordSalt = 10;
// routes
// routes - todo stricter key types?
/** @type {Record<string, string>} */
exports.routes = {
root: "pokemonshowdown.com",
};
@ -73,8 +75,10 @@ exports.cors = [
exports.sysops = [];
// Private key to use for validating assertions.
/** @type {string} */
exports.privatekey = '';
// current active challengekeyid (backwards compatibility)
/** @type {number} */
exports.challengekeyid = 4;
/**