hardlounge/client/js/socket-events/mentions.ts

8 lines
206 B
TypeScript
Raw Normal View History

import socket from "../socket";
import {store} from "../store";
import {ClientMention} from "../types";
socket.on("mentions:list", function (data) {
store.commit("mentions", data as ClientMention[]);
});