MCPcopy Create free account
hub / github.com/monkeytypegame/monkeytype / buildMonkeyMail

Function buildMonkeyMail

backend/src/utils/monkey-mail.ts:6–15  ·  view source on GitHub ↗
(options: MonkeyMailOptions)

Source from the content-addressed store, hash-verified

4type MonkeyMailOptions = Partial<Omit<MonkeyMail, "id" | "read">>;
5
6export function buildMonkeyMail(options: MonkeyMailOptions): MonkeyMail {
7 return {
8 id: v4(),
9 subject: options.subject ?? "",
10 body: options.body ?? "",
11 timestamp: options.timestamp ?? Date.now(),
12 read: false,
13 rewards: options.rewards ?? [],
14 };
15}

Callers 6

handleReportsFunction · 0.90
addResultFunction · 0.90
addDebugInboxItemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected