mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -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,9 @@
|
|||
import { Message } from 'types';
|
||||
|
||||
import { RoomPersistence } from '../../persistence';
|
||||
import { RoomEvent } from './interfaces';
|
||||
import { RoomSayData, RoomEvent } from './interfaces';
|
||||
|
||||
export function roomSay(message: Message, { roomId }: RoomEvent): void {
|
||||
export function roomSay(data: RoomSayData, { roomId }: RoomEvent): void {
|
||||
const message: Message = { ...data, timeReceived: Date.now() };
|
||||
RoomPersistence.addMessage(roomId, message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue