MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / simplifyNote

Function simplifyNote

shared-edge/tests/getNotes.test.ts:220–226  ·  view source on GitHub ↗
(note: Note)

Source from the content-addressed store, hash-verified

218type Note = Awaited<ReturnType<typeof getNotes>>[0]
219
220function simplifyNote(note: Note) {
221 return {
222 created: note.note.created.getTime(),
223 edited: dateToEpoch(note.note.edited),
224 remoteNoteId: base64urlToArray(note.id),
225 } satisfies SimplifiedNote
226}
227
228interface SimplifiedNote {
229 created: number

Callers

nothing calls this directly

Calls 2

dateToEpochFunction · 0.90
base64urlToArrayFunction · 0.90

Tested by

no test coverage detected