(value: unknown)
| 820 | } |
| 821 | |
| 822 | function parseTrayWindowModules(value: unknown): TrayWindowModuleId[] | undefined { |
| 823 | if (!Array.isArray(value)) { |
| 824 | return undefined; |
| 825 | } |
| 826 | const allowed = new Set<string>(TRAY_WINDOW_MODULE_IDS); |
| 827 | return uniqueStrings(value.map((item) => readString(item)).filter((item): item is string => Boolean(item))) |
| 828 | .filter((item): item is TrayWindowModuleId => allowed.has(item)); |
| 829 | } |
| 830 | |
| 831 | function parseTrayWidgets(value: unknown): TrayWidgetConfig[] | undefined { |
| 832 | if (!Array.isArray(value)) { |
no test coverage detected
searching dependent graphs…