UNPKG

@vector-im/matrix-bot-sdk

Version:

TypeScript/JavaScript SDK for Matrix bots and appservices

9 lines (8 loc) 332 B
import { RoomEvent } from "./RoomEvent"; /** * Wraps a room event into a more suitable container. * @param {any} event The event object to wrap. * @returns {RoomEvent<any>} An instance of the most suitable container for the event. * @category Matrix events */ export declare function wrapRoomEvent(event: any): RoomEvent<any>;