Constructors
constructor
- new PeersIndex(
users?: Map<number, TypeUser>,
chats?: Map<number, TypeChat>,
): PeersIndex
Properties
Readonly
chats
hasMin
hasMin: boolean = false
Readonly
users
Accessors
empty
- get empty(): boolean
Returns boolean
Methods
chat
- chat(id: number): TypeChat
user
- user(id: number): TypeUser
Static
from
- from(obj: { chats?: TypeChat[]; users?: TypeUser[] }): PeersIndex