Estate: lint and type fixes in the new files
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f810a83a28
commit
4d0ee78974
2 changed files with 2 additions and 3 deletions
|
|
@ -18,8 +18,7 @@ const recordingClient = (joinRoom = vi.fn().mockResolvedValue({ roomId: '!r:game
|
|||
return joinRoom(...args);
|
||||
};
|
||||
}
|
||||
return (...args: unknown[]) => {
|
||||
void args;
|
||||
return () => {
|
||||
calls.push(prop);
|
||||
throw new Error(`unexpected client call: ${prop}`);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ export const useEstate = (rootId: string): Estate => {
|
|||
});
|
||||
return buildEstate({
|
||||
rootId,
|
||||
hierarchy: Array.from(rooms.values()) as EstateHierarchyRoom[],
|
||||
hierarchy: Array.from(rooms.values()) as unknown as EstateHierarchyRoom[],
|
||||
stewardships,
|
||||
membership,
|
||||
directRoomIds: Array.from(mDirects).filter((id) => joined.includes(id)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue