UNPKG
occaecatidicta
Version:
latest (1.0.0)
1.0.0
github.com/MyleneMcClure/occaecatidicta.git
MyleneMcClure/occaecatidicta
occaecatidicta
/
examples
/
websocket-chat-ts-run
/
game-server
/
app
/
servers
/
user.rpc.define.ts
14 lines
(11 loc)
•
304 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 这种
// UserRpc的命名空间自动合并
import
{
FrontendSession
,
RemoterClass
}
from
'omelox'
;
import
{
ChatRemote
}
from
'./chat/remote/chatRemote'
;
declare
global
{
interface
UserRpc
{
chat
: {
chatRemote
:
RemoterClass
<
FrontendSession
,
ChatRemote
>; }; } }