mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
upgrade packages + improve typing
This commit is contained in:
parent
fd55f4fb7f
commit
19f5eefdd2
138 changed files with 4504 additions and 11015 deletions
|
|
@ -1,8 +1,6 @@
|
|||
import { ServerDispatch } from 'store';
|
||||
import { BanHistoryItem, LogItem, WarnHistoryItem, WarnListItem } from 'types';
|
||||
|
||||
import NormalizeService from '../utils/NormalizeService';
|
||||
|
||||
export class ModeratorPersistence {
|
||||
static banFromServer(userName: string): void {
|
||||
ServerDispatch.banFromServer(userName);
|
||||
|
|
@ -13,7 +11,7 @@ export class ModeratorPersistence {
|
|||
}
|
||||
|
||||
static viewLogs(logs: LogItem[]): void {
|
||||
ServerDispatch.viewLogs(NormalizeService.normalizeLogs(logs));
|
||||
ServerDispatch.viewLogs(logs);
|
||||
}
|
||||
|
||||
static warnHistory(userName: string, warnHistory: WarnHistoryItem[]): void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue