card_svr/src/global.d.ts
2020-12-03 14:57:28 +08:00

28 lines
467 B
TypeScript

export {};
declare global {
namespace NodeJS {
interface Global {
NODE_ENV: string
ROOT_PATH: string
$cfg: any
}
}
}
/**
* GeneralRoom 扩展方法
*/
import { Room } from "colyseus";
declare module "colyseus" {
interface Room {
/**
* 广播玩家加入房间
* @param data
* @param options
*/
bUserJoin(data?: any, options?: any): void;
}
}