@veltdev/types
Version:
Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.
17 lines (16 loc) • 564 B
TypeScript
import { PresenceEventTypes } from "../../utils/enums";
import { PresenceUser } from "./presence-user.data.model";
export interface PresenceMultipleUsersOnlineEvent {
users: PresenceUser[];
}
export interface PresenceUserStateChangeEvent {
user: PresenceUser;
state: string;
}
export type PresenceEventTypesMap = {
[PresenceEventTypes.MULTIPLE_USERS_ONLINE]: PresenceMultipleUsersOnlineEvent;
[PresenceEventTypes.USER_STATE_CHANGE]: PresenceUserStateChangeEvent;
};
export interface GetPresenceDataResponse {
data: PresenceUser[] | null;
}