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

8 lines
206 B
TypeScript
Raw Permalink 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[]);
});