pokemon-showdown/server
Waleed Hassan a518cf102a Take steps to statically type Config (#5920)
This commit changes the TypeScript global variable of `Config` from
`AnyObject` to `Config & AnyObject`.

It still falls back to `AnyObject` (hence the 'Take steps') because of
the main-specific `Config` properties that are used without being in the
`Config` object itself.

These can be added by someone with access to the PS main server.

Regardlesss, this is an improvement as IntelliSense can display and
autocomplete the known properies.

In addition, the TypeScript compiler will now report bugs
concerning the types of the properties, which I have fixed in this
commit.
2019-10-30 18:45:20 +10:30
..
chat-plugins Poll: make /poll display the poll instead of help 2019-10-29 20:08:41 +01:00
static Move server code to server/ 2019-02-03 16:07:06 -06:00
tournaments Take steps to statically type Config (#5920) 2019-10-30 18:45:20 +10:30
chat-commands.js Update help for newer blockpms options (#5917) 2019-10-30 01:04:18 +10:30
chat-formatter.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
chat.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
config-loader.ts Fix config modification for unit tests (#5585) 2019-07-03 21:38:02 -07:00
global-types.ts Take steps to statically type Config (#5920) 2019-10-30 18:45:20 +10:30
global-variables.d.ts Take steps to statically type Config (#5920) 2019-10-30 18:45:20 +10:30
index.js Typescript punishments (#5728) 2019-08-29 19:46:42 -05:00
ip-tools.ts Update datacenters and IP-tools (#5915) 2019-10-27 16:25:24 -04:00
ladders-local.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
ladders-remote.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
ladders.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
loginserver.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
monitor.ts Rooms: Rooms.get can return null (#5860) 2019-10-09 18:52:33 +11:00
punishments.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
room-battle.ts Fix Nidoqueen egg move validation 2019-10-23 13:58:50 +10:30
room-game.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
roomlogs.ts Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
rooms.ts Take steps to statically type Config (#5920) 2019-10-30 18:45:20 +10:30
sockets.js Take steps to statically type Config (#5920) 2019-10-30 18:45:20 +10:30
team-validator-async.js Import Chat correctly (#5693) 2019-08-11 17:24:31 +02:00
users.ts Take steps to statically type Config (#5920) 2019-10-30 18:45:20 +10:30
verifier.ts Remove hardcoded URLs in favor of Config.routes (#5557) 2019-07-01 10:19:21 -07:00