mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-23 23:23:55 -07:00
refactor typescript wiring
This commit is contained in:
parent
cea9ae62d8
commit
c62c336a11
286 changed files with 2999 additions and 3053 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { GameSortField, Message, Room, Game, SortBy, UserSortField } from 'types';
|
||||
import { App, Enriched } from '@app/types';
|
||||
|
||||
export interface RoomsState {
|
||||
rooms: RoomsStateRooms;
|
||||
|
|
@ -11,12 +11,12 @@ export interface RoomsState {
|
|||
}
|
||||
|
||||
export interface RoomsStateRooms {
|
||||
[roomId: number]: Room;
|
||||
[roomId: number]: Enriched.Room;
|
||||
}
|
||||
|
||||
export interface RoomsStateGames {
|
||||
[roomId: number]: {
|
||||
[gameId: number]: Game;
|
||||
[gameId: number]: Enriched.Game;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -31,13 +31,13 @@ export interface JoinedGames {
|
|||
}
|
||||
|
||||
export interface RoomsStateMessages {
|
||||
[roomId: number]: Message[];
|
||||
[roomId: number]: Enriched.Message[];
|
||||
}
|
||||
|
||||
export interface RoomsStateSortGamesBy extends SortBy {
|
||||
field: GameSortField
|
||||
export interface RoomsStateSortGamesBy extends App.SortBy {
|
||||
field: App.GameSortField
|
||||
}
|
||||
|
||||
export interface RoomsStateSortUsersBy extends SortBy {
|
||||
field: UserSortField
|
||||
export interface RoomsStateSortUsersBy extends App.SortBy {
|
||||
field: App.UserSortField
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue