Merge branch 'develop' into mahjong

This commit is contained in:
syuilo
2024-01-31 10:54:34 +09:00
64 changed files with 591 additions and 308 deletions

View File

@@ -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)

View File

@@ -39,7 +39,7 @@
"@misskey-dev/eslint-plugin": "1.0.0",
"@swc/jest": "0.2.31",
"@types/jest": "29.5.11",
"@types/node": "20.11.5",
"@types/node": "20.11.10",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/parser": "6.18.1",
"eslint": "8.56.0",

View File

@@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.7
* generatedAt: 2024-01-30T10:55:16.789Z
* version: 2024.2.0-beta.8
* generatedAt: 2024-01-31T01:54:12.227Z
*/
import type { SwitchCaseResponseType } from '../api.js';

View File

@@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.7
* generatedAt: 2024-01-30T10:55:16.786Z
* version: 2024.2.0-beta.8
* generatedAt: 2024-01-31T01:54:12.225Z
*/
import type {

View File

@@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.7
* generatedAt: 2024-01-30T10:55:16.785Z
* version: 2024.2.0-beta.8
* generatedAt: 2024-01-31T01:54:12.223Z
*/
import { operations } from './types.js';

View File

@@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.7
* generatedAt: 2024-01-30T10:55:16.784Z
* version: 2024.2.0-beta.8
* generatedAt: 2024-01-31T01:54:12.222Z
*/
import { components } from './types.js';

View File

@@ -2,8 +2,8 @@
/* eslint @typescript-eslint/no-explicit-any: 0 */
/*
* version: 2024.2.0-beta.7
* generatedAt: 2024-01-30T10:55:16.703Z
* version: 2024.2.0-beta.8
* generatedAt: 2024-01-31T01:54:12.139Z
*/
/**

View File

@@ -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>;
}
}
};