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:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-29T09:40:51.624Z
|
||||
* generatedAt: 2024-01-30T11:53:29.839Z
|
||||
*/
|
||||
|
||||
import type { SwitchCaseResponseType } from '../api.js';
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-29T09:40:51.621Z
|
||||
* generatedAt: 2024-01-30T11:53:29.837Z
|
||||
*/
|
||||
|
||||
import type {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-29T09:40:51.620Z
|
||||
* generatedAt: 2024-01-30T11:53:29.836Z
|
||||
*/
|
||||
|
||||
import { operations } from './types.js';
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-29T09:40:51.618Z
|
||||
* generatedAt: 2024-01-30T11:53:29.835Z
|
||||
*/
|
||||
|
||||
import { components } from './types.js';
|
||||
|
@@ -3,7 +3,7 @@
|
||||
|
||||
/*
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-29T09:40:51.532Z
|
||||
* generatedAt: 2024-01-30T11:53:29.755Z
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@@ -19,6 +19,7 @@ import {
|
||||
QueueStatsLog,
|
||||
ServerStats,
|
||||
ServerStatsLog,
|
||||
ReversiGameDetailed,
|
||||
} from './entities.js';
|
||||
|
||||
export type Channels = {
|
||||
@@ -196,6 +197,32 @@ 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>;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user