mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-22 07:25:28 -05:00
Global types are defined differently for `.ts` files than for `.js` files, leading to some confusion for past refactors. This commit defines them correctly. I'm also considering making certain global types only available under namespaces, but I don't want to do that to `User` or `Room`, so for now, there are no changes there, besides putting streams in the `Streams` namespace (so `WriteStream` is now `Streams.WriteStream`).
14 lines
495 B
TypeScript
14 lines
495 B
TypeScript
declare let Config: {[k: string]: any};
|
|
|
|
declare let Monitor: typeof import('./monitor').Monitor;
|
|
|
|
declare let LoginServer: typeof import('./loginserver').LoginServer;
|
|
|
|
// type RoomBattle = AnyObject;
|
|
|
|
declare let Verifier: typeof import('./verifier');
|
|
declare let IPTools: typeof import('./ip-tools').IPTools;
|
|
declare let Sockets: typeof import('./sockets');
|
|
// let TeamValidator: typeof import('../sim/team-validator');
|
|
declare let TeamValidatorAsync: typeof import('./team-validator-async');
|