2022-03-08 16:25:27 +00:00
|
|
|
import { IServerRoom } from './IRoom';
|
2022-03-07 15:16:20 +00:00
|
|
|
import { IUser } from './IUser';
|
|
|
|
|
|
|
|
export type TSpotlightUser = Pick<IUser, '_id' | 'status' | 'name' | 'username'> & { outside: boolean };
|
|
|
|
|
2022-03-08 16:25:27 +00:00
|
|
|
export type ISpotlightRoom = Pick<IServerRoom, '_id' | 'name' | 't'> & Partial<Pick<IServerRoom, 'lastMessage'>>;
|
2022-03-07 15:16:20 +00:00
|
|
|
|
|
|
|
export interface ISpotlight {
|
|
|
|
users: TSpotlightUser[];
|
|
|
|
rooms: ISpotlightRoom[];
|
|
|
|
}
|