MCPcopy Create free account
hub / github.com/agegr/pi-web / parseEntryTimestamp

Function parseEntryTimestamp

lib/session-reader.ts:232–235  ·  view source on GitHub ↗
(timestamp: string)

Source from the content-addressed store, hash-verified

230}
231
232function parseEntryTimestamp(timestamp: string): number | undefined {
233 const parsed = Date.parse(timestamp);
234 return Number.isNaN(parsed) ? undefined : parsed;
235}
236
237function isRecord(value: unknown): value is Record<string, unknown> {
238 return typeof value === "object" && value !== null && !Array.isArray(value);

Callers 1

entryToUiMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected