(value: unknown)
| 169 | } |
| 170 | |
| 171 | function sanitizeHttpState(value: unknown): HttpState { |
| 172 | const source = asRecord(value) |
| 173 | const state: HttpState = {} |
| 174 | |
| 175 | if (typeof source.requestId === 'number') |
| 176 | state.requestId = source.requestId |
| 177 | if (typeof source.folderId === 'number') |
| 178 | state.folderId = source.folderId |
| 179 | if (typeof source.libraryFilter === 'string') |
| 180 | state.libraryFilter = source.libraryFilter |
| 181 | return state |
| 182 | } |
| 183 | |
| 184 | function sanitizeNotesState(value: unknown): NotesState { |
| 185 | const source = asRecord(value) |
no test coverage detected