MCPcopy Index your code
hub / github.com/massCodeIO/massCode / sanitizeHttpState

Function sanitizeHttpState

src/main/store/module/app.ts:171–182  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

169}
170
171function 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
184function sanitizeNotesState(value: unknown): NotesState {
185 const source = asRecord(value)

Callers 1

sanitizeAppStoreFunction · 0.85

Calls 1

asRecordFunction · 0.90

Tested by

no test coverage detected