Massive/toast.ts

8 lines
144 B
TypeScript

import { emitter } from "./emitter";
export const TOAST = "toast";
export function toast(value: string) {
emitter.emit(TOAST, { value });
}