( note: Note, remoteIds: Map<RemoteNoteId, RemoteTemplateId>, )
| 80 | } |
| 81 | |
| 82 | function domainToEditRemote( |
| 83 | note: Note, |
| 84 | remoteIds: Map<RemoteNoteId, RemoteTemplateId>, |
| 85 | ) { |
| 86 | return { |
| 87 | localId: note.id, |
| 88 | remoteIds, |
| 89 | fieldValues: note.fieldValues, |
| 90 | tags: Array.from(note.tags), |
| 91 | } satisfies EditRemoteNote |
| 92 | } |
| 93 | |
| 94 | // The point of this type is to cause an error if something is added to NoteBase |
| 95 | // If that happens, you probably want to update the `doUpdateSet` call. |
no outgoing calls
no test coverage detected