string.ts 357 B

123456789101112
  1. const sourceEmojis = {
  2. // Source used for info messages.
  3. info: "\tℹ️ [INFO]:\t",
  4. // Source used for client to server messages.
  5. client: "\t⬅️ [SENT]:\t",
  6. // Source used for server to client messages.
  7. server: "\t➡️ [RECEIVED]:\t",
  8. }
  9. export function getSourcePrefix(source: keyof typeof sourceEmojis) {
  10. return sourceEmojis[source]
  11. }