(value: unknown)
| 332 | } |
| 333 | |
| 334 | function sanitizeContentSort(value: unknown): ContentSortState { |
| 335 | const source = asRecord(value) |
| 336 | |
| 337 | return { |
| 338 | sort: readEnum( |
| 339 | source, |
| 340 | 'sort', |
| 341 | ['createdAt', 'updatedAt', 'name'] as const, |
| 342 | 'createdAt', |
| 343 | ), |
| 344 | order: readEnum(source, 'order', ['ASC', 'DESC'] as const, 'DESC'), |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | function sanitizeCommandPaletteRecent( |
| 349 | value: unknown, |
no test coverage detected