fix/refactor(reversi): 既存のバグを修正・型定義を強化 (#13105)
* 既存のバグを修正 * fix types * fix misskey-js autogen * Update index.d.ts --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
a6a91fec3a
commit
6a41afaaee
13 changed files with 153 additions and 65 deletions
|
@ -691,6 +691,46 @@ export type Channels = {
|
|||
};
|
||||
receives: null;
|
||||
};
|
||||
reversiGame: {
|
||||
params: {
|
||||
gameId: string;
|
||||
};
|
||||
events: {
|
||||
started: (payload: {
|
||||
game: ReversiGameDetailed;
|
||||
}) => void;
|
||||
ended: (payload: {
|
||||
winnerId: User['id'] | null;
|
||||
game: ReversiGameDetailed;
|
||||
}) => void;
|
||||
canceled: (payload: {
|
||||
userId: User['id'];
|
||||
}) => void;
|
||||
changeReadyStates: (payload: {
|
||||
user1: boolean;
|
||||
user2: boolean;
|
||||
}) => void;
|
||||
updateSettings: (payload: {
|
||||
userId: User['id'];
|
||||
key: string;
|
||||
value: any;
|
||||
}) => void;
|
||||
log: (payload: Record<string, any>) => void;
|
||||
};
|
||||
receives: {
|
||||
putStone: {
|
||||
pos: number;
|
||||
id: string;
|
||||
};
|
||||
ready: boolean;
|
||||
cancel: null | Record<string, never>;
|
||||
updateSettings: {
|
||||
key: string;
|
||||
value: any;
|
||||
};
|
||||
claimTimeIsUp: null | Record<string, never>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue