chat-ui / src /lib /types /MessageEvent.ts
nsarrazin's picture
nsarrazin HF staff
Session management improvements: Multi sessions, renew on login/logout (#603)
e4a770a unverified
raw history blame
No virus
258 Bytes
import type { Session } from "./Session";
import type { Timestamps } from "./Timestamps";
import type { User } from "./User";
export interface MessageEvent extends Pick<Timestamps, "createdAt"> {
userId: User["_id"] | Session["sessionId"];
ip?: string;
}