import { HttpClient } from '../types' interface DeleteRoomOptions { id: string } export type DeleteRoom = (options: DeleteRoomOptions) => Promise type DeleteRoomFactory = (client: HttpClient) => DeleteRoom export const deleteRoomFactory: DeleteRoomFactory = (client) => async ( options ) => { const { id } = options await client(`video/rooms/${id}`, { method: 'DELETE', }) }