Strictify stores/room-list
(#10474)
This commit is contained in:
parent
9848cdf4e7
commit
9aef1874db
8 changed files with 62 additions and 21 deletions
|
@ -44,9 +44,9 @@ export enum EffectiveMembership {
|
|||
Leave = "LEAVE",
|
||||
}
|
||||
|
||||
export type MembershipSplit = Partial<{
|
||||
export type MembershipSplit = {
|
||||
[state in EffectiveMembership]: Room[];
|
||||
}>;
|
||||
};
|
||||
|
||||
export function splitRoomsByMembership(rooms: Room[]): MembershipSplit {
|
||||
const split: MembershipSplit = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue