20 lines
628 B
TypeScript
20 lines
628 B
TypeScript
|
|
// 这种
|
|
|
|
// UserRpc的命名空间自动合并
|
|
import { FrontendSession, RemoterClass } from 'pinus';
|
|
import { ChatRemote } from './chat/remote/chatRemote';
|
|
import { ComBattleRemote } from './battle/remote/comBattleRemote';
|
|
import { EventBattleRemote } from './battle/remote/eventBattleRemote';
|
|
|
|
declare global {
|
|
interface UserRpc {
|
|
chat: {
|
|
chatRemote: RemoterClass<FrontendSession, ChatRemote>;
|
|
};
|
|
battle: {
|
|
comBattleRemote: RemoterClass<FrontendSession, ComBattleRemote>;
|
|
eventBattleRemote: RemoterClass<FrontendSession, EventBattleRemote>;
|
|
};
|
|
}
|
|
} |