mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Added return type to currentUser.subscribeToRoomMultipart (#41708)
This commit is contained in:
committed by
Eli Barzilay
parent
37f3bf828e
commit
2f807f45fb
+1
-1
@@ -94,7 +94,7 @@ export interface CurrentUser {
|
||||
getJoinableRooms: () => Promise<PusherRoom[]>;
|
||||
joinRoom: (params: RoomIdParams) => Promise<PusherRoom>;
|
||||
leaveRoom: (params: RoomIdParams) => Promise<PusherRoom>;
|
||||
subscribeToRoomMultipart: (params: RoomSubcriptionParams) => Promise<void>;
|
||||
subscribeToRoomMultipart: (params: RoomSubcriptionParams) => Promise<PusherRoom>;
|
||||
sendSimpleMessage: (params: SendSimpleMessageParams) => Promise<number>;
|
||||
sendMultipartMessage: (params: SendMultipartMessageParams) => Promise<number>;
|
||||
isTypingIn: (params: RoomIdParams) => Promise<void>;
|
||||
|
||||
@@ -48,7 +48,7 @@ async function test_connecting() {
|
||||
});
|
||||
|
||||
// Subscribe to room with no params
|
||||
await currentUser.subscribeToRoomMultipart({
|
||||
const subscribedRoom = await currentUser.subscribeToRoomMultipart({
|
||||
roomId: room.id,
|
||||
});
|
||||
|
||||
@@ -86,4 +86,6 @@ async function test_connecting() {
|
||||
await currentUser.removeUserFromRoom({ userId: 'keith', roomId: room.id });
|
||||
await currentUser.isTypingIn({ roomId: room.id });
|
||||
await currentUser.deleteRoom({ roomId: room.id });
|
||||
|
||||
subscribedRoom.users.forEach(user => user.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user