pokemon-showdown/server/globals.ts
Guangcong Luo e0a2cf07e1 Correctly define global types for .ts files
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`).
2019-08-23 09:33:49 -07:00

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');